← Back to DAGDA | Support | Source: https://github.com/Anurag1/Generalised-Meta-Attention-Architecture-4926c17c
Skip to content

About

Generalised MetaAttention Architecture is a reasoning-first neural framework that extends Transformers with meta-attention, epistemic confidence, rule induction, and self-critique. It enables models to reason about their own reasoning, detect uncertainty, reduce hallucinations, and support safer, interpretable real-world AI systems.

Resources

Code of conduct

Contributing

Security policy

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

 

History

43 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Meta-Attention Reasoning Toolkit (MART)

Generalised Meta-Attention Architecture — reimagined as a usable SDK, model zoo, evaluation suite, and demo to make reasoning-first AI ideas practical for engineers, researchers, and product teams.

Description

MART (Meta-Attention Reasoning Toolkit) packages the repository's reasoning-first concepts (meta-attention, epistemic confidence, rule induction, and self-critique) into an approachable Python SDK, example models, and demo applications so you can: experiment quickly, evaluate epistemic confidence and hallucination, and build safer interpretable systems.

Key goals

  • Provide a compact, well-documented Python API to integrate meta-attention into transformer models.
  • Offer reference implementations and small configs for rapid experimentation and reproducible demos.
  • Ship a lightweight demo (Gradio/Streamlit) and Colab quickstart so anyone can try MART in <15 minutes.
  • Include evaluation tools for confidence calibration, hallucination detection, and reasoning benchmarks.

Features (MVP)

  • Core SDK: MetaAttentionLayer, ConfidenceHead, SelfCritic module (lightweight, framework-friendly).
  • Hugging Face adapter: easy adapter-style integration into existing Transformers models.
  • Inference utilities: run models and get predictions + epistemic confidence and self-critique traces.
  • Small example configs & demo scripts for quick experiments.
  • Evaluation harness for basic hallucination and confidence tests.

Quickstart (developer preview)

Install (developer mode):

pip install -e .

Or (once released):

pip install mart-reasoning-toolkit

Minimal example (API preview)

from mart import load_demo_model, run_inference

# load a small demo configuration (random weights / toy checkpoint)
model = load_demo_model("small-meta")

prompt = "Explain why the sky appears blue."
result = run_inference(model, prompt, return_confidence=True, return_self_critique=True)

print("Answer:\n", result.answer)
print("Confidence:\n", result.confidence)
print("Self-critique notes:\n", result.self_critique)

Planned repository layout

  • src/mart/ — core package
  • examples/ — quickstart scripts & Colab notebooks
  • demos/ — Gradio/Streamlit demo app
  • configs/ — small meta-attention configs
  • tests/ — unit tests and CI
  • docs/ — usage and API docs
  • LICENSE — recommended Apache-2.0
  • CONTRIBUTING.md

Roadmap & next steps

  1. Add Apache-2.0 LICENSE and CONTRIBUTING.md
  2. Create package skeleton (src/mart) with core class stubs and unit tests
  3. Implement HF adapter and inference utilities
  4. Add Colab quickstart and Gradio demo
  5. CI: tests, linters, build/publish pipeline

Ethics & model data

  • Document provenance and licensing for any pretrained checkpoints.
  • Provide a model card and risk statement explaining limitations, failure modes, and mitigation strategies.

Maintainers

  • Owner: Anurag1 (GitHub)

Get involved

If you'd like, I can now create the package skeleton (src/mart) with core stubs, tests, and a CI workflow. Reply with "B" and I'll add the code and tests directly to the repository.

About

Generalised MetaAttention Architecture is a reasoning-first neural framework that extends Transformers with meta-attention, epistemic confidence, rule induction, and self-critique. It enables models to reason about their own reasoning, detect uncertainty, reduce hallucinations, and support safer, interpretable real-world AI systems.

Resources

Code of conduct

Contributing

Security policy

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages