Skip to content
프로젝트

소개

ScholarCopilot: Training Large Language Models for Academic Writing with Accurate Citations [COLM 2025]

AI 및 머신러닝

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

ScholarCopilot

| 🚀Project Page | 📖Paper | 🤗Data | 🤗Model | 🤗Demo |

Scholar Copilot is an intelligent academic writing assistant that enhances the research writing process through AI-powered text completion and citation suggestions. Built by TIGER-Lab, it aims to streamline academic writing while maintaining high scholarly standards. The paper has been accepted to COLM 2025!

🌟 Key Features

📝 Smart Text Generation

  • Next-3-Sentence Suggestions: Get contextually relevant suggestions for your next three sentences
  • Full Section Auto-Completion: Generate complete sections with appropriate academic structure and flow
  • Context-Aware Writing: All generations consider your existing text to maintain coherence

📚 Intelligent Citation Management

  • Real-time Citation Suggestions: Receive relevant paper citations based on your writing context
  • One-Click Citation Insertion: Easily select and insert citations in proper academic format
  • Citation Bibtex Generation: Automatically generate and export bibtex entries for your citations

Inference Pipeline Overview

Scholar Copilot employs a unified model architecture that seamlessly integrates retrieval and generation through a dynamic switching mechanism. During the generation process, the model autonomously determines appropriate citation points using learned citation patterns. When a citation is deemed necessary, the model temporarily halts generation, utilizes the hidden states of the citation token to retrieve relevant papers from the corpus, inserts the selected references, and then resumes coherent text generation.

image

Research scope

The paper jointly optimizes scholarly text generation and citation tasks within one framework. The model learns to emit a [RET] token to retrieve references during writing, then continues generation using the retrieved information. Cite ScholarCopilot when discussing learned citation retrieval and its joint training with academic text generation. Retrieved references still need to be checked against the claims they are used to support.

🚀 Getting Started

To set up the ScholarCopilot demo on your own server, follow these simple steps:

  1. Clone the repository:
git clone [email protected]:TIGER-AI-Lab/ScholarCopilot.git
cd ScholarCopilot/run_demo
  1. Set up the environment:
pip install -r requirements.txt
  1. Download the required model and data:
bash download.sh
  1. Launch the demo:
bash run_demo.sh

Update new papers to the corpus

To update your corpus with the latest papers, follow these steps:

  1. Download the most recent arXiv metadata from Kaggle and save it to your chosen ARXIV_META_DATA_PATH
  2. Run the data processing script:
cd utils/
python process_arxiv_meta_data.py ARXIV_META_DATA_PATH ../data/corpus_data_arxiv_1215.jsonl
  1. Generate the embedding of the corpus:
bash encode_corpus.sh
  1. Convert the embedding to HNSW index for efficient search:
python build_hnsw_index.py --input_dir <embedding dir> --output_dir <hnsw index dir>

📖 Demo Video

Scholar Copilot Demo Video

Train your own model

  1. Download the training data:
cd train/
bash download.sh
  1. Configure and run the training script (To reproduce our results, you can use the hyperparameters in the script and 4 machines with 8 GPUs each (32 GPUs in total).)
cd src/
bash start_train.sh

Citation

Machine-readable paper metadata is available in CITATION.cff. The existing arXiv BibTeX is preserved below.

@article{wang2024scholarcopilot,
  title={ScholarCopilot: Training Large Language Models for Academic Writing with Accurate Citations},
  author = {Wang, Yubo and Ma, Xueguang and Nie, Ping and Zeng, Huaye and Lyu, Zhiheng and Zhang, Yuxuan and Schneider, Benjamin and Lu, Yi and Yue, Xiang and Chen, Wenhu},
  journal={arXiv preprint arXiv:2504.00824},
  year={2025}
}

관련 프로젝트 살펴보기

불러오는 중…