When Do Discourse Markers Affect Computational Sentence Understanding?

Ruiqi Li, Liesbeth Allein, Damien Sileo, Marie-Francine MoensarXiv 2023 · DOI

Introduction

Discourse markers—connectives such as because, however, and and—serve as the "linguistic glue" of human communication. They allow us to navigate complex logical relationships between clauses with minimal effort. However, as Natural Language Processing (NLP) models increasingly rely on sophisticated mathematical representations of language, a critical question arises: do these models truly grasp the discourse structure, or are they merely exploiting superficial cues?

This study investigates nine popular NLP systems to determine how they handle discourse markers across various tasks, revealing a complex relationship between model sophistication and logical fragility.

Experimental Framework

The researchers categorized nine models into two primary groups based on their architectural approach to sequence:

  • Word-Order Invariant (WO-invariant): Simple models like Bag-of-Words (BOW), SIF, and p-mean that treat sentences as unordered collections of tokens.
  • Word-Order Aware (WO-aware): Advanced models such as BERT, SkipThoughts, InferSent, and the Universal Sentence Encoder that process context and sequence.

These models were evaluated using a pipeline that transforms input text into sentence embeddings for downstream classification tasks.

The general pipeline for sentiment classification, moving from input text to token embeddings, a composition model, and finally a classifier output.

A fundamental aspect of this understanding is the transition from discrete categorical representations to continuous embeddings. While categorical one-hot encodings treat words as isolated entities, continuous representations allow models to capture semantic proximity, which is essential for identifying the functional roles of discourse markers.

Comparison of categorical (one-hot) and continuous (embedding) word representations for tokens like "lioness", "zebra", and the discourse marker "because".

Methodology and Datasets

The evaluation spanned three core tasks: Sentiment Classification (e.g., SST2, OSCAR), Paraphrase Detection (MRPC, PAWS), and a novel Coordination Inversion (CoordInv) task designed to detect nonsensical clause swaps (e.g., "I am sick because I go to the doctor").

To probe model robustness, the researchers employed perturbation analysis:

  1. Omission: Replacing a connective with a [MASK] token.
  2. Switching: Replacing a logical connective with an incorrect one (e.g., changing because to but).

Key Insights

The "Richer Knowledge" Paradox

The most significant finding of the study is that WO-aware models, despite their superior general performance, are more fragile than their simpler counterparts. Because these models "expect" specific logical structures, a "connective switch" causes a massive drop in accuracy. Ironically, the more a model understands about the role of a connective, the more its performance crashes when that connective is used incorrectly.

Adversative Markers: The "Boss Fight"

Markers signaling contrast, such as however or although, proved the most difficult for models to process. In sentiment analysis, omitting an adversative marker often leads to catastrophic failure, as these words frequently signal a flip in the entire meaning of a sentence.

AI vs. Human Complexity

Human language acquisition typically follows a complexity order (e.g., learning and before although). For AI, this order is often inverted. While "sequential" markers (then, after) were handled easily, "additive" relations (and) were surprisingly difficult for models in paraphrase and coordination tasks.

Results

  • WO-Aware Dominance: Models respecting word order achieved a 24% lower error rate on average when processing discourse-heavy sentences compared to bag-of-words models.
  • Impact of Omission: Removing a connective led to a statistically significant increase in error rates ($p < 10^{-6}$), confirming that models productively use these markers to calculate meaning.
  • Sensitivity to Logic: Switching because to but caused the highest error rate increase, demonstrating that models are sensitive to specific logical relationships rather than just the presence of a marker.

Conclusion

While modern NLP models have made strides in utilizing discourse markers as signposts for meaning, they remain rigid compared to human readers. Humans can use world knowledge to infer logic even when a connective is missing; AI models, conversely, treat these markers as essential superficial cues. Future research must focus on developing models with robust internal logic that can survive the absence or misuse of explicit discourse markers.

Summary updated

BibTeX
@misc{li2023when,
  author = {Ruiqi Li and Liesbeth Allein and Damien Sileo and Marie-Francine Moens},
  title = {{When Do Discourse Markers Affect Computational Sentence Understanding?}},
  year = {2023},
  eprint = {2309.00368},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2309.00368},
}
Figure