Learning the Error Patterns of Language Models

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Kim, Jinwoo, Berg-KirkPatrick, Taylor, D'Antoni, Loris
Natura: Preprint
Pubblicazione: 2026
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866917540376084480
author Kim, Jinwoo
Berg-KirkPatrick, Taylor
D'Antoni, Loris
author_facet Kim, Jinwoo
Berg-KirkPatrick, Taylor
D'Antoni, Loris
contents When generating outputs for domains with specific validity constraints (e.g., a program should compile), LLMs often fail in a small number of focused ways: for example, by using Python function names when generating TypeScript. We observe that these error patterns can be represented using a small number of constraints that can be learned in practice. We propose \emph{prefix filters}, which are per-domain-and-LLM symbolic functions, as objects to capture the error patterns, Palla as an algorithm to learn prefix filters efficiently in practice, and implement Palla. Prefix filters learned by Palla i) help us quantitatively analyze the error patterns of LLMs, and ii) can be used to constrain the outputs of a model via constrained sampling algorithms. For example, Palla boosts compile rates for Qwen2.5-1.5B on TypeScript generation, by over 60%, allowing Qwen2.5-1.5B to achieve similar performance to Llama3.1-8B unconstrained.
format Preprint
id arxiv_https___arxiv_org_abs_2605_28328
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Learning the Error Patterns of Language Models
Kim, Jinwoo
Berg-KirkPatrick, Taylor
D'Antoni, Loris
Machine Learning
Artificial Intelligence
When generating outputs for domains with specific validity constraints (e.g., a program should compile), LLMs often fail in a small number of focused ways: for example, by using Python function names when generating TypeScript. We observe that these error patterns can be represented using a small number of constraints that can be learned in practice. We propose \emph{prefix filters}, which are per-domain-and-LLM symbolic functions, as objects to capture the error patterns, Palla as an algorithm to learn prefix filters efficiently in practice, and implement Palla. Prefix filters learned by Palla i) help us quantitatively analyze the error patterns of LLMs, and ii) can be used to constrain the outputs of a model via constrained sampling algorithms. For example, Palla boosts compile rates for Qwen2.5-1.5B on TypeScript generation, by over 60%, allowing Qwen2.5-1.5B to achieve similar performance to Llama3.1-8B unconstrained.
title Learning the Error Patterns of Language Models
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2605.28328