Sewon Min — Rethinking Data Use in Large Language Models
Talk arc
Section titled “Talk arc”Chapters (from the video)
Section titled “Chapters (from the video)”The recording’s sound is low; use headphones. A shorter version opens the Allen School colloquium of Jan 11, 2024 (she is the first of several speakers).
Papers behind each section (thematic match)
Section titled “Papers behind each section (thematic match)”The ICL finding is scoped to its experiments: with the models and classification/multi-choice tasks studied, replacing gold labels with random ones cost little. It is not a general rule that label correctness is irrelevant.
| Section | Papers |
|---|---|
| In-context learning analysis | Rethinking the Role of Demonstrations; MetaICL |
| Nonparametric LMs | NPM: Nonparametric Masked Language Modeling; REPLUG |
| Responsible LM | SILO Language Models |
| Evaluation | FActScore |
Thesis: Rethinking Data Use in Large Language Models (University of Washington, 2024), linked in the card above.
What to borrow for your own job talk
Section titled “What to borrow for your own job talk”- Name the talk after a question, not a method.
- Spend real time on a diagnosis before your solution; it makes the solution feel necessary.
- End the technical part with a non-technical payoff (here, legal risk and attribution) to widen the audience.
Technical preparation (from the papers, not the recording)
Section titled “Technical preparation (from the papers, not the recording)”Read this before the questions below. The section-to-paper match above is thematic, so these mechanisms come from the papers: SILO and NPM. The site has no separate note on either.
The kNN-LM datastore used in SILO. Build one key-value pair per token of the datastore text: the value is the token, and the key is the encoder’s representation of the prefix that precedes it. At test time, encode the current prefix, find the nearest keys, and let each neighbour vote for its stored next token, with weight falling with distance. Normalising the votes gives P_kNN(y | x), which is mixed with the parametric LM: P(y | x) = λ · P_LM(y | x) + (1 − λ) · P_kNN(y | x), with λ a fixed hyperparameter. In SILO the parametric LM is trained only on permissively licensed text, and higher-risk text sits in the datastore, where it can be attributed and removed.
Worked example. With λ = 0.5, P_LM = 0.1 and P_kNN = 0.4, P = 0.05 + 0.2 = 0.25. Deleting every datastore entry that votes for y removes the second term, leaving 0.05: opt-out removes the datastore’s contribution, but not what the parametric model already learned.
NPM. NPM replaces the softmax over a fixed vocabulary with a nonparametric distribution over phrases in a reference corpus, and fills a masked span by retrieving from that corpus. It is trained with a contrastive objective and an in-batch approximation to full-corpus retrieval. That is why rare or multi-piece entities need not be assembled token by token from a vocabulary.
Questions to think through
These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.
- Derive / compute
A kNN-LM, as used in SILO, outputs P(y|x) = λ·P_LM(y|x) + (1 − λ)·P_kNN(y|x). Take λ = 0.75. For a rare entity token y, the parametric LM gives P_LM = 0.02 and the datastore gives P_kNN = 0.60. (a) Compute P(y|x). (b) The owner of every document whose neighbours vote for y opts out and those entries are deleted, so P_kNN(y|x) = 0. Recompute. (c) The datastore stores one key per token: estimate its raw size for 1B tokens with 2,048-dim fp16 keys, and say what this implies for serving.
What a strong answer covers
- (a) 0.75·0.02 + 0.25·0.60 = 0.015 + 0.15 = 0.165, about 8× the parametric probability.
- (b) 0.75·0.02 + 0 = 0.015. Opt-out removes the datastore's contribution exactly, but the parametric floor stays: whatever the LM learned from similar text in training is untouched. This is why SILO trains parameters only on low-risk data.
- (c) 10⁹ × 2,048 × 2 bytes ≈ 4.1 TB of keys before compression. Hence approximate nearest-neighbour search (FAISS, with a probe count trading accuracy for speed).
- Serving cost: kNN-LM searches the index at every generated token, while retrieval-in-context (RIC-LM) retrieves a text block and conditions on it. SILO's speed comparison has parametric > RIC-LM > kNN-LM, and larger datastores are slower.
- Mechanism
NPM removes the softmax over a fixed vocabulary and instead scores phrases in a reference corpus. Explain mechanistically why this helps with a rare entity split into many BPE pieces (e.g. "Thessaloniki") or with words in an unseen script, and why training needs span masking that guarantees the masked span also occurs elsewhere in the batch.
What a strong answer covers
- A vocabulary softmax must produce a rare multi-piece entity one low-probability token at a time, and the output layer is a low-rank bottleneck. NPM retrieves the whole span by matching start and end vectors, so any phrase in the corpus is one retrieval away, however rare its pieces.
- The output space is whatever is in the corpus, so rare or new strings (non-Latin script, new facts after a corpus update) can be predicted without changing parameters.
- Training is contrastive: the [MASK_s]/[MASK_e] vectors of a masked span must retrieve the same phrase from other sequences. Retrieving from the full corpus each step is too expensive, so the batch acts as the corpus (in-batch positives and negatives).
- In-batch training needs a positive to exist, hence masking only spans that co-occur in other sequences of the batch. Otherwise many masked spans would have no target and no learning signal.
- What if…
SILO's kNN-LM uses one model in two roles: the encoder that produces datastore keys and queries, and the parametric LM that produces P_LM. That model was trained only on permissive data. Predict what happens to out-of-domain perplexity if you (a) swap in Pythia (trained on the Pile) as the encoder only, (b) swap in Pythia as the parametric LM only. What does the answer imply about why kNN-LM generalised better than RIC-LM?
What a strong answer covers
- SILO Figure 4: replacing the parametric LM with Pythia recovers most of the gap; replacing only the encoder helps marginally. The parametric component is sensitive to domain shift, the encoder fairly robust.
- Reason: the encoder only has to place similar contexts near each other, which transfers across domains. Predicting the next token from parameters needs domain knowledge the permissive corpus lacks.
- RIC-LM routes all retrieved evidence through the parametric LM's input, so it is bottlenecked by the weak component. kNN-LM mixes the datastore distribution directly into the output, bypassing it.
- The paper's two directions follow: scale the datastore (beyond 1B tokens) and lean more on the nonparametric distribution, toward an NPM-style model.
- Critique
SILO argues that data removed from the datastore is guaranteed not to contribute to predictions. Its evidence: removing the other six Harry Potter books from a 1.024B-token Books3 datastore pushes perplexity on a held-out book back toward the parametric-only model. What does this guarantee cover, what does it not cover, and what experiment would expose the gap?
What a strong answer covers
- Covered: exact, example-level removal of a datastore entry's influence with no retraining, which parameter-level unlearning cannot promise.
- Not covered: the same content reaching the permissive training set through quotes, summaries or near-duplicates; copies under other owners still in the datastore; the encoder itself. Opt-out works per document, while the legal concern is about content.
- Perplexity is distributional. It does not show whether verbatim reproduction of protected text drops, which is the copyright-relevant behaviour.
- Experiment: search the parametric training data for quotations and near-duplicates of the opted-out work; measure verbatim extraction under prompted continuation with and without the work in the datastore; repeat with paraphrased copies left in.
- Design
You are building a search agent over a news archive that grows by 1M documents a day, must honour takedown requests within an hour, and has a p95 latency budget of 2 s for answers of about 300 tokens. Choose between a parametric model fine-tuned weekly, retrieval-in-context, a kNN-LM-style token-level datastore, or a hybrid, and say how you would validate the choice.
What a strong answer covers
- Freshness and takedowns push knowledge out of the weights: a datastore is updated or filtered without retraining, and deleted entries stop contributing at once.
- Latency: a token-level lookup on each of ~300 generated tokens multiplies index cost, and SILO reports kNN-LM slower than RIC-LM, both slower than parametric. A few retrieval calls per answer fit 2 s far more easily.
- A defensible hybrid: retrieval-in-context for answering, with document-level attribution for takedowns; add kNN-style interpolation only if measurements show long-tail entities are missed.
- Validate: accuracy on questions about documents added in the last day, a takedown test (delete documents and check that answers and citations change), p95 latency under load, and long-tail entity accuracy.