Citation Management & Hallucination Prevention
This reference provides a complete workflow for managing citations programmatically, preventing AI-generated citation hallucinations, and maintaining clean bibliographies.
Contents
- - Why Citation Verification Matters
- - Citation APIs Overview
- - Verified Citation Workflow
- - Python Implementation
- - BibTeX Management
- - Common Citation Formats
- - Troubleshooting
- - ~40% error rate in AI-generated citations (Enago Academy research)
- - NeurIPS 2025 found 100+ hallucinated citations slipped through review
- - Common errors include:
- - Desk rejection at some venues
- - Loss of credibility with reviewers
- - Potential retraction if published
- - Wasted time chasing non-existent sources
- - Try more specific keywords
- - Check spelling of author names
- - Use quotation marks for exact phrases
- - DOI may be registered but not linked to CrossRef
- - Try arXiv ID instead if available
- - Generate BibTeX from metadata manually
- - Add delays between requests (1-3 seconds)
- - Use API key if available
- - Cache results to avoid repeat queries
- - Use proper LaTeX escaping:
{\"u}for ΓΌ - - Ensure file is UTF-8 encoded
- - Use BibLaTeX with Biber for better Unicode
- - [ ] Paper found in at least 2 sources
- - [ ] DOI or arXiv ID verified
- - [ ] BibTeX retrieved (not generated from memory)
- - [ ] Entry type correct (@inproceedings vs @article)
- - [ ] Author names complete and correctly formatted
- - [ ] Year and venue verified
- - [ ] Citation key follows consistent format
- - Semantic Scholar: https://api.semanticscholar.org/api-docs/
- - CrossRef: https://www.crossref.org/documentation/retrieve-metadata/rest-api/
- - arXiv: https://info.arxiv.org/help/api/basics.html
- - OpenAlex: https://docs.openalex.org/
- -
semanticscholar: https://pypi.org/project/semanticscholar/ - -
arxiv: https://pypi.org/project/arxiv/ - -
habanero(CrossRef): https://github.com/sckott/habanero - - Citely: https://citely.ai/citation-checker
- - ReciteWorks: https://reciteworks.com/
Why Citation Verification Matters
The Hallucination Problem
Research has documented significant issues with AI-generated citations:
- Fabricated paper titles with real author names
- Wrong publication venues or years
- Non-existent papers with plausible metadata
- Incorrect DOIs or arXiv IDs
Consequences
Solution
Never generate citations from memoryβalways verify programmatically.
Citation APIs Overview
Primary APIs
| API | Coverage | Rate Limits | Best For |
| ----- | ---------- | ------------- | ---------- |
| Semantic Scholar | 214M papers | 1 RPS (free key) | ML/AI papers, citation graphs |
| CrossRef | 140M+ DOIs | Polite pool with mailto | DOI lookup, BibTeX retrieval |
| arXiv | Preprints | 3-second delays | ML preprints, PDF access |
| OpenAlex | 240M+ works | 100K/day, 10 RPS | Open alternative to MAG |
| Feature | BibTeX | BibLaTeX | |
| --------- | -------- | ---------- | |
| Unicode support | Limited | Full | |
| Entry types | Standard | Extended (@online, @dataset) | |
| Customization | Limited | Highly flexible | |
| Backend | bibtex | Biber (recommended) |
Recommendation: Use natbib with BibTeX for conference submissions β all major venue templates (NeurIPS, ICML, ICLR, ACL, AAAI, COLM) ship with natbib and .bst files. BibLaTeX with Biber is an option for journals or personal projects where you control the template.
LaTeX Setup
`latex
% In preamble
\usepackage[
backend=biber,
style=numeric,
sorting=none
]{biblatex}
\addbibresource{references.bib}
% In document
\cite{vaswani_2017_attention}
% At end
\printbibliography
`
Citation Commands
`latex
\cite{key} % Numeric: [1]
\citep{key} % Parenthetical: (Author, 2020)
\citet{key} % Textual: Author (2020)
\citeauthor{key} % Just author name
\citeyear{key} % Just year
`
Consistent Citation Keys
Use format: author_year_firstword
`
vaswani_2017_attention
devlin_2019_bert
brown_2020_language
`
Common Citation Formats
Conference Paper
`bibtex
@inproceedings{vaswani_2017_attention,
title = {Attention Is All You Need},
author = {Vaswani, Ashish and Shazeer, Noam and Parmar, Niki and
Uszkoreit, Jakob and Jones, Llion and Gomez, Aidan N and
Kaiser, Lukasz and Polosukhin, Illia},
booktitle = {Advances in Neural Information Processing Systems},
volume = {30},
year = {2017},
publisher = {Curran Associates, Inc.}
}
`
Journal Article
`bibtex
@article{hochreiter_1997_long,
title = {Long Short-Term Memory},
author = {Hochreiter, Sepp and Schmidhuber, J{\"u}rgen},
journal = {Neural Computation},
volume = {9},
number = {8},
pages = {1735--1780},
year = {1997},
publisher = {MIT Press}
}
`
arXiv Preprint
`bibtex
@misc{brown_2020_language,
title = {Language Models are Few-Shot Learners},
author = {Brown, Tom and Mann, Benjamin and Ryder, Nick and others},
year = {2020},
eprint = {2005.14165},
archiveprefix = {arXiv},
primaryclass = {cs.CL}
}
`
Troubleshooting
Common Issues
Issue: Semantic Scholar returns no results
Issue: DOI doesn't resolve to BibTeX
Issue: Rate limiting errors
Issue: Encoding problems in BibTeX
Verification Checklist
Before adding a citation:
Additional Resources
APIs:
Python Libraries:
Verification Tools: