{"slug": "how-to-use-ai-to-write-papers-without-hallucinated-references", "title": "How to use AI to write papers without hallucinated references", "summary": "Criminologist Andrew Wheeler reports that papers he wrote with Anthropic's V5 Sonnet, Fable and Opus, OpenAI's V5.6 Luna and Sol, and Grok V4.7 produced no hallucinated references, attributing the result to detailed prompting rather than model improvements. Wheeler argues hallucinated citations remain a user problem, since telling an AI to write an entire paper, especially a systematic review, invites fabricated references, and peer-review lags mean older AI-written papers will keep surfacing for a year or two. His approach includes a 54-line initial prompt specifying a private GitHub repository, separate .bib file, PDF and markdown output, and named sources for each section.", "body_md": "Despite claims that [AI hallucinated\n    references](https://zou-group.github.io/llm-claims-shelf-life) are a thing of older model versions, I am still adding several hallucinated\n    references to the [hall of hallucinated\n    references](https://veruscite.com/hallucinations) every day.\n\n    It is true that newer models are more capable as they come out. But given\n    [the\n    lags in peer review](https://andrewpwheeler.com/2018/05/09/the-length-it-takes-from-submission-to-publication/), even if every AI model today had a zero percent rate of generating\n    hallucinations, we would still see older AI-written papers moving through peer review over the\n    next year or two.\n\nIn reality though, it has been (and will continue to be) a user issue. If you use AI responsibly, it has been possible to avoid hallucinations for well over a year now. If you just tell the AI to write your whole paper (in particular your systematic review), you are going to have problems. Hence I do not think VerusCite is going to become obsolete anytime soon.\n\n    What does using AI responsibly look like in this scenario? I have been using AI to write papers\n    whole cloth for a bit now (see these two posts on my personal blog for examples:\n    [1](https://andrewpwheeler.com/2026/09/24/adventures-in-using-ai-to-write-papers/),\n    [2](https://andrewpwheeler.com/2026/10/08/veruscite-is-now-1-crime-de-coder-store-updates-ccj-homicide-report-and-some-more-ai-papers/)).\n    I have written papers this way with Anthropic (V5 Sonnet, Fable, Opus), OpenAI (V5.6 Luna and\n    Sol), and Grok (V4.7). None have produced a single hallucinated reference.\n\n### What is the trick?\n\n    It is more advice about how to do this professionally than “one hack to prevent\n    hallucinations”. For example, here is\n    [my initial\n    prompt](https://github.com/apwheele/ConformalFair/blob/main/PromptConformalFair.txt) to Grok when writing about using conformal prediction to ensure fairness in\n    recidivism instruments:\n\n## Show the full prompt (54 lines)\n\n```\nI want to write an academic paper on the conformal sets and fairness in recidivism models. First create a private github repo to store the work.\n\nIn particular, see \n\nhttps://andrewpwheeler.com/2024/06/07/conformal-sets-and-setting-recall/ (see this for example data)\nhttps://andrewpwheeler.com/2024/06/09/conformal-sets-part-2-estimating-precision/\n\nIn which I derive a novel way to set the false positive rate. You should be able to read https://www.crimrxiv.com/pub/bc7mptfb/release/1 for a background of the data (NIJ recidivism competition data). I want to do that, but show how to use it conditionally with racial groups to set the false positive to be the same.\n\nSee G:/SynthPower for an example of how to set up the repo (you have access to uv and quarto). I want the paper to be compiled to both PDF and markdown (so can view the markdown on github). Have a seperate bib file for the references.\n\nHave the intro state the motivation for the project, have the background lit review state that there are generally two ways to do fairness, modify the loss function (cite Berk work, Mohler penalized work), or can modify how the predictions are used (cite Wheeler allocation, Corbett-Davies article, and Kleinberg article). This approach is the later, and shows how to set the threshold to meet the same false positive rate constraint.\n\nThen have a mathematical section to discuss the conformal set approach, and the mathematical approach to setting the false positive rate (use the same table examples I do in the estimating precision blog post). \n\nThen go through an example demo with the NIJ recidivism paper. First show a demo using random forests. RF are easier, because you can just use the OOB to get the conformal sets (cite the Wager paper here). Show how different thresholds correspond to different false positive rates for the groups. Maybe a chart that looks like the one in https://andrewpwheeler.com/2020/01/05/balancing-false-positives/ (open to better suggestions).\n\nThen show an example using CatBoost, which requires held out data, (cite the Porter Mohler paper on NIJ recidivism) and https://andrewpwheeler.com/2021/07/24/variance-of-leaderboard-metrics-for-competitions/ for how to prep the data. You can discuss the accuracy of each model (Brier score and AUC) to compare to the competition, and cite that blog post to say whether it is reasonably close to the leaderboard (although does not matter). Just use a single hold out on the training data to get the conformal intervals.\n\nFor discussion, say limitations are that it is not continuous learning in real-time (cite the Chohlas learning to be fair). Also say that while RF are convenient, other models are likely more accurate, necessitating the need to have a hold out sample. How large to make the hold out is itself an additional question not addressed here. Can cite some of the work by Rudin on simple models, complicated boosted are themselves limitations (but this approach can be applied to those simple models as well).\n\nPapers that should be cited (fill in as needed)\n\n - canonical paper for conformal sets\n - Richard Berk paper on modifying logistic regression for fairness\n - Berk, R. A. (2016). A primer on fairness in criminal justice risk assessments. The Criminologist, 41,\n6–9.\n - Richard Berk paper on conformal sets for recidivism prediction\n - Circo, G. M., & Wheeler, A. P. (2025). An Open Source Replication of a Winning Recidivism Prediction Model. International Journal of Offender Therapy and Comparative Criminology, 69(5), 438-453. https://doi.org/10.1177/0306624X221133004\n - Michael Porter and George Mohler's paper on the NIJ recidivism\n - The accuracy of the violent offender identification directive tool to predict future gun violence\nAP Wheeler, RE Worden, JR Silver\nCriminal justice and behavior 46 (5), 770-788 (can be extended beyond recidivism, can be used proactively by police departments)\n - Allocating police resources while limiting racial inequality\nAP Wheeler\nJustice quarterly 37 (5), 842-868\n- A cite for the NIJ competition data\n- Corbett-Davies, S., Pierson, E., Feller, A., Goel, S., & Huq, A. (2017). Algorithmic decision making\nand the cost of fairness. KDD, August, pp. 797–806.\n- Kleinberg, J., Ludwig, J., Mullainathan, S., & Rambachan, A. (2018). Algorithmic fairness. Aea\nPapers and Proceedings, 108, 22–27. doi:10.1257/pandp.20181018\n - Mohler, G. O., Raje, R., Valasik, M., Carter, J., & Brantingham, P. J. (2018). A penalized likelihood\nmethod for balancing accuracy and fairness in predictive policing. Paper presented at the\nIEEE International Conference on Systems, Man, and Cybernetics. Retrieved from https://www.\nresearchgate.net/profile/Jeremy_Carter2/publication/327057079_A_penalized_likelihood_\nmethod_for_balancing_accuracy_and_fairness_in_predictive_policing/links/5b75769745851546\nc909dacc/A-penalized-likelihood-method-for-balancing-accuracy-and-fairness-in-predictivepolicing.pdf.\n- Chohlas-Wood, Alex, et al. \"Learning to be fair: A consequentialist approach to equitable decision making.\" Management Science 72.1 (2026): 456-473.\n- S. Wager, T. Hastie and B. Efron. Confidence Intervals for Random Forests: The Jackknife and the Infinitesimal Jackknife. Journal of Machine Learning Research, 15, pp 1625-1651 (2014)\n- Rudin on simple models\n\nFirst conduct the analysis, then review G:Writing/ to see examples of my prior writing. After that, fill in the paper. Make it human readable, but in the format of a peer review journal article.\n\nOnce that is done, upload the paper/markdown/etc to github for me to see the result. I will review before saying to make the repo public.\n```\n\nSo it is very guided from the start, including what references to include. For a simpler breakdown of what to include in your initial prompt:\n\n- Have a demonstration of how to set up the repository for the work (you can clone mine if you want).\n- \n        Ensure the AI agent *writes a separate bibliography file* . This is where Quarto is\n        very nice for creating papers.\n- Be specific in what you want in the paper: the goal, the outline, and what to cite.\n\n    If you want to see entire conversations, check out my\n    [Spline Regression Discontinuity](https://github.com/apwheele/SplineRDD) or\n    [Tabular Models for Recidivism Prediction](https://github.com/apwheele/TabularRecid)\n    papers. They both use Opus 5.5, and I exported the entire conversation, so you can see where I\n    asked for updates and revisions.\n\n    You can see that I reviewed the output, and sometimes told it to remove references (if the AI\n    cites it, you should check out the paper!). Because\n    [VerusCite has an API](https://veruscite.com/docs/api/), you can even set up an MCP\n    server (or just call the API directly) to check the paper at the end. I just did that step\n    manually for those papers, but it is easy to have the agent do it as part of the same session.\n\n### One exception: cheaper open weight models\n\n    One exception to this is my Vulcan Veil software, where\n    [I have demos of long-run tasks](https://vulcanveil.com/blog/long-run-tasks) using\n    the cheaper open weight models. Each of the models tested (Muse Spark Open, GLM 5.3 Flash, and\n    DeepSeek V4.1 Flash) did produce hallucinated citations, even using the above approach.", "url": "https://wpnews.pro/news/how-to-use-ai-to-write-papers-without-hallucinated-references", "canonical_source": "https://veruscite.com/blog/ai-papers-without-hallucinations", "published_at": "2026-11-29 16:24:16+00:00", "updated_at": "2026-11-29 16:44:40.797982+00:00", "lang": "en", "topics": ["artificial-intelligence", "large-language-models", "generative-ai", "ai-tools"], "entities": ["Andrew Wheeler", "Anthropic", "OpenAI", "Grok", "VerusCite", "Claude Sonnet", "GitHub"], "also_reported_by": [], "takeaway": "Specifying the repository setup, a separate .bib file, PDF and markdown output, and named citations for each section in a 54-line initial prompt let Wheeler write papers with Anthropic, OpenAI and Grok models without a single hallucinated reference.", "recommendation": {"advice": "Scope the AI's task section by section and name the sources to cite in each, keeping references in a separate .bib file, rather than asking a model to write a whole paper or systematic review.", "playbook": "output-verification", "playbook_url": "https://wpnews.pro/playbooks/output-verification"}, "alternates": {"html": "https://wpnews.pro/news/how-to-use-ai-to-write-papers-without-hallucinated-references", "markdown": "https://wpnews.pro/news/how-to-use-ai-to-write-papers-without-hallucinated-references.md", "text": "https://wpnews.pro/news/how-to-use-ai-to-write-papers-without-hallucinated-references.txt", "jsonld": "https://wpnews.pro/news/how-to-use-ai-to-write-papers-without-hallucinated-references.jsonld"}}