nkthebass commited on
Commit
a06664f
Β·
verified Β·
1 Parent(s): bc7c1cf

Correct 3x3 mult 58.3->98.0 (n=24 was too small) and negatives 92.7->85.0 (harness never sampled 5-digit)

Browse files
Files changed (1) hide show
  1. README.md +38 -15
README.md CHANGED
@@ -20,14 +20,14 @@ A **348M-parameter** decoder-only model fine-tuned to do column arithmetic with
20
  scratchpad. Successor to the **TinyBrainBot 320M V2 Math**.
21
 
22
  **TL;DR:** **99.4% average** across the nine GPT-3 arithmetic sub-tasks, beating the 320M V2
23
- Math (91.5%). Adds cleanly to **14 digits**, handles **negative results** (92.7%), and does
24
- 3-digit multipliers (58.3%). It is a *calculator with a scratchpad*, not a word-problem
25
  solver β€” see the honest limits below.
26
 
27
  > **Updated 2026-09-08.** This revision fixes three defects present in the first release:
28
- > negative results returned confident wrong positives (2.0% β†’ 92.7%), addition silently
29
  > dropped a column past 8 digits (widest clean sum 8 β†’ 14), and 3-digit multipliers had
30
- > **zero** training examples (8.3% β†’ 58.3%). The cost is ~0.5 points of ordered-subtraction
31
  > accuracy and 4 points of one-step word problems; both are itemised below.
32
 
33
  ---
@@ -83,11 +83,19 @@ final number. Identical problems and seed for both models.
83
  | **Average** | **99.43** | 91.5 |
84
 
85
  The four subtraction cells sit at 98.3–99.3 rather than 100. That is the measured price of
86
- teaching the routine to produce negative results: the sign decision adds a branch that
87
- occasionally misfires on ordered operands. Every adapter carrying negative-subtraction data
88
- lands in the same 99.4–99.7 band, from independent data mixes, so it looks like a floor rather
89
- than something a mix tweak buys back. Trading ~8 errors per 2,700 problems for a whole input
90
- class going from 2% to 93% was a deliberate choice.
 
 
 
 
 
 
 
 
91
 
92
  β†’ **9/9 sub-tasks improved.**
93
 
@@ -100,10 +108,24 @@ published GPT-3 numbers.** The figure above is 99.43% on *non-negative* subtract
100
 
101
  Negative results are measured separately, and in this revision they work:
102
 
103
- | | first release | **this revision** |
104
  |---|:--:|:--:|
105
- | Negative subtraction (n=150) | 2.0% | **92.7%** |
106
- | β€” of which right magnitude, wrong sign | 14 | **1** |
 
 
 
 
 
 
 
 
 
 
 
 
 
 
107
 
108
  ```
109
  USER: What is 32 minus 83?
@@ -126,7 +148,7 @@ phrasings are held out of training by construction so they cannot be re-fitting.
126
  | **Held-out phrasings** (n=60)<br>*"Sum 63 and 29.", "Deduct 18 from 62."* | 80.0% | **81.7%** | Question *parsing* was a bigger bottleneck than arithmetic. An earlier build measured 33.3% here before a phrasing-focused adapter. |
127
  | **Widest clean addition** | 8 digits | **14 digits** | See below - the limit was vocabulary, not arithmetic. |
128
  | **7-digit addition** | 100% | **100%** | Comfortably inside the new range. |
129
- | **3Γ—3 multiplication** (n=24) | 8.3% | **58.3%** | The training set contained **zero** examples with a 3-digit multiplier. The 8.3% was extrapolation to an unseen width. |
130
 
131
  ### The addition ceiling was a vocabulary problem
132
 
@@ -394,8 +416,9 @@ Full write-up: [PROJECT_BRIEF.md in the training repo].
394
 
395
  * **Addition degrades past 14 digits** β€” 65% at 16, 25% at 18. These are arithmetic slips in
396
  a long carry chain, no longer the silent skipped-column failure of the first release.
397
- * **Multiplication is reliable to 2-digit Γ— 2-digit; 3Γ—3 is 58.3%.** No division at all.
398
- * **Negative results are supported but not perfect** (92.7%).
 
399
  The failures are near misses (375 Γ— 903 β†’ 339625 vs 338625), so it is running the
400
  partial-product routine and losing digits summing it, not failing to attempt. No division.
401
  * **Word problems are weak** (GSM8K 4.0%, best word-problem set ASDiv 16.5%). It converts
 
20
  scratchpad. Successor to the **TinyBrainBot 320M V2 Math**.
21
 
22
  **TL;DR:** **99.4% average** across the nine GPT-3 arithmetic sub-tasks, beating the 320M V2
23
+ Math (91.5%). Adds cleanly to **14 digits**, does 3-digit multipliers (**98.0%**), and handles
24
+ **negative results** (85% overall, but only 58% at 5 digits - see below). It is a *calculator with a scratchpad*, not a word-problem
25
  solver β€” see the honest limits below.
26
 
27
  > **Updated 2026-09-08.** This revision fixes three defects present in the first release:
28
+ > negative results returned confident wrong positives (2.0% β†’ 85%), addition silently
29
  > dropped a column past 8 digits (widest clean sum 8 β†’ 14), and 3-digit multipliers had
30
+ > **zero** training examples (8.3% β†’ 98.0%). The cost is ~0.5 points of ordered-subtraction
31
  > accuracy and 4 points of one-step word problems; both are itemised below.
32
 
33
  ---
 
83
  | **Average** | **99.43** | 91.5 |
84
 
85
  The four subtraction cells sit at 98.3–99.3 rather than 100. That is the measured price of
86
+ teaching the routine to produce negative results: the model must now decide which operand is
87
+ larger, and that decision sometimes misfires on *ordered* operands too - producing a negative
88
+ answer to a question whose answer is positive.
89
+
90
+ **The errors are all in the comparison, not the arithmetic.** Independent testing binned
91
+ ordered pairs by how close `b` is to `a` and found the wrong-sign rate rising smoothly as they
92
+ converge (12.5% at `b/a` 0.98–1.00, falling to 0.0% below 0.30), with correct-answer rate
93
+ equal to exactly `100% βˆ’ wrong-sign` in every bin. Zero arithmetic errors underneath.
94
+
95
+ That points at a single learned magnitude judgement with no digit-scan procedure behind it -
96
+ the same shape of problem the column routine already solved once for addition and subtraction.
97
+ It is a fixable gap, not a floor. Teaching comparison as an explicit left-to-right digit scan,
98
+ with close-operand and 5-digit pairs in the generator, is the obvious next round.
99
 
100
  β†’ **9/9 sub-tasks improved.**
101
 
 
108
 
109
  Negative results are measured separately, and in this revision they work:
110
 
111
+ | Operand width | first release | **this revision** |
112
  |---|:--:|:--:|
113
+ | 1-digit | β€” | **100.0%** |
114
+ | 2-digit | β€” | **88.3%** |
115
+ | 3-digit | β€” | **98.3%** |
116
+ | 4-digit | β€” | **80.0%** |
117
+ | **5-digit** | β€” | **58.3%** |
118
+ | **mean, widths 1–5 (n=60 each)** | ~2% | **85.0%** |
119
+
120
+ **Accuracy falls off with operand width**, and the failure is the *magnitude comparison*, not
121
+ the column routine - the model decides which operand is larger with what appears to be a
122
+ single learned judgement rather than a digit scan, and that judgement degrades as the numbers
123
+ get longer and closer together. Independent testing found the same shape, with sign-detection
124
+ dropping sharply at 5 digits and errors concentrating where `b/a` approaches 1.
125
+
126
+ An earlier version of this card reported **92.7%** here. That figure came from a harness that
127
+ sampled operand width from `choice([1,2,3,4])` - it never tested 5 digits, which is exactly
128
+ where the weakness lives. The table above samples all five widths.
129
 
130
  ```
131
  USER: What is 32 minus 83?
 
148
  | **Held-out phrasings** (n=60)<br>*"Sum 63 and 29.", "Deduct 18 from 62."* | 80.0% | **81.7%** | Question *parsing* was a bigger bottleneck than arithmetic. An earlier build measured 33.3% here before a phrasing-focused adapter. |
149
  | **Widest clean addition** | 8 digits | **14 digits** | See below - the limit was vocabulary, not arithmetic. |
150
  | **7-digit addition** | 100% | **100%** | Comfortably inside the new range. |
151
+ | **3Γ—3 multiplication** (n=200) | 8.3% | **98.0%** | The training set contained **zero** examples with a 3-digit multiplier, so the old 8.3% was extrapolation to an unseen width. It now folds partial products pairwise through the column routine instead of asserting the three-way sum. |
152
 
153
  ### The addition ceiling was a vocabulary problem
154
 
 
416
 
417
  * **Addition degrades past 14 digits** β€” 65% at 16, 25% at 18. These are arithmetic slips in
418
  a long carry chain, no longer the silent skipped-column failure of the first release.
419
+ * **Multiplication is reliable through 3Γ—3** (98.0%). 4Γ—4 is a hard wall. No division at all.
420
+ * **Negative results degrade with width** β€” 100% at 1 digit, 58% at 5. The magnitude
421
+ comparison is the weak step, not the arithmetic.
422
  The failures are near misses (375 Γ— 903 β†’ 339625 vs 338625), so it is running the
423
  partial-product routine and losing digits summing it, not failing to attempt. No division.
424
  * **Word problems are weak** (GSM8K 4.0%, best word-problem set ASDiv 16.5%). It converts