arXiv:2610.34346cs.CVOct 2026

Manuscript Offprint

arXiv:2610.34346

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

Robin Koç, Hazal Moğultay Özcan, Fatoş T. Yarman Vural

Robin Koç

Computer Engineering Department

Middle East Technical University

Ankara, Türkiye

robin.koc@metu.edu.tr

Hazal Moğultay Özcan

Computer Engineering Department

Middle East Technical University

Ankara, Türkiye

mogultay@metu.edu.tr

Fatoş T. Yarman Vural

Computer Engineering Department

Middle East Technical University

Ankara, Türkiye

yarman@metu.edu.tr

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 [1]. 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.

Keywords—graph neural networks, feature extraction, Hebbian plasticity, self-organization, spatial awareness

I. INTRODUCTION

Deep learning architectures, such as autoencoders, capture the underlying structure of given datasets through convolutional encoders and decoders. Although they are inspired by biological neurons from the start, they usually rely on static networks designed prior to training. This contrasts with biological neural networks, which exhibit adaptive connectivity through Hebbian plasticity, where synapses evolve dynamically based on co-activation [2] and exhibit highly adaptive plasticity.

In a foundational study [1], we introduced the LooM architecture, bridging the gap between the biological principle and autoencoders, by dynamically optimizing latent connectivity using a self-organizing graph. While LooM provided a proof-of-concept for Hebbian-guided representation learning, its initial implementation revealed specific bottlenecks in translating this concept to convolutional features:

  1. Global Averaging in Hebbian Statistics Calculation: Determining Hebbian co-activation by averaging entire feature maps can merge features that exist in completely disjoint regions of the visual input, and provide incorrect co-activation statistics.

  2. Restrictive Scalar Message Passing: Relying only on single scalar weights to pass messages between latent nodes limits structural expressivity, because a scalar can only uniformly amplify or dim an entire feature map. This was pushing the model to silencing or activating entire feature maps rather than allowing them to cooperate with one another.

  3. Curriculum Transitions: Even though the introduction of graph loss value is gradual, abrupt introduction of message passing can cause shocks, forcing the decoder to unlearn weights as latent distributions suddenly shift.

  4. Generative Checkerboard Artifacts: Standard transposed convolutions often suffer from uneven kernel overlaps, which introduces high-frequency checkerboard artifacts to the spatial outputs. Since the Hebbian teacher relies on statistical correlation, this artifacts act as noise when gathering Hebbian statistics, forcing the model into forming false topological connections.

To address these challenges, we propose S-LooM (Spatially-Aware LooM), a graph-autoencoder architecture driven by Hebbian learning. The S-LooM architecture is built upon three main components: a convolutional encoder, a convolutional decoder, and a self-organizing graph layer between them where each node represents a feature map extracted by the encoder. This graph structure evolves during training to discover relationships between feature maps, and allow them to interact with each other during later parts of the training and inference. The graph layer relies on two core mechanisms, Hebbian statistics gathering by using co-activations between feature maps, and message passing for cooperation between said feature maps based on gathered statistics. To overcome the limitations of early implementations, S-LooM replaces the scalar message passing between nodes with learnable spatial kernels that allow spatial feature blending, and utilizes localized spatial cross-correlation to ensure that connections only form between features co-activating within similar receptive fields. Finally, to stabilize

Our PyTorch implementation and interactive evaluation dashboard are publicly available at https://github.com/robinkoc/LooMs.

this dynamic learning process, we employ an artifact-free decoding scheme to prevent artificial noise from corrupting the Hebbian statistics, alongside a soft-blending curriculum to gradually introduce message passing and mitigate representation shock. To promote reproducibility, our PyTorch implementation and the interactive evaluation dashboard are publicly available at https://github.com/robinkoc/LooMs.