TL;DR
Academic writing is tough because LLMs often "hallucinate" citations. ScholarCopilot tackles this by integrating citation retrieval directly into the text generation process, allowing the model to dynamically decide when and what to cite. This leads to more accurate and coherent academic writing, even outperforming larger models and ChatGPT in user studies.
What Problem Does This Paper Address?
Writing academic papers requires not only generating coherent and relevant text but also accurately citing sources. While existing Retrieval-Augmented Generation (RAG) systems have improved factual accuracy in general text generation, they often fall short for academic writing. A major issue is "citation hallucination," where LLMs invent citations or cite irrelevant sources, undermining their reliability. Traditional RAG systems typically use a "retrieve-then-generate" pipeline, which is static and doesn't adapt to the evolving context of the writing process. This means the model can't dynamically adjust its retrieval strategy based on what it's currently writing, leading to misaligned queries and suboptimal citations.
Methods
ScholarCopilot introduces a novel, unified framework that seamlessly integrates text generation and citation retrieval. Instead of separate steps, it uses an iterative RAG approach. The key innovation is the introduction of a special retrieval token, [RET]. When the LLM generates this token, it signals that a citation is needed. The model then pauses generation, queries a citation database using the current context, and integrates the retrieved references back into the generation process.
This framework is built on the Qwen-2.5-7B model and is trained to jointly optimize both text generation (next token prediction) and citation retrieval (contrastive learning). This joint optimization ensures that the retrieval mechanism is tightly coupled with the generation process, leading to more context-aware and accurate citations. The model also allows for optional user refinement, adding a layer of human control.
Datasets
- Training Data: ScholarCopilot was trained on a large-scale dataset of 500,000 computer science papers from arXiv. This dataset was meticulously constructed by parsing LaTeX source files, extracting structured components, and performing citation extraction and matching.
- Evaluation Data: The paper uses a subset of 1,000 academic writing samples for generation quality evaluation. For retrieval accuracy, they used a test set derived from the arXiv corpus.
Key Insights and Ideas
- Dynamic Retrieval is Crucial: The "retrieve-then-generate" pipeline is too rigid for academic writing. Dynamically deciding when to retrieve based on the generation context is key to accurate citations.
- Unified Training Pays Off: Jointly training generation and retrieval models leads to better alignment and improved performance on both tasks, without significant overhead.
[RET]Token as a Game Changer: Introducing a special token to trigger retrieval allows the LLM to control the citation process, making it more natural and context-aware.- Small Model, Big Impact: ScholarCopilot, a 7B parameter model, achieves performance comparable to or exceeding much larger models, highlighting the effectiveness of its unified approach.
Key Results
- Retrieval Accuracy: ScholarCopilot achieved a top-1 retrieval accuracy of 40.1%, significantly outperforming baselines like E5-Mistral-7B-Instruct (15.0%) and BM25 (9.8%).
- Generation Quality: On a 1,000-sample dataset, ScholarCopilot scored 16.2/25 in generation quality (measured across relevance, coherence, academic rigor, completeness, and innovation). This surpassed larger models like Retrieval-Augmented Qwen2.5-72B-Instruct (15.8).
- Human Studies:
- Citation Quality: ScholarCopilot achieved 100% preference over ChatGPT.
- Overall Usefulness: 70% preference over ChatGPT.
- Participants rated ScholarCopilot highly for citation accuracy (4.6/5), interface clarity (4.5/5), and writing style (4.5/5).
Limitations and Future Work
- Scope: ScholarCopilot currently supports only the Introduction and Related Work sections. Future work aims to extend this to other sections and diverse academic disciplines.
- Innovation: The user study indicated that while ScholarCopilot excels at generating academically sound content, it may be less effective at proposing novel ideas or innovative directions. This suggests a need for exploring larger models, expanded datasets, and targeted training for creativity.
- User Experience: Response time was noted as a limitation, partly due to hardware constraints during the study. Future work will focus on improving user interaction, such as persistent content storage and load balancing.
- Integration: Suggestions include integrating ScholarCopilot with writing platforms like Overleaf.
Summary updated