On Training-Test (Mis)alignment in Unsupervised Combinatorial Optimization: Observation, Empirical Exploration, and Analysis

Fanchen Bu, Kijung Shin

TL;DR

In unsupervised combinatorial optimization (UCO), models are trained using surrogate losses that assume naive random sampling, yet evaluated using sophisticated discrete post-processing (derandomization) like greedy rounding. This creates a fundamental methodological misalignment: a model with a lower training loss can paradoxically produce worse discrete solutions, even on the very same training instance. While incorporating a differentiable, "soft" derandomization into training reduces this discrepancy, it creates a tricky trade-off by making gradient-based optimization much harder.

What Problem Does This Paper Address?

Combinatorial optimization (CO) problems—like graph partitioning, routing, or facility location—are inherently discrete. Unsupervised combinatorial optimization (UCO) circumvents discrete non-differentiability by relaxing binary decisions into continuous probabilities $\tilde{D} \in [0, 1]^n$ and training an end-to-end model on the expected objective value $\tilde{f}(\tilde{D})$. At test time, practitioners apply deterministic rounding algorithms ("derandomization"—such as iterative or greedy rounding) to convert continuous probabilities into discrete solutions.

The authors identify a critical gap: training-test methodological misalignment. The training loss optimizes the expected cost under naive random sampling, but the test pipeline uses advanced derandomization. Because the training objective does not mirror the test-time procedure, a continuous prediction with a lower surrogate loss does not necessarily yield a better discrete solution after rounding. This failure occurs even on identical training instances without any data distribution shift.

Methods

  1. Quantifying Misalignment:
    The authors measure ranking inversions between the continuous surrogate $\tilde{f}$ and the discrete objective $f$ after derandomization. A pair of continuous candidates $(\tilde{D}^{(1)}, \tilde{D}^{(2)})$ is considered "bad" if: $$(\tilde{f}(\tilde{D}^{(1)}) - \tilde{f}(\tilde{D}^{(2)}))(f(D^{(1)}) - f(D^{(2)})) < 0$$ meaning the surrogate predicts candidate 1 is better, but derandomization reveals candidate 2 is superior.

  2. Soft Derandomization during Training:
    To bridge this gap, the authors propose embedding a differentiable approximation of the test-time rounding procedure into the training pipeline. They replace the discrete $\operatorname{argmax}$ in iterative and greedy rounding algorithms with a continuous $\operatorname{softmax}$ parameterized by a temperature hyperparameter $\tau$. As $\tau \to 0$, the soft derandomization approaches the true discrete rounding scheme.

Datasets

The authors focus on controlled experiments to isolate methodological misalignment from data distribution shifts:

  • Synthetic Quadratic Function: An unconstrained binary quadratic problem $f(D) = \sum_{i,j=1}^n \alpha_{ij} d_i d_j$ with $n = 50$ variables, where matrix entries $\alpha_{ij}$ are sampled i.i.d. from a standard normal distribution.
  • Facility Location Problem: A standard benchmark in combinatorial optimization where the goal is to select a subset of facility centers to minimize total distance to serviced locations (evaluated on fixed instances following setup from Bu et al., 2024).

Key Insights and Ideas

  • The loss is lying to the optimizer: In nearly 40% of comparisons on standard toy problems, the continuous surrogate objective ranks solutions backwards relative to what greedy or iterative derandomization actually produces.
  • Alignment vs. Trainability Trade-off:
  • When $\tau$ is high (e.g., $\tau = 10.0$), soft derandomization is too weak to affect alignment.
  • When $\tau$ is very low (e.g., $\tau \le 0.01$), alignment improves substantially, but the loss surface develops extreme curvature and vanishing/unstable gradients, causing training loss to flatline.
  • Intermediate temperatures (e.g., $\tau = 0.1$) strike a pragmatic balance, achieving lower discrete test objectives than the standard baseline.

Key Results

  • High Rate of "Bad Pairs": On the 50-variable quadratic toy task, evaluating 4,950 pairs across 5 random trials revealed that 38.0% of pairs were misaligned under iterative rounding, and 39.6% were misaligned under greedy rounding.
  • Improved Alignment with Soft Derandomization: Decreasing the softmax temperature $\tau$ from $10.0$ down to $0.001$ steadily reduced the count of "bad" pairs from ~1,900 to near zero.
  • End-to-End Impact on Facility Location: Adding soft derandomization with a tuned temperature ($\tau = 0.1$) successfully drove down final discrete test objectives beyond the original UCO baseline, although aggressive temperatures ($\tau = 0.01, 0.001$) prevented the model from training.

Limitations and Future Work

  • Training Instability: Soft derandomization introduces non-smooth optimization landscapes, preventing naive gradient descent from converging at low temperatures.
  • Computational Overhead: Simulating multi-step greedy or iterative derandomization during backpropagation adds compute and memory cost to each training step.
  • Broader Scope: The exploration is preliminary and tested primarily on a toy quadratic setup and facility location instances. Future work must investigate annealing schedules for $\tau$, alternative differentiable relaxations, and broader problem classes across graph combinatorial optimization.

Summary updated

BibTeX
@inproceedings{bu2025training,
  author = {Fanchen Bu and Kijung Shin},
  title = {{On Training-Test (Mis)alignment in Unsupervised Combinatorial Optimization: Observation, Empirical Exploration, and Analysis}},
  booktitle = {PUT @ ICML},
  year = {2025},
  url = {https://openreview.net/forum?id=oIxyCU56Tt},
}

Loading related content...

Figure