NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Empirical Linguistic Study of Sentence Embeddings

Katarzyna Krasnowska-Kieras, Alina WróblewskaACL 2019

Abstract

This study investigates the linguistic properties captured by sentence embeddings in both English and Polish. By utilizing a probing task-based framework grounded in Universal Dependencies, we evaluate how modern neural models like BERT and LASER encode syntactic and morphological information. Our results indicate that while specialized parser-based models excel at syntactic tasks, general-purpose embeddings like LASER demonstrate robust cross-lingual consistency and high performance across a variety of linguistic features.

Introduction: Probing the Neural "Black Box"

Despite the transformative impact of deep learning on Natural Language Processing (NLP), the internal representations learned by neural models often remain opaque. "Probing tasks" have emerged as a vital tool to determine whether these mathematical vectors, or embeddings, retain specific linguistic information such as tense, number, or syntactic structure.

Most probing research has historically focused on English, an isolating language. This paper addresses this bias by extending the evaluation to Polish, a morphologically rich, fusional language with relatively free word order. This cross-lingual approach tests the universality of sentence representations and identifies how different linguistic strategies—such as word order versus inflectional morphology—are captured by modern encoders.

Methodology

The authors employ a Probing Task-based Method. A pre-trained sentence encoder is frozen, and its output vectors serve as features for a simple Multilayer Perceptron (MLP) classifier. Success in predicting a linguistic property indicates that the information is present within the embedding.

Universal Dependencies and Task Design

To ensure cross-lingual applicability, the authors utilized the Universal Dependencies (UD) schema. This allows for the creation of probing tasks that are theoretically consistent across any language with a UD treebank.

Example of a dependency tree used to define probing tasks like TopDeps.

Key tasks include:

  • Surface Features: Sentence length and word count.
  • Compositional Features: Dependency tree depth and TopDeps (identifying the top-level syntactic structure).
  • Morphological/Syntactic Features: Tense, subject/object number, and voice (active vs. passive).

Datasets and Evaluation

The probing datasets consist of 90,000 examples per task, extracted from the Paralela Polish-English parallel corpus. For downstream semantic evaluation, the authors used the SICK (English) and CDSCorpus (Polish) datasets to measure sentence relatedness and entailment.

Key Insights

Pooling Strategies and Parser Advantage

A consistent finding was that MEAN pooling (averaging word vectors) generally outperformed MAX pooling. Furthermore, embeddings derived from the COMBO dependency parser showed a significant "parser advantage" in syntactic tasks, as the model's training objective is directly aligned with understanding linguistic structure.

The Performance of LASER

Among general-purpose models, LASER (Language-Agnostic SEntence Representations) emerged as the top performer. Its multilingual training objective appears to foster a "universal" grammatical representation that translates well across typologically distinct languages.

Performance of sentence embeddings across various probing tasks.

Results and Discussion

  • Cross-Lingual Consistency: There is a high correlation between model performance in English and Polish. If an architecture effectively captures linguistic features in one, it tends to do so in the other.
  • LASER Dominance: Excluding specialized parsers, LASER achieved the best results in 17 out of 22 task-language pairs, reaching over 94% accuracy on English Subject Number.
  • Syntactic Probing: On the TopDeps task, the COMBO model reached ~94% for English and ~88% for Polish, significantly outperforming standard BERT.

Conclusion and Future Directions

While this study demonstrates that modern embeddings encode significant linguistic structure, it also highlights challenges. For instance, the flexible word order of Polish made certain tasks, like "Bigram Shift," unfeasible. Future work should expand the scope to a wider variety of language families to further refine our understanding of universal sentence representations.

Summary updated

BibTeX
@inproceedings{krasnowskakieras2019empirical,
  author = {Katarzyna Krasnowska-Kieras and Alina Wróblewska},
  title = {{Empirical Linguistic Study of Sentence Embeddings}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2019},
  doi = {10.18653/v1/p19-1573},
}
Figure