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
GPU-vectorized online context mixing using the Hedge algorithm. Five experts blend predictions in log-probability space during TTT eval:
Expert
Source
Neural
Base model log-softmax
Unigram
Token frequency from scored tokens
Bigram
P(next | prev) from scored tokens
Trigram
Hashed P(next | prev2, prev1) with 64K buckets
Entropy
Neural model entropy as confidence regularizer
N-gram tables built incrementally from already-scored tokens only (legal). Expert weights updated online via Hedge: log_w -= eta * loss.
Each expert produces an NLL for every token. The mixer maintains learned weights (one per expert) updated via the Hedge algorithm. At each position, the mixed prediction is: mixed_NLL = -log(sum_k w_k * exp(-NLL_k))
Training Budget
GPTQ calibration runs within the 600s training budget (18s reserved).
Thanks for your submission! Unfortunately, it's disallowed due to the use of hashed n-gram caches, which do not renormalize correctly / correctly reweight the LM's token distribution, look ahead to the target token to mix probabilities and therefore leak eval tokens. Please refer to the long discussion about this under the issues tab for more details, and please submit more runs in the future!
@valerio-oai
Technically this one has a slightly different problem than the majority of the n-gram cache submissions. I believe it does normalize the over the full vocabulary correctly for its n-gram caches. The entropy expert is the actual problem: it assigns the same implicit probability exp(-H) to every token in the vocabulary, which is very unlikely to sum up to 1.
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
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.
Summary
3-seed mean val_bpb: 1.0745 (std 0.021) | <15.5 MB | 8xH100 SXM, 600s
Results
Key Technique: 5-expert Logistic Context Mixer
GPU-vectorized online context mixing using the Hedge algorithm. Five experts blend predictions in log-probability space during TTT eval:
N-gram tables built incrementally from already-scored tokens only (legal). Expert weights updated online via Hedge:
log_w -= eta * loss.Each expert produces an NLL for every token. The mixer maintains learned weights (one per expert) updated via the Hedge algorithm. At each position, the mixed prediction is:
mixed_NLL = -log(sum_k w_k * exp(-NLL_k))Training Budget
GPTQ calibration runs within the 600s training budget (18s reserved).
Reproduction
Credits