[Record candidate] TTT Peer-LoRA Ensemble on PR #2014, val_bpb = 1.05749#2139
Closed
varunneal wants to merge 2 commits intoopenai:mainfrom
Closed
[Record candidate] TTT Peer-LoRA Ensemble on PR #2014, val_bpb = 1.05749#2139varunneal wants to merge 2 commits intoopenai:mainfrom
varunneal wants to merge 2 commits intoopenai:mainfrom
Conversation
…LR=0.00015, WD=0.25
Author
|
Submission mostly just for fun to get one in before the deadline. I only have one seed :p |
sunnypatneedi
pushed a commit
to sunnypatneedi/parameter-golf
that referenced
this pull request
May 2, 2026
…es, paper scan Post-deadline PR activity: PR openai#2138 Lock-In Byte Mixer confirmed BPB bug (corrected ~1.0671, not 0.979556); PR openai#2135 codemath3000 1.05651 narrowly misses 0.005 threshold; PR openai#2139 TTT Peer-LoRA Ensemble novel technique; PR openai#2140 flagged for target-token n-gram gating violation. New papers: BBQ quantization (ICLR 2026, arXiv:2603.01599), EntroLLM (2505.02380), In-Place TTT NTP-aligned (2604.06169). https://claude.ai/code/session_01CxuVyZaKMxMMc8Q4sMb2dF
Collaborator
|
Leaderboard audit note (pre-cutoff state): I don't think this is valid as a record row. The evidence is only one seed despite submission.json claiming |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
val_bpb = 1.05749 (1 seed) | ~15.99 MB | 8xH100 SXM | PyTorch 2.10.0+cu130
This record introduces peer-LoRA ensembling into the test-time training (TTT) evaluation loop. After each batch's per-doc LoRAs are fully trained, we run k-1 additional forwards using other docs' trained LoRAs from the same batch. This is leakage-free: LoRA_p was trained only on doc_p's tokens, so applying it to doc_q reveals no target information. On uncertain tokens (high predictive entropy), we blend own and peer predictions in probability space; confident tokens use only their own prediction. The routing decision is target-free -- it depends only on the model's output distribution, not on validation labels.
Built on PR #2014, descending from @samacqua's work on doc-independent LoRAs.
Results
Baseline PR #2014 3-seed mean: val_bpb 1.05855 (as reported by @simonbissonnette).
Delta: -0.00106 vs PR #2014 baseline (1.05855)
Key Changes vs PR #2014
1. Peer-LoRA ensemble with confidence routing
After each batch's per-doc LoRAs finish sliding-window training (k docs per batch -> k independent LoRAs), run k-1 peer forwards per doc using other docs' LoRAs:
BatchedLinearLoRA.PEER_IDXroutes each batch row to a different doc's LoRA weights.predictive_entropy >= threshold(uncertain), blend:p = w * p_own + (1 - w) * mean(p_peers). Confident tokens usep_ownonly.The routing gate is target-free: it uses the model's own entropy, not validation NLLs. This means the ensemble prediction is committed before seeing targets, avoiding post-hoc selection.
With
threshold = 0.5, roughly 75% of tokens are routed through the ensemble.2. TTT hyperparameter tuning
Per-doc LoRA LR and weight decay were tuned via line search (on a single H100, using
TTT_EVAL_ONLYto skip retraining):TTT_LORA_LRTTT_WEIGHT_DECAYHigher LR lets the per-doc LoRAs fit more aggressively; lower weight decay gives them more freedom. Both changes improve the baseline and the peer ensemble independently.
New Env Vars
TTT_PEER_ENSEMBLE_KTTT_PEER_CONF_THRESHOLDTTT_PEER_CONF_BLEND_WReproducing
Uses the same CaseOps sp8192 dataset/tokenizer as PR #2014, sourced from HuggingFace:
romeerp/parameter-golf-caseops-v1sp8192_lossless_caps_caseops_v1_reservedAll hyperparameters (CASEOPS_ENABLED=1, VOCAB_SIZE=8192, ensemble settings, etc.) are baked into
train_gpt.py.Hardware / Software
lrzip0.651 (forpergroupcompression)Attribution
See
submission.json. Built on the PR #2014 stack (@simonbissonnette and earlier contributors).