话语回路:语言模型如何理解话语关系?
Discursive Circuits: How Do Language Models Understand Discourse Relations?
AI总结:
研究通过引入CuDR任务和构建最小对比对语料库,发现Transformer模型中约占0.2%的稀疏回路(discursive circuits)能恢复并泛化话语理解能力,且模型不同层分工处理语言学特征与话语级抽象。
摘要:
Transformer语言模型中的哪些组件负责话语理解?我们假设稀疏的计算图(称为discursive circuits)控制模型处理话语关系的方式。与较简单的任务不同,话语关系涉及更长的跨度和复杂的推理。为了使回路发现变得可行,我们引入了一项名为“话语关系下补全”(Completion under Discourse Relation, CuDR)的任务,模型在给定特定关系的情况下补全话语。为了支持该任务,我们构建了一个语料库,包含为回路发现中的激活修补(activation patching)量身定制的最小对比对。实验表明,稀疏回路(约占完整GPT-2模型的0.2%)在基于英语PDTB的CuDR任务中恢复了话语理解能力。这些回路能很好地泛化到未见的话语框架,如RST和SDRT。进一步分析表明,较低层捕获词汇语义和共指等语言学特征,而较高层编码话语级别的抽象。特征效用在不同框架间保持一致(例如,共指支持Expansion类关系)。
英文摘要:
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).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。