Introduction
Open-Domain Question Answering (ODQA) has traditionally relied on a two-stage "retriever-reader" pipeline. In this setup, a retriever identifies relevant documents from a large corpus, and a reader—typically a Large Language Model (LLM)—processes these documents to generate a final answer. To improve performance, state-of-the-art methods have increasingly turned to complex, multi-turn prompting strategies. These strategies involve the LLM generating multiple candidate answers, summarizing contexts, and performing self-verification or ranking.
While effective at boosting accuracy, this "prompt-level" approach introduces significant overhead. It is computationally expensive, slow due to multiple rounds of generation, and often unstable because LLMs are highly sensitive to minor changes in prompt phrasing. Furthermore, standard retrievers often fail to rank the "gold" passage at the top, necessitating even more expensive LLM-based reranking. This paper introduces EmbQA, a framework designed to move these operations from the expensive text-prompting layer to the model's efficient internal embedding space.
The EmbQA Framework
EmbQA replaces multi-turn text interactions with single-turn operations in the latent semantic space. The framework consists of two primary components: self-refinement driven reranking and exploratory embedding injection.
1. Self-Refinement Driven Reranking
Rather than using a complex LLM prompt to evaluate and rerank retrieved passages, EmbQA utilizes a lightweight linear layer. The process begins with the LLM generating a small set of initial candidate answers. These candidates, along with the original query, are mapped into a shared embedding space.
A simple linear combination ($W_1e_y + W_2e_q$) is used to refine the query representation. This refined embedding is trained using unsupervised contrastive learning, which encourages the retriever to prioritize passages that align with the generated candidate answers. This "boosts" the most promising documents without requiring the full retraining of the retriever or multiple LLM calls for reranking.
2. Exploratory Embedding & Entropy Selection
To diversify the model's output without multi-turn "self-verification" prompts, EmbQA manipulates the LLM's latent space directly:
- Exploratory Embedding: The system injects a single "exploratory" token embedding, sampled from a normal distribution, into the query. This nudge encourages the LLM to explore different neural pathways, allowing it to generate a diverse set of candidate answers in a single pass.
- Variance Gating: To ensure the exploratory tokens do not introduce excessive noise, the framework uses an analytical approximation based on order statistics to filter out embeddings that deviate too far from the established context.
- Entropy-Based Selection: Instead of employing a second LLM as a "judge" to select the best answer, EmbQA uses logit entropy. By measuring the model's internal uncertainty for each generated candidate, the system selects the answer with the lowest entropy—representing the model's highest mathematical confidence.
Experimental Setup
The framework was evaluated across four standard ODQA benchmarks: HotpotQA and 2WikiMulti-hopQA (multi-hop reasoning), Natural Questions (NQ) (search-based queries), and WebQuestions (WebQ) (knowledge-base queries). The authors tested EmbQA using three open-source LLMs—LLaMA 3.1-8B, Mistral-7B, and Qwen2.5-7B—against baseline retrieval methods including BM25, DPR, and Contriever.
Key Results and Insights
EmbQA demonstrates that internal model vectors can serve as "compressed logic," triggering internal knowledge as effectively as long-form prompts. Key performance metrics include:
- Accuracy Gains: On the challenging HotpotQA dataset, EmbQA achieved an Exact Match (EM) score of 42.0, significantly outperforming the previous state-of-the-art prompt-level framework, SuRe, which scored 38.8.
- Efficiency: The framework reduced inference time per query from 1.56 minutes to 0.53 minutes when using LLaMA 3.1.
- Cost Reduction: EmbQA utilized only 0.99k output tokens per query, compared to 3.51k for prompt-based baselines—a 72% reduction in token costs.
- Robustness: The exploratory injection consistently improved "candidate coverage," ensuring that the correct answer was more likely to be present within the initial generated set across all tested datasets.
Conclusion and Limitations
EmbQA represents a shift toward more efficient ODQA by leveraging the mathematical properties of LLMs rather than their linguistic generation capabilities alone. By using logit entropy as a proxy for correctness and linear algebra for reranking, the framework achieves superior results with a fraction of the computational cost.
However, the framework currently requires "white-box" access to the model's internal weights and embeddings, making it less suitable for proprietary APIs like GPT-4. Additionally, while the contrastive reranking is lightweight, it does require an unsupervised training phase. Future research may focus on adaptive mechanisms that dynamically scale the level of exploration based on the perceived difficulty of the input query.
Summary updated