DiNADO: Norm-Disentangled Neurally-Decomposed Oracles for Controlling Language Models

Sidi Lu, Wenbo Zhao, Chenyang Tao, Arpit Gupta, Shan Wu +2 more
6/1/2023
1 citation
lora-peft-merging

Official code: PlusLabNLP/DiNADO (0 stars, Python, MIT, last commit 2024-06-25).

Abstract

NeurAlly-Decomposed Oracle (NADO) is a powerful approach for controllable generation with large language models. It is designed to avoid catastrophic forgetting while achieving guaranteed convergence to an entropy-maximized closed-form optimal solution with reasonable modeling capacity.

Show full abstract

Despite the success, several challenges arise when apply NADO to a wide range of scenarios. Vanilla NADO suffers from gradient vanishing for low-probability control signals and is highly reliant on a regularization to satisfy the stochastic version of Bellman equation. In addition, the vanilla implementation of NADO introduces a few additional transformer layers, suffering from a limited capacity especially compared to other finetune-based model adaptation methods like LoRA. In this paper, we propose a improved version of the NADO algorithm, namely DiNADO (norm-Disentangled NeurAlly-Decomposed Oracles), which improves the performance of the NADO algorithm through disentangling the step-wise global norm over the approximated oracle $R$-value for all potential next-tokens, allowing DiNADO to be combined with finetuning methods like LoRA. We discuss in depth how DiNADO achieves better capacity, stability and flexibility with both empirical and theoretical results. Experiments on formality control in machine translation and the lexically constrained generation task CommonGen demonstrates the significance of the improvements.

View on arXivView PDF

Code Implementations(1)

PlusLabNLP/DiNADOOfficial100%
MIT

Implementation of ICML 2024 Paper DiNADO: Norm-Disentangled Neurally-Decomposed Oracles for Controlling Language Models

01Python, PerlMay 30, 20242 years agoMIT

Similar Papers

Cite this paper

@article{lu2023dinado,
  title  = {DiNADO: Norm-Disentangled Neurally-Decomposed Oracles for Controlling Language Models},
  author = {Sidi Lu and Wenbo Zhao and Chenyang Tao and Arpit Gupta and Shan Wu and Tagyoung Chung and Nanyun Peng},
  year   = {2023},
  eprint = {2306.11825},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2306.11825},
  journal = {ICML 2024 2024}
}

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/2306.11825.svg)](https://codeofpaper.com/paper/2306.11825)

Discussion