摘要
We examine the pre-training dynamics of language models, focusing on their ability to copy text from preceding context-a fundamental skill for various LLM applications, including in-context learning (ICL) and retrieval-augmented generation (RAG). We propose a novel perspective that Transformer-based language models develop copying abilities similarly to grokking, which refers to sudden generalization on test set long after the model fit to the training set. Our experiments yield three arguments: (1) The pre-training loss decreases rapidly, while the context copying ability of models initially lags and then abruptly saturates. (2) The speed of developing copying ability is independent of the number of tokens trained, similarly to how grokking speed is unaffected by dataset size as long as the data distribution is preserved. (3) Induction heads, the attention heads responsible for copying, form from shallow to deep layers during training, mirroring the development of circuits in deeper layers during grokking. We contend that the connection between grokking and context copying can provide valuable insights for more effective language model training, ultimately improving in-context performance. For example, we demonstrated that techniques that enhance grokking, such as regularization, either accelerate or enhance the development of context copying. © 2025 Association for Computational Linguistics
| 源语言 | 英语 |
|---|---|
| 页 | 735-741 |
| DOI | |
| 出版状态 | 已出版 - 1月 2025 |
| 活动 | 2025 Annual Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies, NAACL-HLT 2025 - Hybrid, Albuquerque, NM, United states, Hybrid, 美国 期限: 29 4月 2025 → 4 5月 2025 |
会议
| 会议 | 2025 Annual Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies, NAACL-HLT 2025 |
|---|---|
| 国家/地区 | 美国 |
| 市 | Hybrid |
| 时期 | 29/04/25 → 4/05/25 |
基金资助
Renmin University of China, Number: 2023QNRC001, Acronym: CAST, China Association for Science and Technology, Number: -, Acronym: CAST, China Association for Science and Technology (RUC)
关键词
- Copying
- Learning systems
- Natural language processing systems
- Personnel training
- Context learning
- Context retrieval
- Deep layer
- Generalisation
- In contexts
- Language model
- Model fit
- Pre-training
- Test sets
- Training sets
- Computational linguistics
收录
- Scopus
- EI
学术指纹
探究 'Language Models "Grok" to Copy' 的科研主题。它们共同构成独一无二的学术指纹。引用此
- APA
- Author
- BIBTEX
- Harvard
- Standard
- RIS
- Vancouver