arXiv:2610.37898cs.LGOct 2026

Manuscript Offprint

arXiv:2610.37898

SAC-GCL: Structure-Aware Compression for Graph Contrastive Learning

Muhammad Ifte khairul Islam, Tanvir Hossain, Esra Akbas

Muhammad Ifte khairul Islam

Department of Computer Science

Texas A&M University- Texarkana

Texarkana,Texas, USA

mislam1@tamut.edu

Tanvir Hossain

Department Of Computer Science

Georgia State University

Atlanta, GA, USA

thossain5@student.gsu.edu

Esra Akbas

Department Of Computer Science

Georgia State University

Atlanta, Georgia, USA

eakbas1@gsu.edu

Abstract—Graph Contrastive Learning (GCL) has achieved remarkable success in self-supervised representation learning by maximizing agreement between augmented views of a graph. Although augmented view generation is the central step in GCL, existing models rely on stochastic augmentation of the input graph, such as edge perturbation and node masking, which lack structural awareness and frequently destroy critical topology or introduce semantically inconsistent views. While recent adaptive methods improve upon random perturbations, they primarily operate on localized node or edge neighborhoods and fail to capture higher-order, macro-level structural organization crucial for graph classification. To address this limitation, we propose Structure-aware Compression for Graph Contrastive Learning (SAC-GCL), a novel framework that employs structural decomposition and graph compression as a principled view generation strategy. Moving beyond random augmentations, SAC-GCL leverages structural decomposition techniques to extract cohesive subgraphs and condense them into supernodes, constructing coarsened graph views that preserve local density and capture higher-level structural patterns while reducing noise and redundancy. We leverage multiple cohesive subgraph models to derive complementary views of the graph, each capturing distinct structural properties. To capture multi-resolution information, a hierarchical view encoder processes these compressed views by initializing super-node features with shared-weight cohesive subgraph embeddings. Our results from extensive experiments on six benchmark datasets demonstrate that structure-aware compression provides a powerful alternative to random perturbations, yielding more robust and discriminative graph representations for graph classification tasks.

Index Terms—Graph Contrastive Learning, Graph Compression, Graph Neural Networks, Graph Classification, Graph Decomposition, Cohesive Subgraphs

I. INTRODUCTION

Recently, graph contrastive learning (GCL) has emerged as a powerful self-supervised paradigm for graph representation learning, demonstrating state-of-the-art performance across both node-level and graph-level downstream tasks. GCL aims to maximize the agreement between representations of semantically consistent views of the same graph while distinguishing them from representations of other graphs [1]–[4]. Recent models typically generate multiple graph views through stochastic augmentation strategies like random node dropping [2], edge deletion [5], and attribute masking [3], implicitly assuming that semantic information is preserved under stochastic corruption. While these augmentations provide diversity and encourage the model to learn invariances, they often lack structural awareness and may disrupt crucial structural information or introduce semantically inconsistent views that inject noise into the contrastive learning objective.

This limitation has motivated the need for more structure-aware augmentation in graph contrastive learning [6], [7]. These methods aim to generate more informative views by formulating augmentation as a learnable process, leveraging model feedback or extracting local subgraphs. Although these adaptive schemes offer significant improvements over purely stochastic baselines by preserving local node centralities, they remain bound to local topological operations (e.g., node- or edge-level modifications). Consequently, they lack an explicit mechanism to capture, preserve, and leverage the higher-level structural organization inherent in complex networks. This drawback is particularly pronounced in graph-level classification tasks, where global topology, macro-scale connectivity, and multi-scale substructures dictate overall graph functionality and semantic identity.

On the other hand, graphs are organized into structurally dense regions that encode important semantic and functional information [8]. In particular, cohesive subgraphs such as k-cores and k-trusses [9], [10] isolate densely connected and semantically meaningful regions that are robust to perturbations, making them well-suited for constructing stable and informative graph views. Unlike local ego-nets or isolated subgraphs, these cohesive structures capture higher-order topological interactions and retain the fundamental structural backbone of the network.

In this work, we propose Structure-aware Compression for Graph Contrastive Learning (SAC-GCL), a novel framework for graph-level representation learning. Unlike random augmentations or locality-preserving subgraph sampling, SAC-GCL introduces a structural decomposition and graph compression pipeline that explicitly preserves fine-grained connectivity while abstracting macro-level graph topology. Specifically, our framework extracts dense cohesive subgraphs and compresses them into higher-order super-nodes, constructing coarsened graph views that capture both internal local density and external inter-community relationships. By abstracting dense regions into super-nodes, these compressed views provide multi-scale structural representations that effectively filter out local topological noise and redundancy without losing fundamental connectivity patterns.

While our framework is generic and can accommodate various cohesive subgraph extraction algorithms, in this work we utilize k-core and k-truss decompositions due to their efficiency and complementary properties. Specifically, k-core captures node-level connectivity by enforcing minimum degree constraints, whereas k-truss captures edge-level cohesion through triangle-based reinforcement. Together, they enable the model to represent complementary aspects of structural organization in a scalable manner.

To learn effective representations, proposed structure-preserving compressed views are encoded hierarchically with dedicated view encoders and optimized through a joint objective that combines supervised classification with contrastive consistency across views. In the view encoder, we first generate subgraph embeddings via shared-weights GNN applied across all extracted cohesive subgraphs. These embeddings are then utilized as the initial features for the corresponding supernodes in the compressed graph while learning the compressed graph embeddings. By jointly encoding both original and compressed views, the framework captures complementary structural information across resolutions. Overall, SAC-GCL produces robust, structure-aware representations that overcome the limitations of random augmentation-based methods. Our main contributions are summarized as follows:

  • We propose a novel contrastive learning framework for graphs that employs graph compression and structural decomposition as a deterministic, structure-aware view generation strategy, moving beyond random perturbation-based augmentations.

  • We introduce a hierarchical encoding approach combining local (cohesive subgraphs) and global (super-node aggregation) information. With a joint objective combining supervised and contrastive loss, our model generates robust, structure-aware graph representations.

  • We perform extensive experiments on benchmark graph classification datasets, demonstrating that SAC-GCL consistently outperforms state-of-the-art baselines while providing enhanced robustness against topological noise.

References (34)