SAGAI-MID: A Generative AI-Driven Middleware for Dynamic Runtime Interoperability
Not on the map. Why?
Abstract (arXiv)
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 runtime capabilities. We evaluate SAGAI-MID on 10 interoperability scenarios spanning REST version migration, IoT-to-analytics bridging, and GraphQL protocol conversion across six LLMs from two providers. The best-performing configuration achieves 0.90 pass@1 accuracy. The CODEGEN strategy consistently outperforms DIRECT (0.83 vs 0.77 mean pass@1), while cost varies by over 30x across models with no proportional accuracy gain; the most accurate model is also the cheapest. We discuss implications for software architects adopting LLMs as runtime architectural components.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 12 of its 25 references that are in the map. First posted on arXiv 30 Mar 2026.
Builds on
12 of 25 references.
References · 12
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,708
- 2022Can Foundation Models Wrangle Your Data?cited by 175
- 2024Mind Your Step (by Step): Chain-of-Thought can Reduce Performance on Tasks where Thinking Makes Humans Worsecited by 109
- 2023Entity Matching using Large Language Modelscited by 31
- 2024Schema Matching with Large Language Models: an Experimental Studycited by 20
- 2025Generative AI for Software Architecture. Applications, Challenges, and Future Directionscited by 15
- 2024Matchmaker: Self-Improving Large Language Model Programs for Schema Matchingcited by 9
- 2023Microservice API Evolution in Practice: A Study on Strategies and Challengescited by 7
- 2024Towards a Middleware for Large Language Modelscited by 2
- 2025Evaluating the effectiveness of LLM-based interoperabilitycited by 1
Built on by
Not cited yet.