Skip to main content
QUICK REVIEW

[Paper Review] Halo: Domain-Aware Query Optimization for Long-Context Question Answering

Pramod Chunduri, Francisco Romero|arXiv (Cornell University)|Mar 18, 2026
Topic ModelingComputer Science0 citations
TL;DR

Halo automatically extracts domain knowledge from user prompts into structured directives (Structural, Filter, Validate) and applies them across a multi-stage QA pipeline to boost accuracy and reduce cost on long-context questions.

ABSTRACT

Long-context question answering (QA) over lengthy documents is critical for applications such as financial analysis, legal review, and scientific research. Current approaches, such as processing entire documents via a single LLM call or retrieving relevant chunks via RAG have two drawbacks: First, as context size increases, response quality can degrade, impacting accuracy. Second, iteratively processing hundreds of input documents can incur prohibitively high costs in API calls. To improve response quality and reduce the number of iterations needed to get the desired response, users tend to add domain knowledge to their prompts. However, existing systems fail to systematically capture and use this knowledge to guide query processing. Domain knowledge is treated as prompt tokens alongside the document: the LLM may or may not follow it, there is no reduction in computational cost, and when outputs are incorrect, users must manually iterate. We present Halo, a long-context QA framework that automatically extracts domain knowledge from user prompts and applies it as executable operators across a multi-stage query execution pipeline. Halo identifies three common forms of domain knowledge - where in the document to look, what content to ignore, and how to verify the answer - and applies each at the pipeline stage where it is most effective: pruning the document before chunk selection, filtering irrelevant chunks before inference, and ranking candidate responses after generation. To handle imprecise or invalid domain knowledge, Halo includes a fallback mechanism that detects low-quality operators at runtime and selectively disables them. Our evaluation across finance, literature, and scientific datasets shows that Halo achieves up to 13% higher accuracy and 4.8x lower cost compared to baselines, and enables a lightweight open-source model to approach frontier LLM accuracy at 78x lower cost.

Motivation & Objective

  • Motivate and address the inefficiencies of long-context QA on lengthy documents (e.g., 10-K filings) using vanilla LLMs or RAG.
  • Automatically convert free-form domain knowledge in prompts into structured directives.
  • Apply these directives as executable operators across a multi-stage pipeline to prune context, filter chunks, and verify answers.
  • Provide a fallback mechanism to handle low-quality directives without large overhead.
  • Demonstrate cross-domain effectiveness and cost benefits on finance, literature, and scientific datasets.

Proposed method

  • KnowledgeParser converts user prompts into three directive sets: Structural (S), Filter (F), and Validate (V).
  • Structural directs where in the document to look and prunes content accordingly before chunking.
  • Filter uses a lightweight model to discard irrelevant chunks prior to expensive inference.
  • Validate ranks candidate responses using positive and negative constraints to detect and demote hallucinations.
  • A fallback manager detects degraded operator performance at runtime and selectively disables problematic operators.
  • Evaluations show up to 13% higher accuracy and 4.8x lower cost versus baselines, with a lightweight open model approaching frontier LLM accuracy at 78x lower cost and only 2% overhead from domain operators.
Figure 1. VanillaLLM and RAG cannot utilize user’s domain knowledge effectively for long-context QA. Halo extracts this knowledge and systematically applies it in a multi-stage query optimization pipeline.
Figure 1. VanillaLLM and RAG cannot utilize user’s domain knowledge effectively for long-context QA. Halo extracts this knowledge and systematically applies it in a multi-stage query optimization pipeline.

Experimental results

Research questions

  • RQ1Can Halo outperform vanilla long-context LLM and standard RAG in terms of accuracy and cost for long documents across domains?
  • RQ2How does automatically extracted domain knowledge (S, F, V) affect context pruning, chunk filtering, and answer verification?
  • RQ3What is the impact of the runtime fallback mechanism on robustness when directives are imprecise or invalid?
  • RQ4To what extent can Halo enable lightweight models to approach frontier LLM accuracy with substantial cost reductions?

Key findings

  • Halo achieves up to 13% higher accuracy compared to baselines.
  • Halo achieves up to 4.8x lower cost compared to baselines.
  • Halo enables a lightweight open-source model to approach frontier LLM accuracy at 78x lower cost.
  • Domain operators add only about 2% overhead to total query cost.
  • The approach demonstrates benefits across finance, literature, and scientific datasets.
Figure 2. Workflow of Halo : (1) the KnowledgeParser extracts domain directives from the user prompt, (2) the ContextSelector prunes structural elements using the Structural operator and identifies the top- $k$ relevant chunks, (3) the InferenceEngine applies the Filter operator to discard irrelevan
Figure 2. Workflow of Halo : (1) the KnowledgeParser extracts domain directives from the user prompt, (2) the ContextSelector prunes structural elements using the Structural operator and identifies the top- $k$ relevant chunks, (3) the InferenceEngine applies the Filter operator to discard irrelevan

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.