arXiv:2610.25131cs.DBOct 2026

Manuscript Offprint

arXiv:2610.25131

Data.Readme: Documenting Table Relationships for Diverse Data Tasks

Jiaming Liang, Yeye He, Haoyu Dong, Zachary Ives, Surajit Chaudhuri

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Large language models (LLMs) can perform diverse data tasks when given a small set of relevant tables. However, for complex tasks requiring multiple tables over large data lakes, identifying relevant tables for the task becomes a prerequisite, but remains challenging. This is because there are often many tables in a data lake with similar table and schema names, and limited additional semantic context, thereby forcing agents to spend substantial time exploring tables at online query time, greatly affecting models' ability to perform tasks accurately, while increasing cost/latency substantially.

We present DATA.README, a novel table documentation approach that uses lightweight offline processing to infer and index rich table-to-table relationships, including confusable, joinable, and union-able tables. We further develop a suite of agentic tools for LLMs to work with the index, to help agents retrieve relevant tables and perform tasks much more efficiently and effectively. Finally, we study how to optimize our index construction with a budget constraint. On data lakes containing up to 12K tables, DATA.README improves task accuracy by as much as 40 percentage points across a range of data discovery, data analysis, and data science tasks, outperforming diverse baselines, including powerful coding agents with unlimited time and monetary budgets. We also show that equipping existing methods (such as coding agents) with DATA.README can not only lead to consistent quality gains, but also significantly reduce their latency by up to 6x, demonstrating the potential of DATA.README.

ACM Reference Format:

Jiaming Liang, Yeye He, Haoyu Dong, Zachary Ives, and Surajit Chaudhuri. 2027. DATA.README: Documenting Table Relationships for Diverse Data Tasks. In Proceedings of SIGMOD Conference on Management of Data (SIGMOD '27). ACM, New York, NY, USA, 14 pages. https://doi.org/XXXXXXX.XXXXXXX

Surajit Chaudhuri

Microsoft Research

Redmond, Washington, USA

1 Introduction

Large language models (LLMs) are increasingly capable of performing diverse tasks over tabular data, when given a small set of tables relevant to a task [31, 34]. However, users often need to perform data discovery, data analysis, and data science over a large data lake containing thousands of tables, without knowing in advance which tables are relevant [21, 23]. Such tasks remain challenging for today's models and agentic harnesses [29, 44].

Consider a concrete example data lake tested in our experiments, illustrated in Figure 1. It contains 17 tables named “Sales,” 29 named “Customers,” and 21 named “Country,” many with similar schemas. To answer a question such as “global sales by customer country” in a particular region and time period, a human or LLM agent must determine not only which Sales table is relevant, but also which Customers and Country tables can be “paired/joined” with that Sales table to answer the question, which is unfortunately non-trivial in a large data lake, as table and schema names alone provide little clue for LLM to identify relevant tables.

Therefore, today existing methods (including powerful data agents and coding agents [2–4]) are often forced to open and explore a large number of tables that may be relevant at online query time, (e.g., all 17 Sales tables and all 29 Customers tables) before locating the ones relevant for a task. This approach is clearly (1) time-consuming, because users must wait while the agent explores the data; (2) less accurate, because the agent must often decide using partial, shallow evidence collected at runtime; and (3) wasteful, as each new question triggers another expensive round of exploration from scratch whose findings are seldom reused.

README for codebases vs. README for data lakes. We draw inspiration from software engineering, where humans and LLMs face a similar readability/discoverability problem in complex codebases, which is commonly addressed with a README [5] and, increasingly, an AGENTS.md for LLM agents [1]. Placed at the root of a repository, these readme documents explain what the code does and how its components relate to each other with navigatable links, allowing developers and agents to reuse knowledge rather than rediscover it from scratch.

∗^{*}Part of work done while at Microsoft.

†^{\dagger}Correspondence: liangjm@seas.upenn.edu, yeyehe@microsoft.com

This analogy motivates our core research question: Can a README-equivalent for tables benefit data agents operating over data lakes, just as READMEs benefit coding agents operating over codebases?

Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from permissions@acm.org.

SIGMOD '27, Huntington Beach, CA, USA

© 2027 Copyright held by the owner/author(s). Publication rights licensed to ACM.

ACM ISBN 978-x-xxxx-xxxx-x/YYYY/MM

https://doi.org/XXXXXXX.XXXXXXX

DATA.README for tables: relationships beyond simple summaries. A natural first step in documenting a dataset is to prompt an LLM to summarize each table and column in natural language, as used in recent work such as AutoDDG [53].

While such approaches are clearly useful, we observe that free-form descriptions of individual tables are insufficient for many complex data tasks, which often depend on table-to-table relationships, and would benefit from a more structured and holistic view of the lake. This resembles how a codebase README would not only describe files in isolation, but also use pointers and hyperlinks to connect related components. We illustrate this with an example.

EXAMPLE 1. Consider the data lake we encountered in our experiments, whose 17 Sales.csv tables are labeled Sales_1 through Sales_17 in Figure 1(b) for ease of reference. Prior work such as AutoDDG would perform a per-table prompt asking LLM to describe each table using natural language, and populate such descriptions (semantic meaning, grains, statistical profiles of columns, etc.) in the leftmost column labeled as “Basic info (B)” in Figure 1(b). This is already helpful for retrieval tasks, especially for tables and columns with abbreviated or cryptic names [53].

However, given a question such as Q=“global sales by customer country since 2024”Q = \text{“global sales by customer country since 2024”}, an agent still cannot easily determine from independent per-table descriptions which of the 17 Sales, 29 Customers, and 21 Country tables should be used to answer the question.

In this work, we argue that agents need richer cross-table relationships, including (1) confusable tables, (2) joinable tables, and (3) union-able tables, to answer complex questions over large lakes. We extract such relationships offline through a lightweight LLM-powered indexing step, as illustrated in Figure 1(a).

Specifically, the “Confusable tables (C)” column in Figure 1(b) explains how similarly-named and seemingly-identical tables actually differ in content. For example, Sales_1 and Sales_5 cover different geographic regions, Sales_2 and Sales_8 have different grains, and Sales_17 describes stock-sales rather than retail-sales. We extract these distinctions through an offline analysis that compares similar tables and identifies distinguishing features, enabling efficient online consumption.

The next two columns in the figure similarly record how a table can join with or be unioned with other tables in the lake, also extracted through a deep but efficient offline process.

At online query time, we develop agentic tools that let LLMs navigate these rich cross-table relationships and identify relevant tables, as illustrated in Figure 1(c). For our example query Q, by following the pointers in DATA.README, an agent can accurately and efficiently identify {Sales_1, Sales_14, Country_1, Customer_9} as the tables needed to answer Q.

In this work we study the DATA.README framework using three example types of table-relationships (extensible to additional types): (1) confusable tables, which look similar but differ in grain, geography, time period, aggregation level, or other properties; (2) joinable tables, which have a meaningful semantic join rather than an accidental overlap in key ranges; and (3) union-able tables, which share a compatible schema.

We aim to show that, at the framework level, plugging in different types of relationships can bring substantial quality and latency benefits for diverse agent tasks operating on large data lakes. While we present efficient techniques for extracting these relationships that can scale to large lakes, our goal is not to establish new state-of-the-art methods for each individual relationship type, which has a literature of its own. Instead, the framework is designed to accommodate alternative methods, allowing individual components to be readily replaced as better techniques emerge.

Technical challenges. Producing this documentation for tens of thousands of tables raises challenges that a per-table annotation method like AutoDDG [53] does not face.

Efficient extraction of relationships: The number of possible relationships grows quadratically with the number of tables, where processing using LLM calls can become expensive very quickly. We develop extraction algorithms that scale linearly with the number of tables, or even sub-linearly if there is a fixed cost budget.

Resolving semantic ambiguity: At scale, determining whether two tables are meaningfully related (e.g., confusable or joinable) becomes increasingly challenging and ambiguous. We develop data-driven techniques to resolve such ambiguities while adopting a late-binding strategy that retains plausible relationships until query time, when the user's question can provide additional evidence for disambiguation.

Agentic tools for DATA.README: In a large lake, even concise documentation such as Figure 1(b) may exceed an agent's context window. We develop tools that let an agent navigate the DATA.README index efficiently (e.g., retrieving tables relevant to a query by RAG-top-k, or jumping to tables with known relationships to a target table by name). Our experiments show that these capabilities are effective and necessary to scale to large lakes.

Budget-constrained optimization: Despite our efficient, lightweight indexing, processing every table in a large lake may still be costly. We therefore formulate the Budget-Constrained Table Documentation (BCTD) problem, where given a fixed budget and a representative query log, we want to identify a subset of tables for processing that are most beneficial for the query workload. While we prove that the problem is computationally hard, we develop a fast density-based algorithm called DensitySelect, which has provable approximation guarantees and is effective in experiments.

Contributions. We make the following contributions:

• We propose DATA.README, structured documentation for data lakes that augments per-table descriptions with cross-table relationships such as confusable, joinable, and union-able tables. We also provide agentic tools that make this information easily accessible and navigable to LLMs (Section 2).

• We develop lightweight, scalable approaches for extracting these relationships, with a bounded linear construction cost despite the quadratic growth in possible table pairs (Section 3).

• We formulate the budget-constrained scenario as a principled optimization problem, and develop DensitySelect, a density-based algorithm with approximation guarantees (Section 4).

• We evaluate DATA.README on diverse tasks such as data discovery, data analysis, and data science. Across 96 experimental settings (2 lakes x 6 backbone models x 8 benchmark tasks), DATA.README outperforms diverse baselines including strong coding agents in 92 out of the 96 settings, all while operating at reduced cost/latency. (Section 5).

(b) Data.Readme example (one row per table)

Prior workSingle-table descriptionsData.ReadmeCross-table relationshipsOptionalTable-to-code
Table nameBasic info (B)(grain, cols, desc, ...)Confusable tables (C)(how is this table different)Joinable tables (J)Union-able tables (U)Relevant snippets
Sales_1This table contains sales orders, with order_id, c_id, ...Sales_1 is global sales in 2024, while Sales_5 is in US only, ...Joins with Country_1 on c_id, Customer_9 on cust_id ...Union-able with Sales_14, which also has global sales, but for 2025 ...Snippet-101, Snippet-159, ...
Sales_2This table contains sales orders, with order_id, country_id, ...Sales_2 is order-lineitem grain, while Sales_8 is order grain, ...Joins with Country_3 on country_id, .........
..................
Sales_17This table contains sales orders, with order_id, ticker_id, ...Sales_17 is about stock sales, unlike other tables about retail sales ...Joins with Stocks_1 on stock_ticker, .........
..................
Country_1This table contains countries, with c_id, ......Joins with Sales_1: c_id → c_id......

(a) Offline step: indexing

Figure

(c) Online use

Figure

LLM agent

Data.Readme tools

Get_readme_by_RAG_top_k(query, start_pos, k)

Get_readme_by_table_names([table_list])

Explore_table(table)

Figure 1: Overview of DATA.README. An example DATA.README in (b), illustrated with abridged table-level entries, is the output of offline indexing (a) and the input to online agentic tools (c). An agent at online query time can utilize the provided agentic tools to retrieves tables relevant to a given query, follows documented relationships, and inspects raw tables.

References (28)