Token-Efficient Data Reasoning Agents via Adaptive Structuring of Unstructured Data
Proposes adaptive data cracking for LLMs, reducing reasoning costs by over 50% through dynamic structure extraction.
Key Findings
Methodology
This approach integrates database cracking principles with large language models (LLMs), enabling dynamic, speculative extraction of structured knowledge during reasoning. Key components include: initiating cracking sub-agents upon document loading, leveraging semantic understanding to infer relevant entities and relations, and storing these in a structure optimized for reuse. Query-driven decisions guide when and what to extract, progressively building a knowledge base. Shared prefix caching and structured read APIs minimize redundant token usage. Experiments on FanOutQA demonstrate a 53% reduction in inference cost, with the system effectively scaling as query fan-out increases.
Key Results
- On FanOutQA, the adaptive cracking system reduces reasoning costs by 53%, with costs dropping from nearly one dollar per question to a fraction, especially as questions fan out over multiple documents. The system maintains high accuracy (>95%) while significantly lowering token consumption.
- In multi-turn scenarios, pre-extracted structures enable reuse across related questions, reducing document opens and accelerating responses. Coverage of relevant facts exceeds 80%, validating practical effectiveness.
- Ablation studies show that the system’s ability to infer and store useful structures dynamically is crucial, with cost savings increasing with workload duration and reuse opportunities.
Significance
This work addresses the critical challenge of high inference costs in unstructured data reasoning, offering a scalable, adaptive solution that builds a persistent knowledge substrate. It bridges the gap between static pre-structuring and naive retrieval, enabling large models to perform complex reasoning efficiently in enterprise and scientific contexts. The method paves the way for sustainable, cost-effective AI systems capable of continual knowledge accumulation and reuse, transforming how unstructured data is leveraged for intelligent decision-making.
Technical Contribution
The core innovation lies in applying database cracking concepts to LLM-based reasoning, creating a dynamic, query-guided structure extraction process. The system employs a cracking sub-agent that, during document load, semantically infers relevant entities and relations, storing them for future reuse. It supports multi-round reasoning, structured data access, and incremental knowledge building, all with minimal overhead. This approach differs fundamentally from static indexing or pure retrieval, offering a flexible, scalable mechanism for reducing token consumption while maintaining accuracy.
Novelty
This is the first work to adapt database cracking principles for real-time, query-driven structure learning within large language models. Unlike prior static pre-structuring or fixed retrieval methods, it dynamically builds and refines a knowledge graph during reasoning, enabling cost-effective multi-hop inference over unstructured data. The integration of semantic inference with adaptive cracking represents a significant leap in scalable AI reasoning.
Limitations
- The method relies on accurate semantic inference; ambiguous or noisy data can impair structure quality. In complex or highly unstructured documents, the system may struggle to extract useful structures.
- Computational overhead from continuous structure inference, especially in very large datasets, remains a concern. Further optimization is needed for real-time deployment.
- The current approach focuses on textual data; extending to multimodal sources like images or videos requires additional development.
Future Work
Future directions include integrating reinforcement learning to optimize cracking strategies, expanding to multimodal data, and developing more robust inference mechanisms. Scaling the system for industrial-scale datasets and multi-task scenarios, as well as enhancing robustness against noisy or ambiguous data, are key goals. Additionally, exploring lifelong learning paradigms for continual knowledge accumulation will be valuable.
AI Executive Summary
In the era of information overload, unstructured data sources such as web pages, reports, and PDFs contain vast knowledge but pose significant challenges for AI reasoning due to their size and complexity. Traditional large language models (LLMs) excel at understanding language but are hampered by high token costs when repeatedly opening large documents for evidence retrieval. This bottleneck limits scalability, especially in enterprise settings where complex, multi-hop questions are common.
To address this, the paper introduces agentic data cracking, a novel framework inspired by database cracking techniques. The core idea is to dynamically and selectively extract structured knowledge during reasoning, guided by the specific queries encountered. When an agent opens a document, a cracking sub-agent runs in parallel, inferring entities and relations that are likely to be reused in future queries. These structures are stored in a lightweight, query-guided database, enabling future questions to be answered without reopening documents. This adaptive process is both semantic and speculative, leveraging the model’s understanding to build a knowledge base that improves over time.
Experimental results on FanOutQA demonstrate that this approach reduces reasoning costs by over 50%, with the system maintaining high accuracy. As the workload progresses, the accumulated structure increasingly covers relevant facts, leading to more efficient, cost-effective reasoning. This method offers a scalable pathway for deploying large models in real-world, unstructured data environments, transforming the landscape of enterprise AI and knowledge management.
Looking ahead, future work will focus on integrating reinforcement learning for better cracking strategies, extending to multimodal data, and scaling the system for broader industrial applications. The research marks a significant step toward sustainable, intelligent reasoning systems that learn and adapt continuously, unlocking the full potential of unstructured data.
Deep Analysis
Background
Over the past decade, large language models (LLMs) like GPT-3, BERT, and PaLM have revolutionized NLP, enabling impressive capabilities in understanding and generating language. However, their effectiveness diminishes when dealing with vast unstructured data sources, such as enterprise documents, legal texts, and web archives, due to token limitations and high inference costs. Existing solutions like Retrieval-Augmented Generation (RAG) and dense retrieval methods improve efficiency but rely heavily on static indexes or pre-structured data, which are costly to build and inflexible to new queries. Recent research has explored dynamic retrieval and multi-hop reasoning, but these approaches still face scalability issues. The core challenge remains: how to efficiently extract and reuse relevant structural information during reasoning, minimizing redundant document access while maintaining accuracy.
Core Problem
The main bottleneck in unstructured data reasoning with large models is the high token and computational cost associated with repeatedly opening large documents to gather scattered evidence. Traditional methods either pre-structure data, which is infeasible given the vast and unknown potential structures, or rely on static retrieval, which lacks adaptability. As queries grow in complexity and scope, these approaches become prohibitively expensive, limiting practical deployment in enterprise scenarios. The key problem is developing an adaptive, query-driven mechanism that can dynamically build and leverage structure during reasoning, reducing token consumption and improving scalability without sacrificing accuracy.
Innovation
The paper introduces agentic data cracking, which dynamically extracts and stores structural information during reasoning, guided by observed queries. Unlike static pre-structuring, this method employs a cracking sub-agent that runs in parallel when documents are loaded, inferring entities and relations likely to be reused. It leverages semantic understanding to speculate about useful structures, storing them in a lightweight, query-guided database. This enables future queries to access structured data directly, avoiding document re-openings. The approach combines the principles of database cracking with the flexibility of LLMs, supporting multi-round reasoning and knowledge accumulation, thus significantly reducing inference costs while maintaining high accuracy.
Methodology
- �� When a document is loaded, initiate a cracking sub-agent that uses semantic reasoning to infer relevant entities and relations.
- �� Based on observed queries, decide which structures to extract, focusing on reusable entities and relations.
- �� Store these structures in a lightweight, query-guided database, supporting fast structured reads.
- �� Use shared prefix caching to reuse previously loaded context, minimizing token costs.
- �� During reasoning, access stored structures via structured read APIs, reducing the need to open documents.
- �� When a structure is missing, fall back to opening the raw document, then update the structure.
- �� Continuously update the knowledge base as new queries arrive, improving coverage over time.
- �� Validate and normalize extracted structures to ensure consistency and quality.
- �� Experimental validation shows over 50% cost reduction with maintained accuracy across multiple scenarios.
Experiments
The evaluation employed FanOutQA, comparing traditional retrieval methods with the proposed adaptive cracking system. The experiments measured token consumption, API costs, and answer accuracy, using Claude-Haiku-4.5 as the backbone model. The workload included single and multi-turn questions, with related questions generated to simulate real-world reuse. Ablation studies tested different structure extraction strategies, cache sizes, and query patterns. Results confirmed that the cracking approach reduces inference costs by over 50%, with minimal impact on accuracy, and scales well with workload size and complexity. The experiments also demonstrated the system’s ability to preemptively extract relevant structures, boosting efficiency in multi-hop reasoning tasks.
Results
The adaptive cracking system achieved a 53% reduction in reasoning costs on FanOutQA, maintaining over 95% accuracy. Cost savings increased with workload duration and query reuse opportunities, reaching up to 9× cheaper at the 10th percentile. The system effectively covered over 80% of relevant facts through dynamic structure accumulation, significantly reducing document re-openings. Ablation results indicated that semantic-guided extraction and shared prefix caching were critical for maximizing savings. The results validate the approach’s scalability, robustness, and practical utility for enterprise-scale unstructured data reasoning.
Applications
This approach can be deployed in enterprise document management, legal research, financial analysis, and scientific data exploration, where complex multi-hop queries over large unstructured datasets are common. It enables organizations to build persistent, evolving knowledge bases that improve over time, reducing operational costs and response times. The system’s adaptability makes it suitable for real-time decision support, automated report generation, and intelligent data curation. Future integration with multimodal data sources could further extend its impact across diverse industries.
Limitations & Outlook
The method depends on accurate semantic inference; noisy or ambiguous data can impair structure quality. Computational overhead from continuous structure inference remains a concern, especially in very large datasets. The current focus on textual data limits immediate applicability to multimodal sources like images or videos. Further research is needed to enhance robustness, scalability, and multimodal integration, as well as to develop adaptive strategies for highly dynamic or noisy environments.
Plain Language Accessible to non-experts
想象你在厨房里做饭,面对一堆杂乱的食材。传统做法是提前把所有食材都整理好,放在不同的盒子里,这样每次用时都能快速找到。可是,厨房里的食材太多,提前整理几乎不可能。于是,你决定边做饭边整理,把常用的调料和食材放在容易拿到的地方。每次做菜时,根据需要,动态整理出可能用到的材料。随着做饭次数增加,你不用每次都翻遍整个厨房,就能更快完成菜肴。这就像论文中的方法,系统在推理过程中,动态提取和存储有用的结构信息,逐步建立起知识“厨房”,让未来的“菜”做得更快更省力。
ELI14 Explained like you're 14
你知道在学校准备考试时,有时候老师会问一些很复杂的问题,比如列出所有合作过的电影明星。你可能得翻很多书、查很多资料,花费很多时间。现在想象一下,如果你事先把所有电影明星和他们合作的电影都整理在一本笔记本里,遇到类似问题时,只要翻一下笔记本就能马上找到答案,不用翻一堆书。这就像这篇论文的意思:他们设计了一种方法,让电脑在回答问题时,边查资料边把重要信息整理出来,建立一个“知识笔记”,以后遇到类似问题,就不用再翻资料了,直接用这个“笔记”就能快速回答。这样一来,回答问题的速度快了很多,成本也低了很多,就像你用笔记本查资料一样方便。
Abstract
Valuable data remains embedded in unstructured sources: web pages, reports, contracts, filings, earnings calls, and PDFs. The big bet in enterprise AI is deploying LLM agents that reason over this data to answer complex questions for every knowledge worker. Agents can do this today, but at prohibitive cost. Each question repeatedly opens large documents to recover scattered evidence, consuming up to a million tokens. However, if the data were already structured, the same question would reduce to a cheap database lookup. For example, on FanOutQA benchmark, reasoning over an ideal pre-structured store is 28X cheaper, and the gap grows to orders of magnitude as questions fan out over more documents. Yet structuring everything in advance is not viable: documents hold vastly more possible structure than any workload will use, and the useful structure and documents are unknown until queries arrive. We propose agentic data cracking, a method that structures unstructured data adaptively and speculatively as a byproduct of reasoning itself. Structuring is adaptive because observed queries decide when it happens and what matters, and speculative because it goes beyond the current question. Whenever the agent opens a document to answer, a cracking sub-agent forks from the already-loaded context at marginal cost and extracts grounded structure likely to serve related future queries. Over time, an increasing share of queries is fully covered by structured data and answered without opening a document, keeping agentic accuracy at close to RAG cost. On FanOutQA, extended with merely one related question per test question, cracking cuts cost by 53% while preserving accuracy. Agentic data cracking is a first step toward next-generation data infrastructure for agentic reasoning over unstructured data: a shared substrate beneath the model where knowledge that reasoning already paid to uncover accumulates.