An Empirical Comparison of Multi-Agent LLM Architectural Patterns for Automated Unit Test Generation

dc.contributor.authorAgha, Mohammed
dc.contributor.authorMiqdad, Ayah
dc.contributor.departmentChalmers tekniska högskola / Institutionen för data och informationstekniksv
dc.contributor.departmentChalmers University of Technology / Department of Computer Science and Engineeringen
dc.contributor.examinerBerger, Christian
dc.contributor.supervisorFeldt, Robert
dc.date.accessioned2026-07-03T11:14:08Z
dc.date.issued2026
dc.date.submitted
dc.description.abstractSoftware engineers are increasingly adopting multi-agent large language model (LLM) systems, yet the controlled empirical evidence comparing the underlying architectural patterns’ trade offs on software engineering tasks is still lacking. This thesis applies a two phase mixed-methods design. The first phase conducts a structured review of 31 articles published between 2023 and 2026, resulting in a taxonomy of 10 coordination patterns for multi-agent LLM systems. In the second phase, an empirical experiment comparing three patterns a Single-Agent Baseline, a Sequential architecture, and a Hierarchical architecture is carried out on automated unit test generation using the TestEval benchmark. Five dependent variables are evaluated (success rate, error handling, latency, cost, and agent communication turns) running each architecture independently on 30 tasks, all using Claude Sonnet 4, for 270 task executions in total. The Sequential pattern recorded the highest success rate (92.2%), the lowest latency variance (295.56 s2), and a competitive cost (0.089 USD per task). The Single-Agent Baseline reached a moderate success rate (81.1%) at the lowest cost (0.083 USD per task), while the Hierarchical pattern recorded the lowest success rate (54.4%), the highest median latency (142.37 s), and the highest mean cost (0.308 USD per task). The hierarchical pattern suffered from supervisor information bottleneck according to the qualitative results confirmed by 100% of the failing tasks of the architecture. These results come from a single LLM, a single benchmark, and non-optimized prompts per architecture, which means replication is needed before these findings are treated as general architectural principles.
dc.identifier.urihttps://hdl.handle.net/20.500.12380/311836
dc.setspec.uppsokTechnology
dc.subjectLLMs, Multi-agent AI systems, Software unit test generation, Architec ture patterns in multi-agent systems, Agentic AI.
dc.titleAn Empirical Comparison of Multi-Agent LLM Architectural Patterns for Automated Unit Test Generation
dc.type.degreeExamensarbete för masterexamensv
dc.type.degreeMaster's Thesisen
dc.type.uppsokH
local.programmeSoftware engineering and technology (MPSOF), MSc

Ladda ner

Original bundle

Visar 1 - 1 av 1
Hämtar...
Bild (thumbnail)
Namn:
CSE 26-110 MA AM.pdf
Size:
3.07 MB
Format:
Adobe Portable Document Format

License bundle

Visar 1 - 1 av 1
Hämtar...
Bild (thumbnail)
Namn:
license.txt
Size:
2.35 KB
Format:
Item-specific license agreed upon to submission
Description: