GraphDPO: Your Language Model is Secretly Optimizing a Preference Graph

Beyond Pairs: Your Language Model is Secretly Optimizing a Preference Graph

Summary
Problem
Method
Results
Takeaways
Abstract

GraphDPO is a novel alignment framework that generalizes Direct Preference Optimization (DPO) by modeling multi-sample comparisons as directed acyclic preference graphs. It utilizes a graph-structured Plackett–Luce objective to enforce transitive consistency across rollouts, achieving SOTA results on reasoning and coding tasks (e.g., 92.75% on GSM8K).

TL;DR

While Direct Preference Optimization (DPO) revolutionized LLM alignment by replacing RL with a simple classification-style objective, it remains bottlenecked by its "pairwise" view of the world. GraphDPO breaks this bottleneck by treating multiple model rollouts not as isolated pairs, but as a Directed Acyclic Graph (DAG). By leveraging the full transitive structure of rankings and introducing ground-truth anchoring, GraphDPO achieves superior performance in mathematical reasoning and coding, setting new benchmarks on GSM8K and MATH-500.

Probing the Pairwise & Listwise Bottleneck

Modern alignment often involves sampling responses per prompt. Standard DPO breaks these into pairs. This approach is fundamentally flawed for two reasons:

  1. Transitivity Loss: Treating and as independent updates ignores the global structure that must dominate .
  2. The "Ties" Dilemma: In tasks like coding (APPS) or math (GSM8K), multiple responses often share the same reward (e.g., both are "Correct"). DPO and strict listwise methods (like PRO) struggle to handle these equivalence classes without introducing "spurious gradients"—forcing the model to prefer one correct answer over another nearly identical one.

Methodology: The Graph-Structured Insight

GraphDPO proposes that for every prompt , there exists a latent Preference Graph . Instead of a list, the model optimizes against neighborhoods.

1. Preference Graph Representation

The core idea is Equivalence-class Masking. Responses with identical preference signals (e.g., same correctness) form a "Layer" in the DAG. Edges only exist between layers, never within them. This mathematically prevents the model from trying to distinguish between equally good outputs.

2. The Objective Function

GraphDPO uses a local Plackett–Luce model. For a node , the loss is: Where is the set of all nodes dominates. This captures the intuition that a response should be "better" than the pool of everything it outranks.

GraphDPO Architecture Figure 1: The GraphDPO pipeline. Note how rollouts are grouped into equivalence classes, forming a layered DAG structure.

3. Ground-Truth Anchoring

To stabilize training, the authors introduce a "Stell-Global Anchor"—the ground truth. By inserting the oracle solution as a dominant node and using an Annealed Schedule, the model is "pulled" towards the right answer heavily in the beginning, with the constraint relaxing as the policy matures.

Experiments: Superior Scaling and Robustness

The researchers tested GraphDPO against a formidable battery of baselines including GRPO, SPIN, and listwise methods like LiPO and PRO.

Key Result: GSM8K & MATH-500

On MATH-500, a benchmark notorious for long reasoning chains, GraphDPO reached 88.87%, significantly outperforming LiPO (85.60%).

MethodGSM8K Acc (%)MATH-500 Acc (%)APPS Pass Rate (%)
DPO (Pairwise)87.4970.8059.87
LiPO (Listwise)89.2385.6069.32
GraphDPO (Ours)92.7588.8773.76

Experimental Results Table 1: Performance comparison across mathematical and programming benchmarks.

Ablation: Why Graphs Matter

As shown in the ablation studies, increasing the number of rollouts () significantly boosts GraphDPO's performance. Because the graph becomes richer with more nodes, the "transitive constraints" become more powerful, allowing the model to learn a more coherent reward landscape.

Critical Analysis & Conclusion

Takeaway: GraphDPO is a elegant bridge between simple pairwise DPO and complex RLHF. It proves that the "secret" to efficient alignment isn't just more data, but better relational structure between the data points we already have.

Limitations:

  • The method still relies on the quality of initial rollouts. If the base model fails to generate any correct samples, the internal graph structure (excluding anchoring) provides less signal.
  • While in layered settings, highly irregular partial orders could increase computational overhead.

In conclusion, GraphDPO suggests that our language models are indeed "secretly optimizing preference graphs," and by making that graph explicit, we can unlock significantly higher reasoning capabilities.

Find Similar Papers

Try Our Examples

  • Search for recent papers that apply partial order modeling or ensemble-based ranking to Large Language Model alignment beyond the standard Bradley-Terry model.
  • Which study first introduced the Plackett-Luce model for listwise ranking, and how does GraphDPO's graph factorization specifically deviate from traditional Plackett-Luce MLE?
  • Investigate how graph-based preference optimization can be extended to multi-modal alignment tasks (e.g., Vision-Language) where visual preferences may exhibit complex, non-linear dominance relations.
Contents
GraphDPO: Your Language Model is Secretly Optimizing a Preference Graph
1. TL;DR
2. Probing the Pairwise & Listwise Bottleneck
3. Methodology: The Graph-Structured Insight
3.1. 1. Preference Graph Representation
3.2. 2. The Objective Function
3.3. 3. Ground-Truth Anchoring
4. Experiments: Superior Scaling and Robustness
4.1. Key Result: GSM8K & MATH-500
4.2. Ablation: Why Graphs Matter
5. Critical Analysis & Conclusion