[Paper Review] ORCA: Interpreting Prompted Language Models via Locating Supporting Data Evidence in the Ocean of Pretraining Data
This paper proposes ORCA, a method to locate minimal subsets of pretraining data that support a language model's performance on downstream tasks, using iterative gradient-based selection. It reveals that BERT's zero-shot performance in sentiment analysis and textual entailment heavily relies on BookCorpus and examples masking synonyms of task verbalizers.
Large pretrained language models have been performing increasingly well in a variety of downstream tasks via prompting. However, it remains unclear from where the model learns the task-specific knowledge, especially in a zero-shot setup. In this work, we want to find evidence of the model's task-specific competence from pretraining and are specifically interested in locating a very small subset of pretraining data that directly supports the model in the task. We call such a subset supporting data evidence and propose a novel method ORCA to effectively identify it, by iteratively using gradient information related to the downstream task. This supporting data evidence offers interesting insights about the prompted language models: in the tasks of sentiment analysis and textual entailment, BERT shows a substantial reliance on BookCorpus, the smaller corpus of BERT's two pretraining corpora, as well as on pretraining examples that mask out synonyms to the task verbalizers.
Motivation & Objective
- To identify a small, task-specific subset of pretraining data that directly supports a language model's performance on a downstream task.
- To provide interpretability into how prompted language models learn knowledge without fine-tuning, especially in zero-shot settings.
- To move beyond input-level attribution by locating pretraining data evidence influencing model behavior globally across a task.
- To analyze whether the model relies on specific data sources or patterns in pretraining data for task competence.
- To offer insights into model trustworthiness, data quality, and potential biases by examining the evidence underlying model decisions.
Proposed method
- Formalize the problem as identifying a minimal set of pretraining examples with high incremental impact on downstream task performance.
- Use task-specific gradients from the downstream task to iteratively select pretraining examples that most influence the model's prediction.
- Apply an iterative selection process that computes per-example gradients and selects examples with the highest gradient magnitude.
- Maintain a candidate set of supporting data evidence and refine it through multiple rounds of gradient-guided selection.
- Use a loss-based objective to measure the impact of including each pretraining example on the model's downstream performance.
- Operate on the original pretraining data without retraining, simulating an upweighting of specific examples during pretraining.
Experimental results
Research questions
- RQ1Which specific pretraining examples most directly support a language model’s zero-shot performance on a given downstream task?
- RQ2Does the model’s competence in tasks like sentiment analysis and textual entailment stem from particular pretraining corpora or patterns?
- RQ3How does the supporting data evidence compare to random subsets or nearest neighbors in embedding space in terms of influence?
- RQ4What kind of linguistic patterns (e.g., synonym masking) appear in the most influential pretraining examples?
- RQ5Can gradient-based selection effectively identify high-impact pretraining data without access to model fine-tuning or retraining?
Key findings
- BERT's zero-shot performance in sentiment analysis and textual entailment is substantially supported by BookCorpus, a smaller corpus among its two pretraining sources.
- The model shows strong reliance on pretraining examples that mask out synonyms of the task verbalizers, suggesting pattern memorization of synonymic paraphrasing.
- The supporting data evidence identified by ORCA outperforms random subsets and nearest neighbors in embedding space in terms of downstream task similarity and influence.
- MAUVE similarity scores show that the context of supporting data evidence is semantically closer to the downstream task inputs than baseline methods.
- The method successfully identifies high-impact pretraining examples even when the model’s decision is not directly traceable to the input prompt.
- The discovered evidence reveals that the model's behavior is influenced by specific linguistic patterns in pretraining data, such as masked synonym substitutions.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.