ModernNCA
ModernNCA is a deep tabular model that predicts from an instance's neighbors in a learned embedding space.
Tabular and recommender · 35 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Parameters
- 98.4K
- Operations
- 35
- Framework
- PyTorch
- Recurrent
- No
- Published
- ICLR 2025
- Cited by
- 1 (as of 24 October 2026)
- Authors
- Han-Jia Ye, Huai-Hong Yin, De-Chuan Zhan, Wei-Lun Chao
- Source
- GitHub: LAMDA-Tabular/TALENT
- License
- MIT
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m18498
- Graph hash
- 6e873a2152b0f148c6f03dd907b2aa5228850e522b1217579dc1b6acd3b2d256
- Skeleton hash
- dd28da1a8355ebe723da6405ce32bd246212a8fa9a0b8ccf8f500f0b90df1c21
- Architecture hash
- 23bc66b9d7b64bf473c969627a9d5f612e25c9c29cf47747aeef150a138090d0
- Diagram SHA-256
- aac14cbaa665deaefc8d2bc91b905f2708c38cb7d4af17edc5905ad8b822710d
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
This model is set up for a regression task, where the prediction is the weighted sum of scalar labels from the neighborhood.
ModernNCA is a deep model for tabular data that makes predictions from an instance's neighbors in a learned embedding space. The paper starts from NCA, a differentiable version of K-nearest neighbors that was originally designed to learn a linear projection, and gradually adds modern deep learning techniques on top.
The embedding network stacks blocks of batch normalization, a linear layer, ReLU, dropout and another linear layer. Categorical features are one-hot encoded and numerical features go through PLR (lite) encoding. Prediction uses a soft nearest neighbor rule in place of hard KNN, and the same rule serves classification and regression. Training uses Stochastic Neighborhood Sampling: a random subset of the training data serves as the candidate neighbors in each mini-batch. During inference the model goes back to searching the entire training set.
Evaluated on 300 tabular datasets, the paper reports ModernNCA ranked first in classification tasks and just behind CatBoost in regression tasks. It also reports that ModernNCA outperforms TabR on 123 datasets and ties on 108, with a simpler architecture and shorter training time.
Key idea. The paper showed that NCA, given deep representations and extra training stochasticity, matches CatBoost and outperforms the deep tabular models it compared on 300 datasets.
- modernnca
- modern nca
- m-nca
- nca
- neighborhood components analysis
- nearest neighbor
- deep tabular model
- tabular data
- tabular classification
- tabular regression
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{ye2025revisitingnearestneighbortabular,
title={Revisiting Nearest Neighbor for Tabular Data: A Deep Tabular Baseline Two Decades Later},
author={Han-Jia Ye and Huai-Hong Yin and De-Chuan Zhan and Wei-Lun Chao},
year={2025},
eprint={2407.03257},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2407.03257},
}