Differentiable MaxSAT Message Passing

Francesco Alesiani, Cristóbal Corvalán Morbiducci, Markus ZopfDifferentiable Almost Everything @ ICML 2023

TL;DR

This paper introduces MAXSAT-MP, a novel message-passing framework for graph neural networks that leverages a differentiable MAXSAT solver. By learning logical rules for message propagation, MAXSAT-MP offers improved interpretability and can learn arithmetic operations, achieving performance comparable to state-of-the-art GNNs on various graph tasks.

What Problem Does This Paper Address?

Graph Neural Networks (GNNs) are powerful tools for processing graph-structured data, largely due to their message-passing mechanisms. However, current GNNs often rely on "black-box" neural models that operate in continuous domains. This limits their ability to explicitly reason over discrete variables or combinatorial problems, hindering their descriptive power and interpretability. The authors aim to bridge this gap by introducing a message-passing approach that explicitly learns logical rules governing how information flows between nodes.

Methods

The core innovation is MAXSAT-MP (Maximum Satisfiability Problem Message Passing). Instead of using standard continuous transformations, MAXSAT-MP employs a differentiable MAXSAT solver to learn logical rules. These rules dictate which messages are passed between nodes and how they are processed.

Here's a breakdown of the key techniques:

  • Differentiable MAXSAT Solver: The paper adapts existing work on differentiable SAT solvers (like SATNet) to the MAXSAT problem. This allows the MAXSAT solver to be integrated into a neural network and trained end-to-end using gradient descent.
  • Learning Logical Rules: The model learns logical sentences that define the relationships between node features and their neighbors. A message is propagated only if it adheres to these learned rules.
  • Relaxed Continuous Space: To enable differentiability, the discrete logical variables are mapped to a continuous, relaxed space. This allows for standard gradient-based training.
  • Recursive and Batch Aggregation: Two variants are proposed:
  • R-MAXSAT-MP (Recursive MAXSAT Message Passing): Aggregates messages sequentially, similar to recurrent networks, using a memory component.
  • B-MAXSAT-MP (Batch MAXSAT Message Passing): Aggregates messages from multiple neighbors simultaneously, offering improved training stability.
  • Canonical Ordering and Attention: To ensure permutation invariance/equivariance, a canonical ordering of neighbor features is used. An optional "logic attention bit" can also be incorporated to help the solver decide which messages are relevant.

Datasets

The paper evaluates MAXSAT-MP on several standard graph datasets:

  • Arithmetic Operations: Synthetic datasets for addition and multiplication of 2, 3, and 4 numbers (5-bit binary representation).
  • Graph Classification: MUTAG, Mutagenicity, PROTEINS, and ZINC datasets.
  • Node Missing Feature Prediction: MUTAG, Mutagenicity, and ENZYMES datasets.

Key Insights and Ideas

  • Logic as a Foundation for Message Passing: The paper demonstrates that explicit logical reasoning can be effectively integrated into message-passing frameworks, moving beyond purely continuous transformations.
  • Interpretability through Logic Rules: By learning logical rules, MAXSAT-MP offers a more interpretable alternative to black-box GNNs, potentially revealing the underlying reasoning process.
  • Learning Arithmetic with Logic: A significant finding is that MAXSAT-MP can learn basic arithmetic operations (addition, multiplication) by inferring logical rules, showcasing its ability to capture functional relationships.
  • Comparable Performance to SOTA GNNs: Despite its novel approach, MAXSAT-MP achieves performance on par with or exceeding established GNN architectures on various tasks, including graph classification and node feature prediction.

Key Results

  • Arithmetic Learning: MAXSAT-MP significantly outperforms recurrent networks (LSTM, GRU) in learning arithmetic operations. It also shows competitive or superior performance compared to GCN and GAT, with GIN performing better on addition but underperforming on multiplication.
  • Graph Classification: MAXSAT-MP models perform comparably to baselines like GCN, GAT, and GIN on MUTAG, Mutagenicity, and PROTEINS datasets.
  • Node Missing Feature Prediction: MAXSAT-MP achieves competitive accuracy, sometimes slightly outperforming baselines on MUTAG and Mutagenicity datasets.
  • Generalization: The B-MAXSAT-MP variant shows better generalization capabilities for arithmetic tasks compared to R-MAXSAT-MP.

Limitations and Future Work

  • Computational Complexity: The paper acknowledges that while MAXSAT-MP's solution computation is efficient (O(knmT)), its overall cost can be higher than standard neural networks, especially for larger graphs.
  • Discrete vs. Continuous Input: The current approach assumes discrete or easily quantizable input features. For purely continuous inputs without distortion, an initial non-linear layer might be needed.
  • Logic Expressiveness: The authors note that while they model extended logic rules, it's an open question whether they cover all possible logic rules. This is left for future work.
  • Future Directions: The paper suggests exploring more complex logic rules, investigating the integration of attention mechanisms more deeply, and applying the framework to a wider range of combinatorial optimization problems.

Summary updated

BibTeX
@inproceedings{alesiani2023differentiable,
  author = {Francesco Alesiani and Cristóbal Corvalán Morbiducci and Markus Zopf},
  title = {{Differentiable MaxSAT Message Passing}},
  booktitle = {Differentiable Almost Everything @ ICML},
  year = {2023},
  url = {https://openreview.net/forum?id=jiCifo87C0},
}
Figure