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
Results (9)
Showing 1–9.
- Character-level alignment has orders-of-magnitude greater memory cost than subword alignment, while subword tokenization
This publication reports this result.
- Deterministic token alignment verifies LLM-extracted text against its source nearly instantly and at negligible marginal
This publication reports this result.
- Higher alignment recall can reduce specificity, particularly for complex biomedical terminology, motivating domain-speci
This publication reports this result.
- Naive matching is fastest, while taln, LCS, and difflib scale approximately linearly with source length.
This publication reports this result.
- On biomedical BIO-BOAT targets, subword tokenization recovers about 89% of non-contiguous phrases versus 45-46% for word
This publication reports this result.
- Ordered alignment recovers non-contiguous phrases while avoiding the combinatorial explosion and spurious matches of les
This publication reports this result.
- Subword tokenization raises contiguous-alignment accuracy to 98-99% across evaluated methods.
This publication reports this result.
- Subword-tokenized ordered alignment recovers over 96% of non-contiguous BOAT targets, compared with about half for word-
This publication reports this result.
- taln can return multiple valid alignments missed by standard single-alignment tools.
This publication reports this result.