This paper proposes a simple method for controllable text generation based on weighting logits with a free-form classifier, namely CAIF sampling. Using an arbitrary text classifier, we adjust a small part of a language model's logits and guide text generation towards or away from classifier prediction. We experimented with toxicity avoidance and sentiment control tasks and showed that the proposed method significantly outperforms recent PPLM, GeDi, and DExperts on PPL and task accuracy metrics based on the external classifier of generated texts. In addition, compared to other approaches, it is easier to implement and tune and has significantly fewer restrictions and requirements.
Detoxifying Text with MaRCo: Controllable Revision with Experts and Anti-Experts
Paul G. Allen School of Computer Science & Engineering, University of Washington(华盛顿大学保罗·G·艾伦计算机科学与工程学院);Allen Institute for AI(艾伦人工智能研究所);Language Technologies Institute, Carnegie Mellon University(卡内基梅隆大学语言技术研究所)
MaRCo 结合可控生成与专家乘积,利用无毒和有毒语言模型似然识别并替换候选词,在微妙毒性去毒任务上自动指标优于基线且人类评估偏好达 2.1 倍。
Simple or Complex? Complexity-Controllable Question Generation with Soft Templates and Deep Mixture of Experts Model
School of Computer Science and Engineering, Southeast University(东南大学计算机科学与工程学院);Faculty of Information Technology, Monash University(莫纳什大学信息技术学院);Baidu Inc.(百度公司)
Evolutionary Soups: Evolving Mixture-of-Experts for Multi-Objective LLM Alignment
Fraunhofer Institute for Applied Information Technology FIT(弗劳恩霍夫应用信息技术研究所FIT);University of Cologne(科隆大学);University of Stuttgart(斯图加特大学);University of Southampton(南安普顿大学);Soochow University(苏州大学);University Hospital of Cologne(科隆大学医院)
Controllable Unsupervised Text Attribute Transfer via Editing Entangled Latent Representation
Wangxuan Institute of Computer Technology, Peking University(北京大学王选计算机研究所);The MOE Key Laboratory of Computational Linguistics, Peking University(北京大学计算语言学教育部重点实验室)