paper-with-me

홈 › Papers

Equivalence of Context and Parameter Updates in Modern Transformer Blocks

2025-11-22 · Adrian Goldwaser, Michael Munn, Javier Gonzalvo, Benoit Dherin arxiv

Recent research has established that the impact of context in a vanilla transformer can be represented implicitly by forming a token-dependent, rank-1 patch to its MLP weights. This work extends that foundational theory to the diverse architectures of modern Large Language Models. We first demonstrate a precise, analytical solution for a Gemma-style transformer block, proving that the entire effect of a context can be perfectly mapped to rank-1 patches on its MLP weight matrices and a patch to the RMSNorm scale. We then generalize this result, providing a constructive proof and algorithm for multi-layer models. To unify these findings, we introduce a general framework centered on two core properties: input controllability and output controllability. We prove that a perfect implicit weight patch is possible for any MLP block where the inner function is input-controllable and the outer function is output-controllable. This provides a simpler and more powerful lens for understanding how transformer models transmute prompts into effective weights. This setup generalizes to a wide range of modern LLM architectures including gating, pre-/post-norm, mixture of experts and sequential/parallel transformer blocks.

📄 PDF Abstract BibTeX arXiv:2511.17864

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Exact Conversion of In-Context Learning to Model Weights in Linearized-Attention Transformers

2024-06-05 · Brian K Chen, Tianyang Hu, Hui Jin, Hwee Kuan Lee 외

In-Context Learning (ICL) has been a powerful emergent property of large language models that has attracted increasing attention in recent years. In contrast to regular gradient-based learning, ICL is highly interpretabl…

In-Context Learning

Transformers Meet In-Context Learning: A Universal Approximation Theory

2025-06-05 · Gen Li, Yuchen Jiao, Yu Huang, Yuting Wei 외

Modern large language models are capable of in-context learning, the ability to perform new tasks at inference time using only a handful of input-output examples in the prompt, without any fine-tuning or parameter update…

In-Context Learning

Functional Equivalence in Attention: A Comprehensive Study with Applications to Linear Mode Connectivity

2026-06-16 · Viet-Hoang Tran, Vinh Khanh Bui, Van-Hoan Trinh, Tan Lai Ngoc 외 arxiv

Neural network parameter spaces are inherently non-injective, as distinct parameter configurations can realize identical functions through functional equivalence. While this symmetry is well understood in classical fully…

Towards Provable Emergence of In-Context Reinforcement Learning

2025-09-22 · Jiuqi Wang, Rohan Chandra, Shangtong Zhang arxiv

Typically, a modern reinforcement learning (RL) agent solves a task by updating its neural network parameters to adapt its policy to the task. Recently, it has been observed that some RL agents can solve a wide range of …

Reinforcement Learning

How Data Mixing Shapes In-Context Learning: Asymptotic Equivalence for Transformers with MLPs

2025-10-29 · Samet Demir, Zafer Dogan arxiv

Pretrained Transformers demonstrate remarkable in-context learning (ICL) capabilities, enabling them to adapt to new tasks from demonstrations without parameter updates. However, theoretical studies often rely on simplif…

Sentiment Analysis