Compile rate doesn't measure correctness: add bracket check and grow hand test #3

Open
opened 2026-11-27 00:33:46 +02:00 by paultal · 0 comments
Owner

typst compile accepts nearly anything in math mode, so "compiles" says almost nothing about correctness. In a ~150-sentence stress test, ~99% of outputs compiled, including:

  • strings of single letters, from words the model didn't know: x s b i ("x sub i"), c u e sqrt(x) ("cube root of x")
  • unbalanced brackets: (x + 1)^2 + 1)^2 + 1)^2, (-frac(b, 2). Typst renders these without an error.

Only an unclosed function call (x y z frac(x) actually failed.

Fix:

  • Add a balanced-bracket check ((), function calls) as its own metric in isotope-eval.
  • Grow eval/hand_test.jsonl from about 32 to about 100 rows using the stress-test failures (see the other issues), tagging each row by category so results can be broken down.
  • Later: render-match evaluation, i.e. compare rendered output rather than strings.

Do this first, so the other fixes can be measured.

`typst compile` accepts nearly anything in math mode, so "compiles" says almost nothing about correctness. In a ~150-sentence stress test, ~99% of outputs compiled, including: - strings of single letters, from words the model didn't know: `x s b i` ("x sub i"), `c u e sqrt(x)` ("cube root of x") - unbalanced brackets: `(x + 1)^2 + 1)^2 + 1)^2`, `(-frac(b, 2)`. Typst renders these without an error. Only an unclosed function call (`x y z frac(x`) actually failed. **Fix:** - [ ] Add a balanced-bracket check (`()`, function calls) as its own metric in `isotope-eval`. - [ ] Grow `eval/hand_test.jsonl` from about 32 to about 100 rows using the stress-test failures (see the other issues), tagging each row by category so results can be broken down. - [ ] Later: render-match evaluation, i.e. compare rendered output rather than strings. Do this first, so the other fixes can be measured.
paultal added the evaluationP1 high labels 2026-11-27 00:33:46 +02:00
Sign in to join this conversation.