Tailor: Generating and Perturbing Text with Semantic Controls
Alexis Ross, Tongshuang Wu, Hao Peng, Matthew E. Peters, Matt Gardner
Abstract
Controlled text perturbation is useful for evaluating and improving model generalizability. However, current techniques rely on training a model for every target perturbation, which is expensive and hard to generalize. We present Tailor, a semantically-controlled text generation system. Tailor builds on a pretrained seq2seq model and produces textual outputs conditioned on control codes derived from semantic representations. We craft a set of operations to modify the control codes, which in turn steer generation towards targeted attributes. These operations can be further composed into higher-level ones, allowing for flexible perturbation strategies. We demonstrate the effectiveness of these perturbations in multiple applications. First, we use Tailor to automatically create high-quality contrast sets for four distinct natural language processing (NLP) tasks. These contrast sets contain fewer spurious artifacts and are complementary to manually annotated ones in their lexical diversity. Second, we show that Tailor perturbations can improve model generalization through data augmentation. Perturbing just ∼2% of training data leads to a 5.8-point gain on an NLI challenge set measuring reliance on syntactic heuristics.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
21 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Feature-Level Debiased Natural Language Understanding cites Generating Data to Mitigate Spurious Correlations in Natural Language Inference Datasets
- Adversarial training for high-stakes reliability cites Red Teaming Language Models with Language Models
- Evaluating Models' Local Decision Boundaries via Contrast Sets cites Learning The Difference That Makes A Difference With Counterfactually-Augmented Data
- Explaining NLP Models via Minimal Contrastive Editing (MiCE) cites Learning The Difference That Makes A Difference With Counterfactually-Augmented Data
- Explaining NLP Models via Minimal Contrastive Editing (MiCE) cites Evaluating Models' Local Decision Boundaries via Contrast Sets
- Red Teaming Language Models with Language Models cites Neural Text Generation With Unlikelihood Training
- Generating Data to Mitigate Spurious Correlations in Natural Language Inference Datasets cites Neural Text Generation With Unlikelihood Training
Cited by top-tier papers21
- Red Teaming Language Models with Language ModelsEthan Perez, Saffron Huang, H. Francis Song, Trevor Cai et al.EMNLP 2022 · 239 citations
- Adversarial training for high-stakes reliabilityDaniel M. Ziegler, Seraphina Nix, Lawrence Chan, Tim Bauman et al.NeurIPS 2022 · 79 citations
- Generating Data to Mitigate Spurious Correlations in Natural Language Inference DatasetsYuxiang Wu, Matt Gardner, Pontus Stenetorp, Pradeep DasigiACL 2022 · 74 citations
- Feature-Level Debiased Natural Language UnderstandingYougang Lyu, Piji Li, Yechang Yang, Maarten de Rijke et al.AAAI 2023 · 12 citations
- All That Glisters Is Not Gold: A Benchmark for Reference-Free Counterfactual Financial Misinformation DetectionYuechen Jiang, Zhiwei Liu, Yupeng Cao, Yueru He et al.ACL 2026 · 9 citations
Builds on15
- Plug and Play Language Models: A Simple Approach to Controlled Text GenerationSumanth Dathathri, Andrea Madotto, Janice Lan, Jane Hung et al.ICLR 2020 · 1,166 citations
- Neural Text Generation With Unlikelihood TrainingSean Welleck, Ilia Kulikov, Stephen Roller, Emily Dinan et al.ICLR 2020 · 683 citations
- Learning The Difference That Makes A Difference With Counterfactually-Augmented DataDivyansh Kaushik, Eduard H. Hovy, Zachary Chase LiptonICLR 2020 · 625 citations
- Evaluating Models' Local Decision Boundaries via Contrast SetsMatt Gardner, Yoav Artzi, Victoria Basmova, Jonathan Berant et al.EMNLP Findings 2020 · 260 citations
- Explaining NLP Models via Minimal Contrastive Editing (MiCE)Alexis Ross, Ana Marasovic, Matthew E. PetersACL Findings 2021 · 86 citations
Related papers
- Contrastive Learning with Adversarial Perturbations for Conditional Text GenerationSeanie Lee, Dong Bok Lee, Sung Ju HwangICLR 2021 · 117 citations
- Tailor: A Soft-Prompt-Based Approach to Attribute-Based Controlled Text GenerationKexin Yang, Dayiheng Liu, Wenqiang Lei, Baosong Yang et al.ACL 2023 · 25 citations
- Controllable Meaning Representation to Text Generation: Linearization and Data Augmentation StrategiesChris Kedzie, Kathleen R. McKeownEMNLP 2020 · 16 citations
- Let the CAT out of the bag: Contrastive Attributed explanations for TextSaneem A. Chemmengath, Amar Prakash Azad, Ronny Luss, Amit DhurandharEMNLP 2022 · 6 citations
- Click: Controllable Text Generation with Sequence Likelihood Contrastive LearningChujie Zheng, Pei Ke, Zheng Zhang, Minlie HuangACL Findings 2023 · 5 citations
