mlsanityData to 14 Oct 2026

Attribute Controlled Fine-tuning for Large Language Models: A Case Study on Detoxification

arXiv 2410.05559 ↗First posted 7 Oct 2024cs.CLcited by 7

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

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2022Training language models to follow instructions with human feedbackcited by 15,971
  3. 2017Proximal Policy Optimization Algorithmscited by 15,215
  4. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  5. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  6. 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
  7. 2020Measuring Massive Multitask Language Understandingcited by 7,963
  8. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
  9. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
  10. 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,720
  11. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,512
  12. 2016Pointer Sentinel Mixture Modelscited by 3,096
23 more
  1. 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,883
  2. 2022Locating and Editing Factual Associations in GPTcited by 2,691
  3. 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,183
  4. 2019Fine-Tuning Language Models from Human Preferencescited by 2,150
  5. 2023Inference-Time Intervention: Eliciting Truthful Answers from a Language Modelcited by 1,302
  6. 2020RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Modelscited by 1,255
  7. 2019Plug and Play Language Models: A Simple Approach to Controlled Text Generationcited by 799
  8. 2019Universal Adversarial Triggers for Attacking and Analyzing NLPcited by 722
  9. 2019The Woman Worked as a Babysitter: On Biases in Language Generationcited by 541
  10. 2023The Falcon Series of Open Language Modelscited by 535
  11. 2021DExperts: Decoding-Time Controlled Text Generation with Experts and Anti-Expertscited by 441
  12. 2020GeDi: Generative Discriminator Guided Sequence Generationcited by 378
  13. 2021FUDGE: Controlled Text Generation With Future Discriminatorscited by 376
  14. 2022A Holistic Approach to Undesired Content Detection in the Real Worldcited by 356
  15. 2022Is Reinforcement Learning (Not) for Natural Language Processing: Benchmarks, Baselines, and Building Blocks for Natural Language Policy Optimizationcited by 246
  16. 2021NeuroLogic A*esque Decoding: Constrained Text Generation with Lookahead Heuristicscited by 154
  17. 2022Offline RL for Natural Language Generation with Implicit Language Q Learningcited by 138
  18. 2021Jigsaw: Large Language Models meet Program Synthesiscited by 103
  19. 2022Controllable Natural Language Generation with Contrastive Prefixescited by 75
  20. 2022Exploring the Limits of Domain-Adaptive Training for Detoxifying Large-Scale Language Modelscited by 68
  21. 2023Tractable Control for Autoregressive Language Generationcited by 65
  22. 2022Controllable Text Generation with Neurally-Decomposed Oraclecited by 41
  23. 2023A Pseudo-Semantic Loss for Autoregressive Models with Logical Constraintscited by 22

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 2; 2026: 5.

7 papers.