[Paper Review] Cynical Selection of Language Model Training Data
This paper proposes 'cynical selection,' a greedy, entropy-based method for selecting optimal training data for language models and machine translation systems. It improves upon the Moore-Lewis cross-entropy difference method by dynamically scoring sentences based on entropy gain, ensuring near-optimal vocabulary coverage, automatic stopping, and real units—resulting in 80% fewer OOV tokens than baseline methods.
The Moore-Lewis method of "intelligent selection of language model training data" is very effective, cheap, efficient... and also has structural problems. (1) The method defines relevance by playing language models trained on the in-domain and the out-of-domain (or data pool) corpora against each other. This powerful idea-- which we set out to preserve-- treats the two corpora as the opposing ends of a single spectrum. This lack of nuance does not allow for the two corpora to be very similar. In the extreme case where the come from the same distribution, all of the sentences have a Moore-Lewis score of zero, so there is no resulting ranking. (2) The selected sentences are not guaranteed to be able to model the in-domain data, nor to even cover the in-domain data. They are simply well-liked by the in-domain model; this is necessary, but not sufficient. (3) There is no way to tell what is the optimal number of sentences to select, short of picking various thresholds and building the systems. We present a greedy, lazy, approximate, and generally efficient information-theoretic method of accomplishing the same goal using only vocabulary counts. The method has the following properties: (1) Is responsive to the extent to which two corpora differ. (2) Quickly reaches near-optimal vocabulary coverage. (3) Takes into account what has already been selected. (4) Does not involve defining any kind of domain, nor any kind of classifier. (6) Knows approximately when to stop. This method can be used as an inherently-meaningful measure of similarity, as it measures the bits of information to be gained by adding one text to another.
Motivation & Objective
- To address the limitations of the Moore-Lewis cross-entropy difference method, which fails when in-domain and out-of-domain corpora are too similar and lacks a principled stopping criterion.
- To develop a data selection method that is responsive to corpus differences, avoids reliance on domain definitions or classifiers, and operates with real units (bits of entropy change).
- To enable automatic, efficient, and scalable selection of training data that maximizes vocabulary coverage while minimizing out-of-vocabulary (OOV) tokens.
- To eliminate the need for hyperparameter tuning (e.g., grid search over data size) by automatically determining the optimal stopping point based on entropy gain.
Proposed method
- The method incrementally selects sentences by maximizing the reduction in entropy of the representative (in-domain) corpus when each sentence is added to the training set.
- It uses a greedy, submodular selection process where each sentence is scored by its marginal gain in entropy reduction, ensuring diminishing returns as more data is selected.
- The algorithm maintains a running estimate of entropy change and stops when the expected gain for the next sentence becomes (and stays) positive.
- It handles duplicates by uniquely selecting each sentence once per word, preventing redundant inclusions while preserving vocabulary diversity.
- The method does not require training separate language models or defining domain boundaries; instead, it directly compares the entropy of the representative corpus before and after adding each candidate sentence.
- It uses a feature function based on entropy gain, which is both interpretable and unit-consistent (measured in bits), enabling cross-system comparison.
Experimental results
Research questions
- RQ1Can a data selection method be designed that automatically determines when to stop selecting data without requiring grid search or hyperparameter tuning?
- RQ2How can data selection be made responsive to the actual degree of difference between in-domain and out-of-domain corpora, even when they are similar?
- RQ3Can a method achieve near-optimal vocabulary coverage with minimal OOV tokens without relying on domain-specific classifiers or labeled data?
- RQ4Is it possible to define a data selection method with real, interpretable units (e.g., bits of entropy) that are comparable across different systems and tasks?
- RQ5Does a greedy, entropy-based selection strategy satisfy submodularity and thus provide theoretical guarantees on near-optimality?
Key findings
- The cynical selection method reduces out-of-vocabulary (OOV) token rates by approximately 80% compared to the Moore-Lewis cross-entropy difference method.
- The method achieves near-optimal vocabulary coverage very early in the selection process, primarily by selecting each unique word in the representative corpus at least once.
- The algorithm automatically determines the optimal stopping point by detecting when the marginal entropy gain for the next sentence becomes (and remains) positive.
- The method is submodular in nature, meaning the incremental benefit of adding a sentence decreases as more sentences are already selected, ensuring theoretical efficiency.
- The relevance scores are expressed in real units (bits of entropy change), enabling direct comparison across different models, systems, and language pairs.
- The method does not require defining a domain, labeling data, or training auxiliary models, making it broadly applicable and computationally efficient.
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.