LINX: A Language Driven Generative System for Goal-Oriented Automated Data Exploration

Tavor Lipman, Tova Milo, Amit Somech, Tomer Wolfson, Oz Zafar

Introduction

Data exploration is the iterative process of "slicing and dicing" a dataset to find insights. While existing Automated Data Exploration (ADE) tools can generate notebooks automatically, they are typically goal-agnostic. They use fixed objective functions to find "interesting" patterns, meaning they produce the same generic results regardless of whether a user is looking for atypical viewing habits or investigating flight delays. LINX is a first-of-its-kind generative system that automates "goal-oriented" data exploration by combining Large Language Models (LLMs) with a novel Constrained Deep Reinforcement Learning (CDRL) engine.

System Architecture

LINX employs a sophisticated two-stage pipeline to bridge the gap between high-level natural language goals and valid, interconnected database queries.

The LINX pipeline: from natural language goals to executable exploration notebooks.

LLM-Based Specification Derivation

Instead of asking an LLM to write the final code directly—a task where they often struggle with data consistency—LINX uses a "two-stage chained prompt" strategy. First, it tasks the LLM with creating a non-executable Python Pandas template with placeholders. Then, it translates this template into LDX (Language for Data eXploration), a formal intermediate language designed to define the "skeleton" of an exploration session. This approach leverages the LLM's familiarity with Python code seen during training to boost generalization across unseen datasets.

Modular CDRL Engine

The LDX specification is fed into a modular engine based on Constrained Deep Reinforcement Learning. The agent is rewarded for both the "interestingness" of the data it finds and its "compliance" with the LDX specification.

The specification-aware neural network architecture within the CDRL engine.

The neural network uses a "specification-aware" architecture. It employs "snippets" (shortcuts) derived from the goal to help the agent converge faster on valid query sequences. Furthermore, LDX allows for continuity variables that link queries together (e.g., ensuring a filter and a group-by target the same discovered column), creating a coherent analytical narrative.

Evaluation and Key Results

The authors evaluated LINX using three diverse tabular datasets: Netflix Titles, Flight-Delays, and Google Play Store Apps. They also introduced the first benchmark for goal-oriented ADE, consisting of 182 pairs of analytical goals and ground-truth LDX specifications.

  • Superior Relevance: In a user study with 30 participants, LINX notebooks were rated 1.5-2x more useful than those generated by ChatGPT or goal-agnostic ADE tools like ATENA.
  • Insight Density: Users derived 3-5x more goal-relevant insights from LINX-generated notebooks compared to other automated baselines.
  • 100% Compliance: The CDRL engine successfully generated sessions that fully complied with the derived specifications in all test cases.
  • Efficiency: The system converges to an optimal session in roughly 20 minutes on standard CPU hardware, making it a viable tool for offline preparation.

Conclusion and Future Work

LINX positions ADE as a "preparatory" tool for human analysts, providing a high-quality starting point for deeper investigation. While currently limited to Filter and Group-by-Aggregate operations, future iterations aim to support complex transformations like joins and integrate LLMs to provide natural language summaries of discovered findings. The system represents a significant step toward making automated data exploration truly responsive to user intent.

Summary updated

BibTeX
@inproceedings{lipman2025linx,
  author = {Tavor Lipman and Tova Milo and Amit Somech and Tomer Wolfson and Oz Zafar},
  title = {{LINX: A Language Driven Generative System for Goal-Oriented Automated Data Exploration}},
  booktitle = {EDBT},
  year = {2025},
  doi = {10.48786/edbt.2025.22},
}
Figure