Methods · Training Data Attribution

Verbatim Data Attribution: OLMoTrace

Survey sections: §11.1 Verbatim Data Attribution: OLMoTrace and Maximal Matching Spans · §11.1 Limitations as a Mechanistic Interpretability Tool

Verbatim data attribution detects explicit memorisation by identifying exact or near-exact string matches between model outputs and the training corpus. These searches can scale to trillions of tokens using techniques such as suffix arrays and infini-gram models.

Assumptions and requirements

OLMoTrace (Liu et al., 2025a) scales this to trillions of tokens using a combination of suffix arrays, infini-gram models, and maximal matching span extraction (Liu et al., 2024a), making it less a data-attribution method in the influence-function sense and more a retrieval tool for identifying content the model may have memorised.
OLMoTrace identifies maximal matching spans by combining suffix-array search with infini-gram queries, adjusting boundaries for tokenisation, and retaining only the longest non-overlapping spans.

Intended applications

“Eurovision Song Contest with the song ’Ne” This process links language model output directly to the training corpus, enabling identification and attribution of memorised content.
UTF8gbsnSpan: “她喜欢阅读关于科技、心理学和历史的书籍,业余时间还会参加编程课”—matched in post-training (instruction-tuning) data This example demonstrates how OLMoTrace traces multilingual outputs across diverse training sources, linking model generations directly to their memorised origins in pretraining and post-training datasets.

Limitations

Verbatim attribution excels at factual memorisation but struggles with compositional or synthesised outputs.
For tasks like translation, poetry, or reasoning, OLMoTrace (and other verbatim matching methods) can identify spans of text that appear in the training data, but these matches do not explain how the model combined information from multiple sources to produce the output.

Related methods

Compare side by side →

Key papers

Cited in §11.1.

Also discussed in: §11 Training Data Attribution · §11.1 OLMoTrace Influential Samples Identified: · §11.2.7 Summary

Other methods in Training Data Attribution

Influence Functions (Gradient-Based Attribution) · Kronecker-Factored Approximate Curvature (K-FAC) · Eigenvalue-Corrected K-FAC (EK-FAC) and ASTRA · TRAK (Tracing with the Randomly-projected After Kernel) · TracIn