What is VeriLoop E2
VeriLoop E2 is a 27B post-trained model open-sourced by the Robotics Laboratory of Tsinghua University Shenzhen International Graduate School, based on Qwen3.8-27B, aimed at code, mathematics, and physics reasoning, Apache-2.0, native 262K context. The core VGR mechanism of VeriLoop E2 separates "model proposals" from "external verification/persistence"; a candidate state is committed only when the protected evidence coordinates show no degradation and at least one strictly improves, otherwise it rolls back, and the model cannot self-certify success.
Main features of VeriLoop E2
-
Open-source post-trained model: A 27B model based on Qwen3.8-27B, Apache-2.0 release of weights and tokenizer, native context 262,144 tokens, can be served with vLLM 0.17.0 in an OpenAI-compatible manner.
-
Code and agent capabilities: Covers tasks such as repository-level software repair, terminal/tool execution, with released scores including SWE-bench Pro 76.2%, Terminal-Bench 2.1 88.8%, DeepSWE v1.1 64.6%, etc.
-
Mathematical and scientific reasoning: Aimed at competition mathematics and highly difficult scientific question answering, reporting AIME 2026 98.3%, ArXivMath 100%, GPQA Diamond 93.9%, Apex 2025 89.6%.
-
Evidence-closure scientific demonstrations: Releases a rigorous finite-dimensional certificate for the proportion of Riemann ζ zeros 67.350003708785593%, as well as the asymptotic graviton tomography T1–T9 framework and an executable certificate suite passing 6/6.
-
Auditable engineering contract: Publicly releases 14 Golden Rules, constraining long-horizon tasks to remain bounded, testable, and traceable, explicitly prohibiting fabricated success, deferred resource budgeting, or overriding local conventions.
-
Explicit boundaries: The production VeriLoop Harness, private orchestration, and training data are not included; scientific artifacts and model licenses are separate, and results cannot be extrapolated to mean that the Riemann hypothesis or the black hole information paradox has been resolved.
Technical principles of VeriLoop E2
- The overall mechanism of VGR:VeriLoop-Governed Recurrence models a task solution as a candidate state transition around a retained state: the model acts as a learned proposer to generate candidate latent displacements or candidate artifacts, a fixed decoder materializes them into outputs, and an external verifier returns protected evidence ranks under a fixed contract; only when the candidate ranks weakly dominate the incumbent ranks and at least one coordinate strictly improves is it atomically committed, otherwise the incumbent bundle is fully retained and only the rejected displacement is written to exploration memory.
- Protected partial order and atomic commit:The verifier contract defines an ordered obligation list O=(o1,…,om) and a rank vector r∈N0m , where smaller coordinates indicate fewer remaining violations; the commit predicate χt=1{rt′≺Prt} requires no per-coordinate worsening and at least one coordinate strictly improving, so an improved aggregate score cannot mask a single-point regression, and incomparable or regressing candidates are always rejected. The commit unit is a CertifiedBundle binding artifacts, latent state, verification results, and summary; upon rejection the entire bundle is retained as-is, ensuring rollback and replay, and the integer potential decrease implies a finite number of strict commits.
- Evidence feedback and rejection exploration:After each attempt, the evidence compiler Γ computes bounded model-visible features from "incumbent result—candidate result—commit decision" before replacing the incumbent verification object, such as rank sum compression, improvement/degradation/tie ratios, commit and zero-rank indicators, etc.; these are used only to condition the next proposal and do not have commit authority. Rejected displacements enter exploration memory Et , which can influence subsequent search but cannot overwrite the protected state, making failed trajectories "informative but non-persistent".
- Post-training supervision interface:Since VGR labels are defined on task-level state transitions, E2 uses 1,841,831 structured records for post-training: verified strict-progress actions provide corrective supervision, non-committable candidates provide contrastive negatives, and zero-rank artifacts provide the final generation target; the loss is composed of a weighted combination of a pairwise preference logistic term, action NLL, and generation NLL, using QLoRA-4/bfloat16, gradient checkpointing, capability-facet routing, and protected-core replay. The report emphasizes that this lets learning improve the "proposal distribution".
Follow WeChat and reply "open source" to join theAI Open Source Project Exchange Group
How to use VeriLoop E2
-
Get the model: Pull from Hugging Face
tsinghua-sigs-robot-lab/VeriLoop-E2, keeping the repository's bundled tokenizer, chat template, and configuration. -
Prepare the environment: Install Python 3.12.x, PyTorch 2.10.0 + CUDA 12.9, Transformers 4.57.6, Triton 3.6.0, and run
python -m pip install "vllm==0.17.0"。 -
Start the service: Run
VLLM_USE_MODELSCOPE=true vllm serve <MODEL_PATH_OR_HF_ID> --served-model-name veriloop-e2 --dtype bfloat16 --model-impl vllm --language-model-only --max-model-len 131072 --max-num-seqs 16 --gpu-memory-utilization 0.92 --generation-config vllm --host 127.0.0.1 --port 8001。 -
Do a smoke test first: Send to
http://127.0.0.1:8001/v1/chat/completionsa small request withtemperature: 0, confirm the response is like8001_OK, then connect production traffic. -
Call via the OpenAI protocol: Use
model="veriloop-e2"'s/v1/chat/completions, and on the Python side useOpenAI(base_url="http://127.0.0.1:8001/v1", api_key="EMPTY")to create the client. -
Treat the template as part of the protocol: Do not replace role separators, tool-call syntax, stop semantics, or reasoning-history formatting; even if the weights are unchanged, this may change tool use and system behavior.
-
Plan long-context resources: The released tokenizer's native limit is 262,144 tokens, but the publicly validated service length is 131,072 tokens; longer windows require your own assessment of VRAM and KV cache.
-
Distinguish model and Harness permissions: E2 is only responsible for proposals, abstraction, diagnosis, and repair; evidence admission, deterministic checks, commit/rollback, termination, and persistence should be implemented by your own verifier/Harness.
Core advantages of VeriLoop E2
-
Decoupling generation from verification: The model is only responsible for proposals, diagnosis, and repair, while the external Harness exclusively holds the authority for admission, rollback, termination, and persistence, preventing the model from self-certifying success.
-
Regression-proof commit rules: VGR commits only when "the protected evidence coordinates show no degradation and at least one strict improvement is made"; aggregate improvement cannot mask a single-point regression.
-
Atomic rollback and safe failure: Rejected candidates retain a complete CertifiedBundle; failed trajectories can be reused but do not overwrite verified states.
-
Supervision signals come from real verification: Post-training constructs preference/NLL objectives from strict progress, non-committable negatives, and zero-rank final drafts.
-
Strong overall capabilities: At the 27B scale, it covers code agents, terminal execution, mathematical and scientific reasoning, with reported results including 76.2% on SWE-bench Pro, 98.3% on AIME 2026, and 93.9% on GPQA Diamond.
-
Long context and open serving: Native 262,144-token context, Apache-2.0 weights, and an OpenAI-compatible serving path validated with vLLM 0.17.0.
-
Auditable rather than merely reporting scores: The evaluation evidence package binds identity, outputs, native execution/evaluation records, pass and fail outcomes, and integrity metadata on a per-task basis.
Project address of VeriLoop E2
- HuggingFace model repository:https://huggingface.co/tsinghua-sigs-robot-lab/VeriLoop-E2
- Technical paper:https://openreview.net/pdf?id=P6FIQILHwX
Comparison of VeriLoop E2 with similar competing products
| Comparison dimension | VeriLoop E2 | VeriLoop Coder-E1 |
|---|---|---|
| Core positioning | A 27B post-trained "verifiable intelligence" model for code, mathematics, and physics | An evidence-governed code model for reliable code generation |
| Technical mechanism | VGR: candidate states must satisfy a protected partial order before being committed, otherwise they are rolled back, with zero-rank stopping | Evidence-governed system loop: generation, tool execution, testing, error correction, and regression control are coupled and run together |
| Verification authority | Clearly separated: the model only proposes/diagnoses/repairs, while the Harness/verifier is responsible for acceptance, rollback, and persistence | The model backend and private Self-Harness are similarly distinguished, but the public description leans more toward a system loop than an explicit state-transition contract |
| Training method | 1,841,831 structured corpus entries, six-capability-surface routing and protected-core replay, QLoRA-4/bf16 | Four narrow-domain PEFT surfaces are publicly disclosed: ToolSpec, Uncertainty, Rollback, and Evidence Binding |
| Capability scope | Code/terminal/agent + mathematics + scientific reasoning + two scientific demonstrations | Mainly code generation and software engineering repair |
| Release evidence | Nine frozen benchmark scores + evaluation evidence package + Riemann zeta/black hole tomography deliverables | Benchmark results are explicitly classified as results of the "complete evaluated system" |
| Context and deployment | Native 262,144 tokens, vLLM 0.17.0/OpenAI compatible, verified serving length of 131,072 | The materials do not provide publicly comparable context/serving specifications at the same level; its model card should be taken as authoritative |
| Open boundaries | Apache-2.0 weights; the production Harness is not publicly released; scientific artifacts are licensed separately | The model card is public but the Self-Harness is private; system-level results depend on private execution control |
| One-sentence conclusion | E2 is stronger at "writing verification rules as a protected state machine and internalizing corrective behavior through post-training" | E1 is the predecessor paradigm: code-heavy system closed loop; E2 extends it into a cross-domain auditable VGR framework |
Application scenarios of VeriLoop E2
-
Repository-level code repair: Used in SWE-type tasks to generate patches, diagnose regressions, and let tests/evaluators decide whether to keep them; suitable for maintenance scenarios where "changes must be verifiable".
-
Terminal and tool agents: In Terminal-Bench-type environments, execute commands, call tools, trigger the next step based on evidence, and use pass/fail credentials to control whether to proceed.
-
Mathematical reasoning and competition solving: For high-difficulty derivations such as AIME/ArXivMath, after multiple rounds of sampling, external judgment is used to retain reproducible solutions, reducing luck based on looking only at a single answer.
-
Scientific computing and theoretical physics exploration: Assists in proposing constructions and locating proof gaps in research such as the Riemann zeta, quantum field theory, and asymptotic gravitons.