Pith. sign in

REVIEW 2 cited by

Language Models "Grok" to Copy

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2409.09281 v2 pith:47445REG submitted 2024-09-14 cs.CL cs.AIcs.LG

classification cs.CLcs.AIcs.LG
keywords copyinggrokkinglanguagemodelsabilitycontexttrainingcopy
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

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.

Discussion (0). Continue with ORCID to comment.

Forward citations

Cited by 2 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. Grokking at the Edge of Numerical Stability

    cs.LG 2025-01 conditional novelty 7.0 of 10

    Grokking fails without regularization because Softmax floating point errors (Softmax Collapse) stop gradients; removing them or removing the logit-scaling gradient direction restores and accelerates grokking.

  2. ResidualDroppath: Enhancing Feature Reuse over Residual Connections

    cs.LG 2024-11 conditional novelty 5.0 of 10

    A two-phase training algorithm alternating droppath steps with frozen-path steps gives modest accuracy improvements on small image datasets, with inconsistent ImageNet results.

Pith tools