Encoding Context into LLM Weights: What Makes It Context?

Longer contexts allow large language models (LLMs) to condition their predictions on more information, but inference costs grow prohibitively with context length. An emerging alternative uses test-time updates to encode context as temporary changes to model weights. However, encoding this information into weights that already represent general knowledge obscures its role as context, so the LLM may fail to use it properly to condition subsequent inference. To restore this contextual role, we first associate each context with an identifier during encoding, thereby distinguishing the newly encoded information from pre-existing knowledge. Invoking the identifier at inference then enables the LLM to recite the encoded context. Nevertheless, successful recitation does not ensure that the LLM will use the recalled information as context. We therefore further introduce a prompting framework that explicitly guides the LLM to use this information as context. Across diverse controlled tasks and practical benchmarks, our method outperformed the baseline using only off-the-shelf LLMs, showing its advances in context encoding.

Link
https://www.semanticscholar.org/paper/39b661d4be161e6001b3f66de00ff160dc589568
Found by
Semantic Scholar
Authors
Yue Wang, Qi-Zhou Wang, Feng Liu, Gang Niu, Masashi Sugiyama, Bo Han
Categories
benchmark
Published
2026-10-13
Last seen by the radar
2026-10-15
Citations
0
Influential citations
0
Radar score
26.75 / 100 (how it is scored)
Why it scored so
Matched: benchmark; Primary record: Semantic Scholar
Related links
https://arxiv.org/abs/2610.17686
Is this record right? If you made this work and something here is wrong or missing, tell us what to fix.

More records found by Semantic Scholar