NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Chain of Preference Optimization: Improving Chain-of-Thought Reasoning in LLMs

Xuan Zhang, Chao Du, Tianyu Pang, Qian Liu, Wei Gao, Min Lin

This NeurIPS 2024 paper introduces Chain of Preference Optimization (CPO), a method designed to give Large Language Models (LLMs) the strategic depth of complex tree-searching algorithms without the massive "inference tax" usually associated with them.

The Problem: Fast vs. Deliberate Reasoning

While Chain-of-Thought (CoT) prompting has revolutionized LLM reasoning, it suffers from a "greedy" decoding problem: the model commits to a single path of thought and often overlooks more optimal logical steps. To solve this, researchers developed Tree-of-Thought (ToT), which allows the model to explore multiple branches, evaluate them, and backtrack if a path looks like a dead end.

The catch? ToT is incredibly slow. It requires generating and evaluating dozens of "thoughts" for a single answer, leading to high latency and computational costs. Previous attempts to "distill" ToT into faster models usually just fine-tuned the model on the final successful path (Supervised Fine-Tuning or SFT). However, this ignores the most valuable part of the tree search: the knowledge of why certain paths were rejected.

Comparison of CoT, ToT, and CPO frameworks

Chain of Preference Optimization (CPO)

To capture the full strategic insight of a tree search while maintaining the speed of CoT, the authors propose CPO. The method works in three main steps:

  1. Synthesizing the Tree: For a given problem, the researchers run a ToT process to build a comprehensive reasoning tree.
  2. Step-wise Preference Collection: Instead of just looking at the final answer, CPO evaluates every single branching point in the tree. At each step, the thought that leads to the final correct path is marked as "preferred," while the sibling thoughts that were pruned or scored lower are marked as "dispreferred."
  3. Optimization via DPO: The model is then fine-tuned using Direct Preference Optimization (DPO) on these per-step pairs. This teaches the model not just what to say, but specifically what logical pitfalls to avoid at each stage of reasoning.
Detailed pipeline for collecting preference data from ToT

Key Insights

  • The Power of "No": The non-optimal thoughts generated during tree search are not waste—they are high-quality negative samples. By learning why a specific thought was pruned, the model develops a more "deliberate" reasoning style.
  • Solving the LCP Problem: The authors identify a major flaw in path-level optimization (Full-path Preference Optimization or FPO). In FPO, if two reasoning paths are 90% identical and only differ at the very end, the gradients for the identical "prefix" tokens cancel each other out during training. CPO avoids this Longest Common Prefix (LCP) gradient cancellation by optimizing at the individual thought step.

Experimental Results

The researchers evaluated CPO across three types of complex reasoning tasks (Question Answering, Fact Verification, and Arithmetic Reasoning) using LLaMA-2 (7B/13B) and Mistral-7B.

  • Speed vs. Quality: CPO achieved performance comparable to (and sometimes better than) ToT, but it was 57.5x faster on average because it uses simple CoT decoding at inference time.
  • Accuracy Gains: CPO improved the reasoning accuracy of base models by an average of 4.3%, with a maximum improvement of 9.7% on some tasks.
  • Beating SFT: CPO consistently outperformed standard Supervised Fine-Tuning (TS-SFT), proving that the preference information (the "dispreferred" thoughts) is critical for teaching the model how to reason effectively.

Limitations and Future Work

While inference is fast, generating the initial training data via ToT remains a time-consuming and computationally expensive process. Furthermore, the current study focused on text-based reasoning; testing on vision-language models or more diverse tasks like code generation remains for future work. Ultimately, CPO could be part of an iterative "self-improvement" loop, similar to AlphaZero, where the model continuously generates its own preference data to refine its logic.

Summary updated

BibTeX
@inproceedings{zhang2024chain,
  author = {Xuan Zhang and Chao Du and Tianyu Pang and Qian Liu and Wei Gao and Min Lin},
  title = {{Chain of Preference Optimization: Improving Chain-of-Thought Reasoning in LLMs}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=2cczgOfMP4},
}
Figure