Experiments #146
Grammar mask for top-6's format: Lesto's JSON-schema token mask with the coach schema the production...
done
What was tested
Grammar mask for top-6's format: Lesto's JSON-schema The unit of text a model reads and writes: roughly a short word or a piece of a longer one. mask with the coach schema the production request sends, by mask only (`MLX_SERVE_SCHEMA_PROMPT_OFF`, LESTO `row/146`); mask cost on the best first, then identity on the best, then top-6 with the mask at 36 of 36 roleplay JSON, the pair against the best and the anchored read (`2026-11-11-mac-format-fixes/README.md`), lossy
Model and setup
the best
Expected gain
about +6% The writing phase: the model produces the reply one token at a time. Read more (inferred: +7.7% less an unmeasured mask cost)
Where the idea came from
none
Outcome
done 2026-11-12: stopped at stage 1, the mask costs 10.7% decode on the best [-11.02, -10.60] (more than top-6 gains); row 148
Lesson
Lesto's JSON-schema mask costs 10.7% decode on the best, more than top-6 gains, because a Forcing the model's output to follow a strict JSON shape while it writes. request leaves the tuned decode step; a format fix by masking needs that step first (row 148), and a Gemma thinking-off request logs `deferring` even though its mask runs from token 0.
Adopted
no (the stage 1 line stopped the row; the mask's cost is larger than the gain it was meant to keep).