Transformer-based Causal Language Models Perform Clustering
Not on the map. Why?
Abstract (arXiv)
Even though large language models (LLMs) have demonstrated remarkable capability in solving various natural language tasks, the capability of an LLM to follow human instructions is still a concern. Recent works have shown great improvements in the instruction-following capability via additional training for instruction-following tasks. However, the mechanisms responsible for effective instruction-following capabilities remain inadequately understood. Here, we introduce a simplified instruction-following task and use synthetic datasets to analyze a Transformer-based causal language model. Our findings suggest that the model learns task-specific information by clustering data within its hidden space, with this clustering process evolving dynamically during learning. We also demonstrate how this phenomenon assists the model in handling unseen instances, and validate our results in a more realistic setting. Furthermore, we present inspired applications regarding pre-training and alignment.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 19 of its 48 references that are in the map. First posted on arXiv 19 Feb 2024.
Builds on
19 of 48 references.
References · 19
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 7,916
- 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,674
- 2022Locating and Editing Factual Associations in GPTcited by 2,609
- 2019Generalization through Memorization: Nearest Neighbor Language Modelscited by 788
- 2019CTRL: A Conditional Transformer Language Model for Controllable Generationcited by 754
- 2023Instruction Tuning for Large Language Models: A Surveycited by 617
- 2023Dissecting Recall of Factual Associations in Auto-Regressive Language Modelscited by 512
- 2018What you can cram into a single vector: Probing sentence embeddings for linguistic propertiescited by 452
- 2023Emergent Linear Representations in World Models of Self-Supervised Sequence Modelscited by 313
7 more
- 2023In-Context Learning Creates Task Vectorscited by 302
- 2019Visualizing and Measuring the Geometry of BERTcited by 215
- 2023Linearity of Relation Decoding in Transformer Language Modelscited by 190
- 2023A Comprehensive Survey of Forgetting in Deep Learning Beyond Continual Learningcited by 66
- 2020Human Instruction-Following with Deep Reinforcement Learning via Transfer-Learning from Textcited by 59
- 2021Probing BERT in Hyperbolic Spacescited by 50
- 2020Topic Modeling with Contextualized Word Representation Clusterscited by 41
Built on by
Citing papers per year: 2024: 3; 2025: 1; 2026: 1.
5 papers.
- 2024Finding Visual Task Vectorscited by 24
- 2024AmpleGCG-Plus: A Strong Generative Model of Adversarial Suffixes to Jailbreak LLMs with Higher Success Rates in Fewer Attemptscited by 9
- 2025Robust Uncertainty Quantification for Self-Evolving Large Language Models via Continual Domain Pretrainingcited by 2
- 2024SwitchCIT: Switching for Continual Instruction Tuningcited by 1
- 2026Understanding the Prompt Sensitivitycited by 1
- 2026Understanding the Prompt Sensitivity20 Apr 2026
- 2025Robust Uncertainty Quantification for Self-Evolving Large Language Models via Continual Domain Pretraining27 Oct 2025
- 2024AmpleGCG-Plus: A Strong Generative Model of Adversarial Suffixes to Jailbreak LLMs with Higher Success Rates in Fewer Attempts29 Oct 2024
- 2024SwitchCIT: Switching for Continual Instruction Tuning16 Jul 2024
- 2024Finding Visual Task Vectors8 Apr 2024