Abstract
As Multi-Agent Systems (MAS) grow in complexity, the lack of visibility into inter-agent dynamics creates significant risks for cascading failures. We present LumiMAS, a novel observability framework designed for real-time monitoring, detection, and explanation of failures in LLM-based MAS. LumiMAS utilizes efficient LSTM-based autoencoders for anomaly detection, achieving a 148x speedup over traditional LLM-based judges while maintaining high detection accuracy. By decoupling "always-on" monitoring from expensive root cause analysis, LumiMAS provides a scalable solution for production-grade AI agent orchestration.
Introduction
The transition from single-prompt Large Language Models (LLMs) to Multi-Agent Systems (MAS) introduces a "visibility gap." In these collaborative environments, errors such as hallucinations, biases, or prompt injections can propagate through the agent chain, leading to system-wide failures. Current observability tools are predominantly agent-centric, failing to capture the emergent behaviors and inter-agent dynamics that define MAS. Furthermore, existing detection methods often rely on "LLM-as-a-judge" architectures, which are computationally expensive and introduce latencies unsuitable for real-time applications.
Methodology
LumiMAS addresses these challenges through a three-layer architecture designed for platform-agnostic integration with frameworks like CrewAI and LangGraph.
1. System Logging Layer
This layer records structured events (e.g., LLM-Call, Tool-Usage) and captures two primary feature sets:
- Execution Performance Indicators (EPI): Metadata such as token counts and execution latency.
- Semantic Features: Text embeddings representing the agent's internal reasoning and outputs.
2. Anomaly Detection Layer
LumiMAS replaces slow LLM-based detection with lightweight LSTM-based Autoencoders (AE). These models are trained on sequences of "normal" system behavior. At runtime, anomalies are flagged when the reconstruction error exceeds a learned threshold. The framework supports EPI-only, Semantic-only, and Combined latent-space detection models.
3. Anomaly Explanation Layer
Upon detection, the system triggers specialized LLM agents to provide interpretability:
- Classification Agent: Categorizes the failure type (e.g., Hallucination, Bias, Direct Prompt Injection).
- Root Cause Analysis (RCA) Agent: Traces the chronological event flow to identify the specific agent responsible for the initial error.
Results and Discussion
LumiMAS was evaluated across seven MAS applications, including standard benchmarks and novel Failure-Tailored Applications (FTAs) like HalluCheck and BiasCheck.
Performance and Efficiency
The "Combined" detector demonstrated superior stability across all failure types. For hallucination detection, it achieved an F1 score of 0.733, significantly outperforming sequential models like LogBERT. Crucially, LumiMAS achieved an average decision time of 0.057 seconds—approximately 148 times faster than the fastest LLM-based baseline.
Operational Insights
The dual-layer approach (LSTM for detection, LLM for explanation) proved highly effective. The explanation layer acted as a secondary filter, reducing the False Positive Rate (FPR) by approximately 60%. Additionally, the framework revealed that operational signals (EPI) are vital for detecting "invisible" failures like prompt injections that cause execution loops without immediate semantic deviations.
Conclusion
LumiMAS provides a practical, real-time solution for MAS observability. By leveraging lightweight machine learning for detection and reserving LLMs for high-level reasoning, it bridges the gap between system performance and interpretability. Future work will focus on addressing data drift through automated retraining and extending the framework to include task verification metrics.
Summary updated