CAM: A Causality-based Analysis Framework for Multi-Agent Code Generation Systems
Zongyi Lyu, Zhenlan Ji, Songqiang Chen, Liwen Wang, Yuheng Huang, Shuai Wang, and Shing-Chi Cheung

TL;DR
This paper introduces CAM, a causality-based analysis framework for multi-agent code generation systems, which identifies key intermediate features affecting correctness and guides optimization and design improvements.
Contribution
CAM is the first framework to systematically quantify the contribution of intermediate features in MACGS, enabling targeted optimization and revealing new insights into system behavior.
Findings
Context-dependent features influence system correctness.
Hybrid backend MACGS improves performance by up to 7.2%.
Feature pruning reduces token consumption by 66.8%.
Abstract
Despite the remarkable success that Multi-Agent Code Generation Systems (MACGS) have achieved, the inherent complexity of multi-agent architectures produces substantial volumes of intermediate outputs. To date, the individual importance of these intermediate outputs to the system correctness remains opaque, which impedes targeted optimization of MACGS designs. To address this challenge, we propose CAM, the first \textbf{C}ausality-based \textbf{A}nalysis framework for \textbf{M}ACGS that systematically quantifies the contribution of different intermediate features for system correctness. By comprehensively categorizing intermediate outputs and systematically simulating realistic errors on intermediate features, we identify the important features for system correctness and aggregate their importance rankings. We conduct extensive empirical analysis on the identified importance…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Engineering Research · Software Testing and Debugging Techniques · Advanced Software Engineering Methodologies
