Verifying LLM-extracted text with token alignment

Read full text
Authors: A. Sina Booeshaghi, Aaron Streets
Cited by: 0
References: 87

Abstract

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.

Fields of Study & Subjects

Topic Modeling Natural Language Processing Techniques Advanced Text Analysis Techniques

Publication details

Journal / source
bioRxiv (Cold Spring Harbor Laboratory)
Publication date
10 February 2026
Language
EN
Document type
Preprint