Bernhard Schäfl

Johannes Kepler University of Linz
1 previous affiliation
5Machine learning papers tracked by Lacuna
Is this you?

Research Overview

Bernhard Schäfl focuses on the development and application of modern associative memory systems, specifically modern Hopfield networks, and their integration into deep learning architectures for tabular and graph-structured data. His work explores the theoretical convergence between classical neural memory models and contemporary attention mechanisms, leveraging these insights to improve performance in domains where standard deep learning approaches have traditionally struggled, such as small-scale tabular datasets and global graph propagation.

Research Trajectory

The early stages of Schäfl’s recorded research, beginning around 2020, are centered on the theoretical refinement of associative memory. As a key contributor to the development of modern Hopfield networks, he participated in research that redefined these networks by introducing continuous states and a new update rule. In Hopfield Networks is All You Need, the research team demonstrated that these modern Hopfield networks possess an exponential storage capacity relative to the dimension of the associative space. A critical finding in this work was the mathematical equivalence between the modern Hopfield network update rule and the attention mechanism utilized in Transformer architectures. This equivalence provided a new framework for characterizing the behavior of Transformer heads, framing them as processes that minimize an energy function to retrieve stored patterns. The research identified three distinct types of energy minima: global fixed points that average over all patterns, metastable states averaging over subsets, and fixed points that isolate single patterns.

Following this foundational work, Schäfl applied these associative memory concepts to complex problems in computational biology. In Modern Hopfield Networks and Attention for Immune Repertoire Classification, he contributed to a method for solving multiple instance learning (MIL) problems within immune repertoire classification. The high storage capacity of modern Hopfield networks was utilized to identify and retrieve relevant patterns from vast numbers of immune receptors, which is essential for predicting the immune status of an individual. This application demonstrated the practical utility of modern Hopfield networks in handling the high-dimensional, noisy data characteristic of biological systems.

From 2021 through 2023, Schäfl’s focus shifted toward addressing the limitations of deep learning on tabular data. While deep learning has seen significant success in vision and natural language processing, tabular data—particularly datasets with fewer than 10,000 samples—has remained dominated by traditional methods like Gradient Boosting and Random Forests. Schäfl led the development of "Hopular," a deep learning architecture specifically designed for small-to-medium-sized tabular datasets. As detailed in Hopular: Modern Hopfield Networks for Tabular Data, this architecture equips every layer with continuous modern Hopfield networks. This design allows the model to directly access the original input and the entire training set at each layer, enabling the network to iteratively refine its predictions.

Further refinements of this approach, discussed in Modern Hopfield Networks as Memory for Iterative Learning on Tabular Data, emphasized the role of the Hopfield network as a memory module that facilitates step-wise updates to the model's internal representations. By treating the training data as stored patterns to be retrieved during the forward pass, Hopular bridges the gap between the inductive biases of traditional non-parametric methods and the representational power of deep neural networks.

In 2023 and 2024, Schäfl extended his research into graph representation learning, specifically targeting the problem of over-smoothing in Graph Neural Networks (GNNs). Standard GNNs often struggle to capture global graph properties because repeated local message-passing operations tend to make node representations indistinguishable. To counter this, Schäfl introduced "G-Signatures," a method that enables global graph propagation. In G-Signatures: Global Graph Propagation With Randomized Signatures, he proposed a graph lifting concept that embeds graph-structured information as paths in a latent space. By applying randomized signatures to these paths, the method can extract global features that are often lost in local neighborhood aggregations.

This work was further expanded in Processing large-scale Graphs with G-Signatures, where the methodology was adapted for large-scale graph processing. The introduction of latent space path mapping allowed for the iterative traversal of these paths, providing a mechanism for the global processing of information across extensive graph structures. This trajectory indicates a consistent interest in using sophisticated memory and path-based representations to overcome the structural bottlenecks of standard deep learning architectures.

Current Directions

Schäfl’s recent work suggests a continued focus on the intersection of associative memory, path-based representations, and structural data. The development of G-Signatures represents a move toward integrating signature transforms—a tool from rough path theory—into the deep learning pipeline for graphs. This approach aims to provide a more robust mathematical foundation for capturing long-range dependencies and global topology, which are critical for tasks in chemistry, social network analysis, and large-scale infrastructure modeling.

Additionally, the ongoing refinement of the Hopular framework indicates a commitment to making deep learning a competitive and interpretable choice for tabular data. By leveraging modern Hopfield networks as a form of non-parametric memory, this research direction seeks to combine the strengths of kernel-based methods and gradient-boosted trees with the end-to-end differentiability of neural networks. The focus remains on improving the efficiency of these models on small-to-medium datasets, where data scarcity often limits the applicability of standard deep learning models.

Representative Work

The following papers represent the core of Schäfl’s contributions to the fields of associative memory, tabular data modeling, and graph learning.

In Hopfield Networks is All You Need, Schäfl contributed to the theoretical unification of modern Hopfield networks and the attention mechanism. This work established that the update rule for a continuous-state Hopfield network is functionally equivalent to the softmax attention used in Transformers, providing a new lens through which to analyze and improve large-scale sequence models.

In Modern Hopfield Networks and Attention for Immune Repertoire Classification, he participated in the application of these theoretical insights to a challenging problem in computational biology. The research demonstrated how the high storage capacity of modern Hopfield networks can be used to classify immune repertoires, effectively treating the classification task as a pattern retrieval problem within a multiple instance learning framework.

As the lead author of Hopular: Modern Hopfield Networks for Tabular Data, Schäfl introduced a novel architecture that uses modern Hopfield networks to store and access training data during inference. This approach allows the model to perform iterative learning on tabular datasets, achieving performance levels that are competitive with state-of-the-art gradient boosting algorithms on small-to-medium-sized data.

The paper Modern Hopfield Networks as Memory for Iterative Learning on Tabular Data further details the mechanism by which Hopular uses stored data to update its internal model and predictions at every layer. This work highlights the utility of associative memory as a dynamic component of the learning process, rather than just a static storage unit.

In G-Signatures: Global Graph Propagation With Randomized Signatures, Schäfl proposed a solution to the over-smoothing problem in GNNs. By lifting graph structures into latent space paths and using randomized signatures to extract global features, this work provides a method for capturing the global properties of graphs that local message-passing architectures typically fail to resolve.

Finally, Processing large-scale Graphs with G-Signatures demonstrates the scalability of the G-Signatures approach. This research focuses on the iterative traversal of latent space paths, enabling the global processing of information in large-scale graph environments, which is essential for practical applications in complex system modeling.

Profile updated

See something wrong? Report a mistake