URIEL and lang2vec: Representing languages as typological, geographical, and phylogenetic vectors
Written for the Research library (claude-opus-5-5) from the paper text. Original — aclanthology.org/E17-2002.pdf
Summary
Multilingual ("polyglot") NLP models can benefit from knowing what each language is like. However, linguistic knowledge is scattered across databases that differ in language coverage, identifiers, feature names and formats, which range from binary values to trees to prose. The authors present URIEL, a knowledge base aimed at massively multilingual and low-resource NLP, and lang2vec, a utility built on it. Given a list of ISO 639-3 codes, lang2vec returns vectors whose values lie in [0.0, 1.0].
The vector types are:
- Typological: syntax, phonology and phonetic inventory, drawn from WALS, SSWL, Ethnologue and PHOIBLE.
- Phylogenetic: family membership based on Glottolog.
- Geographical: distances to fixed reference points on the globe.
- Identity: one-hot vectors.
Features within a category share the same dimensionality, so sources can be merged or compared with simple vector operations. Gaps in typological data are filled using a k-nearest-neighbors predictor. Work by Tsvetkov et al. (2016) showed that such language vectors lower perplexity in polyglot language models compared with one-hot language identifiers. The resource therefore makes these experiments easier to run and reproduce, and it also helps expose gaps in documentation.
Key points
- Imputation accuracy: missing typological values are predicted by weighted 10-nearest-neighbors. The method averages genetic, geographic and feature-based distances and reaches 92.93% accuracy in 10-fold cross-validation. The resulting
knnvectors have 100% coverage. - Coverage varies by source:
syntax_walsspans 1808 languages and 98 features but fills only 44% of cells. PHOIBLE-based inventory vectors have 158 features, built from natural classes derived with PanPhon. PHOIBLE itself merges seven phonological databases. - Perplexity gains: in Tsvetkov et al. (2016), adding phonology and inventory vectors cut perplexity by roughly 19–26% relative to one-hot
idvectors. The polyglot models even beat the monolingual baselines (Italian 4.24 vs 4.36; Hindi 3.35 vs 3.70). - Geographic encoding:
geovectors give great-circle distances to points on a spherical Fibonacci lattice, scaled by the antipodal distance. About 2% of language codes had no location data and were filled in manually where possible. - Format details: features are not mutually exclusive, so a language can have both S_SVO and S_SOV set to 1. Missing values are marked "--".
Cited by
- From Zero to Hero: On the Limitations of Zero-Shot Language Transfer with Multilingual Transformers
- Choosing Transfer Languages for Cross-Lingual Learning
- XCOPA: A Multilingual Dataset for Causal Commonsense Reasoning
- XTREME-R: Towards More Challenging and Nuanced Multilingual Evaluation
Cite
@inproceedings{littell2017uriel,
title = {{URIEL and lang2vec: Representing languages as typological, geographical, and phylogenetic vectors}},
author = {Littell, Patrick and Mortensen, David R. and Lin, Ke and Kairis, Katherine and Turner, Carlisle and Levin, Lori},
booktitle = {Proceedings of the 15th Conference of the European Chapter of the Association for Computational Linguistics: Volume 2, Short Papers},
year = {2017},
url = {https://aclanthology.org/E17-2002/}
}References
- Manaal Faruqui and Chris Dyer. 2014. Improving vector space word representations using multilingual correlation. In Proceedings of the 14th Conference of the European Chapter of the Association for Computational Linguistics, pages 462–471, Gothenburg, Sweden, April. Association for Computational Lin… find
- Waleed Ammar, George Mulcaire, Miguel Ballesteros, Chris Dyer, and Noah Smith. 2016. Many languages, one parser. Transactions of the Association for Computational Linguistics, 4:431–444. find our card
- Akash Bharadwaj, David Mortensen, Chris Dyer, and Jaime Carbonell. 2016. Phonologically aware neural model for named entity recognition in low resource transfer settings. In Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing, pages 1462–1472, Austin, Texas, Novemb… find
- Álvaro González. 2009. Measurement of areas on a sphere using Fibonacci and latitude–longitude lattices. Mathematical Geosciences, 42(1):49–64. find
- Harald Hammarström, Robert Forkel, Martin Haspelmath, and Sebastian Bank. 2015. Glottolog 2.6. Max Planck Institute for the Science of Human History, Jena. find
- Christian Chanard. 2006. Systmes Alphabtiques Des Langues Africaines. UNESCO-SIL. find
- Rhonda L. Hartell. 1993. Alphabets des langues africaines. UNESCO and Socit Internationale de Linguistique. find
- Reed Coke, Ben King, and Dragomir R. Radev. 2016. Classifying syntactic regularities for hundreds of languages. Computing Research Repository, abs/1603.08016. — [arXiv:1603.08016](https://arxiv.org/abs/1603.08016) find
- Karl Moritz Hermann and Phil Blunsom. 2014. Multilingual models for compositional distributed semantics. In Proceedings of the 52nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 58–68, Baltimore, Maryland, June. Association for Computational Linguisti… find
- Chris Collins and Richard Kayne. 2011. Syntactic Structures of the World’s Languages. New York University, New York. find
- John H. Crothers, James P. Lorentz, Donald A. Sherman, and Marilyn M. Vihman. 1979. Handbook of Phonological Data From a Sample of the World’s Languages: A Report of the Stanford Phonology Archive. find
- Benjamin Keinert, Matthias Innmann, Michael Sänger, and Marc Stamminger. 2015. Spherical Fibonacci mapping. ACM Transactions on Graphics, 34(6):193:1–193:7, October. find
- M. Paul Lewis, Gary F. Simons, and Charles D. Fennig. 2015. Ethnologue: Languages of the World, Eighteenth edition. SIL International, Dallas, Texas. find
- Joachim Daiber, Miloš Stanojević, and Khalil Sima’an. 2016. Universal reordering via linguistic typology. In Proceedings of COLING 2016, the 26th International Conference on Computational Linguistics: Technical Papers, pages 3167–3176, Osaka, Japan, December. find
- The COLING 2016 Organizing Committee. find
- Ian Maddieson and Kristin Precoda. 1990. Updating UPSID. In UCLA Working Papers in Phonetics, pages 104–111. Department of Linguistics, UCLA. find
- Lev Michael, Tammy Stark, and Will Chang. 2012. South American Phonological Inventory Database. University of California, Berkeley. find
- Hal Daumé III and Lyle Campbell. 2007. A Bayesian model for discovering typological implications. In Proceedings of the 45th Annual Meeting of the Association for Computational Linguistics, pages 65– 72, Prague, Czech Republic, June. Association for Computational Linguistics. find
- Steven Moran, Daniel McCloy, and Richard Wright. 2014. PHOIBLE Online. Max Planck Institute for Evolutionary Anthropology, Leipzig. find
- David R. Mortensen, Patrick Littell, Akash Bharadwaj, Kartik Goyal, Chris Dyer, and Lori Levin. 2016. PanPhon: A resource for mapping IPA segments to articulatory feature vectors. In Proceedings of COL-ING 2016, the 26th International Conference on Computational Linguistics: Technical Papers, pages… find
- The COLING 2016 Organizing Committee. find
- Hal Daumé III. 2009. Non-parametric Bayesian areal linguistics. In Proceedings of Human Language Technologies: The 2009 Annual Conference of the North American Chapter of the Association for Computational Linguistics, pages 593–601, Boulder, Colorado, June. Association for Computational Linguistics… find
- Aliya Deri and Kevin Knight. 2016. Grapheme-to-phoneme models for (almost) any language. In Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics, pages 399–408. Association for Computational Linguistics. find
- Helen O’Horan, Yevgeni Berzak, Ivan Vulic, Roi Reichart, and Anna Korhonen. 2016. Survey on the use of typological information in natural language processing. In Proceedings of COLING 2016, the 26th International Conference on Computational Linguistics: Technical Papers, pages 1297–1308, Osaka, Japa… find
- The COLING 2016 Organizing Committee. find
- Matthew S. Dryer and Martin Haspelmath. 2013. The World Atlas of Language Structures Online. Max Planck Institute for Evolutionary Anthropology. find
- Taraka Rama. 2016. Siamese convolutional networks for cognate identification. In Proceedings of COL-ING 2016, the 26th International Conference on Computational Linguistics: Technical Papers, pages 1018–1027, Osaka, Japan, December. find
- The COLING 2016 Organizing Committee. find
- N. Ramaswami. 1999. Common Linguistic Features in Indian Languages: Phonetics. Central Institute of Indian Languages. find
- Yulia Tsvetkov, Sunayana Sitaram, Manaal Faruqui, Guillaume Lample, Patrick Littell, David Mortensen, Alan W Black, Lori Levin, and Chris Dyer. 2016. Polyglot neural language models: A case study in cross-lingual phonetic representation learning. pages 1357–1366, June. find