PPL-MCTS: Constrained Textual Generation Through Discriminator-Guided MCTS Decoding
Not on the map. Why?
Abstract (arXiv)
Large language models (LM) based on Transformers allow to generate plausible long texts. In this paper, we explore how this generation can be further controlled at decoding time to satisfy certain constraints (e.g. being non-toxic, conveying certain emotions, using a specific writing style, etc.) without fine-tuning the LM. Precisely, we formalize constrained generation as a tree exploration process guided by a discriminator that indicates how well the associated sequence respects the constraint. This approach, in addition to being easier and cheaper to train than fine-tuning the LM, allows to apply the constraint more finely and dynamically. We propose several original methods to search this generation tree, notably the Monte Carlo Tree Search (MCTS) which provides theoretical guarantees on the search efficiency, but also simpler methods based on re-ranking a pool of diverse sequences using the discriminator scores. These methods are evaluated, with automatic and human-based metrics, on two types of constraints and languages: review polarity and emotion control in French and English. We show that discriminator-guided MCTS decoding achieves state-of-the-art results without having to tune the language model, in both tasks and languages. We also demonstrate that other proposed decoding methods based on re-ranking can be really effective when diversity among the generated propositions is encouraged.
Key facts. Cited by 33 papers in the map (data through 14 Oct 2026). Builds on 20 of its 39 references that are in the map. First posted on arXiv 28 Sep 2021.
Builds on
20 of 39 references.
References · 20
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2019The Curious Case of Neural Text Degenerationcited by 2,916
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,330
- 2020RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Modelscited by 1,255
- 2019Plug and Play Language Models: A Simple Approach to Controlled Text Generationcited by 799
- 2019CTRL: A Conditional Transformer Language Model for Controllable Generationcited by 762
- 2019Defending Against Neural Fake Newscited by 559
- 2018Texygen: A Benchmarking Platform for Text Generation Modelscited by 491
- 2020GeDi: Generative Discriminator Guided Sequence Generationcited by 378
- 2017Why We Need New Evaluation Metrics for NLGcited by 233
8 more
- 2020Data Augmentation using Pre-trained Transformer Modelscited by 168
- 2019FlauBERT: Unsupervised Language Model Pre-training for Frenchcited by 153
- 2018Learning to Write with Cooperative Discriminatorscited by 119
- 2018Language GANs Falling Shortcited by 97
- 2021Machine Translation Decoding beyond Beam Searchcited by 55
- 2020DARE: Data Augmented Relation Extraction with GPT-2cited by 43
- 2020Discriminative Adversarial Search for Abstractive Summarizationcited by 14
- 2021To Beam Or Not To Beam: That is a Question of Cooperation for Language GANscited by 14
Built on by
Citing papers per year: 2022: 3; 2023: 9; 2024: 10; 2025: 8; 2026: 3.
33 papers.
Sort:
By area:
- 2025A Survey on Test-Time Scaling in Large Language Models: What, How, Where, and How Well?cited by 223
- 2023Planning with Large Language Models for Code Generationcited by 182
- 2023Controlled Decoding from Language Modelscited by 135
- 2024ARGS: Alignment as Reward-Guided Searchcited by 103
- 2023Transformer-based Planning for Symbolic Regressioncited by 79
- 2023Don't throw away your value model! Generating more preferable text with Value-Guided Monte-Carlo Tree Search decodingcited by 60
- 2024WaterMax: breaking the LLM watermark detectability-robustness-quality trade-offcited by 54
- 2024When is Tree Search Useful for LLM Planning? It Depends on the Discriminatorcited by 47
- 2023KCTS: Knowledge-Constrained Tree Search Decoding with Token-Level Hallucination Detectioncited by 45
- 2024Ensembling Large Language Models with Process Reward-Guided Tree Search for Better Complex Reasoningcited by 40
- 2024InfAlign: Inference-aware language model alignmentcited by 35
- 2023Discrete Prompt Optimization via Constrained Generation for Zero-shot Re-rankercited by 20
21 more
- 2025Training Turn-by-Turn Verifiers for Dialogue Tutoring Agents: The Curious Case of LLMs as Your Coding Tutorscited by 20
- 2023Faithful Question Answering with Monte-Carlo Planningcited by 16
- 2024Don't Rank, Combine! Combining Machine Translation Hypotheses Using Quality Estimationcited by 13
- 2024A Critical Look At Tokenwise Reward-Guided Text Generationcited by 12
- 2023Autoregressive Modeling with Lookahead Attentioncited by 7
- 2022Best-k Search Algorithm for Neural Text Generationcited by 6
- 2024Entropy-Reinforced Planning with Large Language Models for Drug Discoverycited by 6
- 2022Language Model Decoding as Likelihood-Utility Alignmentcited by 5
- 2025Towards Cost-Effective Reward Guided Text Generationcited by 5
- 2025How Sampling Affects the Detectability of Machine-written texts: A Comprehensive Studycited by 4
- 2024Monte Carlo Tree Search for Recipe Generation using GPT-2cited by 3
- 2025ScaffoldGPT: A Scaffold-based GPT Model for Drug Optimizationcited by 3
- 2025Aligning Sentence Simplification with ESL Learner's Proficiency for Language Acquisitioncited by 3
- 2022Which Discriminator for Cooperative Text Generation?cited by 2
- 2024Agentic AI: The Era of Semantic Decodingcited by 1
- 2025Constraints-of-Thought: A Framework for Constrained Reasoning in Language-Model-Guided Searchcited by 1
- 2026TruncProof: A Guardrail for LLM-based JSON Generation under Token-Length Constraintscited by 1
- 2023"Honey, Tell Me What's Wrong", Global Explanation of Textual Discriminative Models through Cooperative Generationcited by 0
- 2025Tiny Reward Modelscited by 0
- 2026Conversational Control with Ontologies for Large Language Models: A Lightweight Framework for Constrained Generationcited by 0
- 2026When LLM Meets Tree Search: A Systematic View of Inference as Search in Large Language Modelscited by 0
- 2026When LLM Meets Tree Search: A Systematic View of Inference as Search in Large Language Models31 Aug 2026
- 2026TruncProof: A Guardrail for LLM-based JSON Generation under Token-Length Constraints13 May 2026
- 2026Conversational Control with Ontologies for Large Language Models: A Lightweight Framework for Constrained Generation6 Apr 2026
- 2025How Sampling Affects the Detectability of Machine-written texts: A Comprehensive Study15 Oct 2025
- 2025Constraints-of-Thought: A Framework for Constrained Reasoning in Language-Model-Guided Search10 Oct 2025
- 2025Tiny Reward Models14 Jul 2025
- 2025A Survey on Test-Time Scaling in Large Language Models: What, How, Where, and How Well?31 Mar 2025
- 2025Training Turn-by-Turn Verifiers for Dialogue Tutoring Agents: The Curious Case of LLMs as Your Coding Tutors18 Feb 2025
- 2025Aligning Sentence Simplification with ESL Learner's Proficiency for Language Acquisition17 Feb 2025
- 2025ScaffoldGPT: A Scaffold-based GPT Model for Drug Optimization9 Feb 2025
- 2025Towards Cost-Effective Reward Guided Text Generation6 Feb 2025
- 2024InfAlign: Inference-aware language model alignment27 Dec 2024
21 more
- 2024Ensembling Large Language Models with Process Reward-Guided Tree Search for Better Complex Reasoning20 Dec 2024
- 2024A Critical Look At Tokenwise Reward-Guided Text Generation12 Jun 2024
- 2024Entropy-Reinforced Planning with Large Language Models for Drug Discovery11 Jun 2024
- 2024Agentic AI: The Era of Semantic Decoding21 Mar 2024
- 2024WaterMax: breaking the LLM watermark detectability-robustness-quality trade-off6 Mar 2024
- 2024When is Tree Search Useful for LLM Planning? It Depends on the Discriminator16 Feb 2024
- 2024ARGS: Alignment as Reward-Guided Search23 Jan 2024
- 2024Don't Rank, Combine! Combining Machine Translation Hypotheses Using Quality Estimation12 Jan 2024
- 2024Monte Carlo Tree Search for Recipe Generation using GPT-210 Jan 2024
- 2023"Honey, Tell Me What's Wrong", Global Explanation of Textual Discriminative Models through Cooperative Generation27 Oct 2023
- 2023Controlled Decoding from Language Models25 Oct 2023
- 2023KCTS: Knowledge-Constrained Tree Search Decoding with Token-Level Hallucination Detection13 Oct 2023
- 2023Don't throw away your value model! Generating more preferable text with Value-Guided Monte-Carlo Tree Search decoding26 Sep 2023
- 2023Discrete Prompt Optimization via Constrained Generation for Zero-shot Re-ranker23 May 2023
- 2023Autoregressive Modeling with Lookahead Attention20 May 2023
- 2023Faithful Question Answering with Monte-Carlo Planning4 May 2023
- 2023Transformer-based Planning for Symbolic Regression13 Mar 2023
- 2023Planning with Large Language Models for Code Generation9 Mar 2023
- 2022Best-k Search Algorithm for Neural Text Generation22 Nov 2022
- 2022Language Model Decoding as Likelihood-Utility Alignment13 Oct 2022
- 2022Which Discriminator for Cooperative Text Generation?25 Apr 2022
- 2025A Survey on Test-Time Scaling in Large Language Models: What, How, Where, and How Well?cited by 223
- 2023Don't throw away your value model! Generating more preferable text with Value-Guided Monte-Carlo Tree Search decodingcited by 60
- 2024Ensembling Large Language Models with Process Reward-Guided Tree Search for Better Complex Reasoningcited by 40
- 2023Faithful Question Answering with Monte-Carlo Planningcited by 16
- 2025Constraints-of-Thought: A Framework for Constrained Reasoning in Language-Model-Guided Searchcited by 1
- 2026When LLM Meets Tree Search: A Systematic View of Inference as Search in Large Language Modelscited by 0
- 2026When LLM Meets Tree Search: A Systematic View of Inference as Search in Large Language Models31 Aug 2026
- 2025Constraints-of-Thought: A Framework for Constrained Reasoning in Language-Model-Guided Search10 Oct 2025
- 2025A Survey on Test-Time Scaling in Large Language Models: What, How, Where, and How Well?31 Mar 2025
- 2024Ensembling Large Language Models with Process Reward-Guided Tree Search for Better Complex Reasoning20 Dec 2024
- 2023Don't throw away your value model! Generating more preferable text with Value-Guided Monte-Carlo Tree Search decoding26 Sep 2023
- 2023Faithful Question Answering with Monte-Carlo Planning4 May 2023
- 2024ARGS: Alignment as Reward-Guided Searchcited by 103
- 2024InfAlign: Inference-aware language model alignmentcited by 35
- 2024A Critical Look At Tokenwise Reward-Guided Text Generationcited by 12
- 2025Towards Cost-Effective Reward Guided Text Generationcited by 5
- 2025Tiny Reward Modelscited by 0
- 2025Tiny Reward Models14 Jul 2025
- 2025Towards Cost-Effective Reward Guided Text Generation6 Feb 2025
- 2024InfAlign: Inference-aware language model alignment27 Dec 2024
- 2024A Critical Look At Tokenwise Reward-Guided Text Generation12 Jun 2024
- 2024ARGS: Alignment as Reward-Guided Search23 Jan 2024
- 2023Planning with Large Language Models for Code Generationcited by 182
- 2023Controlled Decoding from Language Modelscited by 135
- 2023Transformer-based Planning for Symbolic Regressioncited by 79
- 2024When is Tree Search Useful for LLM Planning? It Depends on the Discriminatorcited by 47
- 2023KCTS: Knowledge-Constrained Tree Search Decoding with Token-Level Hallucination Detectioncited by 45
- 2023Discrete Prompt Optimization via Constrained Generation for Zero-shot Re-rankercited by 20
- 2024Don't Rank, Combine! Combining Machine Translation Hypotheses Using Quality Estimationcited by 13
- 2023Autoregressive Modeling with Lookahead Attentioncited by 7
- 2022Best-k Search Algorithm for Neural Text Generationcited by 6
- 2024Entropy-Reinforced Planning with Large Language Models for Drug Discoverycited by 6
- 2022Language Model Decoding as Likelihood-Utility Alignmentcited by 5
- 2025How Sampling Affects the Detectability of Machine-written texts: A Comprehensive Studycited by 4
12 most cited of 19 All 19 (JSON)
- 2026TruncProof: A Guardrail for LLM-based JSON Generation under Token-Length Constraints13 May 2026
- 2026Conversational Control with Ontologies for Large Language Models: A Lightweight Framework for Constrained Generation6 Apr 2026
- 2025How Sampling Affects the Detectability of Machine-written texts: A Comprehensive Study15 Oct 2025
- 2025Aligning Sentence Simplification with ESL Learner's Proficiency for Language Acquisition17 Feb 2025
- 2025ScaffoldGPT: A Scaffold-based GPT Model for Drug Optimization9 Feb 2025
- 2024Entropy-Reinforced Planning with Large Language Models for Drug Discovery11 Jun 2024
- 2024When is Tree Search Useful for LLM Planning? It Depends on the Discriminator16 Feb 2024
- 2024Don't Rank, Combine! Combining Machine Translation Hypotheses Using Quality Estimation12 Jan 2024
- 2024Monte Carlo Tree Search for Recipe Generation using GPT-210 Jan 2024
- 2023"Honey, Tell Me What's Wrong", Global Explanation of Textual Discriminative Models through Cooperative Generation27 Oct 2023
- 2023Controlled Decoding from Language Models25 Oct 2023
- 2023KCTS: Knowledge-Constrained Tree Search Decoding with Token-Level Hallucination Detection13 Oct 2023
12 newest of 19 All 19 (JSON)