mlsanityData to 14 Oct 2026

Contextually Guided Transformers via Low-Rank Adaptation

arXiv 2506.05672 ↗First posted 6 Jun 2025cs.LG cs.CLcited by 0

Not on the map. Why?

Abstract (arXiv)

Large Language Models (LLMs) based on Transformers excel at text processing, but their reliance on prompts for specialized behavior introduces computational overhead. We propose a modification to a Transformer architecture that eliminates the need for explicit prompts by learning to encode context into the model's weights. Our Contextually Guided Transformer (CGT) model maintains a contextual summary at each sequence position, allowing it to update the weights on the fly based on the preceding context. This approach enables the model to self-specialize, effectively creating a tailored model for processing information following a given prefix. We demonstrate the effectiveness of our method on synthetic in-context learning tasks and language modeling benchmarks. Furthermore, we introduce techniques for enhancing the interpretability of the learned contextual representations, drawing connections to Variational Autoencoders and promoting smoother, more consistent context encoding. This work offers a novel direction for efficient and adaptable language modeling by integrating context directly into the model's architecture.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 17 of its 23 references that are in the map. First posted on arXiv 6 Jun 2025.

Builds on

17 of 23 references.

References · 17

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  3. 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,918
  4. 2022Emergent Abilities of Large Language Modelscited by 2,512
  5. 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,434
  6. 2021What Makes Good In-Context Examples for GPT-3?cited by 1,195
  7. 2021DynamicViT: Efficient Vision Transformers with Dynamic Token Sparsificationcited by 864
  8. 2022Transformers learn in-context by gradient descentcited by 732
  9. 2023In-Context Learning Creates Task Vectorscited by 312
  10. 2021Evo-ViT: Slow-Fast Token Evolution for Dynamic Vision Transformercited by 177
  11. 2021Patch Slimming for Efficient Vision Transformerscited by 133
  12. 2018Gaussian Process Prior Variational Autoencoderscited by 72
5 more
  1. 2022CF-ViT: A General Coarse-to-Fine Method for Vision Transformercited by 63
  2. 2022HyperTuning: Toward Adapting Large Language Models without Back-propagationcited by 46
  3. 2021Transformer-based Conditional Variational Autoencoder for Controllable Story Generationcited by 44
  4. 2021Orthogonal Projection Losscited by 44
  5. 2017Fast-Slow Recurrent Neural Networkscited by 12

Built on by

Not cited yet.