Causal tracing systematically intervenes on a large language model's (LLM's) internal representations to uncover and quantify the causal pathways linking specific inputs or computations to specific metrics of interest, quantifying the LLM's behavior. Building on previous single-component or single-layer studies, this paper presents a unified framework for causally tracing multiple components simultaneously. This framework systematically identifies the subsets of components (e.g., attention heads and multi-layer perceptron neurons) most critical to a desired target performance metric (e.g., accuracy and fairness). This is achieved by incorporating flexible interventions applied to a wide range of desired metrics. To address the combinatorial complexity of the multi-component problem, an efficient algorithm is designed that leverages soft interventions and a carefully designed metric transformation, converting the combinatorial search problem into a continuous one that can be solved efficiently under proper constraints, thereby generating proper binary decisions for selecting components. Experimental results demonstrate that the proposed method efficiently identifies subsets of the model's components that have a high impact on the target metric, outperforming existing baseline approaches. Our code is available at https://github.com/ZiruiYan/multi-component-causal-tracing.
Where Animacy Lives in Large Language Models: Tracing the Circuits of the Animacy Concept
Graduate School of Informatics, University of Amsterdam(阿姆斯特丹大学信息学研究生院);Amsterdam University Medical Center(阿姆斯特丹大学医学中心);ILLC, University of Amsterdam(阿姆斯特丹大学逻辑、语言与计算研究所)
Tracing Pharmacological Knowledge In Large Language Models
School of Electrical and Computer Engineering(电气与计算机工程学院);Purdue University(普渡大学);Viterbi School of Engineering(维特比工程学院);University of Southern California(南加州大学);Stephen J. R. Smith Faculty of Engineering and Applied Science(工程与应用科学学院);Queen’s University(皇后大学);Department of Molecular and Cellular Biology(分子与细胞生物学系);Scripps Research(斯克里普斯研究学院)
Tracing Moral Foundations in Large Language Models
Department of Computer Science, University of Southern California(南加州大学计算机科学系);Department of Psychology, University of Southern California(南加州大学心理学系);Center for Computational Language Sciences, University of Southern California(南加州大学计算语言科学中心)
Tracing Multilingual Representations in LLMs with Cross-Layer Transcoders
Max Planck Institute for Intelligent Systems, Tübingen, Germany(马克斯·普朗克智能系统研究所);Mohammed VI Polytechnic University, Morocco(穆莱·伊斯梅尔polytechnic大学);University of Toronto, Canada(多伦多大学);Vector Institute, Canada(向量研究所);ELLIS Institute, Tübingen, Germany(ELLIS研究所)
METER: Evaluating Multi-Level Contextual Causal Reasoning in Large Language Models
College of Computer Science, Sichuan University(四川大学计算机学院);Institute of Data Science, National University of Singapore(新加坡国立大学数据科学研究所);Engineering Research Center of Machine Learning and Industry Intelligence, Ministry of Education, China(中国教育部机器学习与产业智能工程研究中心)
CoSToM:Causal-oriented Steering for Intrinsic Theory-of-Mind Alignment in Large Language Models
National Engineering Research Center for Big Data Technology and System, Services Computing Technology and System Lab, Cluster and Grid Computing Lab, Huazhong University of Science and Technology(华中科技大学国家大数据技术与系统工程技术研究中心、服务计算技术与系统实验室、集群与网格计算实验室);Singapore Management University(新加坡管理大学)
Expert-Aware Causal Tracing of Factual Recall in Sparse MoE Language Models
Center for Information and Language Processing (CIS)(信息与语言处理中心);Ubiquitous Knowledge Processing Lab (UKP)(无所不在的知识处理实验室);Munich Center for Machine Learning (MCML)(慕尼黑机器学习中心)
From Prediction to Application: Language Model-based Code Knowledge Tracing with Domain Adaptive Pre-Training and Automatic Feedback System with Pedagogical Prompting for Comprehensive Programming Education
Enuma Inc(Enuma公司);University of Memphis(孟菲斯大学);Daegu National University of Education(大邱教育大学);Seoul National University(首尔大学);Seoul Metropolitan Office of Education(首尔市教育厅);Korea University(高丽大学)
TimeROME-DLM: Temporal Causal Tracing and Low-Rank Inference-Time Knowledge Editing for Masked Diffusion Language Models
Shanghai Jiao Tong University(上海交通大学);Nanyang Technological University(南洋理工大学);National University of Singapore(新加坡国立大学);University of Science and Technology of China(中国科学技术大学)
Disentangling Knowledge States with Ability and Proficiency Modeling for Knowledge Tracing
School of the Information Management, Wuhan University(武汉大学信息管理学院);School of Computer Science and Artificial Intelligence, Hubei University of Technology(湖北工业大学计算机科学与人工智能学院);Faculty of Artificial Intelligence in Education, Central China Normal University(华中师范大学人工智能教育学部)
Causal Discovery with Latent Confounders Based on Higher-Order Cumulants
Guangdong University of Technology(广东工业大学);Peng Cheng Laboratory(鹏城实验室);Shantou University(汕头大学);Carnegie Mellon University(卡内基梅隆大学);Mohamed bin Zayed University of Artificial Intelligence(穆罕默德·本·扎耶德人工智能大学)