Decider: A Dual-System Rule-Controllable Decoding Framework for Language Generation
Constrained decoding approaches aim to control the meaning or style of text generated by a Pre-trained Language Model (PLM) for various task-specific objectives at inference time. However, these methods often guide plausible continuations by greedily and explicitly selecting targets, which, while fulfilling the task requirements, may overlook the natural patterns of human language generation. In this work, we propose a novel decoding framework, <sc xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">Decider</small>, which enables us to program high-level rules on how we might effectively complete tasks to control a PLM. Differing from previous works, our framework transforms the encouragement of concrete target words into the encouragement of all words that satisfy the high-level rules. Specifically, <sc xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">Decider</small> is a dual system in which a PLM is equipped and controlled by a First-Order Logic (FOL) reasoner to express and evaluate the rules, along with a decision function that merges the outputs from both systems to guide the generation. Experiments on CommonGen and PersonaChat demonstrate that <sc xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">Decider</small> can effectively follow given rules to guide a PLM in achieving generation tasks in a more human-like manner.
Authors
- Tian Lan (ORCID: https://orcid.org/0000-0002-8907-2603)
- Kun Qian (ORCID: https://orcid.org/0000-0002-1918-6453)
- Changlong Yu (ORCID: https://orcid.org/0000-0002-4758-9014)
- Qunxi Dong (ORCID: https://orcid.org/0000-0002-0484-3019)
- Piji Li (ORCID: https://orcid.org/0000-0003-1474-3692)
- Bin Hu (ORCID: https://orcid.org/0000-0003-3514-5413)
- Yu Ji (ORCID: https://orcid.org/0009-0000-0629-6920)
- Wei Bi
- Wei Wang
- Xu Chen (ORCID: https://orcid.org/0000-0002-3495-4238)
- Jun Gao
Institutions
- Nanjing University of Aeronautics and Astronautics (CN)
Publication Details
- Journal
- IEEE Transactions on Knowledge and Data Engineering
- Published
- 2025-01-01
- DOI
- https://doi.org/10.1109/tkde.2025.3554819
- Primary Topic
- Natural Language Processing Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00