Skip to main navigation Skip to search Skip to main content

Towards Engineering Multi-Agent LLMs: A Protocol-Driven Approach

Zhenyu Mao, Jacky Keung, Fengji Zhang, Shuo Liu*, Yifei Wang, Jialong Li

*Corresponding author for this work

Research output: Chapters, Conference Papers, Creative and Literary WorksRGC 32 - Refereed conference paper (with host publication)peer-review

Abstract

The increasing demand for software development has driven interest in automating software engineering (SE) tasks using Large Language Models (LLMs). Recent efforts extend LLMs into multi-agent systems (MAS) that emulate collaborative development workflows, but these systems often fail due to three core deficiencies: under-specification, coordination misalignment, and inappropriate verification, arising from the absence of foundational SE structuring principles. This paper introduces Software Engineering Multi-Agent Protocol (SEMAP), a protocol-layer methodology that instantiates three core SE design principles for multi-agent LLMs: (1) explicit behavioral contract modeling, (2) structured messaging, and (3) lifecycle-guided execution with verification, and is implemented atop Google's Agent-to-Agent (A2A) infrastructure. Empirical evaluation using the Multi-Agent System Failure Taxonomy (MAST) framework demonstrates that SEMAP effectively reduces failures across different SE tasks. In code development, it achieves up to a 69.6% reduction in total failures for function-level development and 56.7% for deployment-level development. For vulnerability detection, SEMAP reduces failure counts by up to 47.4% on Python tasks and 28.2% on C/C++ tasks.

© 2025 IEEE
Original languageEnglish
Title of host publication2025 32nd Asia-Pacific Software Engineering Conference (APSEC)
PublisherIEEE
Pages897-901
ISBN (Electronic)979-8-3315-6653-1
ISBN (Print)979-8-3315-6654-8
DOIs
Publication statusPresented - 4 Dec 2025
Event32nd Asia-Pacific Software Engineering Conference (APSEC 2025) - Wynn Palace, Macau, China
Duration: 2 Dec 20255 Dec 2025
https://conf.researchr.org/home/apsec-2025

Publication series

NameAsia-Pacific Conference on Software Engineering
PublisherIEEE
ISSN (Print)1530-1362
ISSN (Electronic)2640-0715

Conference

Conference32nd Asia-Pacific Software Engineering Conference (APSEC 2025)
Abbreviated titleAPSEC 2025
PlaceChina
CityMacau
Period2/12/255/12/25
Internet address

Bibliographical note

Research Unit(s) information for this publication is provided by the author(s) concerned.

Research Keywords

  • Large Language Models
  • Multi-Agent Systems
  • AI Agent Protocols
  • Software Engineering
  • AI for SE

Fingerprint

Dive into the research topics of 'Towards Engineering Multi-Agent LLMs: A Protocol-Driven Approach'. Together they form a unique fingerprint.

Cite this