NEXUS OS v2.0 β€” Thermodynamic Hallucination Control

ChimeraRouter + TWAVE + ERNIE Integration

Upgraded with 2024–2026 SOTA findings: LEAD, EDT, EPR, LED, CK-PLUG, Attention Divergence, TECP, AutoDeco.

Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   Prompt    │────▢│ ChimeraRouterV2 │────▢│ RoutingDecision β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
      β”‚                    β”‚                         β”‚
      β–Ό                    β–Ό                         β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   ERNIE     β”‚     β”‚ PromptAnalyzer  β”‚     β”‚ QwaveAllocator  β”‚
β”‚  (agent)    β”‚     β”‚  + PolicySelect β”‚     β”‚  Budget tokens  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                  TWAVE v2.0 β€” Landau-Ginzburg               β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  EDT (entropyβ†’temperature)  β”‚  LEAD (latent↔discrete)       β”‚
β”‚  EPR (black-box detection) β”‚  LED (layer-wise explore)     β”‚
β”‚  CK-PLUG (retrieval ΞΌ_ret) β”‚  Attention Divergence probe   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Key Files

File Purpose
twave/landau_ginzburg_tracker_v2.py TWAVE v2.0 β€” token-level phase control
nexus_os/chimera_router_v2.py ChimeraRouter v2 β€” tiered routing + ERNIE hooks
nexus_os/demo_e2e_v2.py End-to-end unified demo
README_v2.md This file

Quick Start

# ChimeraRouter v2 demo
python nexus_os/chimera_router_v2.py

# TWAVE v2 demo
python twave/landau_ginzburg_tracker_v2.py

# Full E2E demo
python nexus_os/demo_e2e_v2.py --prompt "Explain quantum entanglement step by step." --category R2.2 --quality 0.85

ERNIE Integration

ERNIE is your external agent that provides suggestions via callback:

from nexus_os.chimera_router_v2 import ERNIEInterface, ERNIESuggestion, TemperaturePolicy

def ernie_callback(prompt, analysis):
    if "quantum" in prompt.lower():
        return ERNIESuggestion(
            suggested_policy=TemperaturePolicy.EAD,
            confidence=0.85,
            reasoning="Quantum prompts need annealed exploration",
            override_router=False,
        )
    return None

router = ChimeraRouterV2(ernie_interface=ERNIEInterface(callback=ernie_callback))

ERNIE suggestions are blended with router logic (default 30% ERNIE, 70% router) unless override_router=True.

Temperature Policies

Policy When Reference
fixed Default Baseline
edt White/black-box with logprobs arXiv:2403.14541
ead Multi-step reasoning arXiv:2510.05251
lead High-entropy uncertainty arXiv:2603.13366
ernie External agent suggestion Your ERNIE pipeline

Research Sources

  • LEAD (Latent↔Discrete mode switching): arXiv:2603.13366, CVPR 2026
  • EDT (Entropy-based Dynamic Temperature): arXiv:2403.14541
  • EPR (Entropy Production Rate, black-box): arXiv:2509.04492, ECIR 2026
  • LED (Latent Exploration Decoding): arXiv:2602.01698, ICML 2026
  • CK-PLUG (Retrieval chemical potential ΞΌ_ret): arXiv:2503.15888
  • Attention Divergence: arXiv:2605.05025
  • TECP (Token-Entropy Conformal Prediction): arXiv:2509.00461
  • SEP (Semantic Entropy Probes): arXiv:2406.15927
  • AutoDeco (Learned temperature heads): arXiv:2510.26697

License

MIT β€” developed for the NEXUS OS project.

Generated by ML Intern

This model repository was generated by ML Intern, an agent for machine learning research and development on the Hugging Face Hub.

Usage

from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = 'specimba/nexus-os-v2'
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id)

For non-causal architectures, replace AutoModelForCausalLM with the appropriate AutoModel class.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Papers for specimba/nexus-os-v2