Intelligent Selection of Language Model Training Data
Written for the Research library (claude-opus-5-5) from the paper text, in our own words: the license "CC BY-NC-SA 3.0 (ACL Anthology, before 2016)" does not allow redistributing the text itself. Original — aclanthology.org/P10-2041.pdf
Summary
Language models for tasks like machine translation benefit from more training data only when that data resembles the target domain. However, in-domain text is usually scarce, and large general corpora are only partly relevant. Moore and Lewis propose filtering a general corpus sentence by sentence before building an auxiliary language model. Each candidate sentence receives a score equal to its per-word cross-entropy under an in-domain model minus its cross-entropy under a model built from randomly drawn general-corpus text. Sentences scoring below a threshold, tuned on held-out in-domain text, are kept. Normalizing by length prevents a bias toward very short sentences. The authors use the English side of Europarl v5 as the domain and LDC English Gigaword Third Edition as the general pool. They compare their method against random sampling, in-domain perplexity filtering (Lin et al.; Gao et al.) and Klakow's unigram method. The cross-entropy difference approach reaches the lowest test perplexity while keeping under 7% of Gigaword. This matters because filtering needs far less memory than training on everything, although BLEU gains remain to be shown.
Key points
- Data:
- In-domain training set: Europarl 1999–2008, with about 1.65M sentences and 48.2M tokens.
- Test set: the first 2,000 sentences from January 2009.
- Gigaword pool: about 133M sentences and 3.45B tokens.
- The scoring model for Gigaword was trained on a random sample of comparable size (about 1.87M sentences).
- Setup: Both scoring models are 4-gram models with absolute discounting (discount 0.7). Their vocabulary is limited to tokens seen at least twice in Europarl training. Eight score cutoffs were evaluated.
- Perplexity results:
- Full Gigaword: 135.
- In-domain cross-entropy filtering: 124, using 36% of the data.
- Klakow's method: 111, using 21%.
- Cross-entropy difference: 101, using less than 7%.
- Why length normalization is needed: Raw log-probability differences correlate strongly with sentence length (r = −0.92). Cross-entropy differences are nearly independent of length (r = 0.04).
- Vocabulary-controlled check: After equalizing out-of-vocabulary (OOV) handling, perplexities were 124.8, 110.8 and 101.9. The ranking of methods is unchanged.
Cited by
- Unsupervised Domain Clusters in Pretrained Language Models
- Domain Adaptation via Pseudo In-Domain Data Selection
- A Survey of Domain Adaptation for Neural Machine Translation
- Survey of Low-Resource Machine Translation
- Achieving Human Parity on Automatic Chinese to English News Translation
- Quality at a Glance: An Audit of Web-Crawled Multilingual Datasets
- Choosing Transfer Languages for Cross-Lingual Learning
- Facebook FAIR's WMT19 News Translation Task Submission
- Dear Sir or Madam, May I Introduce the GYAFC Dataset: Corpus, Benchmarks and Metrics for Formality Style Transfer
- Handling Syntactic Divergence in Low-resource Machine Translation
Cite
@inproceedings{moore2010intelligent,
title = {{Intelligent Selection of Language Model Training Data}},
author = {Moore, Robert C. and Lewis, William},
booktitle = {Proceedings of the ACL 2010 Conference Short Papers},
year = {2010},
url = {https://aclanthology.org/P10-2041/}
}References
- Thorsten Brants, Ashok C. Popat, Peng Xu, Franz J. Och, and Jeffrey Dean. 2007. Large language models in machine translation. In Proceedings of the Joint Conference on Empirical Methods in Natural Language Processing and Computational Natural Language Learning, June 28–30, Prague, Czech Republic, 85… find our card
- François Denis, Remi Gilleron, and Marc Tommasi. 2002. Text classification from positive and unlabeled examples. In The 9th International Conference on Information Processing and Management of Uncertainty in Knowledge-Based Systems (IPMU 2002), 1927–1934. find
- Charles Elkin and Keith Noto. 2008. Learning classifiers from only positive and unlabeled data. In KDD 2008, August 24–27, Las Vegas, Nevada, USA, 213–220. find
- Jianfeng Gao, Joshua Goodman, Mingjing Li, and Kai-Fu Lee. 2002. Toward a unified approach to statistical language modeling for Chinese. find
- ACM Transactions on Asian Language Information Processing, 1(1):3–33. find
- Dietrich Klakow. 2000. Selecting articles from the language model training corpus. In ICASSP 2000, June 5–9, Istanbul, Turkey, vol. 3, 1695– 1698. find
- Philipp Koehn. 2005. Europarl: a parallel corpus for statistical machine translation. In MT Summit X, September 12–16, Phuket, Thailand, 79–86. find
- Sung-Chien Lin, Chi-Lung Tsai, Lee-Feng Chien, Ker-Jiann Chen, and Lin-Shan Lee. 1997. Chinese language model adaptation based on document classification and multiple domain-specific language models. In EUROSPEECH-1997, 1463–1466. find
- Hermann Ney, Ute Essen, and Reinhard Kneser. 1994. On structuring dependencies in stochastic language modelling. Computer Speech and Language, 8:1–38. find