[Paper Review] Internet-augmented language models through few-shot prompting for open-domain question answering
The paper shows that conditioning large language models on retrieved web evidence via few-shot prompts improves open-domain QA performance, sometimes surpassing much larger closed-book models, and that increasing inference-time compute with multi-evidence reranking yields further gains.
In this work, we aim to capitalize on the unique few-shot capabilities of large-scale language models (LSLMs) to overcome some of their challenges with respect to grounding to factual and up-to-date information. Motivated by semi-parametric language models (LMs), which ground their decisions in external retrieved evidence, we use few-shot prompting to learn to condition LMs on information returned from the web using Google Search, a broad and constantly updated knowledge source. Our approach does not involve fine-tuning or learning additional parameters, thus making it applicable to any LM, offering therefore a strong baseline. Indeed, we find that LMs conditioned on the web surpass performance of closed-book models of similar, or even larger, model sizes in open-domain question answering. Finally, we find that increasing the inference-time compute of models, achieved via using multiple retrieved evidences to generate multiple answers followed by a reranking stage that uses scores generated by the same LMs, leads to better performance and alleviates lower performance of smaller few-shot LMs. All in all, our findings suggest that it might be beneficial to slow down the race towards the biggest model and instead shift attention towards finding more effective ways to use models, including but not limited to, better prompting or increasing inference-time compute.
Motivation & Objective
- Leverage few-shot prompting to ground large language models (LLMs) in up-to-date web information.
- Demonstrate that web-conditioned LLMs can outperform closed-book baselines of similar or larger size in open-domain QA.
- Explore the effect of query-based web retrieval (Google) as a universal knowledge source beyond Wikipedia.
- Investigate whether increased inference-time compute via multiple retrieved passages and reranking improves QA performance.
Proposed method
- Retrieve relevant web passages for each question using Google Search (top 20 URLs).
- Chunk retrieved documents into six-sentence paragraphs and select excerpts via TF-IDF cosine similarity to form evidence set P.
- Prompt the LLM with 15-shot in-context examples augmented by evidence paragraphs (no fine-tuning).
- Generate 4 candidate answers per paragraph and aggregate via scoring functions (direct inference, noisy channel, PoE) to select final answers.
- Explore multiple sampling of answers (n up to 50 paragraphs) and rerank to improve accuracy (RAG, Noisy Channel, PoE).
- Evaluate across datasets (NQ, HotpotQA, Fever, StrategyQA) and model sizes (44m–280B) to assess scaling and compute-time trade-offs.
Experimental results
Research questions
- RQ1Does conditioning LLMs on web evidence via few-shot prompts improve open-domain QA performance compared with closed-book prompts?
- RQ2How does retrieval quality (via Google Search) affect single-hop versus multi-hop QA tasks?
- RQ3Can increasing inference-time compute through multi-paragraph sampling and reranking close the gap between smaller open-book models and larger closed-book models?
- RQ4Is it possible to keep LLMs up-to-date using internet search without fine-tuning?
- RQ5What are the limitations and safety considerations of using a commercial search engine as the retrieval backbone?
Key findings
- conditioning Gopher-280B on Google-retrieved evidence consistently improves open-domain QA performance over closed-book baselines across all four datasets.
- gains are largest for generation tasks (up to ~30% relative improvement on NQ) and persist for smaller models, where open-book can outperform larger closed-book models.
- using multiple retrieved passages with reranking (PoE, Noisy Channel, RAG) yields additional gains over single-evidence conditioning, with PoE often performing best among the reranking strategies.
- Google-based retrieval shows competitive recall, sometimes outperforming Wikipedia-based dense retrievers on certain datasets, illustrating the web as a flexible knowledge source.
- smaller models can achieve strong results when augmented with web evidence and higher inference-time compute, sometimes surpassing much larger closed-book models.
- oracle-like gold-evidence conditioning represents an upper bound, highlighting room for improvement via better prompt optimization and constrained decoding.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.