LaSEr-Edit: Localized Span-level Error Editing with Energy-based Localization
Not on the map. Why?
Abstract (arXiv)
As large language models (LLMs) are widely adopted in real-world applications, it has become critical to ensure LLMs satisfy safety constraints, such as non-toxicity and logical consistency, as well as task- and situation-specific constraints. Controlling the output through instructions is a simple and tempting approach; however, it remains brittle, is opaque in how it influences model behavior, and thus cannot reliably ensure constraint satisfaction. Moreover, most recent controlled text generation (CTG) methods require access to the internal components of language models--such as weights or logits--making them incompatible with popular API-based LLMs. In this work, we propose LaSEr-Edit, a constraint-satisfying text revision method that can be applied to any LLMs, black- or white-box. We first find that lightweight, task-specific energy-based models (EBMs) achieve error-localization performance competitive with or even better than that of much larger LLMs, while operating substantially faster. Based on this finding, we propose two variants of text revision methods that incorporate energy-based error localization: LaSEr-LLM Edit, which instructs an LLM to edit text given EBM-predicted error spans, and LaSEr-EBM Edit, which uses the EBM not only for localization but also for editing by reranking edit candidates. Through experiments in diverse single-constraint control tasks, we show that LaSEr-LLM Edit controls text better than plain LLM-based editing in most of the tasks. We also find that LaSEr-EBM Edit further improves the control performance of LaSEr-LLM Edit and achieves among the strongest controllability across all tasks. Furthermore, we find that LaSEr-Edit, especially LaSEr-EBM Edit, performs well even when multiple constraints are controlled simultaneously.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 37 of its 50 references that are in the map. First posted on arXiv 30 Jun 2024.
Builds on
37 of 50 references.
References · 37
- 2017Attention Is All You Needcited by 59,932
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2019BERTScore: Evaluating Text Generation with BERTcited by 5,462
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,317
- 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,665
- 2024Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phonecited by 1,883
- 2015A large annotated corpus for learning natural language inferencecited by 1,837
- 2020Don't Stop Pretraining: Adapt Language Models to Domains and Taskscited by 1,548
- 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,371
- 2020RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Modelscited by 1,235
- 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,122
- 2023Large Language Models Cannot Self-Correct Reasoning Yetcited by 965
25 more
- 2018Neural Network Acceptability Judgmentscited by 952
- 2019Adversarial NLI: A New Benchmark for Natural Language Understandingcited by 798
- 2019Plug and Play Language Models: A Simple Approach to Controlled Text Generationcited by 793
- 2023Quantifying Language Models' Sensitivity to Spurious Features in Prompt Design or: How I learned to start worrying about prompt formattingcited by 778
- 2019CTRL: A Conditional Transformer Language Model for Controllable Generationcited by 754
- 2021DExperts: Decoding-Time Controlled Text Generation with Experts and Anti-Expertscited by 434
- 2021FUDGE: Controlled Text Generation With Future Discriminatorscited by 374
- 2024When Can LLMs Actually Correct Their Own Mistakes? A Critical Survey of Self-Correction of LLMscited by 230
- 2022COLD Decoding: Energy-based Constrained Text Generation with Langevin Dynamicscited by 159
- 2023FollowBench: A Multi-level Fine-grained Constraints Following Benchmark for Large Language Modelscited by 112
- 2023Controlled Text Generation with Natural Language Instructionscited by 87
- 2022On the Relation between Sensitivity and Accuracy in In-context Learningcited by 71
- 2022Mix and Match: Learning-free Controllable Text Generation using Energy Language Modelscited by 66
- 2022Gradient-Based Constrained Sampling from Language Modelscited by 64
- 2021Text Detoxification using Large Pre-trained Neural Modelscited by 52
- 2019"Mask and Infill" : Applying Masked Language Model to Sentiment Transfercited by 48
- 2022Critic-Guided Decoding for Controlled Text Generationcited by 45
- 2021LEWIS: Levenshtein Editing for Unsupervised Text Style Transfercited by 40
- 2019Sunny and Dark Outside?! Improving Answer Consistency in VQA through Entailed Question Generationcited by 36
- 2023PREADD: Prefix-Adaptive Decoding for Controlled Text Generationcited by 29
- 2023BOLT: Fast Energy-based Controlled Text Generation with Tunable Biasescited by 24
- 2024Guiding Large Language Models to Post-Edit Machine Translation with Error Annotationscited by 22
- 2022Text Revision by On-the-Fly Representation Optimizationcited by 17
- 2024Controlled Text Generation for Large Language Model with Dynamic Attribute Graphscited by 16
- 2023Controlled Text Generation for Black-box Language Models via Score-based Progressive Editorcited by 2
Built on by
Citing papers per year: 2025: 2.
2 papers.