Multi-Attribute Constraint Satisfaction via Language Model Rewriting

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Baheti, Ashutosh, Chakraborty, Debanjana, Brahman, Faeze, Bras, Ronan Le, Lu, Ximing, Dziri, Nouha, Choi, Yejin, Riedl, Mark, Sap, Maarten
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916543459229696
author Baheti, Ashutosh
Chakraborty, Debanjana
Brahman, Faeze
Bras, Ronan Le
Lu, Ximing
Dziri, Nouha
Choi, Yejin
Riedl, Mark
Sap, Maarten
author_facet Baheti, Ashutosh
Chakraborty, Debanjana
Brahman, Faeze
Bras, Ronan Le
Lu, Ximing
Dziri, Nouha
Choi, Yejin
Riedl, Mark
Sap, Maarten
contents Obeying precise constraints on top of multiple external attributes is a common computational problem underlying seemingly different domains, from controlled text generation to protein engineering. Existing language model (LM) controllability methods for multi-attribute constraint satisfaction often rely on specialized architectures or gradient-based classifiers, limiting their flexibility to work with arbitrary black-box evaluators and pretrained models. Current general-purpose large language models, while capable, cannot achieve fine-grained multi-attribute control over external attributes. Thus, we create Multi-Attribute Constraint Satisfaction (MACS), a generalized method capable of finetuning language models on any sequential domain to satisfy user-specified constraints on multiple external real-value attributes. Our method trains LMs as editors by sampling diverse multi-attribute edit pairs from an initial set of paraphrased outputs. During inference, LM iteratively improves upon its previous solution to satisfy constraints for all attributes by leveraging our designed constraint satisfaction reward. We additionally experiment with reward-weighted behavior cloning to further improve the constraint satisfaction rate of LMs. To evaluate our approach, we present a new Fine-grained Constraint Satisfaction (FineCS) benchmark, featuring two challenging tasks: (1) Text Style Transfer, where the goal is to simultaneously modify the sentiment and complexity of reviews, and (2) Protein Design, focusing on modulating fluorescence and stability of Green Fluorescent Proteins (GFP). Our empirical results show that MACS achieves the highest threshold satisfaction in both FineCS tasks, outperforming strong domain-specific baselines. Our work opens new avenues for generalized and real-value multi-attribute control, with implications for diverse applications spanning NLP and bioinformatics.
format Preprint
id arxiv_https___arxiv_org_abs_2412_19198
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Multi-Attribute Constraint Satisfaction via Language Model Rewriting
Baheti, Ashutosh
Chakraborty, Debanjana
Brahman, Faeze
Bras, Ronan Le
Lu, Ximing
Dziri, Nouha
Choi, Yejin
Riedl, Mark
Sap, Maarten
Artificial Intelligence
Obeying precise constraints on top of multiple external attributes is a common computational problem underlying seemingly different domains, from controlled text generation to protein engineering. Existing language model (LM) controllability methods for multi-attribute constraint satisfaction often rely on specialized architectures or gradient-based classifiers, limiting their flexibility to work with arbitrary black-box evaluators and pretrained models. Current general-purpose large language models, while capable, cannot achieve fine-grained multi-attribute control over external attributes. Thus, we create Multi-Attribute Constraint Satisfaction (MACS), a generalized method capable of finetuning language models on any sequential domain to satisfy user-specified constraints on multiple external real-value attributes. Our method trains LMs as editors by sampling diverse multi-attribute edit pairs from an initial set of paraphrased outputs. During inference, LM iteratively improves upon its previous solution to satisfy constraints for all attributes by leveraging our designed constraint satisfaction reward. We additionally experiment with reward-weighted behavior cloning to further improve the constraint satisfaction rate of LMs. To evaluate our approach, we present a new Fine-grained Constraint Satisfaction (FineCS) benchmark, featuring two challenging tasks: (1) Text Style Transfer, where the goal is to simultaneously modify the sentiment and complexity of reviews, and (2) Protein Design, focusing on modulating fluorescence and stability of Green Fluorescent Proteins (GFP). Our empirical results show that MACS achieves the highest threshold satisfaction in both FineCS tasks, outperforming strong domain-specific baselines. Our work opens new avenues for generalized and real-value multi-attribute control, with implications for diverse applications spanning NLP and bioinformatics.
title Multi-Attribute Constraint Satisfaction via Language Model Rewriting
topic Artificial Intelligence
url https://arxiv.org/abs/2412.19198