Lazy-k: Decoding for Constrained Token Classification

Arthur Hemmer, Mickaël Coustaty, Nicola Bartolo, Jérôme Brachat, Jean-Marc Ogier
12/6/2023
1 citation
cs.CL

Official code: ArthurDevNL/lazyk (1 star, C++, MIT, last commit 2025-06-19).

Abstract

We explore the possibility of improving probabilistic models in structured prediction. Specifically, we combine the models with constrained decoding approaches in the context of token classification for information extraction.

Show full abstract

The decoding methods search for constraint-satisfying label-assignments while maximizing the total probability. To do this, we evaluate several existing approaches, as well as propose a novel decoding method called Lazy-$k$. Our findings demonstrate that constrained decoding approaches can significantly improve the models' performances, especially when using smaller models. The Lazy-$k$ approach allows for more flexibility between decoding time and accuracy. The code for using Lazy-$k$ decoding can be found here: https://github.com/ArthurDevNL/lazyk.

View on arXivView PDF

Code Implementations(1)

ArthurDevNL/lazykOfficial100%
MIT

A C++/Python library for efficiently iterating over high-probability label-assignments

10C++, PythonJul 18, 20231 years agoMIT

Similar Papers

Cite this paper

@article{hemmer2023lazyk,
  title  = {Lazy-k: Decoding for Constrained Token Classification},
  author = {Arthur Hemmer and Mickaël Coustaty and Nicola Bartolo and Jérôme Brachat and Jean-Marc Ogier},
  year   = {2023},
  eprint = {2312.03367},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2312.03367v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2312.03367.svg)](https://codeofpaper.com/paper/2312.03367)

Discussion