Downloads · 30 days
103
80% of all-time downloads
mhdang/gelatwo-common-gen-dense-4096
gelatwo-common-gen-dense-4096 is a machine learning model from mhdang. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
A hidden Markov model distilled from mhdang/gelatwo-common-gen-gpt2-large, used as the tractable proposal for keyword-constrained generation on CommonGen in Mitigating Bias in Locally Constrained Decoding via Tractabl…
Downloads · 30 days
103
80% of all-time downloads
All-time downloads
129
Public
Parameters
223M
891 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors891 MB · 100%
From the Hugging Face model README
A hidden Markov model distilled from mhdang/gelatwo-common-gen-gpt2-large, used as the tractable
proposal for keyword-constrained generation on CommonGen in Mitigating Bias in Locally Constrained Decoding via
Tractable Proposals (arXiv:2606.01926).
Locally constrained decoding (LCD) enforces a constraint by masking next tokens one step at a time, which biases the samples it draws. P-GCD instead combines this HMM with a tensorized finite automaton to form a proposal that carries both the logical and the probabilistic information about the target distribution, and samples from it with sequential Monte Carlo. The HMM supplies the lookahead the automaton alone cannot: how likely the constraint is to be satisfiable from here.
| Transition | Dense |
| Hidden states | 4096 |
| Vocabulary | 50257 (matches mhdang/gelatwo-common-gen-gpt2-large) |
| Class | gelatwo.hmm.HMM |
This is not a fine-tune of the base LM and shares none of its weights: it is a separate model, trained by EM on sequences sampled from that LM, and it reuses the LM's tokenizer so their vocabularies line up at decoding time.
Install the reference implementation, github.com/MhDang/gelatwo, then:
from gelatwo.hmm import HMM
hmm = HMM.from_pretrained("mhdang/gelatwo-common-gen-dense-4096")
configs/common-gen.yaml in the reference implementation already points at
this checkpoint, so the CommonGen runs need no override.
@inproceedings{dang2026mitigating,
title = {Mitigating Bias in Locally Constrained Decoding via Tractable Proposals},
author = {Dang, Meihua and Song, Linxin and Zhang, Honghua and Zhao, Jieyu and Van den Broeck, Guy and Ermon, Stefano},
booktitle = {Proceedings of the 43rd International Conference on Machine Learning (ICML)},
year = {2026},
}