Skip to content
DraconiticResearch
Search Sources API
203,234 studies31 sourcesUpdated 25 min ago
PreprintCC BY 4.0arXiv

When Thoughts Become Memory: Unifying In-Context Learning and Fine-Tuning

Abstract

We are the first to give a certified rule for whether unseen data belong in a pretrained model's context or its weights, built on an exact law for their information value. That value, the code length saved on held-out queries, equals in expectation the bits stored about the query, plus a prior repair, minus a decoding loss, for any model, architecture, dataset and task. The law's ceilings certify the choice from one measurement, and an anytime-valid test makes it from held-out queries, with error controlled whenever it stops. Every certificate the ceilings issue on a trained transformer, TabPFN, an occupancy network and a stereo network is correct. The test picks TabPFN over XGBoost and a trained surrogate over an in-context learner on airfoil pressure, calls the better of GPT-2's cache and fine-tune in 61,948 of 64,000 query streams over 32 comparisons, and errs in at most 3.3% of null streams. The law also diagnoses when learning in context helps and when it does not. Deleting part of a context is held-out validation of that part in any model, and adding parts one at a time traces the learning curve in context: one patch that sees a shape feature cuts an occupancy network's code length there a hundredfold, while eight that miss it nearly double it, and one camera that sees the surface beats four in a stereo network. Ranked by this label-free valuation, a kriging learner's three best support cars beat four drawn at random, and on a yes-or-no claim the valuation recovers a published evidence adjudicator, with AUROC 0.91.

Related

  1. Unifying Conformal Language Tasks with In-Context Ensembles
    Xiao Shi Huang, Chen-Yuan Lin, Bruce Kuwahara +2
    arXivPreprintarXiv licenceFull textStatisticsarXiv
  2. From topology learning to graph generation: A unifying perspective
    Xiaowen Dong, Hoi-To Wai, Siheng Chen +2
    arXivPreprintarXiv licenceFull textStatisticsarXiv
  3. New thoughts on fractional Sobolev spaces
    Angha Agarwal, Pekka Koskela, Khanh Nguyen
    arXivPreprintCC BY 4.0Full textAnalysis & PDEsarXiv
  4. Retrieval-Based In-Context Learning: A Domain Adaptation Framework
    Yilun Zhu, Naihao Deng, Yingcong Li +2
    arXivPreprintCC BY 4.0Full textStatisticsarXiv
  5. In-Context Learning Before Specialisation: Theory of Learning in a Solvable Topic Model
    Francesco Cagnetta, Casper L. Christensen
    arXivPreprintCC BY 4.0Full textStatisticsarXiv
BibTeX
@misc{chlon2026when,
  title = {{When Thoughts Become Memory: Unifying In-Context Learning and Fine-Tuning}},
  author = {Leon Chlon and Julie Huang},
  howpublished = {arXiv},
  year = {2026},
  month = oct,
  doi = {10.48550/arxiv.2610.29419},
  eprint = {2610.29419},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.29419},
  note = {CC BY 4.0},
}
RIS
TY  - UNPB
TI  - When Thoughts Become Memory: Unifying In-Context Learning and Fine-Tuning
AU  - Leon Chlon
AU  - Julie Huang
PY  - 2026
DA  - 2026/10/21
PB  - arXiv
DO  - 10.48550/arxiv.2610.29419
UR  - https://arxiv.org/abs/2610.29419
AB  - We are the first to give a certified rule for whether unseen data belong in a pretrained model's context or its weights, built on an exact law for their information value. That value, the code length saved on held-out queries, equals in expectation the bits stored about the query, plus a prior repair, minus a decoding loss, for any model, architecture, dataset and task. The law's ceilings certify the choice from one measurement, and an anytime-valid test makes it from held-out queries, with error controlled whenever it stops. Every certificate the ceilings issue on a trained transformer, TabPFN, an occupancy network and a stereo network is correct. The test picks TabPFN over XGBoost and a trained surrogate over an in-context learner on airfoil pressure, calls the better of GPT-2's cache and fine-tune in 61,948 of 64,000 query streams over 32 comparisons, and errs in at most 3.3% of null streams. The law also diagnoses when learning in context helps and when it does not. Deleting part of a context is held-out validation of that part in any model, and adding parts one at a time traces the learning curve in context: one patch that sees a shape feature cuts an occupancy network's code length there a hundredfold, while eight that miss it nearly double it, and one camera that sees the surface beats four in a stereo network. Ranked by this label-free valuation, a kriging learner's three best support cars beat four drawn at random, and on a yes-or-no claim the valuation recovers a published evidence adjudicator, with AUROC 0.91.
ER  -