TL;DR
The paper introduces Sieve, a novel "search–inspect–fetch" workflow that allows deep-search LLM agents to interact with webpages using a structured Boolean Query Language (BQL). By enabling agents to filter documents by specific fields and fetch only relevant sections rather than downloading entire webpages, Sieve improves question-answering accuracy while slashing token consumption by 20% to 50%.
What Problem Does This Paper Address?
When AI agents perform deep online research, they typically follow a naive "Search–Visit" loop: they submit a keyword query, look at a list of search results, and then "visit" (download) the entire content of a chosen webpage.
However, webpages are naturally structured with titles, headings, sections, and metadata. Treating them as flat, monolithic blocks of text creates two major inefficiencies:
- Context Bloat: Downloading an entire webpage fills the LLM’s limited context window with irrelevant boilerplate text, ads, and unrelated sections.
- Model Distraction: Excess text increases costs and introduces noise, making it harder for the agent to synthesize accurate answers.
Existing workflows do not allow agents to programmatically exploit webpage structure to constrain their search or selectively read only the sections they need.
Methods
The authors propose Sieve, a workflow built around a Boolean Query Language (BQL) that treats webpage structure as an actionable interface. The workflow breaks down into three distinct steps:
- Search (Boolean Selection + Ranking): The agent formulates a precise BQL query targeting specific fields (e.g.,
"climate change"[title] AND agriculture[section] NOT livestock[body]). This filters the corpus down to an eligible candidate set. A modular ranker (such as BM25, a dense retriever, or a hybrid combination) then orders these candidates. If a query is over-constrained and yields zero hits, Sieve automatically triggers a relaxed fallback mechanism to ensure the agent still receives relevant information. - Inspect (Structure-Rich Result Cards): Instead of viewing raw text snippets, the agent is presented with compact "result cards." These cards expose the document's title, its complete list of section headings, and a 25-token query-focused snippet to provide local relevance evidence.
- Fetch (Selective Section Access): Armed with the section headings, the agent selectively fetches only the specific named section it needs, preventing the rest of the webpage from cluttering its context window.
Datasets
Because standard QA benchmarks do not provide structured access to webpage fields, the authors constructed paired flat and structured variants of three existing datasets:
- HotpotQA: A Wikipedia-based multi-hop reasoning dataset.
- MuSiQue: A more complex multi-hop dataset requiring connected composition.
- BrowseComp-Plus (BCP-S): A challenging, heterogeneous web collection designed for deep-search evaluation.
In each pair, the text content is identical, but the structured variant explicitly exposes addressable fields (titles, headings, sections, and metadata) to the agent.
Key Insights and Ideas
- Structure as an Agent Tool: Webpage structure shouldn't just be a visual aid for humans; it can function as a programmatic API for language models to navigate documents efficiently.
- Efficiency and Accuracy are Aligned: Wasting fewer tokens doesn't just save money—it actually makes the agent smarter. Keeping distracting content out of the context window directly leads to better evidence synthesis and fewer reasoning errors.
- The Power of Snippets: Exposing section headings alone isn't enough for an agent to make good decisions. Sieve's ablation studies revealed that query-focused snippets on the result cards are critical for helping the agent accurately judge which section is worth fetching.
Key Results
- Token Savings: Across all three datasets, Sieve consistently outperformed the strongest conventional Search–Visit configurations while using 20.7% to 50.6% fewer distinct tokens.
- Accuracy Boost: Sieve achieved the highest accuracy on all three collections. Using its default hybrid ranker (BM25 + Dense), it improved accuracy by 1.6 points on HotpotQA, 3.1 points on MuSiQue, and 0.7 points on BCP-S compared to the best baseline configurations.
- Robustness: The accuracy-context advantage was not tied to a specific model; it persisted across six different dense embedding models and three distinct LLM backbones (Tongyi-DeepResearch, Qwen-AgentWorld, and OpenResearcher).
Limitations and Future Work
- Model-Generated Structure: While Wikipedia has native section formatting, the web-based BCP-S dataset required an LLM (GPT-3.5-nano) to programmatically infer section boundaries, which can introduce noisy or imperfect headings.
- Asymmetric Prompting: Agents using Sieve received specialized manuals explaining the BQL syntax, which may introduce a slight prompting bias compared to baseline agents.
- Future Directions: The authors suggest extending Sieve to live, open-web search environments and exploring how to improve the agent's internal reasoning capabilities to tackle the remaining synthesis errors.
Summary updated