Reasoning Circuits in Language Models: A Mechanistic Interpretation of Syllogistic Inference
Reasoning Circuits in Language Models: A Mechanistic Interpretation of Syllogistic Inference
Recent studies on reasoning in language models (LMs) have sparked a debate on whether they can learn systematic inferential principles or merely exploit superficial patterns in the training data. To understand and uncover the mechanisms adopted for formal reasoning in LMs, this paper presents a mechanistic interpretation of syllogistic inference. Specifically, we present a methodology for circuit discovery aimed at interpreting content-independent and formal reasoning mechanisms. Through two distinct intervention methods, we uncover a sufficient and necessary circuit involving middle-term suppression that elucidates how LMs transfer information to derive valid conclusions from premises. Furthermore, we investigate how belief biases manifest in syllogistic inference, finding evidence of partial contamination from additional attention heads responsible for encoding commonsense and contextualized knowledge. Finally, we explore the generalization of the discovered mechanisms across various syllogistic schemes, model sizes and architectures. The identified circuit is sufficient and necessary for syllogistic schemes on which the models achieve high accuracy (>60%), with compatible activation patterns across models of different families. Overall, our findings suggest that LMs learn transferable content-independent reasoning mechanisms, but that, at the same time, such mechanisms do not involve generalizable and abstract logical primitives, being susceptible to contamination by the same world knowledge acquired during pre-training.
Geonhee Kim、Marco Valentino、Andr?? Freitas
信息科学、信息技术计算技术、计算机技术
Geonhee Kim,Marco Valentino,Andr?? Freitas.Reasoning Circuits in Language Models: A Mechanistic Interpretation of Syllogistic Inference[EB/OL].(2025-06-21)[2025-07-03].https://arxiv.org/abs/2408.08590.点此复制
评论