NeurIDA: Dynamic Modeling for Effective In-Database Analytics

Lingze Zeng, Naili Xing, Shaofeng Cai, Peng Lu, Gang Chen, Jian Pei, Beng Chin Ooi · DOI

Abstract

NeurIDA introduces a novel "dynamic in-database modeling" paradigm to address the mismatch between static machine learning (ML) models and dynamic Relational Database Management Systems (RDBMS). By automating the construction of bespoke, task-specific models on-the-fly, NeurIDA delivers up to a 12% improvement in classification accuracy and a 25% reduction in regression error over standalone models. This autonomous, end-to-end system bridges the gap between raw data storage and sophisticated analytical insights.

Introduction

Relational Database Management Systems (RDBMS) are designed for dynamism—they handle evolving schemas, continuous data updates, and a wide variety of analytical queries. In contrast, traditional Machine Learning (ML) models are rigid; they are typically trained for a single, predefined task on a static dataset. Currently, executing a new predictive task requires data scientists to manually build complex data-to-model pipelines involving feature engineering across multiple tables and model retraining. Existing "in-database AI" solutions often fall short, either requiring expensive retraining for every new task or relying on fixed pre-trained models that cannot adapt to the specific nuances of a new SQL query.

System Architecture

NeurIDA introduces a four-stage workflow orchestrated by LLM-powered agents and a modular neural architecture:

  1. Query Intent Analyzer: Uses a Large Language Model (LLM) agent to translate Natural Language Queries (NLQ) into a structured Task Profile (e.g., classification vs. regression) and a Data Profile (the specific "data slice" of tables and columns needed).
  2. Conditional Model Dispatcher: A lightweight "router" that selects the best base model from a pool. It uses Zero-Cost Proxies to estimate performance quickly and decides whether the task is simple enough for a standalone model or requires the full engine augmentation.
  3. Dynamic In-database Modeling Engine (DIME): The core technical innovation. DIME uses a composable architecture consisting of unified base table embeddings, dynamic relation modeling via message-passing over a relational graph, and a task-specific self-attention mechanism for model fusion.
  4. Analytical Report Synthesizer: An LLM agent that interprets raw predictions and generates human-readable technical reports.
The end-to-end architecture of NeurIDA, featuring the Query Intent Analyzer, Conditional Model Dispatcher, DIME, and Analytical Report Synthesizer.

Experimental Evaluation

The authors evaluated NeurIDA on five real-world relational databases across ten distinct tasks, spanning domains such as recommendation systems, healthcare, and retail. These datasets vary significantly in scale and complexity, providing a robust testbed for the system's adaptability.

Summary of the five real-world relational databases and ten analytical tasks used for evaluation.

Key Insights and Results

Performance and Synergy

NeurIDA consistently outperformed standalone tabular models, showing a 4%–12% relative improvement in AUC-ROC for classification and a 10%–25% reduction in MAE for regression. The system was particularly effective at enhancing Large Tabular Models (LTMs) like TP-BERTa. While LTMs often struggle with non-semantic IDs (e.g., User_ID_99), NeurIDA’s relational modeling lifted performance significantly, such as increasing AUC-ROC from 0.55 to 0.77 on specific tasks.

Relational Modeling Innovations

Instead of building models from scratch, NeurIDA "wraps" existing base models with a relational context layer. A key finding was that a "sum" aggregator often outperforms the standard "mean" used in most Graph Neural Networks for relational modeling. This is because the count of interactions (e.g., frequency of clicks) is often a stronger signal than the average behavior. Furthermore, the system maintains efficiency, introducing only a 1.2x to 1.7x latency overhead compared to standalone models, which is offset by the elimination of manual data preprocessing.

Interpretability

By analyzing the attention weights in the Fusion module, NeurIDA provides interpretability. It can explain why a prediction was made—for instance, identifying that a user is likely to churn because their recent transaction volume dropped significantly.

Conclusion and Future Work

NeurIDA demonstrates the potential for autonomous database systems that actively suggest and execute analytical tasks based on observed data trends. While the system relies heavily on LLM agents, future work will explore mitigating potential failure modes such as schema misinterpretation or hallucinated insights. Additionally, the authors aim to improve the stability of the Conditional Dispatcher when handling rapid successions of new, unseen tasks.

Summary updated

BibTeX
@article{zeng2026neurida,
  author = {Lingze Zeng and Naili Xing and Shaofeng Cai and Peng Lu and Gang Chen and Jian Pei and Beng Chin Ooi},
  title = {{NeurIDA: Dynamic Modeling for Effective In-Database Analytics}},
  journal = {Proc. VLDB Endow.},
  year = {2026},
}
Figure