| 🚀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!
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.
To set up the ScholarCopilot demo on your own server, follow these simple steps:
git clone git@github.com:TIGER-AI-Lab/ScholarCopilot.git
cd ScholarCopilot/run_demo
pip install -r requirements.txt
bash download.sh
bash run_demo.sh
To update your corpus with the latest papers, follow these steps:
cd utils/
python process_arxiv_meta_data.py ARXIV_META_DATA_PATH ../data/corpus_data_arxiv_1215.jsonl
bash encode_corpus.sh
python build_hnsw_index.py --input_dir <embedding dir> --output_dir <hnsw index dir>
cd train/
bash download.sh
cd src/
bash start_train.sh
@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}
}
$ claude mcp add ScholarCopilot \
-- python -m otcore.mcp_server <graph>