[Paper Review] Can We Trust AI Agents? A Case Study of an LLM-Based Multi-Agent System for Ethical AI
This study proposes LLM-BMAS, a multi-agent system using specialized roles, structured debate, and iterative refinement to enhance trustworthiness in LLM-based ethical AI development. It demonstrates that this approach generates ~2,000 lines of functional, ethically aligned code and documentation per run—significantly outperforming an ablation variant producing only ~80 lines—while addressing key ethical concerns like bias detection, GDPR compliance, and EU AI Act alignment.
AI-based systems, including Large Language Models (LLM), impact millions by supporting diverse tasks but face issues like misinformation, bias, and misuse. AI ethics is crucial as new technologies and concerns emerge, but objective, practical guidance remains debated. This study examines the use of LLMs for AI ethics in practice, assessing how LLM trustworthiness-enhancing techniques affect software development in this context. Using the Design Science Research (DSR) method, we identify techniques for LLM trustworthiness: multi-agents, distinct roles, structured communication, and multiple rounds of debate. We design a multi-agent prototype LLM-MAS, where agents engage in structured discussions on real-world AI ethics issues from the AI Incident Database. We evaluate the prototype across three case scenarios using thematic analysis, hierarchical clustering, comparative (baseline) studies, and running source code. The system generates approximately 2,000 lines of code per case, compared to only 80 lines in baseline trials. Discussions reveal terms like bias detection, transparency, accountability, user consent, GDPR compliance, fairness evaluation, and EU AI Act compliance, showing this prototype ability to generate extensive source code and documentation addressing often overlooked AI ethics issues. However, practical challenges in source code integration and dependency management may limit its use by practitioners.
Motivation & Objective
- To address the critical gap in practical, operational guidance for implementing AI ethics in software development.
- To investigate whether trustworthiness-enhancing techniques in LLMs can improve the development of ethically aligned AI systems.
- To evaluate the effectiveness of multi-agent systems in generating comprehensive, functional, and ethically sound AI software.
- To identify and validate techniques that enhance the reliability and trustworthiness of LLM-based software engineering (LLM4SE).
Proposed method
- Employed Design Science Research (DSR) methodology to design, implement, and evaluate a prototype multi-agent system.
- Designed LLM-BMAS with specialized agents assigned distinct roles (e.g., ethicist, developer, legal expert) to simulate structured ethical deliberation.
- Implemented multi-round debate mechanisms to iteratively refine ethical AI system designs and outputs.
- Used structured communication protocols to ensure coherence and traceability in agent interactions.
- Evaluated outputs via thematic analysis (LLM-driven), hierarchical clustering, ablation studies, and source code execution.
- Generated and tested source code for functionality, correctness, and ethical compliance (e.g., GDPR, EU AI Act).

Experimental results
Research questions
- RQ1To what extent do trustworthiness-enhancing techniques in LLMs contribute to the development of ethically aligned AI-based systems?
- RQ2How does a multi-agent system with specialized roles and structured debate improve the quality and ethical robustness of LLM-generated AI software?
- RQ3What is the comparative output volume and quality of ethical AI code and documentation between the full LLM-BMAS prototype and its ablated variant?
- RQ4To what extent do LLM-generated outputs address real-world ethical AI concerns such as bias detection, transparency, and legal compliance?
Key findings
- LLM-BMAS generated approximately 2,000 lines of text per run, including source code and documentation, for each real-world AI incident case study.
- The ablation study—without multi-agent structure, roles, or debate—produced only around 80 lines of output, indicating a significant drop in completeness and ethical coverage.
- Thematic analysis identified key ethical themes such as bias detection, transparency, accountability, user consent, GDPR compliance, and EU AI Act alignment.
- Hierarchical clustering confirmed the presence of ethical functions like 'evaluate_bias' and 'bias_score', demonstrating code-level integration of ethical concerns.
- Source code execution confirmed functional correctness, though integration challenges persisted due to dependency management and code extraction from text.
- The prototype demonstrated strong potential for generating ethically aligned, legally compliant, and technically functional AI systems using only the LLM’s internal knowledge.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.