Verifying LLM-extracted text with token alignment
Cite this version: A. Sina Booeshaghi, Aaron Streets. bioRxiv · 2026-02-10
Large language models can extract text effectively but may hallucinate content absent from their source. Exact matching verifies contiguous spans, whereas discontiguous extraction depends strongly on tokenization and ordered alignment. LLM-specific subword tokenization with ordered alignment improves performance by about 50% over word-level tokenization, and taln implements this practical verification approach.
- Relations
- 188
- Kinds
- 6
Version of
Connected records
Claims (172)
Showing 157–168.
- Token size determines which alignments are computationally tractable.
This publication contains this grounded claim.
Evidence
Thus, token size directly determines what alignments are findable and computationally tractable.
Source: 2026-02-10-biorxiv.pdf
- Token size determines which alignments are findable.
This publication contains this grounded claim.
Evidence
Thus, token size directly determines what alignments are findable and computationally tractable.
Source: 2026-02-10-biorxiv.pdf
- Token size introduces a fundamental alignment tradeoff.
This publication contains this grounded claim.
Evidence
Tokens can, in principle, be any unit of text—from individual characters to full words or even multi-word expressions—but token size introduces a fundamental tradeoff [Whittington et al., 2024].
Source: 2026-02-10-biorxiv.pdf
- Token-based alignment can deterministically verify whether extracted text exists without LLM semantic judgment.
This publication contains this grounded claim.
Evidence
Our results show that this verification constraint can be satisfied deterministically using token-based alignment, without requiring semantic judgment by an LLM.
Source: 2026-02-10-biorxiv.pdf
- Tokenization contributes to alignment accuracy independently of alignment algorithm choice.
This publication contains this grounded claim.
Evidence
As a result, alignment accuracy increased to 98–99% across all methods (Figure 2a and Supplementary Figure S1a, solid), demonstrating that tokenization—not the alignment algorithm alone—also contributes to align- ment accuracy.
Source: 2026-02-10-biorxiv.pdf
- Verification is straightforward for contiguous phrases.
This publication contains this grounded claim.
Evidence
For uninterrupted ("contiguous") phrases, verification is straightforward.
Source: 2026-02-10-biorxiv.pdf
- Verification of non-contiguous phrases requires alignment that handles intervening elements.
This publication contains this grounded claim.
Evidence
For non-contiguous phrases, verification is harder; alignment must handle intervening elements.
Source: 2026-02-10-biorxiv.pdf
- Very large tokens can hide extracted phrases by merging punctuation, symbols, acronyms, or alphanumeric identifiers.
This publication contains this grounded claim.
Evidence
Conversely, very large tokens (e.g. whole sentences) reduce the search space by merging punctua- tion, symbols, acronyms, or alphanumeric identifiers in ways that may hide LLM-extracted phrases.
Source: 2026-02-10-biorxiv.pdf
- Very large tokens reduce the alignment search space.
This publication contains this grounded claim.
Evidence
Conversely, very large tokens (e.g. whole sentences) reduce the search space by merging punctua- tion, symbols, acronyms, or alphanumeric identifiers in ways that may hide LLM-extracted phrases.
Source: 2026-02-10-biorxiv.pdf
- Whitespace and newlines are collapsed before tokenization.
This publication contains this grounded claim.
Evidence
Before tokenization, source and target text are normalized by applying Unicode normalization and ASCII translit- eration (unidecode), mapping several common punctuation/symbol variants to ASCII, and collapsing whitespace and newlines.
Source: 2026-02-10-biorxiv.pdf
- Whitespace-tokenization inconsistencies involving punctuation and quotation marks prevent correct token-level alignment.
This publication contains this grounded claim.
Evidence
These failures arose from inconsistencies introduced by whitespace tokenization, where punctuation or quo- tation marks are inconsistently attached to neighboring words, preventing correct token-level alignment.
Source: 2026-02-10-biorxiv.pdf
- Word tokens were defined as maximal non-whitespace regex matches.
This publication contains this grounded claim.
Evidence
Word tokens are maximal non-whitespace runs found by regex matching.
Source: 2026-02-10-biorxiv.pdf