[Paper Review] Augment with Care: Contrastive Learning for Combinatorial Problems
This paper proposes contrastive self-supervised learning with label-preserving data augmentations for combinatorial problems, specifically Boolean satisfiability (SAT). By leveraging well-known invariants like variable elimination and clause resolution to generate augmentations that preserve satisfiability, the method achieves performance comparable to fully supervised learning using only 1% of the labels, while demonstrating superior transferability to unseen problem domains.
Supervised learning can improve the design of state-of-the-art solvers for combinatorial problems, but labelling large numbers of combinatorial instances is often impractical due to exponential worst-case complexity. Inspired by the recent success of contrastive pre-training for images, we conduct a scientific study of the effect of augmentation design on contrastive pre-training for the Boolean satisfiability problem. While typical graph contrastive pre-training uses label-agnostic augmentations, our key insight is that many combinatorial problems have well-studied invariances, which allow for the design of label-preserving augmentations. We find that label-preserving augmentations are critical for the success of contrastive pre-training. We show that our representations are able to achieve comparable test accuracy to fully-supervised learning while using only 1% of the labels. We also demonstrate that our representations are more transferable to larger problems from unseen domains. Our code is available at https://github.com/h4duan/contrastive-sat.
Motivation & Objective
- To address the high cost of labeling large combinatorial problems like SAT, which are NP-complete and often infeasible to solve at scale.
- To investigate whether contrastive pre-training can reduce reliance on expensive labels in combinatorial optimization.
- To evaluate the impact of augmentation design—particularly label-preserving vs. label-agnostic augmentations—on downstream performance.
- To explore whether self-supervised representations generalize better across domains than supervised ones.
- To demonstrate that exploiting known invariants in combinatorial problems enables effective, low-data representation learning.
Proposed method
- The method uses a contrastive learning framework where each SAT instance is augmented via satisfiability-preserving transformations such as variable elimination and clause resolution.
- Augmentations are generated by applying these transformations randomly to SAT formulas in CNF, preserving the formula's satisfiability status.
- A Graph Neural Network (GNN) encoder processes the literal-clause incidence graph (LIG⁺) of each augmented formula to produce node-level embeddings.
- The contrastive objective maximizes agreement between the representations of different augmentations of the same instance while minimizing agreement across different instances.
- A downstream linear predictor is trained on the frozen encoder features to classify SAT/UNSAT, enabling evaluation of representation quality.
- The approach is evaluated under low-shot and zero-shot transfer settings, comparing performance against supervised baselines and standard graph augmentations.
Experimental results
Research questions
- RQ1Does the design of data augmentations significantly affect the performance of contrastive pre-training on combinatorial problems?
- RQ2Can label-preserving augmentations lead to representations that match or exceed those from fully supervised learning with drastically fewer labels?
- RQ3How does the transferability of self-supervised representations compare to supervised representations across different problem domains?
- RQ4Are augmentations based on known invariants (e.g., clause resolution) more effective than standard graph-level augmentations (e.g., node dropping, feature masking)?
- RQ5Does contrastive pre-training reduce overfitting to source-domain labels, improving generalization to unseen problem types?
Key findings
- The proposed contrastive method achieves test accuracy comparable to the best fully supervised baseline while using only 1% of the labeled training data.
- Label-preserving augmentations—especially those based on clause resolution—were essential for strong performance; standard graph augmentations (e.g., node dropping) failed to yield meaningful improvements.
- The method reduced sample complexity by at least 100×, as evidenced by superior performance in the low-label regime across all datasets.
- Contrastive representations transferred significantly better to unseen problem domains than supervised representations, particularly when moving from synthetic to industrial or vice versa.
- Models pre-trained on synthetic generators (SR, PR) transferred better to industrial datasets (DP, PS) than the reverse, suggesting that synthetic data with rich invariances enables more generalizable representations.
- The transfer performance was higher when source and target domains were more distinct, indicating that self-supervised learning reduces overfitting to source-specific patterns.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.