paper-with-me

홈 › Papers

Understanding Contextual Recall in Transformers: How Finetuning Enables In-Context Reasoning over Pretraining Knowledge

2026-03-21 · Bhavya Vasudeva, Puneesh Deora, Alberto Bietti, Vatsal Sharan, Christos Thrampoulidis arxiv

Transformer-based language models excel at in-context learning (ICL), where they can adapt to new tasks based on contextual examples, without parameter updates. In a specific form of ICL, which we refer to as \textit{contextual recall}, models pretrained on open-ended text leverage pairwise examples to recall specific facts in novel prompt formats. We investigate whether contextual recall emerges from pretraining alone, what finetuning is required, and what mechanisms drive the necessary representations. For this, we introduce a controlled synthetic framework where pretraining sequences consist of subject-grammar-attribute tuples, with attribute types tied to grammar statistics. We demonstrate that while such pretraining successfully yields factual knowledge, it is insufficient for contextual recall: models fail to implicitly infer attribute types when the grammar statistics are removed in ICL prompts. However, we show that finetuning on tasks requiring implicit inference, distinct from the ICL evaluation, using a subset of subjects, triggers the emergence of contextual recall across all subjects. This transition is accompanied by the formation of low-dimensional latent encodings of the shared attribute type. For mechanistic insight, we derive a construction for an attention-only transformer that replicates the transition from factual to contextual recall, corroborated by empirical validation.

📄 PDF Abstract BibTeX arXiv:2603.20969

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Self-Taught Agentic Long Context Understanding

2025-02-21 · Yufan Zhuang, Xiaodong Yu, Jialian Wu, Ximeng Sun 외

Answering complex, long-context questions remains a major challenge for large language models (LLMs) as it requires effective question clarifications and context retrieval. We propose Agentic Long-Context Understanding (…

Long-Context Understanding

Multiple Streams of Relation Extraction: Enriching and Recalling in Transformers

2025-06-25 · Todd Nief, David Reber, Sean Richardson, Ari Holtzman

When an LLM learns a relation during finetuning (e.g., new movie releases, corporate mergers, etc.), where does this information go? Is it extracted when the model processes an entity, recalled just-in-time before a pred…

RelationRelation Extraction

CALRec: Contrastive Alignment of Generative LLMs for Sequential Recommendation

2024-05-03 · Yaoyiran Li, Xiang Zhai, Moustafa Alzantot, Keyi Yu 외

Traditional recommender systems such as matrix factorization methods have primarily focused on learning a shared dense embedding space to represent both items and user preferences. Subsequently, sequence models such as R…

Language ModelingLanguage ModellingRecommendation SystemsSequential Recommendation

Gated Slot Attention for Efficient Linear-Time Sequence Modeling

2024-09-11 · Yu Zhang, Songlin Yang, Ruijie Zhu, Yue Zhang 외

Linear attention Transformers and their gated variants, celebrated for enabling parallel training and efficient recurrent inference, still fall short in recall-intensive tasks compared to traditional Transformers and dem…

What Happens During Finetuning of Vision Transformers: An Invariance Based Investigation

2023-07-12 · Gabriele Merlin, Vedant Nanda, Ruchit Rawal, Mariya Toneva

The pretrain-finetune paradigm usually improves downstream performance over training a model from scratch on the same task, becoming commonplace across many areas of machine learning. While pretraining is empirically obs…