Strategies for Span Labeling with Large Language Models

Danil Semin, Ondřej Dušek, Zdeněk Kasner


Abstract

Large language models (LLMs) are increasingly used for text analysis tasks, such as named entity recognition or error detection. Unlike encoder-based models, however, generative architectures lack an explicit mechanism to refer to specific parts of their input. This leads to a variety of ad-hoc prompting strategies for input text span labeling, often with inconsistent results. In this paper, we categorize these strategies into three families: tagging the whole input text, indexing numerical positions of spans, and matching generated span content. To address the limitations of content matching, we introduce LogitMatch, a new constrained decoding method that forces the model’s output to align with valid input spans. On four diverse tasks, we find that tagging-based methods are the most robust, but matching methods are competitive and more token-efficient. Our LogitMatch approach improves upon matching methods by retaining their performance while eliminating span matching issues.

Anthology ID:
2026.inlg-long.11
Volume:
Proceedings of the 19th International Natural Language Generation Conference: Long Papers
Month:
October
Year:
2026
Address:
Utrecht, The Netherlands
Editors:
Guanyi Chen, Laura Perez-Beltrachini, Emiel van Miltenburg
Venue:
INLG
SIG:
SIGGEN
Publisher:
Association for Computational Linguistics
Note:
Pages:
229–245
Language:
URL:
https://aclanthology.org/2026.inlg-long.11/
DOI:
Bibkey:
Cite (ACL):
Danil Semin, Ondřej Dušek, and Zdeněk Kasner. 2026. Strategies for Span Labeling with Large Language Models. In Proceedings of the 19th International Natural Language Generation Conference: Long Papers, pages 229–245, Utrecht, The Netherlands. Association for Computational Linguistics.
Cite (Informal):
Strategies for Span Labeling with Large Language Models (Semin et al., INLG 2026)
Copy Citation:
PDF:
https://aclanthology.org/2026.inlg-long.11.pdf