Long expressions drop or repeat terms #7

Open
opened 2026-11-27 00:33:50 +02:00 by paultal · 1 comment
Owner

Long flat expressions lose or repeat terms.

input output
1 plus 2 plus … plus 12 1 + 2 + 3 + 4 + 5 + 6 + 8 + 9 + 11 + 11
a plus b plus c plus d plus e plus f plus g plus h a + b + c + e + e + (h + h + h)
x² + y² + z² + w² + t² + u² (spoken) w^2 dropped

In training, the median English sentence is 10 words, 90% are ≤18, 99% ≤29, and the longest is 58. Typst is capped at 150 characters.

Ideas:

  • Generate some deliberately long, flat sums and products (5–12 terms).
  • Report accuracy by input length in isotope-eval.
  • If it's still poor, look at the model side: positional encoding and max_len.
Long flat expressions lose or repeat terms. | input | output | |---|---| | 1 plus 2 plus … plus 12 | `1 + 2 + 3 + 4 + 5 + 6 + 8 + 9 + 11 + 11` | | a plus b plus c plus d plus e plus f plus g plus h | `a + b + c + e + e + (h + h + h)` | | x² + y² + z² + w² + t² + u² (spoken) | `w^2` dropped | In training, the median English sentence is 10 words, 90% are ≤18, 99% ≤29, and the longest is 58. Typst is capped at 150 characters. **Ideas:** - Generate some deliberately long, flat sums and products (5–12 terms). - Report accuracy by input length in `isotope-eval`. - If it's still poor, look at the model side: positional encoding and `max_len`.
paultal added the modelP2 mediumdata labels 2026-11-27 00:33:50 +02:00
Author
Owner

The current architecture might limit us in terms of input length. We want to avoid teaching the model to respond depending on input length since the input length is not relevant to the actual math described.

This might require an architecture redesign using more SOTA approaches.

The current architecture might limit us in terms of input length. We want to avoid teaching the model to respond depending on input length since the input length is not relevant to the actual math described. This might require an architecture redesign using more SOTA approaches.
Sign in to join this conversation.