Moving one training trick helps AI find facts in longer texts
Length Generalization Needs Proper Regularization
TL;DR Retrained briefly with one training trick moved, a modified SmolLM3 found hidden facts in texts 64 times its training length. The original failed at twice the length, and the fix costs some accuracy at the usual length.
Words to know
- token
- A small piece of text, often a word or part of a word, that an AI model reads as one unit.
- weight decay
- A training setting that keeps a model’s internal numbers small, so it fits its training texts less closely.
- dropout
- A training trick that randomly blanks out parts of a model’s signals, so it cannot rely on any one part.
- normalization step
- A step inside a model that rescales a signal to a standard overall size before the next part uses it.
The problem
Each AI text model, the kind behind chatbots, trains on texts up to a set length, counted in tokens (small pieces of text). Many fail on longer texts. SmolLM3, trained on 4,000-token texts, could not find a hidden fact in longer ones. Labs usually add training on long texts. The authors found that training longer on short texts makes things worse. Weight decay, a standard setting that keeps a model’s internal numbers small, speeds the decline.
The idea
Dropout randomly blanks out parts of a model’s signals during training. It helps on long texts, but its usual spot causes a mismatch. Picture a band rehearsing with random players muted while the rest play louder. If the muting comes before an automatic volume control, the control hears a louder mix and turns everything down. So rehearsal (training) sounds quieter than the show (real use). The team’s fix moves the muting after the volume control, which in the model is the normalization step. In the authors’ account, the mismatch switches on the wrong parts of the model, and errors spread down the text.
What they showed
- Far past training length. The team first changed SmolLM3 so some layers read only nearby text. After brief extra training at the usual length with dropout in the new spot, it found every hidden fact in texts 64 times longer. Without dropout, the changed model found no facts past the usual length, with or without the extra training.
- The spot matters. With dropout in its usual spot, the same model found most hidden facts at twice its training length. Beyond that, it failed.
- Another design improves too. Mamba2, a model built differently, also got extra training with dropout in the new spot. It then found every hidden fact at 16,000 tokens, where versions without dropout failed.
Why it matters
Teams that build AI models for long documents should watch this. If it holds, moving one training trick could stretch how far a model reads. In one test, the released SmolLM3, trained on far more text, still scored higher at moderate lengths. The paper lists no released code. People ask AI models to read ever longer texts, and the authors call this a central challenge.
The catch
The perfect score comes from the strongest dropout setting tried. That setting also lowered accuracy at the usual length, so the gain has a cost. The hidden-fact test is the simplest one used. On a harder set of tasks, its scores fell steadily as texts grew longer. The large-model results each come from one training run, with no measure of spread. The work has no peer review yet.
Who wrote it
Pavlo Vasylenko is the first author, with three colleagues. The team’s affiliations include Instituto Superior Técnico, Universidade de Lisboa, Instituto de Telecomunicações and ELLIS Unit Lisbon, and one other. Vasylenko and Marcos Treviso co-authored “Long-Context Generalization with Sparse Attention” (2025).