← 返回
开发者工具 中文

MARL — Multi-stage Reasoning Middleware

Multi-stage multi-agent reasoning middleware that reduces LLM hallucination by 70%+. 9 specialized emergence engines for invention, creative, pharma, genomic...
多阶段多智能体推理中间件,可将大语言模型幻觉降低70%以上。9个专业化的涌现引擎,用于发明、创意、制药、基因组等领域。
cutechicken99 cutechicken99 来源
开发者工具 clawhub v1.0.0 1 版本 99886.1 Key: 无需
★ 6
Stars
📥 757
下载
💾 18
安装
1
版本
#emergence#hallucination#latest#llm#metacognition#middleware#multi-agent#reasoning

概述

MARL Enhance — Brain Upgrade for Your Agent

The 3rd approach after fine-tuning & RAG. MARL restructures how LLMs reason at runtime — not their weights. One line to integrate, 70%+ hallucination reduction, 9 domain-specific emergence engines.

![PyPI](https://pypi.org/project/marl-middleware/)

![GitHub](https://github.com/Vidraft/MARL)

![Demo](https://huggingface.co/spaces/VIDraft/MARL)

![FINAL Bench](https://huggingface.co/spaces/FINAL-Bench/Leaderboard)

What It Does

Before MARL: Your agent calls the LLM once → gets an answer (might hallucinate).

After MARL: Your agent calls MARL → MARL runs a multi-stage expert pipeline → hypothesis, solving, auditing, adversarial verification, synthesis → returns a deeply verified answer.

Your Agent → MARL → Multi-stage Pipeline → Any LLM → Verified Answer

Results: 70%+ hallucination reduction · 94.8% of improvement from self-correction · Verified on FINAL Bench (HuggingFace Global Top 5 dataset).

Setup

Option A: Docker (Recommended — all platforms)

docker run -p 8080:8080 vidraft/marl

Option B: pip (Linux x86_64)

pip install marl-middleware
python -m marl serve --port 8080

Option C: HuggingFace Space (No install — try instantly)

Use https://huggingface.co/spaces/VIDraft/MARL directly in your browser.

Connect to OpenClaw

Set your config.json:

{
  "llm": {
    "baseURL": "http://localhost:8080/v1",
    "model": "gpt-5.4"
  }
}

That's it. Every LLM call now passes through MARL's multi-stage reasoning pipeline.

9 Emergence Modes

Switch modes by appending ::mode to any model name:

model valueEngineWhat it does
----------------------------------
gpt-5.4🔬 InsightDefault — fact-check, strategy, deep analysis
gpt-5.4::invent🔧 InventPatent-level invention via TRIZ + bio-inspired + contradiction resolution
gpt-5.4::create✨ CreateCliché inversion, paradox, genre fusion, sensory collision
gpt-5.4::recipe🍳 RecipeCulinary emergence with taste chemistry validation
gpt-5.4::pharma💊 PharmaDrug repositioning, mechanism crossing, multi-target design
gpt-5.4::genomics🧬 GenomicsPathway crosstalk, synthetic lethality, phenotype bridging
gpt-5.4::chemistry🧪 ChemistryContradictory properties, biomimicry, waste-to-value
gpt-5.4::ecology🌍 EcologyConservation transfer, threat inversion, service stacking
gpt-5.4::law⚖️ LawCross-jurisdiction transplant, tech-law collision resolution
gpt-5.4::document📄 DocumentMetacognitive report and document generation

Replace gpt-5.4 with any model — Claude, Gemini, DeepSeek, Llama, etc.

Example: Switch to Pharma mode

{
  "llm": {
    "baseURL": "http://localhost:8080/v1",
    "model": "gpt-5.4::pharma"
  }
}

Then chat: "Find drug repositioning candidates for Alzheimer's using immune checkpoint mechanisms"

Example: Creative ideation

{
  "llm": {
    "model": "claude-sonnet::create"
  }
}

Then chat: "Generate 10 movie loglines that have never existed before"

How It Works

┌─ OpenClaw ────────────────────────────────────┐
│  "Analyze this complex question"               │
└──────────────┬─────────────────────────────────┘
               │ HTTP (OpenAI API format)
               ▼
┌─ MARL Middleware ─────────────────────────────┐
│  Multi-stage Multi-agent Reasoning Pipeline    │
│  9 Emergence Engines · 70%+ Hallucination ↓   │
└──────────────┬─────────────────────────────────┘
               │ API calls to your chosen LLM
               ▼
┌─ Any LLM ─────────────────────────────────────┐
│  GPT-5.4 · Claude · Gemini · DeepSeek · Llama │
└────────────────────────────────────────────────┘

MARL works with every LLM that supports OpenAI API format. It runs locally on your machine — your data never leaves your infrastructure.

Works With Any LLM

  • OpenAI (GPT-5.4, GPT-5.2, GPT-4.1, o4-mini)
  • Anthropic (Claude Opus 4.6, Sonnet 4.6)
  • Google (Gemini 3.1 Pro, Gemini 3 Flash)
  • DeepSeek (V3, R1, R2)
  • xAI (Grok-4, Grok-3)
  • Groq (gpt-oss-120b, Llama 4 — free)
  • Ollama (any local model)
  • Any OpenAI-compatible endpoint

Links

About

Built by VIDRAFT (Seoul AI Hub). MARL's core engine is delivered as compiled binaries to protect proprietary technology. Interface code is open for integration.

Apache 2.0 · Contact: arxivgpt@gmail.com

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 17:54 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

self-improving agent

pskoett
捕获经验教训、错误及修正内容,以实现持续改进。适用于以下场景:(1)命令或操作意外失败;(2)用户纠正Claude(如“不,那不对……”“实际上……”);(3)用户请求的功能不存在;(4)外部API或工具出现故障;(5)Claude发现自身
★ 4,086 📥 813,839
ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,383 📥 320,876
ai-agent

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,231 📥 268,182