You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PR ##589 is a potential candidate, but it only beats #549 by 0.002 nats.
PR ##473 is valid and technically sota over the current leader ##374, but also does not clear the bar, it's like 0.001 nats better
Invalid record runs:
PR ##410, ##415, ##417: invalid TTT; two-phase/multi-epoch adaptation on validation, then reported score after adaptation.
PR ##442, ##462, ##481, ##486, ##517, ##518, ##532, ##555, ##581, ##595: invalid TTT; adapt on validation before the reported eval pass.
PR ##461: non-record track submission.
PR ##467: explicit non-record; also keeps the final-epoch score in multi-epoch LoRA TTT.
PR ##503, ##528, ##529: not compliant submission packages; root train_gpt.py only, no proper /records folder; #503 also says total eval is ~616s (>10 min).
PR ##505: incomplete submission; missing required submission.json and train logs; also claims ~18 min/seed.
PR ##512, ##548, ##568: invalid TTT; multi-epoch TTT reports the final-pass/final-epoch score after earlier adaptation on the same doc/chunk.
PR ##535, ##544, ##545, ##569, ##585, ##593: invalid eval; GPTQ/Hessian calibration uses fineweb_train_* during evaluation.
PR ##573: invalid eval; oracle/hindsight min() selection across multiple passes.
PR ##576: invalid eval; re-scores the full validation set after TTT with the fully adapted model.
PR ##587: invalid eval; GPTQ/Hessian calibration uses fineweb_train_* during evaluation. Also not a compliant /records submission package. #659 At eval-time, it constructs a 5-gram model, where it scores a token, places it into the model, etc. As it's doing that, at every token, before scoring the token it checks the NLL of both the model and the 5-gram and picks the one where the loss is lower -- clearly this just relies on knowledge of the true token/teacher forcing.
Also a tactic more PRs have been using that it's good to be aware of: people are trying to sneak in extra compute between training and eval by arguing it's part of "artifact construction" (i.e. quantization and whatnot). This is most commonly done through "GPTQ calibration", which uses training data to somehow calibrate the model (hence legal at training time, but it's illegal at eval time) -- this takes 4-40s depending on implementation but people still train for the full 10min, then do this, and then do a full 10min eval, which is not legal
Reacted by valerio-oai, Aryan Bhosale, John Tian, Igor Kotenkov, msisovic, andreww and Joe
#606: eval-time GPTQ recalibrates on fineweb_train_* after the 600s training cap. #610: Unclear if this is meant to be a record run, but 1200s training disqualifies it. #615: same eval-time GPTQ-on-training-data issue. #626: same eval-time GPTQ-on-training-data issue. #639: not a compliant /records submission and also has eval-time GPTQ on training data. #656: not a compliant /records submission; mean score does not beat #549; code also has eval-time GPTQ on training data. #674: not a compliant /records submission, and its GPTQ calibration explicitly reopens fineweb_train_* during eval/export. #684: I'm pretty sure this multi-epoch TTT scheme trains on eval tokens, since it seems to do multiple passes and take the loss at the last epoch. Closing for now. #685: Closing for now, min(NLL) over multiple passes means you're training on the eval set.
Is N-gram caching legal? It seems like it's gaming the eval and not actually making the model itself better. Seems like a hack that exploits the val dataset to me, but not sure what the official rules are on this.
Reacted by msisovic, Reinaldo Moreira, Jin Lyu, gilpnp, Saroosh Khan, Andrei Krauss, Zachary Xi and Adithya Hegde Kota
@himanalot We've been discussing this internally, and we are currently leaning towards accepting it as legal. It's essentially a way to compensate for the undertrained-ness of the LLM (since 10min on 8xH100 don't get you much...) by having a probably pretty eval-overfit ngram language model that reweights the distribution over its tokens (mutatis mutandis, of course: there will be some legal and illegal implementations, but the concept itself doesn't strike us as particularly sketchy).
If you have any strong reasons against it, though, by all means do elaborate, though: we are probably not going to merge anything tonight.
It's essentially a way to compensate for the undertrained-ness of the LLM
@valerio-oai IMHO that mislocates the source of the gain. It does not primarily compensate for undertraining; it primarily compensates for not yet having memorized the evaluation stream.
I think eval-built n-gram caches should be disallowed if the competition is to maintain only a single record leaderboard.
The current benchmark is already only an imperfect proxy for predictive ability, so it seems unwise to push it still further away from the thing we presumably care about most. Otherwise the number improves while the meaning of the number decays.
I understand the temptation to simply reward whatever achieves the lowest loss under the published 16 MB artifact and compute constraints. But once optimization is repeatedly directed at a fixed public evaluation string, realized loss no longer reliably indicates whether an improvement comes from a better predictor of the underlying distribution or from a more efficient specialization to that particular string, and beyond some point the latter becomes the easier optimization problem.
An n-gram cache constructed from evaluation tokens is an auxiliary sample-conditioned state whose contribution is transductive adaptation to the particular realized evaluation string through storage and reuse of that string’s own statistics as they are revealed.
Once such mechanisms are allowed, the task is no longer primarily to find the best short predictor under bounded compute, but to find the best procedure for specializing that predictor to this benchmark instance during evaluation. It becomes a search for the memory mechanism, cache policy, and mixing rule that best exploit the idiosyncratic regularities of this benchmark instance.
Which makes the optimum way less meaningful, because it is conditioned on the accidental regularities of one realized corpus. It also means the benchmark stops rewarding the best predictor and starts rewarding the best specialist.
If the goal is to preserve the current setup and the current score exactly as they are, the clean solution is two record leaderboards under the same evaluation protocol. The repo already accepts this principle in another form through the separate Unlimited Compute / Non-record section.
One leaderboard would forbid any mechanism whose useful state is built from evaluation tokens, including eval-built n-gram caches, score-first TTT, multi-pass rescoring, and comparable forms of eval-time adaptive mixing or external memory. That track would measure the best fixed predictor under the existing FineWeb benchmark.
The second leaderboard would explicitly measure adaptive compression under the same artifact limit and the same training and evaluation budgets. It should permit any mechanism whose state is updated from previously scored evaluation tokens and used only on subsequent tokens, while forbidding any procedure that scores tokens only after adapting on those very tokens.
This would also end the need to argue, case by case, whether a new mechanism is "still prediction" or "already memorization." It seems better to name the two objectives now than to keep adjudicating them indirectly through ever more intricate legality debates.
Reacted by msisovic, Groot Research, dcrow85, Saroosh Khan, Joe and andrewmouldon
@valerio-oai I was the first (now unfortunately) to use the n_gram cache concept #659. you quite rightly pointed out the oracle problem and said that you liked the idea of n-gram caching and was not illegal (per say). You suggested some variation of entropy which is what I implemented in #779 BackoffNgramMixer + Drift-Free TTT (3-seed mean val_bpb=0.6683). I showed ablations that proved that the n-gram mixer construct is very productive.
Obviously, every submission after has implemented some variation of this technique and improved scores to the point that it is no longer a contest. I do think I should get some credit for bringing the technique into the contest and I was surprised to see the impact, but I would support 2 leaderboards at this point.
The scores are from an invalid distribution. The blend is only computed for the correct token. The other 1,023 tokens are never checked. If they were, the distribution would sum to ~410, not 1.0. The hash ratio P(cache_bin) approaches 1.0 for all tokens due to collision aggregation — it's not a conditional probability. The 1-bucket extreme makes this clear: P(cache_bin) = T/T = 1.0 for every lookup, giving BPB = 0 with α = 1. Our bucket sweep confirms: 256M buckets (near collision-free) scores 1.11, same as baseline. The "improvement" tracks collision density, not prediction quality.
Credit to @Eppie (comment below) for identifying the probability validity issue, and to Mirco on Discord for the P(cache_bin) formulation.
Two-pass rescoring compounds the problem. PRs #846, #853, #868, #870, #881, #888 violate causality: pass 2 rescores token #100 using a cache built from tokens #101 through #62M.
Proposed fixes:
Verify the distribution sums to 1fixing the measurement — one torch.sum per position, 1–2 seconds total. Catches every invalid distribution. Passes everything valid.
Make causality an explicit rulealigning with reality — the FAQ implies it, the rules should state it.
Cap auxiliary eval-time statealigning with reality — ≤ 32 MB of non-artifact state. Preserves TTT LoRA (~2 MB).
Cap per-token overheadaligning with reality — ≤ 1.5× base model forward pass.
The measurement fix (1) is a mathematical fact. The alignment fixes (2–4) are a design conversation where reasonable people can disagree.
Data tables, bucket sweep, alpha sweep, stride decomposition, and the full argument are in the PR.
Update (2026-03-27): Revised the PR and article for clarity. The mechanism (what the two hash tables are and why their ratio fails) is now explained before the mathematical argument. Also added a result we'd buried in an appendix chart: the n-gram-only configuration — hash tables with no neural model at all — reports 1.0615, below the neural baseline at 1.1109. A frequency table appearing to outcompress a trained LM tells us the metric isn't measuring compression.
Reacted by callithyia, Bennett Schwartz | GustyCube, Dex Hünter and Andrew Medrano
Reacted by callithyia, Bennett Schwartz | GustyCube, chris-lee-mc and Joe
My proposal for delineating between valid and invalid submissions is a simple one: If you cannot produce an artifact that 1. is of the correct size that matches with your BPB claim and 2. can be successfully used along with your code and model to reconstruct the original validation dataset, then your submission is invalid.
I've been trying to wrap my head around these very low BPB numbers. To try and get a sense of what I'd expect, I converted the validation data set from tokens to text, and then compressed that text file with a general purpose compressor, zstd:
So, if I produced val_text.txt.zstd and claimed a score of 2.2254 BPB, I would have a valid submission.
When I see numbers near 0.1 BPB, I'm a bit skeptical.
There are a bunch of obviously invalid submissions, like all of the "two pass" ones, which clearly see the validation dataset in the first pass, and then use the computed statistics during the actual evaluation, in the second pass (as mentioned in the previous comment).
There are of course submissions which do a single pass. I dug into #913 as it was the best scoring not-obviously-invalid submission at the time.
That submission has the following code:
p_model=torch.exp(-nll[i, s:wlen]).cpu().numpy().astype(np.float64) # scalar: P(correct token)tgt_toks=val_np[tgt_pos] # the actual ground truth tokens# N-gram blendingp_ng, ng_match, ng_orders=ngram.lookup(val_np, tgt_pos, tgt_toks)
ifng_match.any():
alpha=ngram.get_alpha(ent, ng_orders)
p_model=np.where(ng_match, (1-alpha) *p_model+alpha*p_ng, p_model)
# Long phrase blending (on top)p_ph, ph_match, ph_lens=phrase.lookup(val_np, tgt_pos, tgt_toks)
ifph_match.any():
pa=phrase.get_alpha(ph_lens, ent)
p_model=np.where(ph_match, (1-pa) *p_model+alpha*p_ph, p_model)
scored_nll=torch.from_numpy(-np.log(np.clip(p_model, 1e-12, 1.0)))
p_model here is a single number: the model's probability for the correct token. The cache lookup is also only for the correct token. The blend boosts that one probability, and the NLL is computed directly from it. This blend is applied as if it were part of a valid probability distribution, but the full distribution is never computed or renormalized. It's not possible to build a functional compressor out of this.
You can validate this with a one-line change: Make the model predict 100% probability for the correct token (and in fact, all tokens):
@valerio-oai: To respond to your previous comment directly, I am in favor of allowing these "ngram caches", as long as they are implemented such that they satisfy the proposal at the top of this comment.
(Disclaimer: Opus 4.6 helped me out with this analysis, but all writing is my own.)
Meta-comment: 6-PR cluster of the "Pre-Quant TTT = multi-epoch fine-tune on val_tokens" pattern — unified ruling request
@valerio-oai@0hq@cocohearts — bundling this for a single ruling because the same structural code pattern now appears in six separate PRs, all claiming "Pre-Quant TTT" but implementing it as an N-epoch AdamW supervised fine-tune on val_tokens with no per-token scoring discipline. They all share the exact structure that @valerio-oai ruled out on PR #1376 (closed 2026-04-10):
Val TTT block L2417-2455, for epoch in range(args.ttt_epochs) L2426, compiled via torch.compile (perf wrapper, not legality vector)
OPEN
The structural pattern is identical across all seven PRs:
forepochinrange(N): # N ∈ {6, 10, 18, 22}forchunk_startinrange(0, len(val_tokens) -seq_len-1, step):
local=val_tokens[chunk_start:chunk_start+seq_len+1] # <-- val_tokensx=local[:-1]; y=local[1:]
loss=base_model(x, y) # standard teacher-forced CEloss.backward(); optimizer.step() # unconditional SGD update# Then: eval_val(...) on the same val_tokens tensor
There is no with torch.no_grad() scoring accumulator before the first optimizer.step() in any of these implementations. Every token in the validation set is seen by the optimizer for N passes before the final eval_val_* / final_int6_sliding_window scoring pass reads the same tokens.
This is the pattern Issue #677's ruling (on multi-epoch TTT that scores only on the final pass) and Issue #402's score-first principle were opened to disallow. Several of these PRs explicitly claim "ported from PR #1423" or "ported from PR #1416" in their docstrings, but those legal reference implementations score each (x,y) chunk into the sliding-BPB accumulator beforeoptimizer.step() touches the weights derived from that chunk — a different structure from the loops above.
Request to the mod team: could one of you post a binding ruling on this thread (or on each PR) clarifying whether the pattern above is permitted or disallowed? A single ruling will close or clear all seven at once, plus whatever appears next under the same "Pre-Quant TTT" label.
If the ruling goes against the pattern, the engineering work in each of these PRs — depth recurrence (#1487), banked Muon + depth recurrence (#1517), parallel residuals (#1489), SP8192 recipe (#1539), torch.compile wrapper (#1539), SLOT-24 (#1488) — all carries over cleanly to a resubmission that trains the Pre-Quant TTT pass on a held-out slice of fineweb_train_*.bin instead of val_tokens. The rulings don't touch the architecture work; they only target the input-tensor selection for the pre-quant adaptation loop.
If the ruling goes in favor of the pattern, that's also fine — I'll happily retract the community reviews I just posted on each of these threads — but right now the cluster is growing faster than individual per-PR discussions can keep up with, and the authors deserve a clear signal so they know whether to iterate or withdraw.
Individual compliance reviews for each PR are already posted on their respective threads with the specific line-number citations. This comment is just the umbrella ping.
Reviewed by @MatoTeziTanka — The Agora. Each per-PR audit was performed with static code review against the head SHA plus a CPU import/hyperparameter smoke test on a dedicated container (proteus-engine, 128 GB RAM, Triton 3.6.0). AI tooling: reviews drafted with Claude Code (Sonnet/Opus) using an internal review template; citations verified against each PR's actual code.
I need to correct an error in my 6-PR cluster meta-comment above. I cited PR #1416 (erichroepke) and PR #1423 (aryanbhosale) as the "legal reference implementations" that score each (x,y) chunk into the sliding-BPB accumulator before optimizer.step(). That's wrong.
What I got wrong: I conflated the folder-name branding ("LegalTTT", "PreQuantTTT_QKGain5") with the actual code at the current head of each of those PRs. When I re-audited #1416 and #1423 just now, both have ttt_adapt_adamw(args, base_model, device, val_tokens, rank=0, world_size=1, log0=print) at line 1132, called at line 2135 under if args.ttt_enabled: with val_tokens — a multi-epoch AdamW supervised fine-tune on val_tokens with no per-chunk score-first discipline. That's the exact pattern this thread is asking to be ruled out, not the legal contrast.
The actual legal reference implementation I should have cited:
PR #1413 (dexhunter) — the current leaderboard entry at val_bpb 1.0828, merged as SP8192 + QK-Gain 5 + Legal Score-First TTT. #1413's train_gpt.py is an lzma+b85 self-extracting shim; decompressed, the TTT loop reads:
# per-chunk eval scoringnll=F.cross_entropy(logits.reshape(-1, logits.size(-1)).float(),
y_batch.reshape(-1), reduction='none').reshape(bsz, seq_len)
fori, wsinenumerate(batch_ws):
wlen=wlens[i]
s=0ifws==0elsecontext_sizescored_nll=nll[i, s:wlen].to(torch.float64)
loss_sum+=scored_nll.sum()
token_count+=float(wlen-s)
# ...# then, only if not the last chunk, adapt on that chunkis_last_chunk=ci==num_chunks-1ifnotis_last_chunkandh.ttt_epochs>0:
base_model.train()
chunk_seqs= (chunk_end-chunk_start) //seq_lenifchunk_seqs>0:
cos_lr=h.ttt_lr*.5* (1.+math.cos(math.pi*ci/max(num_chunks-1, 1)))
forpginoptimizer.param_groups:
pg['lr'] =cos_lr# ...for_epinrange(h.ttt_epochs):
# training step
The per-chunk score-first discipline is visible: for each chunk ci, the eval NLL is accumulated into loss_sumbefore the is_last_chunk guard decides whether to let the optimizer touch the weights on that chunk. No token is seen by the optimizer before it has been scored.
Implication for the cluster:#1416 and #1423 belong in the cluster I'm asking to be ruled out, not as its legal contrast. Updated cluster size is likely 8+ PRs under the same pattern. I'll post individual CLOSE comments on #1416 and #1423 citing this thread once the mod ruling lands (or immediately if the mods prefer the community flag up on those PR threads now).
Remaining context unchanged: PR #1376 (stukenov, closed 2026-04-10) is still the binding precedent. The seven PRs listed in my table above still all match the flat-epoch val_tokens pattern (I re-verified each in the last hour). The request for a unified ruling still stands.
Apologies for the noise. The correction is live; the underlying ruling request stands.
Correction by @MatoTeziTanka — The Agora. The error was in conflating PR folder-name branding with head-SHA code. Re-audited PR #1413, #1416, #1423 directly against their head train_gpt.py before posting this correction.
Activity
0hq commentedon Mar 25, 2026
From @valerio-oai:
PR ##589 is a potential candidate, but it only beats #549 by 0.002 nats.
PR ##473 is valid and technically sota over the current leader ##374, but also does not clear the bar, it's like 0.001 nats better
Invalid record runs:
PR ##410, ##415, ##417: invalid TTT; two-phase/multi-epoch adaptation on validation, then reported score after adaptation.
PR ##442, ##462, ##481, ##486, ##517, ##518, ##532, ##555, ##581, ##595: invalid TTT; adapt on validation before the reported eval pass.
PR ##461: non-record track submission.
PR ##467: explicit non-record; also keeps the final-epoch score in multi-epoch LoRA TTT.
PR ##503, ##528, ##529: not compliant submission packages; root train_gpt.py only, no proper /records folder; #503 also says total eval is ~616s (>10 min).
PR ##505: incomplete submission; missing required submission.json and train logs; also claims ~18 min/seed.
PR ##512, ##548, ##568: invalid TTT; multi-epoch TTT reports the final-pass/final-epoch score after earlier adaptation on the same doc/chunk.
PR ##535, ##544, ##545, ##569, ##585, ##593: invalid eval; GPTQ/Hessian calibration uses fineweb_train_* during evaluation.
PR ##573: invalid eval; oracle/hindsight min() selection across multiple passes.
PR ##576: invalid eval; re-scores the full validation set after TTT with the fully adapted model.
PR ##587: invalid eval; GPTQ/Hessian calibration uses fineweb_train_* during evaluation. Also not a compliant /records submission package.
#659 At eval-time, it constructs a 5-gram model, where it scores a token, places it into the model, etc. As it's doing that, at every token, before scoring the token it checks the NLL of both the model and the 5-gram and picks the one where the loss is lower -- clearly this just relies on knowledge of the true token/teacher forcing.
Also a tactic more PRs have been using that it's good to be aware of: people are trying to sneak in extra compute between training and eval by arguing it's part of "artifact construction" (i.e. quantization and whatnot). This is most commonly done through "GPTQ calibration", which uses training data to somehow calibrate the model (hence legal at training time, but it's illegal at eval time) -- this takes 4-40s depending on implementation but people still train for the full 10min, then do this, and then do a full 10min eval, which is not legal
Add submission validation script
valerio-oai commentedon Mar 25, 2026
Another pass:
#606: eval-time GPTQ recalibrates on fineweb_train_* after the 600s training cap.
#610: Unclear if this is meant to be a record run, but 1200s training disqualifies it.
#615: same eval-time GPTQ-on-training-data issue.
#626: same eval-time GPTQ-on-training-data issue.
#639: not a compliant /records submission and also has eval-time GPTQ on training data.
#656: not a compliant /records submission; mean score does not beat #549; code also has eval-time GPTQ on training data.
#674: not a compliant /records submission, and its GPTQ calibration explicitly reopens fineweb_train_* during eval/export.
#684: I'm pretty sure this multi-epoch TTT scheme trains on eval tokens, since it seems to do multiple passes and take the loss at the last epoch. Closing for now.
#685: Closing for now, min(NLL) over multiple passes means you're training on the eval set.
Add CROWN-Q: curvature-weighted quantization penalty during warmdown
Score-first TTT + DDP static_graph fix for our_experiment
Revert to p23 config for submission (3-seed mean=0.9581)
Enable Soft-Round QAT + Aggressive SGD TTT defaults for p26
himanalot commentedon Mar 25, 2026
Is N-gram caching legal? It seems like it's gaming the eval and not actually making the model itself better. Seems like a hack that exploits the val dataset to me, but not sure what the official rules are on this.
Add multi-order n-gram backoff cache eval (PR openai#727 approach)
valerio-oai commentedon Mar 26, 2026
@himanalot We've been discussing this internally, and we are currently leaning towards accepting it as legal. It's essentially a way to compensate for the undertrained-ness of the LLM (since 10min on 8xH100 don't get you much...) by having a probably pretty eval-overfit ngram language model that reweights the distribution over its tokens (mutatis mutandis, of course: there will be some legal and illegal implementations, but the concept itself doesn't strike us as particularly sketchy).
If you have any strong reasons against it, though, by all means do elaborate, though: we are probably not going to merge anything tonight.
himanalot commentedon Mar 26, 2026
Alr yeah makes sense
NoesisGenesis commentedon Mar 26, 2026
@valerio-oai IMHO that mislocates the source of the gain. It does not primarily compensate for undertraining; it primarily compensates for not yet having memorized the evaluation stream.
I think eval-built n-gram caches should be disallowed if the competition is to maintain only a single record leaderboard.
The current benchmark is already only an imperfect proxy for predictive ability, so it seems unwise to push it still further away from the thing we presumably care about most. Otherwise the number improves while the meaning of the number decays.
I understand the temptation to simply reward whatever achieves the lowest loss under the published 16 MB artifact and compute constraints. But once optimization is repeatedly directed at a fixed public evaluation string, realized loss no longer reliably indicates whether an improvement comes from a better predictor of the underlying distribution or from a more efficient specialization to that particular string, and beyond some point the latter becomes the easier optimization problem.
An n-gram cache constructed from evaluation tokens is an auxiliary sample-conditioned state whose contribution is transductive adaptation to the particular realized evaluation string through storage and reuse of that string’s own statistics as they are revealed.
Once such mechanisms are allowed, the task is no longer primarily to find the best short predictor under bounded compute, but to find the best procedure for specializing that predictor to this benchmark instance during evaluation. It becomes a search for the memory mechanism, cache policy, and mixing rule that best exploit the idiosyncratic regularities of this benchmark instance.
Which makes the optimum way less meaningful, because it is conditioned on the accidental regularities of one realized corpus. It also means the benchmark stops rewarding the best predictor and starts rewarding the best specialist.
If the goal is to preserve the current setup and the current score exactly as they are, the clean solution is two record leaderboards under the same evaluation protocol. The repo already accepts this principle in another form through the separate Unlimited Compute / Non-record section.
One leaderboard would forbid any mechanism whose useful state is built from evaluation tokens, including eval-built n-gram caches, score-first TTT, multi-pass rescoring, and comparable forms of eval-time adaptive mixing or external memory. That track would measure the best fixed predictor under the existing FineWeb benchmark.
The second leaderboard would explicitly measure adaptive compression under the same artifact limit and the same training and evaluation budgets. It should permit any mechanism whose state is updated from previously scored evaluation tokens and used only on subsequent tokens, while forbidding any procedure that scores tokens only after adapting on those very tokens.
This would also end the need to argue, case by case, whether a new mechanism is "still prediction" or "already memorization." It seems better to name the two objectives now than to keep adjudicating them indirectly through ever more intricate legality debates.
deanbrr commentedon Mar 26, 2026
@valerio-oai I was the first (now unfortunately) to use the n_gram cache concept #659. you quite rightly pointed out the oracle problem and said that you liked the idea of n-gram caching and was not illegal (per say). You suggested some variation of entropy which is what I implemented in #779 BackoffNgramMixer + Drift-Free TTT (3-seed mean val_bpb=0.6683). I showed ablations that proved that the n-gram mixer construct is very productive.
Obviously, every submission after has implemented some variation of this technique and improved scores to the point that it is no longer a contest. I do think I should get some credit for bringing the technique into the contest and I was surprised to see the impact, but I would support 2 leaderboards at this point.
abaybektursun commentedon Mar 26, 2026
I ran a systematic study of eval-time n-gram caching and wrote up the results: PR #886 (full article with charts: abay.tech/posts/eval-time-model-growth).
The scores are from an invalid distribution. The blend is only computed for the correct token. The other 1,023 tokens are never checked. If they were, the distribution would sum to ~410, not 1.0. The hash ratio
P(cache_bin)approaches 1.0 for all tokens due to collision aggregation — it's not a conditional probability. The 1-bucket extreme makes this clear:P(cache_bin) = T/T = 1.0for every lookup, giving BPB = 0 withα = 1. Our bucket sweep confirms: 256M buckets (near collision-free) scores 1.11, same as baseline. The "improvement" tracks collision density, not prediction quality.Credit to @Eppie (comment below) for identifying the probability validity issue, and to Mirco on Discord for the
P(cache_bin)formulation.Two-pass rescoring compounds the problem. PRs #846, #853, #868, #870, #881, #888 violate causality: pass 2 rescores token #100 using a cache built from tokens #101 through #62M.
Proposed fixes:
fixing the measurement— onetorch.sumper position, 1–2 seconds total. Catches every invalid distribution. Passes everything valid.aligning with reality— the FAQ implies it, the rules should state it.aligning with reality— ≤ 32 MB of non-artifact state. Preserves TTT LoRA (~2 MB).aligning with reality— ≤ 1.5× base model forward pass.The measurement fix (1) is a mathematical fact. The alignment fixes (2–4) are a design conversation where reasonable people can disagree.
Data tables, bucket sweep, alpha sweep, stride decomposition, and the full argument are in the PR.
Update (2026-03-27): Revised the PR and article for clarity. The mechanism (what the two hash tables are and why their ratio fails) is now explained before the mathematical argument. Also added a result we'd buried in an appendix chart: the n-gram-only configuration — hash tables with no neural model at all — reports 1.0615, below the neural baseline at 1.1109. A frequency table appearing to outcompress a trained LM tells us the metric isn't measuring compression.
Eppie commentedon Mar 27, 2026
My proposal for delineating between valid and invalid submissions is a simple one: If you cannot produce an artifact that 1. is of the correct size that matches with your BPB claim and 2. can be successfully used along with your code and model to reconstruct the original validation dataset, then your submission is invalid.
I've been trying to wrap my head around these very low BPB numbers. To try and get a sense of what I'd expect, I converted the validation data set from tokens to text, and then compressed that text file with a general purpose compressor,
zstd:which gave the following results:
So, if I produced
val_text.txt.zstdand claimed a score of 2.2254 BPB, I would have a valid submission.When I see numbers near 0.1 BPB, I'm a bit skeptical.
There are a bunch of obviously invalid submissions, like all of the "two pass" ones, which clearly see the validation dataset in the first pass, and then use the computed statistics during the actual evaluation, in the second pass (as mentioned in the previous comment).
There are of course submissions which do a single pass. I dug into #913 as it was the best scoring not-obviously-invalid submission at the time.
That submission has the following code:
p_modelhere is a single number: the model's probability for the correct token. The cache lookup is also only for the correct token. The blend boosts that one probability, and the NLL is computed directly from it. This blend is applied as if it were part of a valid probability distribution, but the full distribution is never computed or renormalized. It's not possible to build a functional compressor out of this.You can validate this with a one-line change: Make the model predict 100% probability for the correct token (and in fact, all tokens):
You'll see a perfect 0 BPB result.
Many other PRs have this problem (#881, #888, #870, #909, #900, #779).
@valerio-oai: To respond to your previous comment directly, I am in favor of allowing these "ngram caches", as long as they are implemented such that they satisfy the proposal at the top of this comment.
(Disclaimer: Opus 4.6 helped me out with this analysis, but all writing is my own.)
23 remaining items
Beef up openai#140 closure banner with by-the-numbers indictment
Add Maintainer Activity Tracker section + auto-update script
RESEARCH_LOG: audit fire openai#1 — 3/6 patches still novel but all 3…
RESEARCH_LOG: audit fire openai#4 — patches 15/16/21 still novel (4th…
RESEARCH_LOG: research fire openai#11 — PR openai#1430 deep dive, NOT…
research(2026-04-07): SLOT de facto legal — Issue openai#140 closed, …
MatoTeziTanka commentedon Apr 11, 2026
Meta-comment: 6-PR cluster of the "Pre-Quant TTT = multi-epoch fine-tune on val_tokens" pattern — unified ruling request
@valerio-oai @0hq @cocohearts — bundling this for a single ruling because the same structural code pattern now appears in six separate PRs, all claiming "Pre-Quant TTT" but implementing it as an N-epoch AdamW supervised fine-tune on
val_tokenswith no per-token scoring discipline. They all share the exact structure that @valerio-oai ruled out on PR #1376 (closed 2026-04-10):ttt_adapt_adamwL825, called L1453 withval_tokensprequant_ttt_adapt_adamwprequant_ttt_adapt_adamwL1289, called L1956 withval_data.val_tokensprequant_ttt_adapt_adamwL110, same pattern, combined with SLOT-24prequant_ttt_adapt_adamwL1024 (docstring says "ported from PR #1423" — it isn't), called withval_tokensttt_adapt_adamwL1165, docstring literally"""AdamW TTT: fine-tune on val data BEFORE quantization""", called L2209 withval_tokensfor epoch in range(args.ttt_epochs)L2426, compiled viatorch.compile(perf wrapper, not legality vector)The structural pattern is identical across all seven PRs:
There is no
with torch.no_grad()scoring accumulator before the firstoptimizer.step()in any of these implementations. Every token in the validation set is seen by the optimizer for N passes before the finaleval_val_*/final_int6_sliding_windowscoring pass reads the same tokens.This is the pattern Issue #677's ruling (on multi-epoch TTT that scores only on the final pass) and Issue #402's score-first principle were opened to disallow. Several of these PRs explicitly claim "ported from PR #1423" or "ported from PR #1416" in their docstrings, but those legal reference implementations score each
(x,y)chunk into the sliding-BPB accumulator beforeoptimizer.step()touches the weights derived from that chunk — a different structure from the loops above.Request to the mod team: could one of you post a binding ruling on this thread (or on each PR) clarifying whether the pattern above is permitted or disallowed? A single ruling will close or clear all seven at once, plus whatever appears next under the same "Pre-Quant TTT" label.
If the ruling goes against the pattern, the engineering work in each of these PRs — depth recurrence (#1487), banked Muon + depth recurrence (#1517), parallel residuals (#1489), SP8192 recipe (#1539),
torch.compilewrapper (#1539), SLOT-24 (#1488) — all carries over cleanly to a resubmission that trains the Pre-Quant TTT pass on a held-out slice offineweb_train_*.bininstead ofval_tokens. The rulings don't touch the architecture work; they only target the input-tensor selection for the pre-quant adaptation loop.If the ruling goes in favor of the pattern, that's also fine — I'll happily retract the community reviews I just posted on each of these threads — but right now the cluster is growing faster than individual per-PR discussions can keep up with, and the authors deserve a clear signal so they know whether to iterate or withdraw.
Individual compliance reviews for each PR are already posted on their respective threads with the specific line-number citations. This comment is just the umbrella ping.
Reviewed by @MatoTeziTanka — The Agora. Each per-PR audit was performed with static code review against the head SHA plus a CPU import/hyperparameter smoke test on a dedicated container (
proteus-engine, 128 GB RAM, Triton 3.6.0). AI tooling: reviews drafted with Claude Code (Sonnet/Opus) using an internal review template; citations verified against each PR's actual code.MatoTeziTanka commentedon Apr 11, 2026
Correction to the meta-comment above
I need to correct an error in my 6-PR cluster meta-comment above. I cited PR #1416 (erichroepke) and PR #1423 (aryanbhosale) as the "legal reference implementations" that score each
(x,y)chunk into the sliding-BPB accumulator beforeoptimizer.step(). That's wrong.What I got wrong: I conflated the folder-name branding ("LegalTTT", "PreQuantTTT_QKGain5") with the actual code at the current head of each of those PRs. When I re-audited #1416 and #1423 just now, both have
ttt_adapt_adamw(args, base_model, device, val_tokens, rank=0, world_size=1, log0=print)at line 1132, called at line 2135 underif args.ttt_enabled:withval_tokens— a multi-epoch AdamW supervised fine-tune onval_tokenswith no per-chunk score-first discipline. That's the exact pattern this thread is asking to be ruled out, not the legal contrast.The actual legal reference implementation I should have cited:
PR #1413 (dexhunter) — the current leaderboard entry at val_bpb 1.0828, merged as SP8192 + QK-Gain 5 + Legal Score-First TTT. #1413's train_gpt.py is an lzma+b85 self-extracting shim; decompressed, the TTT loop reads:
The per-chunk score-first discipline is visible: for each chunk
ci, the eval NLL is accumulated intoloss_sumbefore theis_last_chunkguard decides whether to let the optimizer touch the weights on that chunk. No token is seen by the optimizer before it has been scored.Implication for the cluster: #1416 and #1423 belong in the cluster I'm asking to be ruled out, not as its legal contrast. Updated cluster size is likely 8+ PRs under the same pattern. I'll post individual CLOSE comments on #1416 and #1423 citing this thread once the mod ruling lands (or immediately if the mods prefer the community flag up on those PR threads now).
Remaining context unchanged: PR #1376 (stukenov, closed 2026-04-10) is still the binding precedent. The seven PRs listed in my table above still all match the flat-epoch
val_tokenspattern (I re-verified each in the last hour). The request for a unified ruling still stands.Apologies for the noise. The correction is live; the underlying ruling request stands.
Correction by @MatoTeziTanka — The Agora. The error was in conflating PR folder-name branding with head-SHA code. Re-audited PR #1413, #1416, #1423 directly against their head train_gpt.py before posting this correction.
Fix compliance: disable pre-quant TTT on val_tokens (per Issue openai…
PR openai#406: Report legal pre-SDTTT BPB per MatoTeziTanka review
PR openai#948: Add compliance note about hash n-gram cache dispute
PR openai#968: Add compliance note about hash n-gram cache dispute
Add comprehensive competition rules from issues openai#677 and openai…
docs(non-record): clarify pr2119 eval timing
docs(non-record): document pr2119 packaging checks