English

Step-by-Step Mastery: Enhancing Soft Constraint Following Ability of Large Language Models

Computation and Language 2025-06-03 v4 Artificial Intelligence

Abstract

It is crucial for large language models (LLMs) to follow instructions that involve multiple constraints. However, it is an unexplored area to enhance LLMs' ability to follow soft constraints. To bridge the gap, we initially design a pipeline to construct datasets with high-quality outputs automatically. Additionally, to fully utilize the positive and negative samples generated during the data construction process, we choose Direct Preference Optimization (DPO) as the training method. Furthermore, taking into account the difficulty of soft constraints indicated by the number of constraints, we design a curriculum learning training paradigm based on the constraint quantity. We experimentally evaluate the effectiveness of our methods in improving LLMs' soft constraint following ability and analyze the factors driving the improvements.The datasets and code are publicly available at https://github.com/Rainier-rq/FollowSoftConstraint.

Keywords

Cite

@article{arxiv.2501.04945,
  title  = {Step-by-Step Mastery: Enhancing Soft Constraint Following Ability of Large Language Models},
  author = {Qingyu Ren and Jie Zeng and Qianyu He and Jiaqing Liang and Yanghua Xiao and Weikang Zhou and Zeye Sun and Fei Yu},
  journal= {arXiv preprint arXiv:2501.04945},
  year   = {2025}
}