Efficiently Linking Unstructured Data for Multi-step Reasoning

Jiaming Liang, Haydn Jones, Jacob R. Gardner, Mark Yatskar, Zachary IvesarXiv 2026

TL;DR

DASE is a novel query engine designed for AI agents that need to retrieve, link, and rank unstructured data across multiple tables using both structured filters and vector similarities. By materializing rare close-vector pairs into a sparse index (SemJI) and using predicate-aware graph traversal, DASE executes complex multi-step reasoning queries 6× to 46× faster than standard databases while significantly cutting downstream LLM costs.

What Problem Does This Paper Address?

Modern AI agents—such as "deep research" tools or automated scientific discovery pipelines—frequently need to synthesize information scattered across unstructured documents. For example, a medical research agent might need to find a molecule that matches a specific chemical structure and appears in a paper discussing a particular experimental outcome.

Answering this requires a complex mix of structured filtering (e.g., publication year), multi-vector similarity search (matching text and chemical embeddings), and relational joins across tables. Current data systems fall short here: standard vector databases (like Milvus or Pinecone) cannot plan complex multi-table relational joins, while traditional relational databases (RDBMS) choke on $M$-to-$N$ embedding-similarity joins, leading to massive combinatorial explosions or poor recall.

Methods

The authors introduce DASE (Data-Agent Search Engine), a query engine built on three core pillars:

  1. SemJI (Semantic Join Index): High-dimensional embeddings usually cluster in a dense bulk, meaning truly similar items are rare "tail events" (see Figure 3). SemJI precomputes and materializes these rare, close-vector pairs into a sparse relational index, completely decoupling join discovery from query-time scoring.
  2. Predicate-Aware ANN Traversal: Instead of doing vector search first and filtering later (or vice versa), DASE walks the HNSW index graph while checking filters dynamically. It compiles filters into fast Bloom filters and utilizes a "2-hop" neighbor expansion to jump over invalid nodes that might otherwise block the path to valid results.
  3. Multi-Scoring Aggregator (MSA): This component adapts Fagin’s Threshold Algorithm to aggregate multiple sorted score streams (from text, structures, or attributes) across relational joins, allowing early termination once the true top-$k$ results are mathematically guaranteed.
Figure 4: DASE architecture

Datasets

The authors evaluated DASE across four distinct benchmarks:

  • IMDB: A custom-built cross-era movie discovery workload using plot, title, and actor/director embeddings to simulate complex relational queries.
  • MOLECULE: A new, realistic benchmark derived from an operational Biofoundry project using PubMed data, mapping relationships between molecules, facts, and papers.
  • SemBench: A public semantic query benchmark spanning multiple domains (Movie, E-Commerce, Wildlife, MMQA, Cars) used to evaluate DASE as an LLM prefilter.
  • NFCorpus: A medical corpus used specifically to test how the system scales with deep multi-hop joins (ranging from 2 to 8 join steps).

Key Insights and Ideas

  • Similarity Joins are Tail Events: In high-dimensional spaces, most vectors are far apart. By only materializing the tiny fraction of pairs that are actually close, SemJI remains highly compact (e.g., just 0.011% of the full Cartesian product in the Molecule dataset) while drastically accelerating joins.
  • Prefiltering Makes LLMs Smarter and Cheaper: Feeding a high-recall, tightly ranked shortlist to an LLM instead of raw data or poorly filtered sets not only cuts API costs but actually improves the LLM's final accuracy because it doesn't get distracted by irrelevant context.
  • Bridging the Hybrid Search Gap: Traditional hybrid search forces a choice between vector-first or filter-first execution. DASE's adaptive graph traversal finds a highly efficient middle ground when filters are moderately selective.
Figure 3: L2 distance distribution: pairwise among IMDB Actor_Director embeddings (Gemini-embedding-001)

Key Results

  • Massive Speedups: DASE executes multi-step reasoning queries 6× to 46× faster than strong baselines (including PostgreSQL, Milvus, and retrieve-and-rerank pipelines) at comparable recall.
  • Immunity to Join Depth Explosion: On the NFCorpus benchmark, while PostgreSQL and Milvus timed out or suffered severe recall decay as the number of join steps grew to 8, DASE maintained flat, high performance (sustaining over 1,300 queries per second).
  • Slashing LLM Costs: When paired with BigQuery on the SemBench E-Commerce task, DASE acted as a high-recall prefilter, boosting final output quality from 0.67 to 0.80 while slashing costs from $2.42 to $0.54 per query.

Limitations and Future Work

  • Embedding Dependency: DASE relies heavily on the quality and alignment of the underlying embedding space. For instance, on the SemBench Wildlife dataset, it struggled because rare words like "impala" were poorly aligned in the embedding model, leading to missed candidates.
  • Future Work: The authors are currently focusing on developing a high-level, cost-based query planner that can automatically break down complex natural-language agentic workflows into optimized multi-step retrieval stages.

Summary updated

BibTeX
@misc{liang2026efficiently,
  author = {Jiaming Liang and Haydn Jones and Jacob R. Gardner and Mark Yatskar and Zachary Ives},
  title = {{Efficiently Linking Unstructured Data for Multi-step Reasoning}},
  year = {2026},
  eprint = {2609.19491},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.19491},
}
Figure