arXiv:2609.40185v2 cs.CL

HMM을 통해 다항 시간 내 다룰 수 있음이 증명된 NFA 제약 조건 언어 생성

Provably Tractable NFA-Constrained Language Generation via HMMs

Jialiang Sun, Kuldeep Meel

제출 2026-09-30

한국어 초록

제약 조건 생성(constrained generation)은 엄격한 제약 조건을 조건으로 하여 언어 모델(LM)로부터 샘플링하는 것을 목표로 합니다. 비결정적 유한 오토마톤(NFA) 제약 조건에 대한 기존의 제약 조건 생성 기법들은 분포를 왜곡하거나 효율성을 저해합니다. 이론적으로 이 작업은 NFA에 의해 수락되는 길이 $n$의 시퀀스를 세는 문제(#NFA)로 귀결되며, 정확한 #NFA 문제는 #P-완전(#P-complete)입니다. 최근 연구에서는 #NFA가 완전 다항 시간 무작위 근사 스킴(FPRAS)을 허용함을 보였습니다. 이 결과에서 영감을 받아, 본 논문에서는 완만한 가정 하에서 이론적 보장을 제공하는 NFA 제약 조건 생성을 위한 다항 시간 엔진인 NFA-LM을 제안합니다. 실험 결과는 NFA-LM이 이론적으로 한계가 보장된 근사 오차를 바탕으로 고품질 출력을 효율적으로 생성함을 보여줍니다.

원문 초록

Constrained generation aims to sample from language models (LMs) conditioned on hard constraints. Existing constrained-generation techniques for nondeterministic finite automaton (NFA) constraints either distort the distribution or sacrifice efficiency. Theoretically, this task reduces to counting the length-$n$ sequences accepted by an NFA (#NFA), and the exact #NFA problem is #P-complete. Recent work has shown that #NFA admits a fully polynomial randomized approximation scheme (FPRAS). Inspired by this result, we propose NFA-LM, a polynomial-time engine for NFA-constrained generation with theoretical guarantees under mild assumptions. Experiments show that NFA-LM efficiently generates high-quality outputs with theoretically bounded approximation error.

제출 이력

확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.

  1. arXiv:2609.40185v2

함께 살펴볼 논문

공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.

공통 태그로 연결된 공개 논문이 아직 없습니다.

토론

이 논문과 연결된 포럼 글이 아직 없습니다.