Proceedings

Mitigating Collaboration Degeneration in Multi-Agent Code Generation via a Controllable Competitive Collaboration Approach

Download BibTeX Cite

Proceedings of the Thirty-Fifth International Joint Conference on Artificial Intelligence. Main Track. Pages 127-135.

https://doi.org/10.24963/ijcai.2026/15

Abstract

Empowered by large language models (LLMs), multi-agent systems (MAS) have shown significant potential in code generation by simulating collaborative workflows. However, we identify a collaboration degeneration phenomenon, where one agent dominates while others remain disengaged, occurring in 38.4% of non-routine HumanEval tasks. Surprisingly, introducing competition among LLM agents eliminates this degeneration and sparks innovation in generated code. Inspired by this catfish effect, we posit that competition helps prevent collaboration degeneration. We thus propose C3, a Controllable Competitive Collaboration framework featuring two novel mechanisms: Centralized Auction-Based Competition (CAB) for role allocation via bidding and

Decentralized Communication-Aware Competition (DCC) for solution refinement through opponent-aware adaptation.

Evaluated on 70 complex projects from extended SoftwareDev, C3 reduces collaboration degeneration from 32.4% to 12.8%, while enhancing code innovation and diversity. Human evaluations further confirm C3’s superiority in functionality, maintainability, and robustness over purely collaborative or competitive baselines.

  1. [Bi et al., 2024] Zhangqian Bi, Yao Wan, Zheng Wang, Hongyu Zhang, Batu Guan, Fangxin Lu, Zili Zhang, Yulei Sui, Hai Jin, and Xuanhua Shi. Iterative refinement of project-level code context for precise code generation with compiler feedback. arXiv preprint arXiv:2403.16792, 2024.
  2. [Chen et al., 2021] Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Ponde De Oliveira Pinto, Jared Kaplan, Harri Edwards, Yuri Burda, Nicholas Joseph, Greg Brockman, et al. Evaluating large language models trained on code. arXiv preprint arXiv:2107.03374, 2021.
  3. [Clarke, 1971] Edward H. Clarke. Multipart pricing of pub- lic goods. Public Choice, 11(1):17-33, 1971.
  4. [Dong et al., 2024] Yihong Dong, Xue Jiang, Zhi Jin, and Ge Li. Self-collaboration code generation via chatgpt. ACM Transactions on Software Engineering and Method- ology, 33(7):1-38, 2024.
  5. [Dütting et al., 2019] Paul Dütting, Zhe Feng, Harikrishna Narasimhan, David C. Parkes, and Sai S. Ravindranath. Optimal auctions through deep learning. In Proceedings of the 36th International Conference on Machine Learn- ing (ICML), 2019.
  6. [Gemp et al., 2022] Ian Gemp, Thomas Anthony, Janos Kramár, Tom Eccles, Andrea Tacchetti, and Yoram Bachrach. Designing all-pay auctions using deep learning and multi-agent simulation. Scientific Reports, 12:16937, 2022.
  7. [Geng et al., 2024] Mingyang Geng, Shangwen Wang, Dezun Dong, Haotian Wang, Ge Li, Zhi Jin, Xiaoguang Mao, and Xiangke Liao. Large language models are few- shot summarizers: Multi-intent comment generation via in-context learning. In Proceedings of the 46th IEEE/ACM International Conference on Software Engineering, pages 1-13, 2024.
  8. [Geng et al., 2026] Mingyang Geng, Shanzhi Gu, Zhipeng Liu, Chuanfu Xu, Zhaoyang Qu, and Haotian Wang. Failure localization in multi-agent code generation via knowledge-guided and transferable reasoning. In Proceed- ings of the AAAI Conference on Artificial Intelligence, vol- ume 40, pages 318-326, 2026.
  9. [Gu, 2023] Qiuhan Gu. Llm-based code generation method for golang compiler testing. In Proceedings of the 31st ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineer- ing, pages 2201-2203, 2023.
  10. [Hong et al., 2023] Sirui Hong, Xiawu Zheng, Jonathan Chen, Yuheng Cheng, Jinlin Wang, Ceyao Zhang, Zili Wang, Steven Ka Shing Yau, Zijuan Lin, Liyang Zhou, et al. Metagpt: Meta programming for multi-agent col- laborative framework. arXiv preprint arXiv:2308.00352, 3(4):6, 2023.
  11. [Huang et al., 2023] Dong Huang, Jie M. Zhang, Michael Luck, Qingwen Bu, Yuhao Qing, and Heming Cui. Agent- coder: Multi-agent code generation with effective testing and self-optimization. arXiv preprint arXiv:2312.13010, 2023.
  12. [Ishibashi and Nishimura, 2024] Yoichi Ishibashi and Yoshi- masa Nishimura. Self-organized agents: A llm multi-agent framework toward ultra large-scale code generation and optimization. arXiv preprint arXiv:2404.02183, 2024.
  13. [Islam et al., 2024] Md Ashraful Islam, Mohammed Eunus Ali, and Md Rizwan Parvez. Mapcoder: Multi-agent code generation for competitive problem solving. arXiv preprint arXiv:2405.11403, 2024.
  14. [Islam et al., 2025] Md. Ashraful Islam, Mohammed Eunus Ali, and Md. Rizwan Parvez. Codesim: Multi-agent code generation and problem solving through simulation-driven planning and debugging. In Findings of the North Amer- ican Chapter of the Association for Computational Lin- guistics (NAACL), 2025.
  15. [Janis, 1972] Irving L Janis. Victims of groupthink: A psy- chological study of foreign-policy decisions and fiascoes. Houghton Mifflin, 1972.
  16. [Jiang et al., 2024] Xue Jiang, Yihong Dong, Lecheng Wang, Zheng Fang, Qiwei Shang, Ge Li, Zhi Jin, and Wenpin Jiao. Self-planning code generation with large language models. ACM Transactions on Software Engi- neering and Methodology, 33(7):1-30, 2024.
  17. [Li et al., 2024] Jia Li, Yunfei Zhao, Yongmin Li, Ge Li, and Zhi Jin. Acecoder: An effective prompting technique spe- cialized in code generation. ACM Transactions on Soft- ware Engineering and Methodology, 33(8):1-26, 2024.
  18. [Lowe et al., 2017] Ryan Lowe, Yi Wu, Aviv Tamar, Jean Harb, Pieter Abbeel, and Igor Mordatch. Multi-agent actor-critic for mixed cooperative-competitive environ- ments. In Advances in Neural Information Processing Sys- tems 30 (NIPS 2017), 2017.
  19. [Mahmud et al., 2025] Tarek Mahmud, Bin Duan, Corina Pasareanu, and Guowei Yang. Enhancing llm code gen- eration with ensembles: A similarity-based selection ap- proach. arXiv preprint arXiv:2503.15838, 2025.
  20. [Milgrom and Weber, 1982] Paul R. Milgrom and Robert J. Weber. A theory of auctions and competitive bidding. Econometrica, 50(5):1089-1122, 1982.
  21. [Mosca et al., 2022] Edoardo Mosca, Ferenc Szigeti, Stella Tragianni, Daniel Gallagher, and Georg Groh. Shap-based explanation methods: a review for nlp interpretability. In Proceedings of the 29th international conference on com- putational linguistics, pages 4593-4603, 2022.
  22. [Myerson, 1981] Roger B. Myerson. Optimal auction de- sign. Mathematics of Operations Research, 6(1):58-73, 1981.
  23. [Nash, 1950] John F. Nash. Equilibrium points in n-person games. Proceedings of the National Academy of Sciences, 36(1):48-49, 1950.
  24. [Nash, 1951] John F. Nash. Non-cooperative games. Annals of Mathematics, 54(2):286-295, 1951.
  25. [Nunez et al., 2024] Ana Nunez, Nafis Tanveer Islam, Sumit Kumar Jha, and Peyman Najafirad. Autosafecoder: A multi-agent framework for securing llm code generation through static analysis and fuzz testing. arXiv preprint arXiv:2409.10737, 2024.
  26. [Perez et al., 2020] Ivan Perez, Frank Dedden, and Alwyn Goodloe. Copilot 3. Technical report, National Aeronau- tics and Space Administration, 2020.
  27. [Qian et al., 2023] Chen Qian, Wei Liu, Hongzhang Liu, Nuo Chen, Yufan Dang, Jiahao Li, Cheng Yang, Weize Chen, Yusheng Su, Xin Cong, et al. Chatdev: Commu- nicative agents for software development. arXiv preprint arXiv:2307.07924, 2023.
  28. [Riccobono et al., 2016] Francesca Riccobono, Manfredi Bruccoleri, and Andreas Größler. Groupthink and project performance: The influence of personal traits and inter- personal ties. Production and Operations Management, 25(4):609-629, 2016.
  29. [Seo et al., 2025] Minju Seo, Jinheon Baek, Seongyun Lee, and Sung Ju Hwang. Paper2code: Automating code gen- eration from scientific papers in machine learning. arXiv preprint arXiv:2504.17192, 2025.
  30. [Shoham and Leyton-Brown, 2008] Yoav Shoham and Kevin Leyton-Brown. Multiagent systems: Algorithmic, game-theoretic, and logical foundations. Cambridge University Press, 2008.
  31. [Taylor, 1919] Frederick Winslow Taylor. The principles of scientific management. Harper & brothers, 1919.
  32. [Vergopoulos et al., 2025] Konstantinos Vergopoulos, Mark Niklas Müller, and Martin Vechev. Automated benchmark generation for repository-level coding tasks. arXiv preprint arXiv:2503.07701, 2025.
  33. [Vickrey, 1961] William Vickrey. Counterspeculation, auc- tions, and competitive sealed tenders. Journal of Finance, 16(1):8-37, 1961.
  34. [von Neumann and Morgenstern, 1944] John von Neumann and Oskar Morgenstern. Theory of Games and Economic Behavior. Princeton University Press, 1st edition, 1944.
  35. [Wang et al., 2022] Haotian Wang, Wenjing Yang, Longqi Yang, Anpeng Wu, Liyang Xu, Jing Ren, Fei Wu, and Kun Kuang. Estimating individualized causal effect with confounded instruments. In Proceedings of the 28th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, pages 1857-1867, 2022.
  36. [Wang et al., 2023a] Haotian Wang, Kun Kuang, Long Lan, Zige Wang, Wanrong Huang, Fei Wu, and Wenjing Yang. Out-of-distribution generalization with causal feature sep- aration. IEEE Transactions on Knowledge and Data Engi- neering, 36(4):1758-1772, 2023.
  37. [Wang et al., 2023b] Shangwen Wang, Mingyang Geng, Bo Lin, Zhensu Sun, Ming Wen, Yepang Liu, Li Li, Tegawendé F Bissyandé, and Xiaoguang Mao. Natural language to code: How far are we? In Proceedings of the 31st ACM joint European software engineering con- ference and symposium on the foundations of software en- gineering, pages 375-387, 2023.
  38. [Wang et al., 2025] Haotian Wang, Haoxuan Li, Hao Zou, Haoang Chi, Long Lan, Wanrong Huang, and Wenjing Yang. Effective and efficient time-varying counterfac- tual prediction with state-space models. In The Thir- teenth International Conference on Learning Representa- tions, 2025.
  39. [Wei et al., 2023] Yuxiang Wei, Zhe Wang, Jiawei Liu, Yifeng Ding, and Lingming Zhang. Magicoder: Empow- ering code generation with oss-instruct. arXiv preprint arXiv:2312.02120, 2023.
  40. [Wei et al., 2024] Yuxiang Wei, Federico Cassano, Jiawei Liu, Yifeng Ding, Naman Jain, Zachary Mueller, Harm de Vries, Leandro Von Werra, Arjun Guha, and Lingming Zhang. Selfcodealign: Self-alignment for code generation. arXiv preprint arXiv:2410.24198, 2024.
  41. [Wu et al., 2023] Qingyun Wu, Gagan Bansal, Jieyu Zhang, Yiran Wu, Beibin Li, Erkang Zhu, Li Jiang, Xiaoyun Zhang, Shaokun Zhang, Jiale Liu, et al. Autogen: En- abling next-gen llm applications via multi-agent conversa- tion. arXiv preprint arXiv:2308.08155, 2023.
  42. [Wu et al., 2024] Qinyun Wu, Chao Peng, Pengfei Gao, Ruida Hu, Haoyu Gan, Bo Jiang, Jinhe Tang, Zhiwen Deng, Zhanming Guan, Cuiyun Gao, et al. Repomas- tereval: Evaluating code completion via real-world repos- itories. arXiv preprint arXiv:2408.03519, 2024.
  43. [Zamfirescu-Pereira et al., 2025] JD Zamfirescu-Pereira, Eunice Jun, Michael Terry, Qian Yang, and Björn Hartmann. Beyond code generation: Llm-supported exploration of the program design space. In Proceedings of the 2025 CHI Conference on Human Factors in Computing Systems, pages 1-17, 2025.
  44. [Zhang et al., 2024a] Huan Zhang, Wei Cheng, Yuhan Wu, and Wei Hu. A pair programming framework for code generation via multi-plan exploration and feedback-driven refinement. In Proceedings of the 39th IEEE/ACM Inter- national Conference on Automated Software Engineering, pages 1319-1331, 2024.
  45. [Zhang et al., 2024b] Jiayi Zhang, Jinyu Xiang, Zhaoyang Yu, Fengwei Teng, Xionghui Chen, Jiaqi Chen, Mingchen Zhuge, Xin Cheng, Sirui Hong, Jinlin Wang, et al. Aflow: Automating agentic workflow generation. arXiv preprint arXiv:2410.10762, 2024.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards