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

Data-Driven Detection of General Chiasmi Using Lexical and Semantic Features

Felix Schneider, Björn Barz, Phillip Brandes, S. M. Marshall, Joachim Denzler2021

Abstract

Felix Schneider, Björn Barz, Phillip Brandes, Sophie Marshall, Joachim Denzler. Proceedings of the 5th Joint SIGHUM Workshop on Computational Linguistics for Cultural Heritage, Social Sciences, Humanities and Literature.

2021.

Researchers have developed the first machine-learning approach to detect "general chiasmi"—rhetorical figures where concepts are inverted rather than just identical words. By combining Part-of-Speech (PoS) pattern matching with word embeddings, the team nearly doubled the precision of automated detection compared to previous state-of-the-art methods.

Introduction: The "X" Factor of Rhetoric

In literary studies and stylometry, identifying rhetorical devices helps scholars understand an author’s style, genre, or argumentative structure. One of the most striking devices is the chiasmus, a "cross-wise" arrangement of related terms (an A-B-B-A pattern).

Existing computational tools are mostly limited to a subset called antimetabole, where the words are identical (e.g., "One for all, all for one"). However, "general chiasmi" involve semantic or syntactic relationships rather than exact repetition. For example, in Friedrich Schiller’s Wallenstein, he writes: "Eng ist die Welt, und das Gehirn ist weit" (Narrow is the world, and the brain is wide). Here, "narrow/wide" and "world/brain" are related concepts, but not identical words.

Because these patterns are rare and conceptually fluid, they are incredibly difficult for traditional keyword-based algorithms to find without drowning the user in "false positives" (coincidental word orders that aren't actually rhetorical).

Methodology

The authors propose a two-step pipeline to tackle this challenge:

  1. Candidate Extraction: Instead of searching for repeating words (lemmas), the system searches for inversions of Part-of-Speech (PoS) tags. For example, it might look for a [Adjective-Noun-Noun-Adjective] sequence. This catches a much wider net of potential chiasmi but introduces massive amounts of noise.
  2. Filtering and Ranking: To separate the rhetorical wheat from the coincidental chaff, they use a Logistic Regression classifier trained on three types of features:
  3. Dubremetz Features (D): Standard metrics like the number of words between terms, punctuation marks, and grammatical dependencies.
  4. Lexical Features (L): Binary indicators of whether the words in the pattern are actually identical (to help identify antimetaboles).
  5. Embedding Features (E): This is the novel contribution. The system uses word embeddings (vector representations of words) to calculate the cosine similarity between the terms. This allows the model to "understand" that "narrow" and "wide" are semantically related even if they don't share a root word.

Datasets

The study utilized three primary sources:

  • Schiller Dramas: Four German plays manually annotated by the authors to identify 45 general chiasmi and 9 antimetaboles.
  • GerDraCor Corpus: A collection of 493 unannotated German texts used to test how well the model generalizes to unseen authors and styles.
  • Dubremetz & Nivre (2018) Dataset: An existing English-language benchmark used to compare the new method against previous state-of-the-art antimetabole detectors.

Key Results and Insights

The inclusion of semantic embedding features led to significant performance gains. Searching by PoS tags is essential for "general" chiasmi, but it creates a "needle in a haystack" problem; in their dataset, only 0.005% of PoS inversions were actually chiasmi.

Average Precision (AP) for various feature combinations across datasets. Note the significant improvement when combining Dubremetz (D) features with Embeddings (E).

As shown in Figure 1, on the Schiller dataset, the model improved Average Precision (AP) from 17% (baseline) to 28% when combining Dubremetz features with embeddings (DE or DLE). Interestingly, while lexical features (L) are great for antimetaboles, they actually decreased performance when looking for general chiasmi.

Number of true positives in the top-100 results for the Schiller and GerDraCor datasets, comparing the baseline (D method) with the full DLE model.

The model's generalization was tested on the GerDraCor corpus. When the model was asked to pick the 100 most likely chiasmi from this massive corpus of unseen texts, its precision (number of true positives) jumped from 13 to 35 (Figure 2). This proves that the semantic features capture a universal rhetorical "shape" rather than just specific vocabulary.

Discussion and Future Work

While 35% precision is a massive leap for automated tools, it still falls short of human-level performance. The rarity of the device makes it a very difficult "class imbalance" problem for machine learning. Common pitfalls include parallelism (an A-B-A-B pattern), which looks syntactically similar to a chiasmus but lacks the inversion.

The authors suggest that the next step is testing the model on other languages without retraining to see if rhetorical structures are truly cross-linguistic. Furthermore, they believe this methodology (PoS inversion + embeddings) could be adapted to find other complex rhetorical figures, such as parallelism.

Summary updated

BibTeX
@misc{schneider2021data,
  author = {Felix Schneider and Björn Barz and Phillip Brandes and S. M. Marshall and Joachim Denzler},
  title = {{Data-Driven Detection of General Chiasmi Using Lexical and Semantic Features}},
  year = {2021},
  doi = {10.18653/v1/2021.latechclfl-1.11},
}
Figure