One-to-X analogical reasoning on word embeddings: a case for diachronic armed conflict prediction from news texts

Andrey Kutuzov, Erik Velldal, Lilja Øvrelid

Introduction

Researchers from the University of Oslo have reimagined the classic "King is to Queen" word analogy task to handle real-world complexity. By moving from strict one-to-one analogies to a "one-to-X" framework—where an entity might have multiple relations or none at all—they successfully predicted participants in armed conflicts using news text embeddings. Their key innovation is a simple cosine distance threshold that significantly cuts down on "false positive" predictions for peaceful regions.

The Challenge of Real-World Analogies

In Natural Language Processing (NLP), word analogies (e.g., Man : Woman :: King : ?) are standard benchmarks for evaluating how well word embeddings capture semantic relationships. However, traditional benchmarks are "one-to-one" and "forced-choice": they assume there is exactly one correct answer and that an answer always exists.

Real-world relations are rarely that tidy. Consider the relationship location:insurgent-group. A country might have no active insurgent groups (one-to-none), one group (one-to-one), or several (one-to-many). Furthermore, these relationships change over time—a phenomenon known as diachronic shift. This research tackles the challenge of predicting these fluid, real-world relations by reformulating the analogy task to be more realistic and applying it to the high-stakes domain of historical armed conflict prediction.

Methodology: From One-to-One to One-to-X

The authors employ a supervised approach to "learn" the relationship between locations and insurgent groups through several key steps:

  1. Incremental Embedding Training: To ensure word vectors from different years are aligned and comparable, the team trained Continuous Bag-of-Words (CBOW) models incrementally, updating a model for year n with news data from year n+1.
  2. Linear Projection ($T$): They treated the analogy as a transformation. Using known "location:insurgent" pairs from a previous year, they solved a linear regression to find a transformation matrix $T$ that maps a country's vector to its insurgent group's vector.
  3. The One-to-X Prediction: To predict for a new year, they applied $T$ to a country's vector. Instead of just picking the single nearest neighbor, they considered the $k$ nearest neighbors as candidates.
  4. Cosine Thresholding: This is the paper's primary technical contribution. To handle "one-to-none" cases (peaceful countries), they calculated a "hypersphere" radius based on the average cosine distance of successful predictions in the training data. If a candidate's vector falls outside this radius, the model rejects it, effectively predicting "no insurgent group."
Visualization of the hypersphere thresholding method for predicting insurgent groups.

Datasets

The study utilizes two primary types of data:

  • Text Corpora: The English Gigaword corpus (1995–2010, ~4.8 billion words) and the News on Web (NOW) corpus (2010–2017, ~5.9 billion words).
  • Ground Truth Conflict Data: The UCDP/PRIO Armed Conflict Dataset, a gold-standard dataset containing manually annotated information on global conflicts, was used to create a new evaluation set for one-to-X analogies.

Key Results and Performance

The authors compared their "Threshold" approach against a "Baseline" that always predicts the top $k$ neighbors. The results demonstrate that semantic directions are stable enough to be projected into the future, provided the model can account for "none" cases.

Performance comparison between the Baseline and Threshold approaches on diachronic prediction tasks.
  • Diachronic Performance: On the NOW dataset, the Threshold approach improved the F1 score from 0.34 to 0.41. While recall dropped slightly, precision jumped significantly from 0.26 to 0.42.
  • Synchronic Performance: In a setup where the model was tested on data from the same year it was trained on, the Threshold approach was even more effective, raising the F1 score on Gigaword from 0.41 to 0.63.
  • Precision vs. Recall Trade-off: Using a threshold naturally decreases recall, but the dramatic increase in precision is vital for conflict monitoring, where "noise" and false alarms can lead to wasted resources.

Limitations and Future Work

While effective, the model struggles with data sparsity; entities appearing fewer than 25 times in a year are filtered out, meaning the model cannot predict very small or emerging conflicts. Additionally, the current approach assumes a linear relationship between entities. Future work may explore non-linear neural mapping functions and more sophisticated diachronic modeling techniques to treat time as a continuous variable rather than discrete annual increments.

Summary updated

BibTeX
@inproceedings{kutuzov2019one,
  author = {Andrey Kutuzov and Erik Velldal and Lilja Øvrelid},
  title = {{One-to-X analogical reasoning on word embeddings: a case for diachronic armed conflict prediction from news texts}},
  booktitle = {LChange @ ACL},
  year = {2019},
  doi = {10.18653/v1/w19-4724},
}
Figure