05deepak commited on
Commit
bca34c8
·
verified ·
1 Parent(s): 110cfa9

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +186 -0
README.md CHANGED
@@ -1,3 +1,189 @@
1
  ---
2
  license: cc-by-4.0
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: cc-by-4.0
3
  ---
4
+ ---
5
+ language: en
6
+ lic-ense: cc-by-4.0
7
+ tags: [linear-algebra, llm-evaluation, error-analysis, mathematical-reasoning, benchmark]
8
+ size_categories: [1K<n<10K]
9
+ configs:
10
+ features:
11
+ - name: Problem_ID
12
+ dtype: string
13
+ - name: Model
14
+ dtype: string
15
+ - name: Subcat
16
+ dtype: string
17
+ - name: problem_latex
18
+ dtype: string
19
+ - name: answer_latex
20
+ dtype: string
21
+ - name: Model_Response
22
+ dtype: string
23
+ - name: Correct
24
+ dtype: string
25
+ - name: Error_Tag
26
+ dtype: string
27
+ - name: validated
28
+ dtype: bool
29
+ splits:
30
+ - name: benchmark
31
+ num_examples: 660
32
+ - name: model_outputs
33
+ num_examples: 6600
34
+ - name: error_annotations
35
+ num_examples: 2549
36
+ - name: results
37
+ config_name: "default"
38
+ ---
39
+
40
+ # LinAlg-Bench: A Forensic Benchmark Revealing Structural Failure Modes in LLM Mathematical Reasoning
41
+
42
+ A diagnostic benchmark evaluating 10 frontier LLMs on linear algebra computation across a strict dimensional gradient (3×3, 4×4, 5×5 matrices), with automated three-stage forensic error classification revealing that LLM mathematical failure is structurally constrained by algorithm family and matrix dimension rather than random.
43
+
44
+ ## Overview
45
+
46
+ LinAlg-Bench is a diagnostic dataset of LLM responses and forensic error annotations on linear algebra computation tasks. It covers 660 problems across three matrix sizes (3×3, 4×4, 5×5) and nine operation types (determinant, eigenvalues, rank, nullity, trace, multiplication, matrix power, matrix-vector product, transpose), evaluated on 10 frontier models. Each failure is annotated with a fine-grained error tag and subtype via a three-stage automated forensic pipeline (Gemini-3.1-Pro judge + meta-auditor).
47
+
48
+ ## Data Structure
49
+
50
+ ```
51
+ data/
52
+ ├── benchmark/ # Problem definitions (SymPy-certified ground truth)
53
+ │ ├── train-00000.parquet # 3×3: 220 unique problems
54
+ │ ├── train-00001.parquet # 4×4: 220 unique problems
55
+ │ └── train-00002.parquet # 5×5: 220 unique problems
56
+ ├── model_outputs/ # Stage 1: Raw model responses and correct status
57
+ │ ├── train-00000.parquet # 3×3: model inference on 220 Problem_IDs for 10 models
58
+ │ ├── train-00001.parquet # 4×4: model inference on 220 Problem_IDs for 10 models
59
+ │ └── train-00002.parquet # 5×5: model inference on 220 Problem_IDs for 10 models
60
+ ├── error_annotations/ # Stage 3: Forensic error labels (validated)
61
+ │ ├── train-00000.parquet # 3×3: 335 failures classified
62
+ │ ├── train-00001.parquet # 4×4: 879 failures classified
63
+ │ └── train-00002.parquet # 5×5: 1,335 failures classified
64
+ └── results/ # Aggregated summaries per size
65
+ ├── accuracy/ # Model accuracy by task/size
66
+ ├── error_tags/ # Error tag distribution per subcategory (10–14 tags by size)
67
+ ├── sign_subtypes/ # Sign error breakdown (8–9 subtypes by size)
68
+ └── hallucination_subtypes/ # Hallucination breakdown (4–6 subtypes by size)
69
+ ```
70
+
71
+ ## Data Notes
72
+
73
+
74
+ **Model naming convention :** Model names are inconsistent across splits. `model_outputs` and `results/accuracy` use long-form provider slugs (e.g. `google/gemma-3-12B-it`, `qwen/qwen-2.5-14b-instruct`), while `error_annotations` uses short-form names (e.g. `Gemma-3-12B`, `Qwen2.5-14B`). A direct join between the two on `(Problem_ID, Model)` will not match any model. Normalize names before joining. The mapping is:
75
+
76
+ | `model_outputs` / `results` | `error_annotations` |
77
+ |---|---|
78
+ | `google/gemma-3-4b-it` | `Gemma-3-4B` |
79
+ | `google/gemma-3-12B-it` | `Gemma-3-12B` |
80
+ | `google/gemma-3-27b-it` | `Gemma-3-27B` |
81
+ | `meta-llama/llama-3.1-8b-instruct` | `Llama-3.1-8B` |
82
+ | `mistralai/ministral-8b-2512` | `Mistral-8B` |
83
+ | `mistralai/ministral-14b-2512` | `Mistral-14B` |
84
+ | `mistralai/mistral-small-24b-instruct-2501` | `Mistral-24B` |
85
+ | `qwen/qwen-2.5-7b-instruct` | `Qwen2.5-7B` |
86
+ | `qwen/qwen-2.5-14b-instruct` | `Qwen2.5-14B` |
87
+ | `qwen/qwen-2.5-32b-instruct` | `Qwen2.5-32B` |
88
+
89
+ ## Usage Examples
90
+
91
+ ### Load with Hugging Face Datasets
92
+
93
+ ```python
94
+ from datasets import load_dataset
95
+
96
+ # Load full dataset
97
+ ds = load_dataset("05deepak/demo")
98
+
99
+ # Load specific splits
100
+ benchmark = ds['benchmark'] # Problem definitions
101
+ model_outputs = ds['model_outputs'] # Stage 1 responses
102
+ errors = ds['error_annotations'] # Forensic labels
103
+ results = ds['results'] # Aggregated summaries
104
+
105
+ # Access a records
106
+ record = model_outputs[0]
107
+ print(f"Problem: {record['Problem_ID']}")
108
+ print(f"Model: {record['Model']}")
109
+ print(f"Task: {record['Subcat']}")
110
+ print(f"Correct: {record['Correct']}")
111
+
112
+ # Access an error annotation
113
+ error = errors[0]
114
+ print(f"Error tag: {error['Final_tags']}")
115
+ print(f"Validated: {error['validated']}")
116
+ ```
117
+
118
+ ## Limitations
119
+
120
+ 1. **Domain-specific**: Linear algebra only. Generalization to other mathematical domains is out of scope for the present research.
121
+
122
+ 2. **Snapshot in time**: All inferences performed May 2026. Model updates or API changes after this date are not reflected.
123
+
124
+ 3. **Scale limit**: Maximum 5×5 matrices. Behaviour at larger scales is out of scope for the present research.
125
+
126
+
127
+ ## Ethical Considerations & Responsible Use
128
+
129
+ ### Recommended Use Cases
130
+ ✅ Research on symbolic reasoning in LLMs
131
+ ✅ Analyzing systematic error patterns and failure modes
132
+ ✅ Identifying mechanistic bottlenecks (working memory, strategy rigidity)
133
+ ✅ Developing better post-training curricula for mathematical reasoning
134
+
135
+ ### Caution / Not Recommended For
136
+ ❌ Definitive model ranking — single benchmark is insufficient for production decisions
137
+ ❌ Knowledge claims — this measures execution under specific conditions (T=0, no tools)
138
+ ❌ General reasoning ability assessment — linear algebra is narrow domain
139
+ ❌ Marketing claims — benchmark results are domain-specific diagnostics, not overall capability metrics
140
+
141
+ ### Known Biases
142
+ - **Synthetic problems**: Small integer entries [-10, 10] may not reflect real-world distribution
143
+ - **Format bias**: LaTeX consistently helps at recursive levels (model-specific)
144
+ - **Training data**: Newer models (those with larger training corpora) may have seen more matrix problems
145
+
146
+ ## File Manifest
147
+
148
+ | File | Rows | Columns | Purpose |
149
+ |------|------|---------|---------|
150
+ | benchmark/train-000{00,01,02}.parquet | 220 each | 5 | Unique problems per size (LaTeX) |
151
+ | model_outputs/train-000{00,01,02}.parquet | 2,200 each | 20 | All model responses + metadata |
152
+ | error_annotations/train-000{00,01,02}.parquet | 335/879/1,335 | 23 | Failures with forensic labels |
153
+ | results/accuracy/train-000{00,01,02}.parquet | 10 rows each | 5 | Model accuracy per task |
154
+ | results/error_tags/train-000{00,01,02}.parquet | 8/9/9 rows | 15/16/12 | Error tag distribution per subcategory |
155
+ | results/sign_subtypes/train-000{00,01,02}.parquet | 5/7/6 rows | 10/10/11 | Sign error breakdown per subcategory |
156
+ | results/hallucination_subtypes/train-000{00,01,02}.parquet | 3/8/7 rows | 6/8/8 | Hallucination breakdown per subcategory |
157
+
158
+ ## Citation
159
+
160
+ ```bibtex
161
+ @inproceedings{linalgbench2026,
162
+ title={LinAlg-Bench: A Forensic Benchmark Revealing Structural Failure Modes in LLM Mathematical Reasoning},
163
+ author={Anonymous},
164
+ booktitle={Advances in Neural Information Processing Systems (NeurIPS) - Datasets and Benchmarks Track},
165
+ year={2026}
166
+ }
167
+ ```
168
+
169
+ ## License
170
+
171
+ CC BY 4.0 — freely available for research and commercial use with attribution.
172
+
173
+ ## Acknowledgments
174
+
175
+ - **Model API Access**: OpenAI, Google DeepMind, Mistral, Qwen, Meta
176
+ - **SymPy Verification**: Symbolic mathematics backend for ground truth
177
+ - **Annotation**: Three-stage automated pipeline (Gemini-3.1-Pro judge + meta-auditor)
178
+
179
+ ## Contact & Support
180
+
181
+ **Issues/Questions**: Open issue on GitHub or discussion on HF Hub
182
+ **Dataset Updates**: Check release notes for new versions, bug fixes, model additions
183
+ **Cite This Work**: See citation section above
184
+
185
+ ---
186
+
187
+ **Dataset Hub**: [05deepak/demo](https://huggingface.co/datasets/05deepak/demo)
188
+ **Paper**: [NeurIPS 2026 Datasets & Benchmarks Track](https://neurips.cc)
189
+ **Code & Reproduction**: [GitHub Repository](https://github.com/05deepak/LinAlg-Bench)