Casper: A Projection-Based Neurosymbolic Layer for Scalable & Guaranteed Constraint Satisfaction
Abstract
Many real-world problems demand exact constraint satisfaction to be meaningfully solved, yet existing neurosymbolic methods face a stark trade-off: those that guarantee satisfaction fail to scale, while those that scale must resort to approximation. Meanwhile, traditional deep learning approaches offer no satisfaction guarantees at all. In this paper, we propose Casper, a neurosymbolic layer that simultaneously (i) guarantees constraint satisfaction, (ii) scales at inference time, (iii) is fully automated, requiring no problem-specific engineering, and (iv) is fully differentiable, making it composable with any neural predictor both at training and at inference time. Casper casts constraint satisfaction as a closed-form Euclidean projection onto the constraint-feasible region, computable in a single forward pass. Experiments across MNIST arithmetic (up to 1024 digits), Sudoku solving, and Warcraft pathfinding show that Casper is the only method that produces guaranteed-valid outputs at scale: on Warcraft grids, exact baselines time out and approximate ones produce valid paths less than 7% of the time, while Casper produces them 100% of the time.
Create a lesson
Metadata
- Comments
- Accepted at NeurIPS 2026 (Spotlight)
Related papers
RAP: Radial-Angular Random Projection for Hyperbolic Representations
Shared title terminologycs.LGJiahong Liu, Wenhao Yu, Yifan Li et al.
LatentCP-DPO: Conformal Pessimism for DPO with Finite-Sample Guarantees
Shared title terminologycs.LGHongwei Xu, Jingyi Liu, Vincent Y. F. Tan et al.
When High Capacity Becomes Undeployable: Pore-Filling Constraints for Multi-Objective Optimization of Direct Air Capture Sorbents
Shared title terminologycs.LGYujie Liu, Xuehua Shen, Zuotai Zhang
CARE-WM: Same-Horizon Self-Conditioning with Constraint-Adaptive Regularization for Latent World Models
Shared title terminologycs.LGYuchen Lin, Kai Zhao
The Danger of Double Precision: Working Precision as a Hidden Constraint in Gaussian Process Maximum Likelihood
Shared title terminologycs.LGThomas A. Scott
Change Partners at Every Layer: Balanced Random Regrouping for Model Merging
Shared title terminologycs.LGKaiyang Li, Shaobo Han, Shihao Ji