Partial Optimality in the Preordering Problem

David Stein, Jannik Irmai, Bjoern AndresarXiv 2026

TL;DR

This paper introduces new partial optimality conditions and polynomial-time algorithms for the preordering problem, an NP-hard task that generalizes both clustering and partial ordering. By leveraging the theory of "improving maps," the authors present efficient techniques to pre-decide whether specific elements must or cannot be ordered relative to each other. Empirically, these methods drastically prune the search space for exact solvers, particularly by identifying pairs that can be confidently ruled out of the optimal preorder.

What Problem Does This Paper Address?

Many real-world datasets possess an underlying structure that is a mix of grouping and hierarchy. For instance, in social networks, users might form communities (clustering), but these communities also exhibit a clear status hierarchy (ordering). The preordering problem elegantly unifies these concepts. A preorder is a binary relation that is reflexive and transitive, meaning it allows elements to be equivalent (in the same cluster) while also defining a directed, partial sequence between different clusters.

An instance of the preordering problem showing a cost matrix (left) and its optimal preorder solution (right), which clusters elements $i$ and $j$ together while establishing a partial order over the remaining elements.

Given a set of elements and a matrix of pairwise preferences or costs, the goal is to find a preorder that maximizes the total weight of the chosen relations. Because this problem is NP-hard, finding an exact solution for large datasets is computationally prohibitive.

Instead of trying to solve the entire problem at once, this paper tackles partial optimality: can we efficiently determine the state of at least some pairs (i.e., deciding if $a \lesssim b$ or $a \not\lesssim b$) in polynomial time? Doing so allows us to reduce the size of the problem before handing it off to an exact solver.

Methods

The authors build their conditions using the mathematical framework of improving maps—transformations that take any feasible solution and map it to another solution that is guaranteed to be as good or better. They introduce three main types of partial optimality conditions:

  1. Cut Conditions (Theorem 1 & Corollary 2): These conditions identify when a relation cannot exist in an optimal solution ($a \not\lesssim b$). The authors show this can be formulated as a minimum directed cut (dicut) problem and solved exactly in polynomial time using standard max-flow algorithms (specifically, the push-relabel algorithm).
  2. Join Conditions (Theorem 2): These conditions determine when a relation must exist ($a \lesssim b$). The authors map this task to a three-label energy minimization problem, which they solve heuristically using $\alpha\beta$-swap graph cuts.
  3. Fixation Conditions (Theorem 3): A more complex bounding technique that uses local subsets of the data to compute lower and upper bounds on the objective function, allowing variables to be fixed even when global bounds are too loose.

Once any condition fixes a variable, constraint propagation is triggered. Because preorders must be transitive, fixing one relation often forces a cascade of other relations to be fixed automatically.

An illustration of constraint propagation: establishing certain must-join (solid black) and must-cut (dashed black) constraints automatically implies additional gray constraints due to transitivity.

Datasets

The algorithms were evaluated on two types of data:

  • Synthetic Instances: Randomly generated preorders where the difficulty is controlled by a noise parameter ($\alpha$) and an edge-density parameter ($p_E$).
  • Real-World Social Networks: Twitter and Google+ ego networks from the SNAP dataset. In these graphs, the cost $c_{ij}$ is set to $+1$ if user $i$ follows user $j$, and $-1$ otherwise.

Key Insights and Ideas

  • The Challenge of Directed Cuts: In standard correlation clustering, cutting an edge splits a graph into independent subproblems. In preordering, however, we deal with directed cuts (dicuts). Setting directed edges to zero does not cleanly decouple the graph, which makes finding partial optimality conditions significantly more challenging.
  • Local Bounding Beats Global Bounding: Theorem 3 demonstrates that looking at a localized subset $U \subseteq V$ can yield tighter mathematical bounds than evaluating the entire dataset globally. This prevents loose approximations from rendering the optimality conditions useless on noisy data.
  • Elementary Join Maps: To prove the join conditions, the authors designed a novel transformation map that merges disjoint sets while preserving the transitivity required by a valid preorder.
The elementary join map transformation, which safely merges elements from disjoint sets $U$ and $U'$ into a valid preorder structure.

Key Results

  • More Variables Fixed: On the real-world Twitter dataset, the new Theorem 1 cut condition fixed a median of 29.6% of the variables to zero, a substantial improvement over the prior state-of-the-art baseline (Corollary 2), which only fixed 16.7%.
  • Polynomial Runtime: Although checking the new conditions takes longer than simpler baselines (about two orders of magnitude more time for Theorem 1 vs. Corollary 2), the runtimes remain strictly polynomial, making them highly practical as a preprocessing step.
  • Synergy via Joint Application: When all cut, join, and fixation conditions are applied together, they successfully fix 100% of the variables for low-noise synthetic datasets, completely solving the problem without needing an exponential-time exact solver.

Limitations and Future Work

  • Heuristic Join Decisions: While the cut conditions are solved exactly via max-flow, the join conditions rely on a heuristic ($\alpha\beta$-swaps) for energy minimization. This means the algorithm might miss some valid "must-join" relations.
  • Sensitivity to Noise: As the noise parameter $\alpha$ increases in synthetic tests, the percentage of fixed variables drops sharply, showing that highly chaotic data limits the effectiveness of these partial optimality criteria.
  • Future Directions: Developing an exact polynomial-time algorithm for the join conditions (rather than relying on $\alpha\beta$-swap heuristics) remains an open and promising direction for future research.

Summary updated

BibTeX
@misc{stein2026partial,
  author = {David Stein and Jannik Irmai and Bjoern Andres},
  title = {{Partial Optimality in the Preordering Problem}},
  year = {2026},
  eprint = {2602.17346},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.17346},
}
Figure