Chain-of-Thought Prompt Optimization via Adversarial Learning
Abstract
Chain-of-Thought (CoT) prompting has shown strong reasoning capabilities in solving complex problems. To further enhance accuracy, various methods have been proposed to improve both the prompt design process and the quality of the prompts themselves. However, whether manually crafted or automatically generated, prompts often lack effective strategies for optimization and evaluation. To address this limitation, we introduce the Adversarial Chain-of-Thought (adv-CoT) framework, inspired by adversarial learning. Specifically, adv-CoT comprises a generator and a discriminator, both powered by large language models (LLMs). The framework iteratively optimizes an initial CoT prompt by the following processes: the generator produces responses based on the input and the CoT prompt, while the discriminator distinguishes between generated outputs and ground-truth answers. This adversarial process continuously refines the prompt, forming a minimax game that jointly enhances both the generator and the discriminator. adv-CoT enables automatic prompt optimization and output evaluation through the use of LLMs. Extensive experiments on 12 datasets demonstrate the effectiveness of our approach, consistently improving accuracy across commonsense, factual, symbolic, and arithmetic tasks.
BibTeX
@article{yang2025chain,
author = {Guang Yang and Xiantao Cai and Shaohe Wang and Juhua Liu},
title = {{Chain-of-Thought Prompt Optimization via Adversarial Learning}},
journal = {Inf.},
year = {2025},
doi = {10.3390/info16121092},
}Ask Althea to put this paper to the test.
Loading related content...