LitLLM: A Toolkit for Scientific Literature Review

Shubham Agarwal, Issam H. Laradji, Laurent Charlin, Christopher PalarXiv 2024 · DOI

Abstract

The "Related Work" section is a critical component of scientific writing, yet its creation is often hindered by the vast volume of existing literature and the limitations of current AI tools, such as hallucinations and knowledge cutoffs. We introduce LitLLM, an open-source toolkit designed to streamline this process. LitLLM utilizes a Retrieval-Augmented Generation (RAG) framework to fetch real-time data from academic databases, re-rank results for relevance, and generate structured reviews through a controllable "sentence planning" interface. This approach ensures that generated content is factually grounded in the most recent research while providing authors with granular control over the narrative flow.

Introduction

Writing a comprehensive literature review is a cornerstone of the research process, requiring scholars to synthesize dozens or hundreds of papers into a coherent narrative. While Large Language Models (LLMs) offer potential for automation, they are often unsuitable for academic use due to two primary issues: hallucinations—where the model invents non-existent citations—and knowledge cutoffs—where the model lacks awareness of papers published after its training.

LitLLM addresses these challenges by shifting from pure generative modeling to a Retrieval-Augmented Generation (RAG) framework. By grounding the LLM's output in actual retrieved abstracts, LitLLM provides a reliable assistant for researchers to draft "Related Work" sections efficiently.

Methodology: The LitLLM Pipeline

The LitLLM system operates through a modular four-step pipeline designed to maximize relevance and factual accuracy.

The LitLLM system architecture, illustrating the flow from user query to the final generated related work section.
  1. Keyword Extraction: The process begins with a user-provided abstract or research idea. An LLM summarizes this input into optimized search keywords.
  2. Paper Retrieval: These keywords are used to query massive academic databases, specifically the Semantic Scholar Open Data Platform (containing over 300 million records) and OpenAlex. This ensures the system has access to the most recent publications. For internal evaluation, the authors utilized the Multi-XScience dataset, a benchmark for multi-document summarization of scientific articles.
  3. LLM Re-Ranking: To handle the high volume of search results, LitLLM employs a permutation-based re-ranking module. The top candidates are fed back into an LLM to be ranked specifically against the user's research goals, ensuring the final selection is highly pertinent.
  4. Controllable Generation: The final stage uses "Sentence-Based Planning." Instead of an unconstrained prompt, the system generates a plan (or allows the user to specify one) that dictates which papers should be cited on specific lines. This constraint forces the LLM to maintain a cohesive storyline and strictly adhere to the provided evidence.

System Implementation and User Interface

The LitLLM interface is designed to be intuitive, allowing researchers to interact with each stage of the pipeline. Users can input their research abstract, view retrieved and re-ranked papers, and then use the "Sentence Plan" feature to guide the final generation.

The LitLLM user interface, showing the search input, re-ranked results, and the controllable generation panel with a sentence plan.

By providing the LLM with the actual abstracts of retrieved papers as context, the system acts as a fact-checker. The model is instructed to only use the provided text, which significantly mitigates the "imaginary paper" problem common in standard LLM outputs. Standard keyword search is often too broad; using an LLM as a "second-pass" ranker allows the system to understand the semantic relationship between the user's goal and the search results.

Key Insights and Results

The development of LitLLM highlights several critical insights for AI-assisted academic writing. Preliminary user studies involving five researchers demonstrated a "substantial reduction in time and effort" for conducting literature reviews compared to traditional manual searching and drafting. Qualitative evaluations showed that plan-based generation produced more usable, concise, and structured reviews compared to standard zero-shot RAG approaches, which tended to be more verbose and less focused.

Limitations and Future Directions

While LitLLM represents a significant step forward, several areas for improvement remain. Currently, the system primarily processes paper abstracts, which may miss specific technical details buried in the full body of the text. Future iterations aim to integrate efficient PDF parsing to allow for deeper technical analysis. Additionally, the authors plan to expand the retrieval capabilities to include other major academic APIs like Google Scholar to ensure comprehensive coverage across all scientific domains.

Conclusion

LitLLM provides a robust, open-source solution for the automation of scientific literature reviews. By combining the retrieval power of massive academic databases with the generative capabilities of LLMs—and adding a layer of user-driven controllability—it empowers researchers to produce high-quality, factually grounded "Related Work" sections with unprecedented efficiency.

For more information and to access the live demo, visit https://litllm.github.io.

Summary updated

Abstract

Conducting literature reviews for scientific papers is essential for understanding research, its limitations, and building on existing work. It is a tedious task which makes an automatic literature review generator appealing. Unfortunately, many existing works that generate such reviews using Large Language Models (LLMs) have significant limitations. They tend to hallucinate-generate non-factual information-and ignore the latest research they have not been trained on. To address these limitations, we propose a toolkit that operates on Retrieval Augmented Generation (RAG) principles, specialized prompting and instructing techniques with the help of LLMs. Our system first initiates a web search to retrieve relevant papers by summarizing user-provided abstracts into keywords using an off-the-shelf LLM. Authors can enhance the search by supplementing it with relevant papers or keywords, contributing to a tailored retrieval process. Second, the system re-ranks the retrieved papers based on the user-provided abstract. Finally, the related work section is generated based on the re-ranked results and the abstract. There is a substantial reduction in time and effort for literature review compared to traditional methods, establishing our toolkit as an efficient alternative. Our project page including the demo and toolkit can be accessed here: https://litllm.github.io
BibTeX
@misc{agarwal2024litllm,
  author = {Shubham Agarwal and Issam H. Laradji and Laurent Charlin and Christopher Pal},
  title = {{LitLLM: A Toolkit for Scientific Literature Review}},
  year = {2024},
  eprint = {2402.01788},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.01788},
}
Figure