Modern Hopfield Networks and Attention for Immune Repertoire Classification
Not on the map. Why?
Abstract (arXiv)
A central mechanism in machine learning is to identify, store, and recognize patterns. How to learn, access, and retrieve such patterns is crucial in Hopfield networks and the more recent transformer architectures. We show that the attention mechanism of transformer architectures is actually the update rule of modern Hopfield networks that can store exponentially many patterns. We exploit this high storage capacity of modern Hopfield networks to solve a challenging multiple instance learning (MIL) problem in computational biology: immune repertoire classification. Accurate and interpretable machine learning methods solving this problem could pave the way towards new vaccines and therapies, which is currently a very relevant research topic intensified by the COVID-19 crisis. Immune repertoire classification based on the vast number of immunosequences of an individual is a MIL problem with an unprecedentedly massive number of instances, two orders of magnitude larger than currently considered problems, and with an extremely low witness rate. In this work, we present our novel method DeepRC that integrates transformer-like attention, or equivalently modern Hopfield networks, into deep learning architectures for massive MIL such as immune repertoire classification. We demonstrate that DeepRC outperforms all other methods with respect to predictive performance on large-scale experiments, including simulated and real-world virus infection data, and enables the extraction of sequence motifs that are connected to a given disease class. Source code and datasets: https://github.com/ml-jku/DeepRC
Key facts. Cited by 52 papers in the map (data through 7 Oct 2026). First posted on arXiv 16 Jul 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 5; 2022: 6; 2023: 16; 2024: 15; 2025: 5; 2026: 5.
52 papers.
Sort:
By area:
- 2021CLOOB: Modern Hopfield Networks with InfoLOOB Outperform CLIPcited by 88
- 2021Associative Memories via Predictive Codingcited by 42
- 2023On Sparse Modern Hopfield Modelcited by 41
- 2023Conformal Prediction for Time Series with Modern Hopfield Networkscited by 40
- 2022History Compression via Language Models in Reinforcement Learningcited by 39
- 2024Uniform Memory Retrieval with Larger Capacity for Modern Hopfield Modelscited by 38
- 2024Outlier-Efficient Hopfield Layers for Large Transformer-Based Modelscited by 38
- 2023STanHop: Sparse Tandem Hopfield Model for Memory-Enhanced Time Series Predictioncited by 35
- 2021Hierarchical Associative Memorycited by 34
- 2022Txt2Img-MHN: Remote Sensing Image Generation from Text Using Modern Hopfield Networkscited by 28
- 2023Learning to Modulate pre-trained Models in RLcited by 28
- 2023Context-enriched molecule representations improve few-shot drug discoverycited by 23
38 more
- 2024BiSHop: Bi-Directional Cellular Learning for Tabular Data with Generalized Sparse Modern Hopfield Modelcited by 21
- 2024Conv-CoA: Improving Open-domain Question Answering in Large Language Models via Conversational Chain-of-Actioncited by 19
- 2024Provably Optimal Memory Capacity for Modern Hopfield Models: Transformer-Compatible Dense Associative Memories as Spherical Codescited by 19
- 2022Hopular: Modern Hopfield Networks for Tabular Datacited by 18
- 2023Simplicial Hopfield networkscited by 16
- 2024Nonparametric Modern Hopfield Modelscited by 16
- 2021Trusted Artificial Intelligence: Towards Certification of Machine Learning Applicationscited by 13
- 2021Modern Hopfield Networks for Few- and Zero-Shot Reaction Template Predictioncited by 13
- 2022BayesPCN: A Continually Learnable Predictive Coding Associative Memorycited by 12
- 2023Memory in Plain Sight: Surveying the Uncanny Resemblances of Associative Memories and Diffusion Modelscited by 12
- 2023Reproducibility in Multiple Instance Learning: A Case For Algorithmic Unit Testscited by 11
- 2024Energy-based Hopfield Boosting for Out-of-Distribution Detectioncited by 9
- 2024Modern Hopfield Networks Require Chain-of-Thought to Solve mathsfNC1-Hard Problemscited by 9
- 2024Long-Term Visual Object Tracking with Event Cameras: An Associative Memory Augmented Tracker and A Benchmark Datasetcited by 8
- 2023Efficient Deep Spiking Multi-Layer Perceptrons with Multiplication-Free Inferencecited by 7
- 2023Recent advances in artificial intelligence for retrosynthesiscited by 5
- 2022Sequence Learning Using Equilibrium Propagationcited by 4
- 2023On Pre-trained Language Models for Antibodycited by 4
- 2024Dense Hopfield Networks in the Teacher-Student Settingcited by 4
- 2024Hierarchical Associative Memory, Parallelized MLP-Mixer, and Symmetry Breakingcited by 4
- 2023Dsfer-Net: A Deep Supervision and Feature Retrieval Network for Bitemporal Change Detection Using Modern Hopfield Networkscited by 3
- 2023iMixer: hierarchical Hopfield network implies an invertible, implicit and iterative MLP-Mixercited by 3
- 2024CoRMF: Criticality-Ordered Recurrent Mean Field Ising Solvercited by 3
- 2024Associative memory inspires improvements for in-context learning using a novel attention residual stream architecturecited by 3
- 2025DAM-Seg: Anatomically accurate cardiac segmentation using Dense Associative Networkscited by 3
- 2022Multiple Instance Neural Networks Based on Sparse Attention for Cancer Detection using T-cell Receptor Sequencescited by 2
- 2023AIRIVA: A Deep Generative Model of Adaptive Immune Repertoirescited by 2
- 2024Contrastive Abstraction for Reinforcement Learningcited by 2
- 2023BeeTLe: An Imbalance-Aware Deep Sequence Model for Linear B-Cell Epitope Prediction and Classification with Logit-Adjusted Lossescited by 1
- 2025Neural Learning Rules from Associative Networks Theorycited by 1
- 2026AP-OOD: Attention Pooling for Out-of-Distribution Detectioncited by 1
- 2026Memory-guided Prototypical Co-occurrence Learning for Mixed Emotion Recognitioncited by 1
- 2026Beyond Test-Time Memory: State-Space Optimal Control for LLM Reasoningcited by 1
- 2026Energy-Based Dynamical Models for Neurocomputation, Learning, and Optimizationcited by 1
- 2023A Noisy-Label-Learning Formulation for Immune Repertoire Classification and Disease-Associated Immune Receptor Sequence Identificationcited by 0
- 2024Modern Hopfield Networks meet Encoded Neural Representations -- Addressing Practical Considerationscited by 0
- 2025Binding threshold units with artificial oscillatory neuronscited by 0
- 2025Attribution assignment for deep-generative sequence models enables interpretability analysis using positive-only datacited by 0
50 most cited of 52 All 52 (JSON)
- 2026Energy-Based Dynamical Models for Neurocomputation, Learning, and Optimization6 Apr 2026
- 2026Sinkhorn Based Associative Memory Retrieval Using Spherical Hellinger Kantorovich Dynamics21 Mar 2026
- 2026Beyond Test-Time Memory: State-Space Optimal Control for LLM Reasoning10 Mar 2026
- 2026Memory-guided Prototypical Co-occurrence Learning for Mixed Emotion Recognition24 Feb 2026
- 2026AP-OOD: Attention Pooling for Out-of-Distribution Detection5 Feb 2026
- 2025Effects of Feature Correlations on Associative Memory Capacity2 Aug 2025
- 2025Attribution assignment for deep-generative sequence models enables interpretability analysis using positive-only data29 Jun 2025
- 2025Binding threshold units with artificial oscillatory neurons6 May 2025
- 2025Neural Learning Rules from Associative Networks Theory11 Mar 2025
- 2025DAM-Seg: Anatomically accurate cardiac segmentation using Dense Associative Networks21 Feb 2025
- 2024Associative memory inspires improvements for in-context learning using a novel attention residual stream architecture19 Dec 2024
- 2024Modern Hopfield Networks Require Chain-of-Thought to Solve mathsfNC1-Hard Problems7 Dec 2024
38 more
- 2024Provably Optimal Memory Capacity for Modern Hopfield Models: Transformer-Compatible Dense Associative Memories as Spherical Codes30 Oct 2024
- 2024Contrastive Abstraction for Reinforcement Learning1 Oct 2024
- 2024Modern Hopfield Networks meet Encoded Neural Representations -- Addressing Practical Considerations24 Sep 2024
- 2024Hierarchical Associative Memory, Parallelized MLP-Mixer, and Symmetry Breaking18 Jun 2024
- 2024Conv-CoA: Improving Open-domain Question Answering in Large Language Models via Conversational Chain-of-Action28 May 2024
- 2024Energy-based Hopfield Boosting for Out-of-Distribution Detection14 May 2024
- 2024Nonparametric Modern Hopfield Models5 Apr 2024
- 2024BiSHop: Bi-Directional Cellular Learning for Tabular Data with Generalized Sparse Modern Hopfield Model4 Apr 2024
- 2024Outlier-Efficient Hopfield Layers for Large Transformer-Based Models4 Apr 2024
- 2024Uniform Memory Retrieval with Larger Capacity for Modern Hopfield Models4 Apr 2024
- 2024Long-Term Visual Object Tracking with Event Cameras: An Associative Memory Augmented Tracker and A Benchmark Dataset9 Mar 2024
- 2024CoRMF: Criticality-Ordered Recurrent Mean Field Ising Solver5 Mar 2024
- 2024Dense Hopfield Networks in the Teacher-Student Setting8 Jan 2024
- 2023STanHop: Sparse Tandem Hopfield Model for Memory-Enhanced Time Series Prediction28 Dec 2023
- 2023Reproducibility in Multiple Instance Learning: A Case For Algorithmic Unit Tests27 Oct 2023
- 2023Memory in Plain Sight: Surveying the Uncanny Resemblances of Associative Memories and Diffusion Models28 Sep 2023
- 2023On Sparse Modern Hopfield Model22 Sep 2023
- 2023BeeTLe: An Imbalance-Aware Deep Sequence Model for Linear B-Cell Epitope Prediction and Classification with Logit-Adjusted Losses5 Sep 2023
- 2023A Noisy-Label-Learning Formulation for Immune Repertoire Classification and Disease-Associated Immune Receptor Sequence Identification29 Jul 2023
- 2023Learning to Modulate pre-trained Models in RL26 Jun 2023
- 2023Efficient Deep Spiking Multi-Layer Perceptrons with Multiplication-Free Inference21 Jun 2023
- 2023Simplicial Hopfield networks9 May 2023
- 2023AIRIVA: A Deep Generative Model of Adaptive Immune Repertoires26 Apr 2023
- 2023iMixer: hierarchical Hopfield network implies an invertible, implicit and iterative MLP-Mixer25 Apr 2023
- 2023Context-enriched molecule representations improve few-shot drug discovery24 Apr 2023
- 2023Dsfer-Net: A Deep Supervision and Feature Retrieval Network for Bitemporal Change Detection Using Modern Hopfield Networks3 Apr 2023
- 2023Conformal Prediction for Time Series with Modern Hopfield Networks22 Mar 2023
- 2023On Pre-trained Language Models for Antibody28 Jan 2023
- 2023Recent advances in artificial intelligence for retrosynthesis14 Jan 2023
- 2022Sequence Learning Using Equilibrium Propagation14 Sep 2022
- 2022Multiple Instance Neural Networks Based on Sparse Attention for Cancer Detection using T-cell Receptor Sequences9 Aug 2022
- 2022Txt2Img-MHN: Remote Sensing Image Generation from Text Using Modern Hopfield Networks8 Aug 2022
- 2022Hopular: Modern Hopfield Networks for Tabular Data1 Jun 2022
- 2022History Compression via Language Models in Reinforcement Learning24 May 2022
- 2022BayesPCN: A Continually Learnable Predictive Coding Associative Memory20 May 2022
- 2021CLOOB: Modern Hopfield Networks with InfoLOOB Outperform CLIP21 Oct 2021
- 2021Associative Memories via Predictive Coding16 Sep 2021
- 2021Hierarchical Associative Memory14 Jul 2021
50 newest of 52 All 52 (JSON)
- 2021CLOOB: Modern Hopfield Networks with InfoLOOB Outperform CLIPcited by 88
- 2021Associative Memories via Predictive Codingcited by 42
- 2023On Sparse Modern Hopfield Modelcited by 41
- 2023Conformal Prediction for Time Series with Modern Hopfield Networkscited by 40
- 2022History Compression via Language Models in Reinforcement Learningcited by 39
- 2024Uniform Memory Retrieval with Larger Capacity for Modern Hopfield Modelscited by 38
- 2024Outlier-Efficient Hopfield Layers for Large Transformer-Based Modelscited by 38
- 2023STanHop: Sparse Tandem Hopfield Model for Memory-Enhanced Time Series Predictioncited by 35
- 2021Hierarchical Associative Memorycited by 34
- 2022Txt2Img-MHN: Remote Sensing Image Generation from Text Using Modern Hopfield Networkscited by 28
- 2023Learning to Modulate pre-trained Models in RLcited by 28
- 2023Context-enriched molecule representations improve few-shot drug discoverycited by 23
12 most cited of 50 All 50 (JSON)
- 2026Energy-Based Dynamical Models for Neurocomputation, Learning, and Optimization6 Apr 2026
- 2026Sinkhorn Based Associative Memory Retrieval Using Spherical Hellinger Kantorovich Dynamics21 Mar 2026
- 2026Memory-guided Prototypical Co-occurrence Learning for Mixed Emotion Recognition24 Feb 2026
- 2026AP-OOD: Attention Pooling for Out-of-Distribution Detection5 Feb 2026
- 2025Effects of Feature Correlations on Associative Memory Capacity2 Aug 2025
- 2025Attribution assignment for deep-generative sequence models enables interpretability analysis using positive-only data29 Jun 2025
- 2025Binding threshold units with artificial oscillatory neurons6 May 2025
- 2025Neural Learning Rules from Associative Networks Theory11 Mar 2025
- 2025DAM-Seg: Anatomically accurate cardiac segmentation using Dense Associative Networks21 Feb 2025
- 2024Associative memory inspires improvements for in-context learning using a novel attention residual stream architecture19 Dec 2024
- 2024Modern Hopfield Networks Require Chain-of-Thought to Solve mathsfNC1-Hard Problems7 Dec 2024
- 2024Provably Optimal Memory Capacity for Modern Hopfield Models: Transformer-Compatible Dense Associative Memories as Spherical Codes30 Oct 2024
12 newest of 50 All 50 (JSON)