DisenSemi: Semi-Supervised Graph Classification via Disentangled Representation Learning

Yifan Wang, Xiao Luo, Chong Chen, Xian-Sheng Hua, Ming Zhang, Wei Ju

TL;DR

DisenSemi is a novel framework for semi-supervised graph classification that uses disentangled representation learning to bridge the gap between labeled and unlabeled data. By decomposing graphs into independent latent factors and using a specialized consistency regularization, it ensures that only the most relevant "rationales" are transferred from unsupervised models to the classification task, significantly boosting performance and interpretability.

What Problem Does This Paper Address?

Graph classification—identifying whether a molecule is toxic or a social network community is influential—is a cornerstone of modern data science. However, obtaining high-quality labels for graphs is often expensive and time-consuming. While semi-supervised learning (SSL) aims to use massive amounts of unlabeled data to help, current methods face two major hurdles:

  1. Latent Factor Neglect: Real-world graphs are complex mixtures of different "factors" (e.g., different functional groups in a molecule). Most models treat the graph as a single holistic blob, missing these intricate sub-structures.
  2. Semantic Mismatch: Unsupervised tasks (like predicting if two nodes are connected) might capture information that is totally irrelevant to the supervised task (like predicting a molecule's solubility). Simply combining these tasks can lead to "negative transfer," where the unlabeled data actually hurts the model's performance.

Methods

The authors introduce DisenSemi, which consists of three core components:

  • Disentangled Graph Encoder: Instead of one embedding per graph, this encoder uses an attention mechanism to decompose the input graph into $K$ separate "factor graphs." Each factor graph focuses on a different aspect of the graph's topology.
  • MI-based Disentanglement: To ensure these $K$ factors are actually distinct and meaningful, the model uses Mutual Information (MI) constraints. It maximizes "Intra-factor MI" (ensuring each factor captures global graph content) and minimizes "Inter-factor MI" (ensuring the factors don't overlap or repeat information).
  • Disentangled Consistency Regularization: This is the "secret sauce." It identifies which latent factors from the unsupervised model align best with the supervised classification task. It uses a Variational Expectation-Maximization (EM) approach to maximize the agreement between the two models only on the factors that actually matter for the final prediction.

Datasets

The researchers evaluated DisenSemi on ten diverse benchmark datasets:

  • Bioinformatics/Chemistry: MUTAG, PTC-MR, NCI1, PROTEINS, and OGB-HIV (a large-scale molecular dataset).
  • Social Networks: IMDB-BINARY, IMDB-MULTI, REDDIT-BINARY, REDDIT-MULTI-5K, and COLLAB.

These datasets represent a mix of small-scale and large-scale graphs with varying degrees of structural complexity.

Key Insights and Ideas

  • Rationale Alignment: The most striking idea is that we shouldn't transfer all knowledge from unlabeled data. By disentangling the representation, the model can selectively "listen" to the unsupervised factors that provide a logical rationale for the supervised labels.
  • Beyond Holistic Embeddings: The paper demonstrates that breaking a graph into factorized components leads to better generalization. If a model understands the "pieces" of a graph independently, it is less sensitive to noise in limited training data.
  • Interpretability by Design: Because the model explicitly separates factors, we can visualize what it’s looking at. For example, in molecular graphs, different factor graphs might highlight different chemical rings or chains, providing a "why" behind the classification.

Key Results

  • State-of-the-Art Performance: DisenSemi outperformed 16 baseline methods (including popular ones like InfoGraph and GraphCL) across all ten datasets.
  • Robustness to Low Labeling: In scenarios where only 10% of the data was labeled, DisenSemi showed a significant lead over competitors, proving its efficiency in data-scarce environments.
  • Ablation Success: Removing either the disentanglement module or the consistency regularization led to a drop in accuracy, confirming that both "splitting" the factors and "aligning" them are necessary for success.
  • Visual Proof: Correlation heatmaps showed that DisenSemi's representations are much more independent (less redundant) than those of standard graph contrastive learning models.

Limitations and Future Work

The authors note that the number of latent factors ($K$) currently needs to be manually tuned or searched for each dataset, which can be computationally intensive.

For future work, they suggest:

  • Automated Factor Selection: Developing a bi-level optimization framework to automatically determine the optimal number of factor graphs.
  • Complex Scenarios: Extending the framework to handle even more complex semi-supervised settings, such as those with "out-of-distribution" unlabeled data that might contain entirely different types of graphs than the labeled set.

Summary updated

BibTeX
@article{wang2025disensemi,
  author = {Yifan Wang and Xiao Luo and Chong Chen and Xian-Sheng Hua and Ming Zhang and Wei Ju},
  title = {{DisenSemi: Semi-Supervised Graph Classification via Disentangled Representation Learning}},
  journal = {IEEE Trans. Neural Networks Learn. Syst.},
  year = {2025},
  doi = {10.1109/tnnls.2024.3431871},
}

Loading related content...

Figure