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 37–48.
- difflib alignment uses Python's SequenceMatcher over whitespace or subword tokens.
This publication contains this grounded claim.
Evidence
difflib uses Python's difflib.SequenceMatcher over tokens (whitespace or subword) to identify and return matching tokens.
Source: 2026-02-10-biorxiv.pdf
- difflib runtime scales approximately linearly with source length.
This publication contains this grounded claim.
Evidence
taln, LCS, and difflib scale approximately linearly with source length, remaining practical for standard short- passage alignments (Supplementary Figure S3).
Source: 2026-02-10-biorxiv.pdf
- Difflib runtime scales slightly sublinearly with source-token count.
This publication contains this grounded claim.
Evidence
LCS and taln scale roughly linearly, Difflib is slightly sublinear, and the naive baseline is nearly constant.
Source: 2026-02-10-biorxiv.pdf
- Discontiguous extracted text is substantially harder to verify than contiguous text.
This publication contains this grounded claim.
Evidence
This is easy when the extracted text is contiguous (findable with exact string matching), but much harder when it is discontiguous.
Source: 2026-02-10-biorxiv.pdf
- Discontiguous phrase detection depends strongly on text tokenization.
This publication contains this grounded claim.
Evidence
Techniques for finding discontiguous phrases depend heavily on how the text is split—i.e., how it is tokenized.
Source: 2026-02-10-biorxiv.pdf
- Domain-specific tokenizers may improve biomedical alignment specificity.
This publication contains this grounded claim.
Evidence
The lower accuracy, and greater alignments, on BIO-BOAT compared to BOAT likely reflects more com- plex tokenization boundaries in biomedical text—gene names, chemical formulas, and mixed alphanumeric iden- tifiers are common and often split inconsistently even by subword tokenizers, suggesting the need for domain- specific tokenizers to further improve alignment speci- ficity.
Source: 2026-02-10-biorxiv.pdf
- Each initial BIO-BOAT target is a contiguous source span.
This publication contains this grounded claim.
Evidence
We converted the manuscript XML to Markdown and ran taln extract to generate source–target pairs, where each target is a contiguous span of the source.
Source: 2026-02-10-biorxiv.pdf
- Each SQuAD example contains a source passage.
This publication contains this grounded claim.
Evidence
Each SQuAD example provides a passage (source), an answer string (target), and an answer start index (answer start) locating the target as a contiguous character sequence in the source.
Source: 2026-02-10-biorxiv.pdf
- Each SQuAD example contains a start index locating the target contiguously in the source.
This publication contains this grounded claim.
Evidence
Each SQuAD example provides a passage (source), an answer string (target), and an answer start index (answer start) locating the target as a contiguous character sequence in the source.
Source: 2026-02-10-biorxiv.pdf
- Each SQuAD example contains a target answer string.
This publication contains this grounded claim.
Evidence
Each SQuAD example provides a passage (source), an answer string (target), and an answer start index (answer start) locating the target as a contiguous character sequence in the source.
Source: 2026-02-10-biorxiv.pdf
- Enumerating many valid alignments creates a challenge of selecting the most meaningful alignment.
This publication contains this grounded claim.
Evidence
However, enumerating many valid alignments intro- duces a new challenge: selecting the most meaningful one.
Source: 2026-02-10-biorxiv.pdf
- Every BOAT target aligns contiguously in its source passage.
This publication contains this grounded claim.
Evidence
BOAT consists of 35,080 source–target pairs derived from SQuAD, where each target aligns contiguously in its source passage.
Source: 2026-02-10-biorxiv.pdf