← Latest papers
🤖 AI

Can We Trust AI Agents? A Case Study of an LLM-Based Multi-Agent System for Ethical AI

This study employs Design Science Research to develop and evaluate LLM-MAS, a multi-agent system that enhances AI ethics through structured debate and role specialization, demonstrating its ability to generate extensive, compliance-focused code and documentation while highlighting practical integration challenges.

Original authors: José Antonio Siqueira de Cerqueira, Mamia Agbese, Rebekah Rousi, Nannan Xi, Juho Hamari, Pekka Abrahamsson

Published 2026-08-21
📖 5 min read🧠 Deep dive

Original authors: José Antonio Siqueira de Cerqueira, Mamia Agbese, Rebekah Rousi, Nannan Xi, Juho Hamari, Pekka Abrahamsson

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

In the modern world, artificial intelligence has moved from the realm of science fiction into the machinery of daily life, shaping everything from job applications to medical diagnoses. These systems, often powered by large language models, are essentially advanced computer programs trained on vast libraries of human text. They can write stories, solve problems, and generate code, acting as powerful assistants to engineers and researchers. However, this rapid rise brings a significant shadow: the risk that these tools might produce biased, unfair, or unethical results. While many guidelines exist to tell developers how to build ethical systems, these rules often remain abstract, leaving practitioners without clear, practical steps to follow. The central question for the field is no longer just whether machines can think, but whether we can trust them to think correctly, especially when the stakes involve human rights and legal compliance.

A team of researchers from universities in Finland set out to test a specific solution to this problem. They wanted to see if they could make artificial intelligence more trustworthy by changing how it works, rather than just telling it what to do. Instead of relying on a single computer program to handle a complex task, they built a prototype system where multiple artificial intelligence agents work together. Imagine a small team of specialists, each with a different job, sitting around a table to solve a problem. In this digital version, one agent acts as a senior software developer, another as a second developer, and a third as an AI ethics expert. These agents do not just give a quick answer; they engage in a structured, multi-step conversation. They discuss the task, write code, critique each other's work, and debate ethical concerns over several rounds before finalizing their output. The researchers designed this system to see if this collaborative, debate-driven approach could produce software that is not only functional but also deeply aligned with ethical principles and laws.

To test their idea, the researchers applied this multi-agent system to three real-world scenarios drawn from a database of actual AI failures. The first scenario involved a hiring tool that had unfairly discriminated against female applicants. The second dealt with a system needed to detect fake news and deepfakes targeting specific groups. The third focused on an image classification system that had mistakenly labeled photos of Black people as gorillas. For each scenario, the team gave the three agents a description of the problem and asked them to build a solution. They then compared the results of this team-based approach against a standard setup where a single artificial intelligence model was asked to solve the same problems without the help of a team or a debate process.

The difference in the output was striking. When the single model worked alone, it produced a brief response of about eighty lines of text, offering general ideas but no actual working software. In contrast, the team of agents generated approximately two thousand lines of text for each case. This massive output included detailed documentation and thousands of lines of actual computer code designed to implement the ethical safeguards. The code included specific functions to detect bias, ensure transparency, and check for compliance with regulations like the European Union's AI Act and data privacy laws. When the researchers analyzed the content, they found that the team-based system consistently brought up critical ethical themes such as fairness, user consent, and accountability, weaving these concepts directly into the technical instructions and the code itself. The single model, by comparison, largely missed these nuances.

However, the study also revealed that trustworthiness does not automatically mean perfect usability. While the team of agents produced far more comprehensive and ethically aware code, the researchers found practical hurdles in using the results immediately. The code was scattered throughout the long conversations, making it difficult to extract and assemble. Furthermore, the system sometimes suggested software tools that were already outdated or deprecated, requiring human engineers to manually fix dependencies and update libraries before the code could run. This suggests that while the multi-agent approach significantly improves the quality and ethical depth of the output, it is not yet a plug-and-play solution for every developer. The system generates a robust foundation, but it still requires human oversight to bridge the gap between a theoretical design and a working product.

Ultimately, the research suggests that the way we ask artificial intelligence to solve problems matters as much as the intelligence itself. By structuring the process to include specialized roles, structured communication, and multiple rounds of debate, the researchers demonstrated that it is possible to guide these systems toward more ethical outcomes. The study does not claim to have solved the problem of ethical AI, nor does it suggest that machines can replace human judgment. Instead, it offers a promising method for operationalizing ethical principles, turning abstract rules into concrete code. The findings indicate that when artificial intelligence is allowed to argue, reflect, and collaborate, it can produce software that is not only more complex but also more attuned to the human values it is meant to serve.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →