Saved in:
Bibliographic Details
Main Authors: Shoham, Elad, Cohen, Hadar, Wattad, Khalil, Rika, Havana, Vilenchik, Dan
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2412.11205
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866929648036741120
author Shoham, Elad
Cohen, Hadar
Wattad, Khalil
Rika, Havana
Vilenchik, Dan
author_facet Shoham, Elad
Cohen, Hadar
Wattad, Khalil
Rika, Havana
Vilenchik, Dan
contents Explainable AI (XAI) methods typically focus on identifying essential input features or more abstract concepts for tasks like image or text classification. However, for algorithmic tasks like combinatorial optimization, these concepts may depend not only on the input but also on the current state of the network, like in the graph neural networks (GNN) case. This work studies concept learning for an existing GNN model trained to solve Boolean satisfiability (SAT). \textcolor{black}{Our analysis reveals that the model learns key concepts matching those guiding human-designed SAT heuristics, particularly the notion of 'support.' We demonstrate that these concepts are encoded in the top principal components (PCs) of the embedding's covariance matrix, allowing for unsupervised discovery. Using sparse PCA, we establish the minimality of these concepts and show their teachability through a simplified GNN. Two direct applications of our framework are (a) We improve the convergence time of the classical WalkSAT algorithm and (b) We use the discovered concepts to "reverse-engineer" the black-box GNN and rewrite it as a white-box textbook algorithm. Our results highlight the potential of concept learning in understanding and enhancing algorithmic neural networks for combinatorial optimization tasks.
format Preprint
id arxiv_https___arxiv_org_abs_2412_11205
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Concept Learning in the Wild: Towards Algorithmic Understanding of Neural Networks
Shoham, Elad
Cohen, Hadar
Wattad, Khalil
Rika, Havana
Vilenchik, Dan
Machine Learning
Explainable AI (XAI) methods typically focus on identifying essential input features or more abstract concepts for tasks like image or text classification. However, for algorithmic tasks like combinatorial optimization, these concepts may depend not only on the input but also on the current state of the network, like in the graph neural networks (GNN) case. This work studies concept learning for an existing GNN model trained to solve Boolean satisfiability (SAT). \textcolor{black}{Our analysis reveals that the model learns key concepts matching those guiding human-designed SAT heuristics, particularly the notion of 'support.' We demonstrate that these concepts are encoded in the top principal components (PCs) of the embedding's covariance matrix, allowing for unsupervised discovery. Using sparse PCA, we establish the minimality of these concepts and show their teachability through a simplified GNN. Two direct applications of our framework are (a) We improve the convergence time of the classical WalkSAT algorithm and (b) We use the discovered concepts to "reverse-engineer" the black-box GNN and rewrite it as a white-box textbook algorithm. Our results highlight the potential of concept learning in understanding and enhancing algorithmic neural networks for combinatorial optimization tasks.
title Concept Learning in the Wild: Towards Algorithmic Understanding of Neural Networks
topic Machine Learning
url https://arxiv.org/abs/2412.11205