Skip to main content
QUICK REVIEW

[Paper Review] Hopular: Modern Hopfield Networks for Tabular Data

Bernhard Schäfl, Lukas Gruber|arXiv (Cornell University)|Jun 1, 2022
Advanced Neural Network ApplicationsComputer Science12 citations
TL;DR

Hopular proposes a novel deep learning architecture for tabular data that integrates modern continuous Hopfield networks as external memory in each layer, enabling iterative refinement of predictions by accessing the full training set. It outperforms XGBoost, CatBoost, LightGBM, and other deep learning models on medium-sized tabular datasets (e.g., 1.04±0.02 MSE on sulfur) and surpasses gradient boosting on small datasets, demonstrating state-of-the-art performance through memory-augmented, iterative learning.

ABSTRACT

While Deep Learning excels in structured data as encountered in vision and natural language processing, it failed to meet its expectations on tabular data. For tabular data, Support Vector Machines (SVMs), Random Forests, and Gradient Boosting are the best performing techniques with Gradient Boosting in the lead. Recently, we saw a surge of Deep Learning methods that were tailored to tabular data but still underperform compared to Gradient Boosting on small-sized datasets. We suggest "Hopular", a novel Deep Learning architecture for medium- and small-sized datasets, where each layer is equipped with continuous modern Hopfield networks. The modern Hopfield networks use stored data to identify feature-feature, feature-target, and sample-sample dependencies. Hopular's novelty is that every layer can directly access the original input as well as the whole training set via stored data in the Hopfield networks. Therefore, Hopular can step-wise update its current model and the resulting prediction at every layer like standard iterative learning algorithms. In experiments on small-sized tabular datasets with less than 1,000 samples, Hopular surpasses Gradient Boosting, Random Forests, SVMs, and in particular several Deep Learning methods. In experiments on medium-sized tabular data with about 10,000 samples, Hopular outperforms XGBoost, CatBoost, LightGBM and a state-of-the art Deep Learning method designed for tabular data. Thus, Hopular is a strong alternative to these methods on tabular data.

Motivation & Objective

  • To address the persistent performance gap of deep learning on small and medium tabular datasets, where traditional models like XGBoost and Random Forests dominate.
  • To develop a deep learning architecture that can iteratively refine predictions by directly accessing the entire training set at each layer.
  • To leverage modern Hopfield networks as continuous external memory to model feature-feature, feature-target, and sample-sample dependencies in tabular data.
  • To outperform established methods such as XGBoost, CatBoost, LightGBM, and specialized deep learning models on benchmark tabular datasets.
  • To demonstrate that memory-augmented deep learning with iterative inference can rival or surpass gradient boosting on data-scarce settings.

Proposed method

  • Each layer in Hopular incorporates a modern continuous Hopfield network that stores and retrieves information from the full training set, enabling dynamic memory access.
  • The Hopfield network computes energy-based attention over stored patterns, allowing each layer to update its representation using contextual information from all training samples.
  • The architecture supports end-to-end training with backpropagation, where the model learns to refine predictions through multiple layers, mimicking iterative learning algorithms.
  • Feature representations are updated at each layer by attending to relevant training samples, capturing both inter-feature and inter-sample dependencies.
  • The method integrates continuous, differentiable memory mechanisms that allow for gradient-based optimization of stored patterns and attention weights.
  • The model is trained using standard deep learning objectives (e.g., cross-entropy, MSE), with attention gates enabling selective feature and sample utilization.

Experimental results

Research questions

  • RQ1Can a deep learning model with continuous external memory outperform gradient boosting on small tabular datasets?
  • RQ2How does the integration of modern Hopfield networks improve feature and sample representation learning in tabular data?
  • RQ3Does iterative refinement via memory access lead to better generalization on data-scarce tabular datasets?
  • RQ4Can a memory-augmented deep learning architecture match or exceed the performance of state-of-the-art tabular models like XGBoost and LightGBM on medium-sized datasets?
  • RQ5What is the impact of direct access to the full training set at every layer on model accuracy and generalization?

Key findings

  • On medium-sized tabular datasets (e.g., sulfur, colleges, eye), Hopular achieved the best performance on 3 out of 6 datasets, with a median rank of 1.5, outperforming XGBoost, CatBoost, LightGBM, and NPTs.
  • On the sulfur regression dataset, Hopular achieved an MSE of 1.04±0.02, significantly outperforming XGBoost (1.23±0.00) and CatBoost (1.06±0.01).
  • On the colleges regression dataset, Hopular achieved 21.18±0.09 MSE, outperforming XGBoost (30.47±0.00) and LightGBM (25.64±0.09).
  • On the shrutime and blastchar binary classification tasks, Hopular achieved 86.12±0.09% and 80.05±0.11% accuracy, respectively, surpassing XGBoost and LightGBM.
  • Hopular required significantly less memory than NPTs, indicating efficient memory utilization despite full training set access.
  • Runtime estimates suggest Hopular is computationally feasible, with performance gains outweighing computational costs on small-to-medium datasets.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.