Attribute Controlled Fine-tuning for Large Language Models: A Case Study on Detoxification
Not on the map. Why?
Abstract (arXiv)
We propose a constraint learning schema for fine-tuning Large Language Models (LLMs) with attribute control. Given a training corpus and control criteria formulated as a sequence-level constraint on model outputs, our method fine-tunes the LLM on the training corpus while enhancing constraint satisfaction with minimal impact on its utility and generation quality. Specifically, our approach regularizes the LLM training by penalizing the KL divergence between the desired output distribution, which satisfies the constraints, and the LLM's posterior. This regularization term can be approximated by an auxiliary model trained to decompose the sequence-level constraints into token-level guidance, allowing the term to be measured by a closed-form formulation. To further improve efficiency, we design a parallel scheme for concurrently updating both the LLM and the auxiliary model. We evaluate the empirical performance of our approach by controlling the toxicity when training an LLM. We show that our approach leads to an LLM that produces fewer inappropriate responses while achieving competitive performance on benchmarks and a toxicity detection task.
Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). Builds on 35 of its 44 references that are in the map. First posted on arXiv 7 Oct 2024.
Builds on
35 of 44 references.
References · 35
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2017Proximal Policy Optimization Algorithmscited by 15,215
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
- 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,720
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,512
- 2016Pointer Sentinel Mixture Modelscited by 3,096
23 more
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,883
- 2022Locating and Editing Factual Associations in GPTcited by 2,691
- 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,183
- 2019Fine-Tuning Language Models from Human Preferencescited by 2,150
- 2023Inference-Time Intervention: Eliciting Truthful Answers from a Language Modelcited by 1,302
- 2020RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Modelscited by 1,255
- 2019Plug and Play Language Models: A Simple Approach to Controlled Text Generationcited by 799
- 2019Universal Adversarial Triggers for Attacking and Analyzing NLPcited by 722
- 2019The Woman Worked as a Babysitter: On Biases in Language Generationcited by 541
- 2023The Falcon Series of Open Language Modelscited by 535
- 2021DExperts: Decoding-Time Controlled Text Generation with Experts and Anti-Expertscited by 441
- 2020GeDi: Generative Discriminator Guided Sequence Generationcited by 378
- 2021FUDGE: Controlled Text Generation With Future Discriminatorscited by 376
- 2022A Holistic Approach to Undesired Content Detection in the Real Worldcited by 356
- 2022Is Reinforcement Learning (Not) for Natural Language Processing: Benchmarks, Baselines, and Building Blocks for Natural Language Policy Optimizationcited by 246
- 2021NeuroLogic A*esque Decoding: Constrained Text Generation with Lookahead Heuristicscited by 154
- 2022Offline RL for Natural Language Generation with Implicit Language Q Learningcited by 138
- 2021Jigsaw: Large Language Models meet Program Synthesiscited by 103
- 2022Controllable Natural Language Generation with Contrastive Prefixescited by 75
- 2022Exploring the Limits of Domain-Adaptive Training for Detoxifying Large-Scale Language Modelscited by 68
- 2023Tractable Control for Autoregressive Language Generationcited by 65
- 2022Controllable Text Generation with Neurally-Decomposed Oraclecited by 41
- 2023A Pseudo-Semantic Loss for Autoregressive Models with Logical Constraintscited by 22
Built on by
Citing papers per year: 2025: 2; 2026: 5.
7 papers.
- 2026Test-Time Detoxification without Training or Learning Anythingcited by 2
- 2025textttSEM-CTRL: Semantically Controlled Decodingcited by 0
- 2025Survey-to-Behavior: Downstream Alignment of Human Values in LLMs via Survey Questionscited by 0
- 2026STEER: Inference-Time Risk Control via Constrained Quality-Diversity Searchcited by 0
- 2026Stable and Privacy-Preserving Synthetic Educational Data with Empirical Marginals: A Copula-Based Approachcited by 0
- 2026A Survey of Toxicity Detection and Mitigation Strategies for Multilingual Language Modelscited by 0
- 2026Attribute-Based Activation Steering of LLMs for Group-Specific Explanation Generationcited by 0
- 2026Attribute-Based Activation Steering of LLMs for Group-Specific Explanation Generation29 Aug 2026
- 2026A Survey of Toxicity Detection and Mitigation Strategies for Multilingual Language Models24 Jun 2026
- 2026Stable and Privacy-Preserving Synthetic Educational Data with Empirical Marginals: A Copula-Based Approach5 Apr 2026
- 2026STEER: Inference-Time Risk Control via Constrained Quality-Diversity Search2 Feb 2026
- 2026Test-Time Detoxification without Training or Learning Anything14 Jan 2026
- 2025Survey-to-Behavior: Downstream Alignment of Human Values in LLMs via Survey Questions15 Aug 2025
- 2025textttSEM-CTRL: Semantically Controlled Decoding3 Mar 2025