Metadata-Driven AI: An Architectural Pattern for Sustainable Data Analysis with LLMs
Renaud Pawlak, Armen Sulejmani, Jordi Cabot
Key points
From the paper's conclusion- We present Metadata-Driven AI, an architectural pattern that keeps the data away from the model and turns each analysis into a reusable program.
Abstract
Large Language Models (LLMs) let users analyse data in natural language, either by giving the data to the model to read directly or by having the model generate code to process it. Both routes send the data, or fragments of it, to the model; both pay for inference on every run; and the code a model writes to answer a question is usually discarded once the question is answered. We present Metadata-Driven AI, an architectural pattern that keeps the data away from the model and turns each analysis into a reusable program. Only metadata (not the actual data) crosses a one-way inference boundary to the LLM. The program the LLM returns runs next to the data and is kept, so that inference is paid once per analysis rather than once per run. We describe the pattern together with a simple cost model, a measurement of how little information crosses the boundary on public datasets, and a benchmark showing that a small, locally hosted model can serve as the generator. We illustrate the pattern on three applications, each built on a different implementation of it: geospatial photovoltaic prospection over live public APIs, extraction of portfolio positions from bank statements, and a conversational assistant over smart-city dashboards.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Evaluating Local Language Model Agents for Reproducible Data Engineering: An Empirical Software Engineering Study of Mobility WorkflowsarXiv · 2026
- Large Language Models for AI InfrastructurearXiv · 2026
- Total Cost of Agency: Exact Attribution of Memory Injection Cost in Multi-Agent LLM WorkflowsarXiv · 2026
- A Compact Formula-Aware Spreadsheet Abstraction for Large Language ModelsarXiv · 2026
- From High Recall to High Utility: Dataset-Adaptive Post-Processing of LLM-Generated Customer IntentsarXiv · 2026
- BobFlow: Towards Human-Agent Collaborative Data Science Using DataflowsarXiv · 2026