bioRxivBioinformaticsPreprint
Verifying LLM-extracted text with token alignment
Abstract
Large language models excel at text extraction, but they sometimes hallucinate. A simple way to avoid hallucinations is to remove any extracted text that does not appear in the original source. This is easy when the extracted text is contiguous (findable with exact string matching), but much harder when it is discontiguous. Techniques for finding discontiguous phrases depend heavily on how the text is split--i.e., how it is tokenized. In this study, we show that splitting text along subword boundaries, with LLM-specific tokenizers, and aligning extracted text with ordered alignment algorithms, improves alignment by about 50% compared to word-level tokenization. To demonstrate this, we introduce the Berkeley Ordered Alignment of Text (BOAT) dataset, a modification of the Stanford Question Answering Dataset (SQuAD) that includes non-contiguous phrases, and BIO-BOAT a biomedical variant built from 51 bioRxiv preprints. We show that text-alignment methods form a partially ordered set, and that ordered alignment is the most practical choice for verifying LLM-extracted text. We implement this approach in taln, which enumerates ordinal subword alignments.
- Citations
- 0
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Illusions of Alignment Between Large Language Models and Brains Emerge From Fragile Methods and Overlooked Confounds
Nima Hadidi, Ebrahim Feghhi, … Jonathan C. Kao·bioRxiv·Mar 9, 2025
- LLM-powered automatic scoring tools for memory recall
Rayna S. Tang, Savannah Born, … Zachariah M. Reagh·bioRxiv·Oct 8, 2026
- A Study of Calibration as a Measurement of Trustworthiness of Large Language Models in Biomedical Research
Rodrigo de Oliveira, Matthew Garber, … Christina DeFilippo Mack·JAMIA OpenPeer-reviewed·Jul 3, 2025
- OmniExtract: An automatic data extraction tool based on Large Language Model and Prompt Engineering
Yibo Wang, Bixia Tang, … Wenming Zhao·Briefings in BioinformaticsPeer-reviewed·Sep 1, 2026
- Large Language Models to process, analyze, and synthesize biomedical texts - a scoping review
Simona Emilova Doneva, Sijing Qin, … Benjamin Victor Ineichen·bioRxiv·Apr 19, 2024
- Scaling, but not instruction tuning, increases large language models' alignment with language processing in the human brain
Changjiang Gao, Zhengwu Ma, … Jixing Li·bioRxiv·Aug 15, 2024