BiSHop: Bi-Directional Cellular Learning for Tabular Data with Generalized Sparse Modern Hopfield Model

Chenwei Xu, Yu-Chao Huang, Jerry Yao-Chieh Hu, Weijian Li, Ammar Gilani, Hsi-Sheng Goan, Han Liu

Introduction

Deep learning has achieved remarkable success in unstructured data domains like images and text. However, tabular data—the most common data format in industrial applications—remains a challenging frontier. For years, gradient-boosted decision trees (GBDTs) like XGBoost, CatBoost, and LightGBM have been the preferred choice due to their inherent ability to handle feature sparsity and non-rotational invariance.

The BiSHop (Bi-Directional Sparse Hopfield Network) framework introduces a novel end-to-end deep learning architecture designed specifically to overcome these hurdles. By drawing inspiration from the brain's cellular organization and associative memory, BiSHop provides a powerful alternative that matches or exceeds the performance of state-of-the-art tree-based models.

Challenges in Tabular Deep Learning

The authors identify two fundamental reasons why standard neural networks often underperform on tabular data:

  1. Non-Rotational Invariance (C1): Unlike images, where spatial relationships can be transformed while preserving semantic meaning, tabular data has a fixed, rigid structure. Shuffling columns or rotating the feature space destroys the data's meaning. Most deep learning models lack the inductive bias to respect this property.
  2. Feature Sparsity (C2): Tabular datasets are frequently "noisy," containing many uninformative or redundant features. Decision trees naturally handle this through feature selection at each split, whereas neural networks often struggle to filter out irrelevant signals, leading to overfitting.

The BiSHop Framework

BiSHop addresses these challenges through a multi-layered architecture centered on the Bi-Directional Sparse Hopfield Module (BiSHopModule).

Overview of the BiSHop architecture and information flow.

The framework is built upon three innovative pillars:

  • Bi-Directional Learning: The model processes data in two distinct directions: column-wise, to capture fine-grained details within individual features, and row-wise, to model complex interactions between different features. This "cellular" approach ensures the model respects the grid-like structure of tables.
  • Generalized Sparse Modern Hopfield (GSH) Layers: Moving beyond standard attention mechanisms, BiSHop utilizes modern Hopfield layers. These act as associative memory models capable of storing and retrieving patterns. Crucially, they incorporate a learnable sparsity parameter ($\alpha$-EntMax), allowing the model to adaptively "forget" noisy or irrelevant information.
  • Hierarchical Multi-Scale Learning: The architecture employs an encoder-decoder structure that learns representations at multiple levels of granularity—from "fine-grained" individual cells to "coarse-grained" feature clusters.

Detailed Architectural Components

To bridge the gap between raw tabular data and high-level representations, BiSHop utilizes specialized embedding and processing modules.

Detailed view of embeddings, the BiSHopModule, and hierarchical learning.
  • Advanced Tabular Embeddings: The model uses a sophisticated embedding strategy. Categorical features are processed through both shared and individual embeddings to capture commonalities and unique traits. Numerical features utilize piece-wise linear encoding, enabling the network to better understand the underlying feature distributions.
  • BiSHopModule Integration: As shown in the detailed diagrams, the BiSHopModule effectively merges the column-wise and row-wise processing paths. This integration allows the model to maintain the structural integrity of the table while learning deep, non-linear feature interactions.

Experimental Evaluation

The researchers evaluated BiSHop on an extensive scale, using 28 diverse real-world datasets. These were split into two main groups:

  • Dataset I: 9 classification datasets including Adult, Bank, and Spambase.
  • Dataset II: A comprehensive benchmark of 19 datasets covering four critical categories: Categorical Classification (CC), Numerical Classification (NC), Categorical Regression (CR), and Numerical Regression (NR).

BiSHop was compared against five leading deep learning models (including TabNet and FT-Transformer) and three dominant tree-based models (LightGBM, CatBoost, and XGBoost).

Key Results and Insights

  • Benchmark Dominance: BiSHop achieved a mean rank of 2.79 across the 19-dataset benchmark, significantly outperforming the next best deep learning model, FT-Transformer (3.58), and the top tree-based model, XGBoost (3.84).
  • Robustness to Noise: Ablation studies demonstrated that the learnable sparsity in the GSH layers makes BiSHop significantly more resilient to noisy or uninformative features compared to standard attention-based architectures.
  • Efficiency in Tuning: One of the most practical advantages of BiSHop is its efficiency. It reached peak performance with far fewer Hyperparameter Optimization (HPO) runs than its competitors, often finding optimal settings in less than 10% of the time required by other models.
  • Faster Convergence: The generalized sparse Hopfield mechanism was shown to converge more quickly and achieve higher final accuracy than traditional "dense" modern Hopfield models.

Conclusion and Future Work

BiSHop represents a significant advancement in the application of deep learning to tabular data. By baking the grid-like nature of tables into the architecture and utilizing adaptive sparse associative memory, it overcomes the traditional weaknesses of neural networks in this domain.

While the current implementation focuses on internal representations, future research will explore the integration of external memory banks. This could allow BiSHop to "remember" and leverage patterns across millions of rows of historical data, potentially setting a new standard for large-scale tabular data analysis.

Summary updated

BibTeX
@inproceedings{xu2024bishop,
  author = {Chenwei Xu and Yu-Chao Huang and Jerry Yao-Chieh Hu and Weijian Li and Ammar Gilani and Hsi-Sheng Goan and Han Liu},
  title = {{BiSHop: Bi-Directional Cellular Learning for Tabular Data with Generalized Sparse Modern Hopfield Model}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=r9rzU9QzPe},
}
Figure