SAGAI-MID: A Generative AI-Driven Middleware for Dynamic Runtime Interoperability
Oliver Aleksander Larsen, Mahyar T. Moghaddam

TL;DR
SAGAI-MID is a middleware leveraging large language models to dynamically detect and resolve schema mismatches in distributed systems, enabling flexible interoperability at runtime.
Contribution
It introduces a novel LLM-based middleware architecture that handles schema mismatches dynamically, reducing manual coding and improving interoperability in heterogeneous systems.
Findings
Achieves 0.90 pass@1 accuracy across scenarios.
CODEGEN outperforms DIRECT in accuracy.
Cost varies significantly across models with no accuracy gain.
Abstract
Modern distributed systems integrate heterogeneous services, REST APIs with different schema versions, GraphQL endpoints, and IoT devices with proprietary payloads that suffer from persistent schema mismatches. Traditional static adapters require manual coding for every schema pair and cannot handle novel combinations at runtime. We present SAGAI-MID, a FastAPI-based middleware that uses large language models (LLMs) to dynamically detect and resolve schema mismatches at runtime. The system employs a five-layer pipeline: hybrid detection (structural diff plus LLM semantic analysis), dual resolution strategies (per-request LLM transformation and LLM-generated reusable adapter code), and a three-tier safeguard stack (validation, ensemble voting, rule-based fallback). We frame the architecture through Bass et al.'s interoperability tactics, transforming them from design-time artifacts into…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
