Verba/Rapida

Experiments #67

Exact LM-head shortlist (PATCHED): screen the 262,144-row head with a cheaper copy, recompute the top...

done

What was tested

Exact LM-head shortlist (PATCHED): screen the 262,144-row head with a cheaper copy, recompute the top candidates exactly, keep the result only when a per-row error bound proves no other , else fall back to the full head; size first: the fallback rate on real logits

Model and setup

the best

Expected gain

the head is about 1.67 ms of the step (row 56); up to about half of it (**inferred**)

Where the idea came from

row 56, sweep 2026-10-30

Outcome

done 2026-10-30: closed, the error bound proves the argmax at 0 of 1,280 positions (bound about 9x the real error); the 2-bit top 16 held the argmax at all 1,280, so row 67b

Lesson

a per-group Cauchy-Schwarz error bound on a 2-bit or 3-bit copy of Gemma 4's 262k-row head is about 9 times the real error and never certifies the argmax, while the real error stays under the top-2 gap: an exact shortlist needs a much tighter bound, and the unproven shortlist is a lossy lever (row 67b).

Adopted

no (proof rate 0 at every setting, below the pre-set 90%)

Want to see what these experiments produced? Lesto, the Gemma 4 inference engine for Apple silicon Macs, is on lestoengine.com

Made by Federico Andrioli, @fedeandri on X A research lab's own measurements, generated from its files. Data built