File size: 6,942 Bytes
9cd4c6d ca42489 9cd4c6d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 | ---
language:
- en
- es
- it
- de
- fr
---
# ChainMath Benchmark ๐๐งฎ
> **Evaluating the reasoning chain integrity of large language models across multilingual arithmetic challenges.**
---
## What is ChainMath?
**ChainMath** is a procedurally generated benchmark designed to stress-test a model's ability to:
- **Track arithmetic state** across a sequence of dependent questions
- **Follow instructions in multiple natural languages** (English, Spanish, French, German, Italian)
- **Produce structured output** (JSON) reliably on the first attempt
- **Handle distractors** โ irrelevant information embedded to mislead the model
- **Resolve cross-question references** using natural language anaphora
Unlike benchmarks that evaluate questions in isolation, ChainMath questions are **interdependent**: the correct answer to question *N* is often a function of the answers to earlier questions. A model that loses track of the chain โ even once โ will propagate errors forward.
---
## Why ChainMath?
Existing mathematical reasoning benchmarks (GSM8K, MATH, etc.) largely test **independent problems**. Real-world tasks, however, require models to maintain coherent state over long contexts.
ChainMath was built on the hypothesis that **current large language models struggle with context-dependent arithmetic chains**, particularly when:
- Questions switch between languages mid-sequence
- Irrelevant numeric information is injected as noise
- Conditional logic branches based on the parity or magnitude of a prior result
- The chain spans more than 10 dependent steps
> **Hypothesis:** Models that perform well on standard math benchmarks may significantly underperform on ChainMath due to poor chain-state tracking โ regardless of raw computational ability.
The first evaluation round supports this hypothesis. Two out of five models scored below 30%.
---
## Benchmark Format
Each ChainMath instance consists of **200 questions** generated from a numeric **seed**. The seed deterministically reproduces the entire question set, ensuring reproducibility without exposing the answer key.
Questions range across 5 difficulty levels:
| Level | Description |
|-------|-------------|
| โ
โโโโ | Simple arithmetic on a standalone value |
| โ
โ
โโโ | Two-step chains, single language |
| โ
โ
โ
โโ | Multi-step chains, possible language switch |
| โ
โ
โ
โ
โ | Conditional/comparison logic, anaphora, distractors |
| โ
โ
โ
โ
โ
| Cross-language anaphora, inverse operations, high-depth chains |
The score is **difficulty-weighted**: harder questions contribute more to the final score.
---
## Scoring
ChainMath uses a transparent, multi-component scoring system:
```
Final Score = Weighted Correctness ร (1 โ Order Penalty) โ JSON Penalty
```
| Component | Detail |
|-----------|--------|
| **Weighted Correctness** | Each correct answer earns points proportional to its difficulty weight |
| **Correctness Tolerance** | ยฑ0.01 absolute **or** ยฑ0.1% relative โ whichever is satisfied |
| **Order Penalty** | Up to โ15% for answers not returned sorted by question ID |
| **JSON Format Penalty** | โ10% flat if the model failed to produce valid JSON on the first attempt |
| **Score Range** | Clamped to [0, 100] |
---
## Validated Results โ Round 1 (October 2026)
Five models were evaluated on the same benchmark seed.
| Model | Provider | Thinking | Tools | Final Score |
|-------|----------|----------|-------|-------------|
| **Claude Haiku 5.5** | Anthropic | โ
| โ
| **84.29%** |
| Gemini 3.6 Flash | Google | โ
| โ | 75.36% |
| DeepSeek V4.1 Flash | DeepSeek | โ
| โ
| 71.19% |
| ChatGPT 5.6 Luna | OpenAI | โ | โ
| 26.42% |
| Qwen 3.8-Max | Alibaba | โ
| โ
| 10.56% |
> **Note:** Scores reflect the combined effect of correctness, JSON discipline, and ordering compliance. Raw correctness percentages differ from final scores for models that incurred penalties. See [`validated_results.json`](./validated_results.json) for full breakdown.
### Key Observations
- **Thinking / extended reasoning mode** is a strong predictor of performance. The only model evaluated *without* thinking mode (ChatGPT 5.6 Luna) scored significantly below models with it โ even when given tool access.
- **JSON discipline matters.** Two models (ChatGPT 5.6 Luna, Qwen 3.8-Max) failed to produce valid JSON on the first attempt, incurring a โ10% penalty. This is a real-world capability gap.
- **Tool access is not sufficient.** All low-scoring models had tool access but still struggled with chain tracking โ suggesting this is a reasoning problem, not a tool availability problem.
- **High difficulty (โ
โ
โ
โ
โ
) is the main differentiator.** Most models performed reasonably at difficulty โ
โ
โ
, but diverged sharply at โ
โ
โ
โ
โ
.
---
## Evaluation Methodology
Evaluation is fully automated via the provided comparator script. Steps:
1. Generate a benchmark from a seed: produces `benchmark_<seed>.txt` (prompt) and `benchmark_<seed>.json` (answer key, not shared with the model).
2. Send the `.txt` prompt to the model in a single turn (no mid-session hints).
3. Record whether the model returned valid JSON **on the first attempt**.
4. Run the comparator against the model's JSON output and the answer key.
5. Record the full result including per-question breakdown.
No human judgment is involved in scoring. All answers are numeric.
---
## Participating with Your Model
We welcome submissions from AI labs, developers, and researchers. To have your model evaluated:
1. **Contact us** via GitHub Issues on this repository.
2. We will provide you with a **benchmark seed** (the question set is procedurally generated โ each submission can use a different seed to prevent data contamination).
3. You run the model against the prompt and share the JSON output.
4. We run the comparator and publish the results with full transparency.
> Results are published alongside methodology details. We do not publish the answer key or the generator source code in order to prevent benchmark gaming.
---
## Repository Structure
```
chainmath-benchmark/
โโโ README.md โ This file (public)
โโโ validated_results.json โ Round 1 validated scores
โโโ comparator.py โ Public scoring script
โโโ SUBMISSION_GUIDE.md โ How to submit your model
```
> The **generator** is kept private to prevent answer contamination. Benchmark seeds are issued per-submission.
---
## Citation
If you use ChainMath in your research or evaluation pipeline, please cite:
```
ChainMath Benchmark v1.0 (2026)
Author: [Your Name / Organization]
URL: https://github.com/[your-handle]/chainmath-benchmark
```
---
## License
This benchmark and its tooling are released under the **MIT License**. See `LICENSE` for details.
---
*ChainMath โ Does your model know where it left off?* |