Discursive Circuits: How Do Language Models Understand Discourse Relations?
Yisong Miao, Min-Yen Kan
TL;DR
Discursive circuits identify sparse causal subgraphs in transformer models that underlie discourse understanding. The authors propose CuDR, a task that uses minimal counterfactual contrasts and activation patching to reveal these circuits across PDTB, RST, and SDRT. They show small circuits (about 0.2 percent of connections) faithfully reproduce full model behavior and generalize across frameworks, while revealing a hierarchical organization of discourse relations and links to linguistic features. The work provides a mechanistic, cross framework account of discourse processing and opens avenues to extend to multilingual data and other architectures.
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).
