Skip to main content
QUICK REVIEW

[Paper Review] The Web Can Be Your Oyster for Improving Large Language Models

Junyi Li, Tianyi Tang|arXiv (Cornell University)|May 18, 2023
Topic ModelingComputer Science5 citations
TL;DR

This paper proposes UniWeb, a unified web-augmented framework that enhances large language models (LLMs) by dynamically querying Google Search for up-to-date, comprehensive knowledge. It introduces adaptive search engine-assisted learning to reduce noisy retrieval and continual knowledge learning to align retrieved web content with model-internal knowledge, significantly outperforming prior retrieval-augmented methods across 16 knowledge-intensive tasks.

ABSTRACT

Large language models (LLMs) encode a large amount of world knowledge. However, as such knowledge is frozen at the time of model training, the models become static and limited by the training data at that time. In order to further improve the capacity of LLMs for knowledge-intensive tasks, we consider augmenting LLMs with the large-scale web using search engine. Unlike previous augmentation sources (e.g., Wikipedia data dump), the web provides broader, more comprehensive and constantly updated information. In this paper, we present a web-augmented LLM UNIWEB, which is trained over 16 knowledge-intensive tasks in a unified text-to-text format. Instead of simply using the retrieved contents from web, our approach has made two major improvements. Firstly, we propose an adaptive search engine assisted learning method that can self-evaluate the confidence level of LLM's predictions, and adaptively determine when to refer to the web for more data, which can avoid useless or noisy augmentation from web. Secondly, we design a pretraining task, i.e., continual knowledge learning, based on salient spans prediction, to reduce the discrepancy between the encoded and retrieved knowledge. Experiments on a wide range of knowledge-intensive tasks show that our model significantly outperforms previous retrieval-augmented methods.

Motivation & Objective

  • To address the limitations of static, outdated knowledge in large language models (LLMs) by integrating dynamic, up-to-date information from the web.
  • To reduce reliance on static knowledge sources like Wikipedia, which are incomplete and not updated in real time.
  • To develop a unified, multi-task framework that effectively leverages web retrieval for diverse knowledge-intensive tasks.
  • To minimize the discrepancy between knowledge encoded in LLMs and knowledge retrieved from the web through a novel pretraining task.
  • To enable selective, confidence-based web retrieval to avoid noise and improve reliability.

Proposed method

  • Adopt a text-to-text format to unify 16 diverse knowledge-intensive tasks for joint training.
  • Implement an adaptive search engine-assisted learning method that triggers web retrieval only when the LLM’s prediction confidence is low, based on entropy-based self-evaluation.
  • Use a commercial search engine (Google Search) as the retriever to access broad, real-time, and comprehensive web content.
  • Design a pretraining task called 'continual knowledge learning' that trains the model to predict salient masked spans in retrieved web documents, aligning external knowledge with internal representations.
  • Integrate retrieved web passages into the model input via a unified prompt structure, enabling end-to-end generation with external evidence.
  • Train the model end-to-end using a combination of in-domain fine-tuning and continual knowledge learning on retrieved web data.

Experimental results

Research questions

  • RQ1Can dynamic web retrieval improve the performance of LLMs on knowledge-intensive tasks beyond static knowledge sources like Wikipedia?
  • RQ2How can LLMs be made to selectively query the web only when necessary, to avoid noise and reduce computational cost?
  • RQ3What pretraining strategy effectively reduces the distributional discrepancy between internal model knowledge and retrieved web knowledge?
  • RQ4Can a unified framework effectively handle diverse knowledge-intensive tasks using web-augmented LLMs?
  • RQ5How does the quality of retrieved search results impact model performance, and what is the optimal retrieval depth?

Key findings

  • UniWeb significantly outperforms previous retrieval-augmented methods across 16 knowledge-intensive tasks, demonstrating state-of-the-art performance.
  • The model achieves higher accuracy on real-time question-answering benchmarks like RealTime QA, correctly identifying 'Croatia and Morocco' as the 2022 World Cup finalists, while static sources fail due to outdated content.
  • The use of top-6 to 10 search results achieves comparable performance to top-1 to 5, justifying the choice of K=10 for balancing cost and effectiveness.
  • Self-evaluation via prediction entropy shows strong correlation with model confidence, with correct predictions having lower average entropy.
  • The continual knowledge learning pretraining task effectively reduces the discrepancy between encoded and retrieved knowledge, improving alignment and generalization.
  • The model demonstrates robustness to noisy or low-quality results, especially when combined with confidence-based retrieval gating.

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.