Spatially-Aware Self-Organizing Graph Autoencoders via Localized Hebbian Learning

Robin Koç, Hazal Moğultay Özcan, Fatoş T. Yarman VuralarXiv 2026 · arXiv

TL;DR

S-LooM (Spatially-Aware LooM) evolves the architecture of autoencoders by replacing static latent layers with a dynamic, self-organizing graph driven by localized Hebbian learning. By utilizing spatial cross-correlation and learnable message-passing kernels, it achieves significantly lower reconstruction errors and forms interpretable, functional feature communities that are robust even at high connection densities.

What Problem Does This Paper Address?

Traditional convolutional autoencoders rely on fixed architectures where the relationship between feature maps is hard-coded during design. While recent work introduced "LooM"—a dynamic architecture inspired by biological Hebbian plasticity (neurons that fire together, wire together)—it suffered from several technical bottlenecks:

  1. Loss of Spatial Context: It used global average pooling to calculate co-activation, meaning two features could be "linked" even if they appeared in completely different parts of an image.
  2. Restrictive Communication: It used simple scalar weights for message passing between nodes, which could only amplify or dim a feature map rather than allowing complex cooperation.
  3. Representation Shock: Abruptly introducing graph-based changes during training caused sudden shifts in latent distributions, forcing the decoder to "unlearn" previously stable weights.
  4. Generative Artifacts: Standard transposed convolutions created checkerboard patterns that acted as noise, corrupting the Hebbian statistics used to guide the model.

Methods

S-LooM introduces a Dual-Graph Layer situated between a convolutional encoder and decoder. This layer consists of two parallel structures: a Hebbian Graph (the teacher) that tracks statistical co-activations, and a Learnable Graph (the student) that optimizes connectivity to minimize reconstruction loss.

Fig. 1: Graphical abstract of the S-LooM architecture. The encoder extracts feature maps, which branch into localized spatial correlations (Cij) to be used for the Hebbian Matrix (W H), and spatial maps themselves (fi) are fed into the Learnable Graph (W L). The red arrow between the graph structures represents the topological alignment loss.

Key innovations include:

  • Localized Hebbian Co-activation: Instead of global averages, S-LooM uses spatial cross-correlation to ensure connections only form between features that co-activate within similar receptive fields.
  • Spatial Message Passing: Scalar weights are replaced with learnable 2D convolutional kernels. This allows the network to shift and recombine parts of feature maps, enabling genuine cooperation between latent nodes.
  • Soft-Blending Curriculum: To prevent "representation shock," the model uses a three-stage training process. It starts with a warm-up, then gradually interpolates between raw encoder features and graph-processed features using a soft-blending function, before finally freezing the topology for fine-tuning.
  • Artifact-Free Decoding: The authors replaced transposed convolutions with "resize-convolutions" (nearest-neighbor upsampling followed by standard convolution) to eliminate checkerboard noise.

Datasets

The authors evaluated S-LooM on the CIFAR-10 dataset. This choice allowed them to isolate the effects of their architectural changes by benchmarking directly against the original LooM study under identical hyper-parameters.

Key Insights and Ideas

  • Functional Specialization: The graph doesn't just learn random connections; it organically clusters into "communities" (detected via the Louvain method). These communities specialize in specific visual attributes like structural body handlers, boundary mappers, or high-frequency textures.
  • Micro-Level Explainability: Because the model is spatially aware, researchers can perform "single-edge lesioning." Severing a specific connection doesn't just blur the whole image; it degrades a highly localized area, such as a specific headlight on a truck.
  • Robustness to Density: Unlike its predecessor, which became unstable as the graph became denser (higher $p$ values), S-LooM maintains a stable validation loss across a wide range of sparsity ratios.
Matrix visualization showing strong alignment between the Hebbian teacher and the learned graph.

Key Results

  • Lower Error: Under a high-sparsity constraint ($p=0.05$), S-LooM achieved a validation loss of 0.0114, a massive improvement over the prior LooM model's 0.0272.
  • Stability: S-LooM maintained a consistent loss of approximately 0.010 even as graph density increased to 50%, whereas the original LooM's performance degraded steadily as density rose.
  • Qualitative Fidelity: The combination of artifact-free decoding and spatial kernels resulted in high-fidelity reconstructions that accurately preserved both shape and texture.
Qualitative comparison showing S-LooM's high-fidelity reconstructions.

Limitations and Future Work

While S-LooM shows great promise for interpretable and adaptive AI, the authors acknowledge a few areas for growth:

  • Dataset Scale: The current study is limited to CIFAR-10. Future work needs to validate these findings on higher-resolution and more complex datasets.
  • Benchmarking: The authors plan to benchmark S-LooM against a broader array of modern graph-based models to further prove its competitive edge.
  • Computational Trade-offs: While inference speed is nearly identical to standard autoencoders, calculating pairwise spatial cross-correlations during training increases VRAM utilization, a trade-off made to ensure rapid GPU execution.

Summary updated

Abstract

Traditional autoencoders rely on static network architectures to learn latent representations. Recently we suggested a dynamic architecture inspired by Hebbian plasticity, enabling topological self-organization among convolutional feature maps (R. Koç et al., Proceedings of the SIU, 2026). Early implementations of this paradigm infer relationships among feature maps using global average pooling and model their interactions through scalar-valued connections. This approach falls short to fully exploit the underlying spatial information, embedded in input images. Furthermore, abrupt transitions between different loss functions and training dynamics can introduce representation shocks, leading to unstable feature learning. In this paper, we introduce a Spatially-Aware Self-Organizing Graph Autoencoder (S-LooM) to address these structural bottlenecks. By using spatial cross-correlation, and spatial kernels, S-LooM establishes dynamic connections among feature maps. We replace static scalar message passing of autoencoders with learnable spatial kernels and eliminate high-frequency deconvolutional artifacts observed in decoders using nearest-neighbor upsampling. Via a soft-blending training curriculum, the latent topology aligns smoothly during training. Our experiments show that S-LooM yields a more stable topology, compared to the state of the art dynamic architectures. Meaning, the graph structure that emerge has more resistance to feature entanglement and noise. It forms functional communities responsible for visual attributes, such as illumination, shape and texture even under high connection densities.
BibTeX
@misc{koc2026spatially,
  author = {Robin Koç and Hazal Moğultay Özcan and Fatoş T. Yarman Vural},
  title = {{Spatially-Aware Self-Organizing Graph Autoencoders via Localized Hebbian Learning}},
  year = {2026},
  eprint = {2610.34346},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.34346},
}
Figure