Evaluation of Word Embeddings for the Social Sciences

Ricardo Schiffers, Dagmar Kern, Daniel Hienert

TL;DR

Researchers have developed new domain-specific word embeddings tailored for the social sciences by training on over 37,000 open-access research papers. The study demonstrates that these specialized models, despite having significantly smaller vocabularies, outperform massive general-purpose models (like those trained on Wikipedia) in capturing the nuanced semantic relationships and specialized terminology essential for social science research.

What Problem Does This Paper Address?

Word embeddings—vector representations of words that capture their meanings—are the backbone of modern Natural Language Processing (NLP). However, most popular pre-trained models are "generalists," trained on broad datasets like Wikipedia or web crawls.

In specialized fields like the social sciences, language is used differently. A term like "social inequality" carries specific academic weight and relates to concepts like "marginality" or "stratification" in ways a general model might miss. The authors identify a lack of domain-specific resources for the social sciences and set out to bridge this gap, testing whether a smaller, targeted model can actually beat a "big data" generalist at its own game.

Methods

The authors built their models using the fastText architecture. They chose fastText specifically because it uses character-based n-grams, which is particularly effective for the German language (the primary focus of their evaluation) due to its frequent use of complex compound words.

The pipeline involved:

  1. Extraction: Pulling raw text from 37,604 PDFs. They found that PDF parsing is a major hurdle, eventually settling on Apache Tika (specifically the PDFBox library) as the most reliable tool.
  2. Pre-processing: A rigorous cleaning phase that included removing cover pages, separating camel case, converting numbers to words, and sentence-wise deduplication.
  3. Training: They trained models with varying dimensions (100 to 500) to see how vector size impacts performance.
  4. Evaluation: They used TheSoz (Thesaurus for the Social Sciences) as a "gold standard" reference to test how well the models captured known academic concepts and their relationships (e.g., broader, narrower, and related terms).

Datasets

  • SSOAR (Social Science Open Access Repository): The primary training corpus, consisting of 37,604 machine-readable documents. This resulted in two main corpus files: one for German (~152M tokens) and one for English (~92M tokens).
  • TheSoz: A specialized thesaurus containing 36,320 keywords and 5,986 descriptors used for evaluation.
  • Baselines: The authors compared their results against wiki.de (trained on German Wikipedia) and deepset.de (another Wikipedia-based model).
Table 1: Corpus statistics for the German and English SSOAR datasets.

Key Insights and Ideas

  • Small but Mighty: The domain-specific ssoar.de model achieved nearly the same vocabulary coverage (~88%) as the wiki.de model (~92%), despite the Wikipedia model having a vocabulary five times larger. This suggests that for specialized tasks, data quality and relevance trump sheer volume.
  • Semantic Diversity: The "nearest neighbors" (most similar words) in the domain-specific models were highly diverse compared to general models. This means the social science models "see" different relationships between words, which is crucial for researchers looking for domain-specific nuances.
  • Dimensionality Matters: Interestingly, the study found that models with fewer dimensions (e.g., 100) often showed greater diversity in their neighborhoods, while higher dimensions tended to perform better as the "neighborhood" size (top-k) increased.
  • Capturing the "Why": By using TheSoz, the authors could prove that their models weren't just finding similar words, but were actually capturing formal hierarchical relationships like hypernyms (broader terms) and hyponyms (narrower terms).
Figure 1: The descriptor social inequality in its envi- ronment of broader, narrower, and related terms

Key Results

The evaluation focused on three metrics: coverage, diversity, and relations.

  1. Coverage: The ssoar.de model covered 82-88% of TheSoz keywords. While wiki.de was slightly higher, it required a massive vocabulary to get there. The other baseline, deepset.de, performed significantly worse (~60%), highlighting the inconsistency of general models.
  2. Relational Coverage: In almost all categories (broader, narrower, related, and alternative labels), the ssoar.de models outperformed the Wikipedia baselines, especially when looking at larger neighborhoods (top-200). For example, in the "altLabel" category at top-200, ssoar.500 hit 46.16% coverage compared to wiki.de's 40.65%.
Table 4: Relational coverage showing ssoar models generally outperforming baselines.

Limitations and Future Work

The authors acknowledge a few key areas for growth:

  • Model Architecture: This study focused on static embeddings (fastText). The authors plan to compare these results with contextual embeddings like BERT, which can handle words that have different meanings depending on their surroundings.
  • Algorithm Comparison: Future work will involve testing other classic algorithms like Word2Vec and GloVe to see if the domain-specific advantage holds across different mathematical approaches.
  • Language Focus: While they created an English model, the primary evaluation was conducted on the German models. Expanding the rigorous evaluation to the English social science domain is a logical next step.

Summary updated

Abstract

Word embeddings are an essential instrument in many NLP tasks. Most available resources are trained on general language from Web corpora or Wikipedia dumps. However, word embeddings for domain-specific language are rare, in particular for the social science domain. Therefore, in this work, we describe the creation and evaluation of word embedding models based on 37,604 open-access social science research papers. In the evaluation, we compare domain-specific and general language models for (i) language coverage, (ii) diversity, and (iii) semantic relationships. We found that the created domain-specific model, even with a relatively small vocabulary size, covers a large part of social science concepts, their neighborhoods are diverse in comparison to more general models. Across all relation types, we found a more extensive coverage of semantic relationships.
BibTeX
@inproceedings{schiffers2022evaluation,
  author = {Ricardo Schiffers and Dagmar Kern and Daniel Hienert},
  title = {{Evaluation of Word Embeddings for the Social Sciences}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2022},
}
Figure