Abstract
Large Language Models (LLMs) are increasingly capable of generating persuasive text, yet their application in the legal domain is hindered by factual hallucinations and a lack of strategic abstention. This paper introduces the Reflective Multi-Agent (RMA) framework, a system designed to ensure legal arguments are strictly grounded in case facts. By utilizing specialized agents—the Factor Analyst and the Argument Polisher—the RMA framework enforces structured reflection, significantly reducing manipulative outputs and improving the model's ability to decline generating arguments when legal grounds are insufficient.
Introduction: The Triad of Legal AI Challenges
The deployment of LLMs in legal contexts faces a "Triad of Challenges" that can compromise the integrity of generated arguments:
- Hallucination: The creation of factually incorrect or unsupported claims.
- Inadequate Abstention: A tendency to generate arguments even when the provided facts do not support a legal position (e.g., "people-pleasing" behavior).
- Poor Factor Utilization: Failing to leverage all relevant factual "factors" provided in a case description.
Ethical legal persuasion must be evidence-based. An LLM that invents facts to "win" is manipulative. This research aims for "computable ethical persuasion"—systems that remain rhetorically effective while staying strictly tethered to the truth.
The Reflective Multi-Agent (RMA) Framework
The RMA framework moves beyond single-shot prompting by implementing a 3-ply structure (Plaintiff's argument, Defendant's counter, and Plaintiff's rebuttal) managed by a team of specialized agents:
- The Argument Developer: The primary LLM responsible for drafting the initial legal argument.
- The Factor Analyst: A "gatekeeper" agent that audits drafts against provided case factors. It identifies hallucinations and can issue a "TERMINATE" command if no valid argument can be derived from the facts.
- The Argument Polisher: A rhetorical specialist that refines the draft for legal tone and clarity based on the Analyst's feedback, without introducing external facts.
This iterative process of "structured reflection" ensures that the system audits its own logic before finalizing an output, providing a safeguard against the "hallucination-by-compulsion" often seen in single-agent systems.
Experimental Methodology
The researchers evaluated the RMA framework using a synthetic dataset of 270 case triples based on U.S. trade secret misappropriation law. Each triple consists of a current case and two precedents (one for the plaintiff, one for the defendant), represented by 26 standardized legal factors.
Cases were categorized into three scenarios to test the models' ethical boundaries:
- Arguable: Genuine grounds for an argument exist.
- Mismatched: Precedents have outcomes that conflict with their intended use, testing if the LLM detects the mismatch.
- Non-Arguable: No relevant factor overlaps exist, testing the model's ability to abstain from arguing.
Key Results and Insights
Testing across models such as GPT-4o, GPT-4o-mini, and Llama-4 variants revealed significant performance gains:
- Successful Abstention: This was the most notable improvement. In "Mismatched" scenarios, single-agent baselines often had a 0% abstention rate. The RMA framework achieved up to 92.22% successful abstention (using GPT-4o-mini).
- Hallucination Accuracy: In "Non-Arguable" scenarios, RMA significantly boosted accuracy. For example, GPT-4o improved from ~87% (single agent) to 94.63% (RMA).
- Factor Utilization: RMA consistently demonstrated higher "Recall," indicating better utilization of the specific legal factors provided in the prompt.
A major takeaway is that specialization trumps scale. Smaller models like GPT-4o-mini, when placed in this multi-agent structure, can rival or exceed the performance of larger models in single-agent configurations.
Limitations and Future Work
Despite its success, the RMA framework currently relies on predefined, discrete legal factors. Real-world legal cases involve unstructured text that requires complex interpretation. Furthermore, the iterative reflection process increases computational cost and latency.
Future research will focus on:
- RAG Integration: Incorporating Retrieval-Augmented Generation to allow agents to access actual statutes and case law.
- Dynamic Reflection: Developing systems that decide the necessary number of revision rounds based on case complexity.
- Unstructured Data: Adapting the framework to handle messy, real-world legal documents.
Summary updated