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

Symmetries of Symmetry Breaking Constraints

George Katsirelos, Toby Walsh

TL;DR

Symmetries in constraint satisfaction problems can be applied directly to symmetry-breaking constraints to generate new, valid constraints that target different equivalent solutions. By periodically restarting the search with a randomly rotated or permuted version of these constraints ("model restarts"), solvers can overcome performance-killing conflicts between static constraints and search heuristics.

What Problem Does This Paper Address?

Many real-world combinatorial problems—like scheduling, graph coloring, or puzzle solving—contain inherent symmetries. For example, if you have a valid factory schedule, swapping two identical machines yields an equally valid schedule. To keep solvers from wasting time exploring these redundant, symmetric states, developers add symmetry-breaking constraints to force the solver to look for just one representative solution per symmetry class.

However, static symmetry-breaking constraints pick a specific representative solution in advance. If the solver's branching heuristic naturally steers the search toward a different symmetric solution, the constraints and the heuristic will fight. This conflict leads to massive, unnecessary backtracking and severe performance degradation. The authors tackle this friction between constraint propagation and search heuristics.

Methods

The core theoretical insight of this paper is that symmetries can act on constraints themselves, not just on variables and values. The authors mathematically prove that if a set of symmetry-breaking constraints is sound and complete, applying any problem symmetry to it yields a new set of constraints that is also sound and complete, but targets a different representative solution.

To exploit this, they introduce an application within Model Restarts:

  1. The solver begins a standard backtracking search with a base set of symmetry-breaking constraints.
  2. If a solution isn't found within a fixed number of backtracks, the search restarts.
  3. Upon restarting, the solver randomly selects a symmetry from the problem's symmetry group, transforms the symmetry-breaking constraints using this symmetry, and posts the new constraints.
  4. This dynamically shifts the target solution in the search space, maximizing the chance that the constraints will align with the branching heuristic's trajectory while maintaining full constraint propagation.

Datasets

The authors evaluated their approach on three distinct problem domains:

  • Magic Squares (Order 5): Used as a clear, illustrative running example to show how different symmetries impact search space size.
  • Random Graph Coloring Problems: Modified to include both value interchangeability (swapping colors) and variable symmetry (variables partitioned into interchangeable sets of size $\le$ 8).
  • Equidistant Frequency Permutation Arrays (EFPA): A complex mathematical problem exhibiting both row and column matrix symmetries.

Key Insights and Ideas

  • Hedged Bets via Randomization: The performance of static constraints is highly volatile; a solver might get lucky or face a worst-case scenario. Randomly shifting the constraints during restarts acts as a portfolio hedge, smoothing out catastrophic misalignments between the heuristic and the constraints.
  • The Hybrid Advantage: Dynamic symmetry-breaking methods (like Symmetry Breaking During Search, or SBDS) don't prune the search space via early propagation very well. Static constraints propagate beautifully but are rigid. Model restarts offer the best of both worlds: full propagation power at any given moment, combined with dynamic flexibility across restarts.

Key Results

  • Mitigating Worst-Case Disasters: In the order-5 magic square problem, choosing the wrong static symmetry resulted in a staggering 18,808,974 backtracks. The best choice took only 658. By using model restarts, the solver averaged a highly efficient 3,658 backtracks, successfully avoiding the multi-million backtrack trap.
  • Robustness Across Heuristics: On graph coloring and EFPA benchmarks, model restarts demonstrated far greater robustness than static constraints. When switching from a favorable value ordering (lexicographic) to an unfavorable one (random), the runtime variance for model restarts was minimal.
  • Outperforming Dynamic Methods: Model restarts consistently explored smaller search trees than SBDS. In the graph coloring benchmarks, SBDS frequently ran out of memory or time, failing to prove optimality in 9 out of 10 instances, whereas model restarts proved optimality robustly.

Limitations and Future Work

  • Limitations: Model restarts are rarely the absolute fastest method for a specific instance if a static constraint happens to perfectly align with the heuristic by pure chance. It trades peak "lucky" performance for robust, predictable average-case performance.
  • Future Work: The authors suggest moving away from purely random symmetry selection during restarts. Instead, they propose dynamically selecting a symmetry that is maximally consistent with the choices the branching heuristic has already made. They also target applying symmetries to nogoods (learned constraints) to further accelerate learning during backtracking search.

Summary updated

BibTeX
@misc{katsirelos2010symmetries,
  author = {George Katsirelos and Toby Walsh},
  title = {{Symmetries of Symmetry Breaking Constraints}},
  year = {2010},
  eprint = {1005.5270},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1005.5270},
}
Figure