Research map / Label-efficient and robust learning / Self-supervised and contrastive
Self-Supervised Transformers as Iterative Solution Improvers for Constraint Satisfaction
Read the paperCheck your idea against 108,967 papers
AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Proposes ConsFormer, a Transformer trained with a self-supervised differentiable constraint-violation loss to improve random CSP assignments in a single step, then applied iteratively at test time.
Problem
Solving constraint satisfaction problems (CSPs) quickly with learned heuristics, avoiding the need for feasible-solution labels in supervised learning and the large budgets and hand-designed rewards of reinforcement learning.
Approach
A single-step Transformer is trained self-supervised on differentiable continuous penalties approximating discrete CSP constraints, using stochastic variable subset selection and APE/RPE encodings of variable indices and constraint graph; at test time it is iterated like local search so that more iterations solve harder out-of-distribution instances.
Key results
- ConsFormer solves 100% of in-distribution Sudoku test instances and 77.74% of harder OOD Sudoku instances with 10k iterations, versus 62.1% for the best prior neural baseline.
- On Graph-Coloring-10 (n=100 to 200), ConsFormer reaches 11.92% OOD solve rate vs 10.25% for OR-Tools under 10s; multi-start with 100 candidates raises Graph-Coloring-5 OOD to 55.67%.
- On GSET MAXCUT, ConsFormer achieves average gaps of 0.31% to 1.27%, but ANYCSP remains best (0.02% to 0.42%).
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| Increase test-time refinement from 2k to 10k iterations | ConsFormer · Sudoku harder OOD | solve rate: 65.88 -> 77.74 | Helped |
| Use stochastic subset updates instead of updating all variables at every step (ablation) | ConsFormer · Sudoku and Graph Coloring in-distribution | instances solved | Helped |
| Use relative variable relations with RPE (ablation) | ConsFormer · Graph Coloring | instances solved | Helped |
| Use 2D APE instead of 1D APE (ablation) | ConsFormer · Sudoku | instances solved | Helped |
| Remove both APE and RPE (ablation) | ConsFormer · Sudoku and Graph Coloring | instances solved: 99.90% -> 0.00%; 78.00% -> 1.58% | Hurt |
| Replace Gumbel-Softmax with temperature-controlled Softmax (ablation) | ConsFormer · Sudoku and Graph Coloring | instances solved: 77.74 vs 85.67; 78.16 vs 77.33 | Mixed |
| Use Gumbel-Softmax instead of temperature-controlled Softmax (ablation) | ConsFormer · MAXCUT | absolute gap to best known values: 24.44 vs 123.11 | Helped |
| Add multi-start candidate pool, increasing pool size from 1 to 100 (ablation) | ConsFormer · Graph-Coloring-5 harder OOD | instances solved: 47.33% to 55.67% | Helped |
| Add multi-start candidate pool, increasing pool size from 1 to 50 (ablation) | ConsFormer · Graph-Coloring-10 harder OOD | instances solved: 11.92% to 15.00% | Helped |
Surprising findings
- ANYCSP solved 0% of Graph-Coloring-10 instances within 10 seconds despite strong results on Graph-Coloring-5.
- Softmax with low temperature matched or beat Gumbel-Softmax on Sudoku and Graph Coloring, with Gumbel-Softmax helping mainly on large MAXCUT instances.
Limitations
- Assumes a fixed constraint structure; parametric constraints (e.g., SAT clauses with negations) cannot be handled.
- Does not match state-of-the-art ANYCSP on MAXCUT GSET and lags OR-Tools on harder OOD Graph Coloring k=5.
- Single-step training with a fixed selection probability and grid-searched hyperparameters per problem.
Experimental setup
Datasets: SATNet Sudoku dataset RRN Sudoku dataset Randomly generated graph coloring instances (Erdos-Renyi, Barabasi-Albert, random geometric) Nurse rostering generated instances Random graphs for MAXCUT training
Benchmarks: SATNet Sudoku RRN Sudoku (harder OOD) Graph Coloring k=5 and k=10 Nurse Scheduling GSET MAXCUT
Metrics: % instances solved average relative gap to best known cut
Baselines: OR-Tools ANYCSP RRN SATNet Greedy SDP RUNCSP ECO-DQN ECORD
Builds on: Transformer Gumbel-Softmax constraint-based local search ANYCSP
Closest papers by meaning
- Geometric Algorithms for Neural Combinatorial Optimization with Constraints (NeurIPS 2025 · similarity 0.87)
- Step-by-Step Optimization-like Reasoning in LLMs over Expanding Search Spaces (NeurIPS 2026 · similarity 0.86)
- Large Language Models as End-to-end Combinatorial Optimization Solvers (NeurIPS 2025 · similarity 0.86)
- Teaching Transformers to Solve Combinatorial Problems through Efficient Trial & Error (NeurIPS 2025 · similarity 0.85)
- GOAL: A Generalist Combinatorial Optimization Agent Learner (ICLR 2025 · similarity 0.85)
- Self-Labeling the Job Shop Scheduling Problem (NeurIPS 2024 · similarity 0.85)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.
