LumiMAS: A Comprehensive Framework for Real-Time Monitoring and Enhanced Observability in Multi-Agent Systems

Ron Solomon, Yarin Yerushalmi Levi, Lior Vaknin, Eran Aizikovich, Amit Baras, Etai Ohana, Amit Giloni, Shamik Bose, Chiara Picardi, Yuval Elovici, Asaf ShabtaiarXiv 2025 · DOI

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.

Figure 1: High-level architecture of the LumiMAS framework, illustrating the interaction between the logging, detection, and explanation layers within a Multi-Agent System.

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.

Figure 2: Performance comparison of LumiMAS against various baselines across different vulnerability types, highlighting accuracy, F1 score, and operational overhead.

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

BibTeX
@misc{solomon2025lumimas,
  author = {Ron Solomon and Yarin Yerushalmi Levi and Lior Vaknin and Eran Aizikovich and Amit Baras and Etai Ohana and Amit Giloni and Shamik Bose and Chiara Picardi and Yuval Elovici and Asaf Shabtai},
  title = {{LumiMAS: A Comprehensive Framework for Real-Time Monitoring and Enhanced Observability in Multi-Agent Systems}},
  year = {2025},
  eprint = {2508.12412},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.12412},
}
Figure