Small changes in how input is typed break the output #5

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

Small changes in how the input is written break the output.

input output
X squared 13^2
X SQUARED PLUS ONE 19 dot 1^3
x squared plus one. x^2 + 1 dot 2
uh x squared plus um one u h x^2 + frac(1, 1)
x sqaured plus one x s
x^2 / x ** 2 x 2

Fix, in two steps:

  1. Clean up the input before translating (cheap): lowercase it (but uppercase letters are meaningful once #4 adds them), strip trailing punctuation, drop filler words (uh, um, like, so).
  2. Train on noisier input: extend add_noise in render.py with random capitals, punctuation, filler words, the odd typo, and mixed notation (x^2, x**2, sqrt(x)).
Small changes in how the input is written break the output. | input | output | |---|---| | X squared | `13^2` | | X SQUARED PLUS ONE | `19 dot 1^3` | | x squared plus one. | `x^2 + 1 dot 2` | | uh x squared plus um one | `u h x^2 + frac(1, 1)` | | x sqaured plus one | `x s` | | x^2 / x ** 2 | `x 2` | **Fix, in two steps:** 1. Clean up the input before translating (cheap): lowercase it (but uppercase letters are meaningful once #4 adds them), strip trailing punctuation, drop filler words (uh, um, like, so). 2. Train on noisier input: extend `add_noise` in `render.py` with random capitals, punctuation, filler words, the odd typo, and mixed notation (`x^2`, `x**2`, `sqrt(x)`).
paultal added the robustnessP2 mediumdata labels 2026-11-27 00:33:48 +02:00
Author
Owner

We do want to have noise in our training data since real world inputs would have typos, random unwanted characters, random casing etc, we do want to train the model to understand that these are not important and want to make it understand the essence of the words not just for random seqences of characters.

We do want to have noise in our training data since real world inputs would have typos, random unwanted characters, random casing etc, we do want to train the model to understand that these are not important and want to make it understand the essence of the words not just for random seqences of characters.
Sign in to join this conversation.