# Bergson: An Open Source Library for Data Attribution

- **ID:** 1241
- **Kind:** code
- **URL:** https://github.com/EleutherAI/bergson
- **Authors:** Lucia Quirke, Louis Jaburi, David Johnston, William Z. Li, Gonçalo Paulo, Guillaume Martres, Girish Gupta, Nora Belrose, Stella Biderman
- **Venue:** arXiv:2606.11660 (cs.LG), submitted 10 Jun 2026, v4 25 Sep 2026; presenting at EMNLP Budapest
- **Published:** 2026
- **Source:** github
- **Language:** en
- **Access:** free
- **Tags:** data-attribution, interpretability, magic, source, trackstar, ek-fac, astra, dataset-curation, grpo
- **Topics:** data attribution, interpretability, MAGIC, SOURCE, TrackStar, EK-FAC, ASTRA, dataset curation
- **Added:** 2026-10-04
- **Verified:** 2026-10-04
- **Page:** https://papers.projxon.ai/entries/1241

## Summary

Open-source library (EleutherAI) unifying data attribution methods for LLMs across compute budgets. Implements MAGIC, SOURCE, EK-FAC, ASTRA, and TrackStar — the first open-source implementations of MAGIC, SOURCE, and TrackStar. Finetuning leaderboard: MAGIC tops (0.931), EK-FAC and ASTRA are both fast and accurate, SOURCE excels at multi-stage runs; TrackStar's efficient approximate scores enable cheap pretraining attribution via two-stage retrieval (amortize costs with on-disk gradient stores and ANN indices, then refine top scores with a more precise method). Also supports token-level attribution (claimed 10x data-filtering performance gain), GRPO rewards for attributing model behaviors, and optimizations like bucket batching and multi-node support. Answers 'how do LLMs generalize / why do they become misaligned?' by looking at the training data. Relevant to the user's LLM training setups (dataset curation, debugging misalignment) and GRPO work.

## Research notes

- Discovery: @lucia_quirke (Lucia Quirke, first author) 6-post X thread 2026-10-04 1:17 PM ET (https://x.com/lucia_quirke/status/2106795734716788750), 676 views
- Paper: https://arxiv.org/abs/2606.11660
- Docs: https://bergson.readthedocs.io
- License: CC BY 4.0

## Similar entries

- [Matryoshka attribution: Learning to attribute language model outputs to representations and weights](https://papers.projxon.ai/entries/1033) (paper, #1033)
- [Predictive Data Debugging: Reveal and Shape What Your Model Learns, Before You Train](https://papers.projxon.ai/entries/1101) (post, #1101)
- [Capability Provenance in Language Models: A Case Study in Social Reasoning](https://papers.projxon.ai/entries/693) (paper, #693)
- [Improving Qwen3.8-27B-Medium on DeepSWE with GRPO: 500-task SWE agent dataset experiment (AfterQuery)](https://papers.projxon.ai/entries/1318) (post, #1318)
- [SmolDataEnvs (FineEnvs): 5K+ verifiable data-science RL tasks](https://papers.projxon.ai/entries/1038) (dataset, #1038)
- [How Goodfire used Ai2's open post-training stack to trace unwanted behavior](https://papers.projxon.ai/entries/709) (post, #709)
