Discursive Circuits: How Do Language Models Understand Discourse Relations?

Yisong Miao, Min-Yen Kan
10/13/2025
cs.CLcs.LG

No official code found. Best implementation: YisongMiao/Discursive-Circuits (14 stars, last commit 2025-11-13).

Abstract

Which components in transformer language models are responsible for discourse understanding? We hypothesize that sparse computational graphs, termed as discursive circuits, control how models process discourse relations. Unlike simpler tasks, discourse relations involve longer spans and complex reasoning. To make circuit discovery feasible, we introduce a task called Completion under Discourse Relation (CuDR), where a model completes a discourse given a specified relation. To support this task, we construct a corpus of minimal contrastive pairs tailored for activation patching in circuit discovery. Experiments show that sparse circuits ($\approx 0.2\%$ of a full GPT-2 model) recover discourse understanding in the English PDTB-based CuDR task. These circuits generalize well to unseen discourse frameworks such as RST and SDRT. Further analysis shows lower layers capture linguistic features such as lexical semantics and coreference, while upper layers encode discourse-level abstractions. Feature utility is consistent across frameworks (e.g., coreference supports Expansion-like relations).

View on arXivView PDF

Code Implementations(1)

The Dataset and Official Implementation for <Discursive Circuits: How Do Language Models Understand Discourse Relations?> @ EMNLP 2025

144PythonAug 27, 202511 months ago
discoursediscourse-relationmechanistic-interpretabilitytransformer-circuits

Similar Papers

Cite this paper

@article{miao2025discursive,
  title  = {Discursive Circuits: How Do Language Models Understand Discourse Relations?},
  author = {Yisong Miao and Min-Yen Kan},
  year   = {2025},
  eprint = {2510.11210},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.11210v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2510.11210.svg)](https://codeofpaper.com/paper/2510.11210)

Discussion