NeurIPS 2026QuestionsPapersAreasAboutMarkdown

Data-Efficient Learning for Constraint Satisfaction Problems via Relational Biases and Hard Axiom Clamping

Enqiang Zhu, Ke Wang, Yu Zhang, Shengzhi Wang, Xianhang Luo, Chanjuan Liu

NeurIPS page · OpenReview · Open on the map

Category: Optimization & Federated Learning › Neural SAT Solving · Type: new method · Keywords: constraint satisfaction, neural algorithmic reasoning, relational bias, hard axiom clamping, data-efficient learning

Areas: Model Architectures & Sequence Modeling › Dynamic and relational architectures › Constraint Solving

Summary

CSP-RSB is a data-efficient recurrent Transformer that uses relational biases and hard axiom clamping to solve constraint satisfaction problems with high accuracy and low data requirements.

Explained to a 5-year-old

The computer learns to solve puzzles like Sudoku and coloring games without seeing many examples. It looks at the shape of the puzzle and remembers important clues so they don’t change. It uses a special way to pay attention to the puzzle’s rules. After a few tries, it can fill in all the numbers correctly. This helps people solve tricky puzzles faster and with less effort.

Explained to a 5-year-old, longer

A computer program wants to solve puzzles where you have to put numbers or colors in the right spots. These puzzles are called constraint satisfaction problems, meaning every piece must follow certain rules. Usually, the computer needs a lot of example puzzles to learn how to solve them. This paper shows a way for the computer to learn from very few examples. It does this by looking at the picture of the puzzle and learning which parts are related. The program also remembers the clues that are already given and makes sure they stay correct. It uses a special trick to keep the clues fixed while it works step by step. The program is built like a recurrent transformer, which means it can think about the puzzle over time. It pays attention to the puzzle’s structure, so it understands the connections between different cells. After just a few rounds of training, it can solve Sudoku puzzles almost perfectly. It also solves other puzzles like graph coloring and binary puzzles with high accuracy. This makes solving hard puzzles easier and faster for people who need them.

For a technical reader

The system tackles combinatorial puzzles such as Sudoku and graph coloring by modeling the problem as a graph and feeding it into a recurrent transformer. It adds a learnable bias to the attention mechanism so the model can exploit the puzzle’s inherent relational structure. A hard axiom clamping step freezes the given clues after each iteration, preventing them from drifting during training. The design includes QK-Norm stabilization for the transformer’s internal blocks, which helps convergence. Empirically, the approach reaches near-perfect accuracy on standard benchmarks while requiring far fewer training examples than prior methods.

Problem

Neural solvers for constraint satisfaction problems often require large training datasets and struggle with distribution shifts, while fixed clues can drift in continuous spaces, limiting their reliability.

Method

The approach incorporates the problem’s constraint topology into the attention mechanism via a learnable relational bias and stabilizes training with a hard axiom clamping strategy that fixes clues after each recurrence step, combined with QK-Norm for a two-layer block.

Results

The approach achieves 99.94% board accuracy on the RRN-test, 99.13% on unfiltered Kaggle, and 99.78% on filtered Kaggle for Sudoku, solves Erdős-Rényi graph coloring with 100% accuracy in 9 epochs, and maintains 99.5-100% accuracy on 10×10 binary puzzles.

Contributions

It introduces a data-efficient recurrent Transformer that leverages relational biases to embed constraint topology and a hard axiom clamping strategy to fix clues, reducing the need for large datasets and depth in algorithmic reasoning.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction