atlas

Research map / Label-efficient and robust learning / Recognition and long-tail

Revisiting Nearest Neighbor for Tabular Data: A Deep Tabular Baseline Two Decades Later

ICLR 2025 · Label-efficient and robust learning › Recognition and long-tail · approach: Correspondence and causal representation learning · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Revisits NCA (neighbourhood components analysis) for tabular data, progressively adding SGD training, higher-dimensional linear projection, soft-NN inference, deep MLP embeddings with PLR encoding and stochastic neighborhood sampling to yield ModernNCA, a deep tabular baseline competitive with CatBoost.

Problem

Deep tabular models still struggle to match tree-based methods like GBDT on tabular data; classical nearest-neighbor methods such as NCA have been overlooked for tabular prediction.

Approach

Starting from NCA and adding modern components step by step (SGD optimization, unrestricted projection dimension, log-likelihood loss, soft-NN prediction, batch-norm MLP embeddings with PLR numerical encoding, and stochastic neighborhood sampling as mini-batch candidate neighbors) yields a nearest-neighbor model that is competitive with CatBoost and outperforms other deep tabular models.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
allow projection to higher dimensions (ablation)NCA · tiny benchmark, 27 classification datasetsaverage rank: 4.400 -> 3.708Helped
replace L-BFGS with SGD (ablation)NCA · tiny benchmark, 27 classification datasetsaverage rank: 3.708 -> 3.296Helped
use log loss instead of the original probability-sum loss (ablation)NCA · tiny benchmark, 27 classification datasetsaverage rank: 3.296 -> 3.192Helped
use soft-NN prediction instead of hard KNN prediction (ablation)NCA · tiny benchmark, 27 classification datasetsaverage rank: 3.192 -> 2.962Helped
replace the nonlinear MLP mapping with a linear mapping (ablation)ModernNCA · tiny benchmark, classificationaverage rank: 2.333 -> 2.778Hurt
replace batch normalization with layer normalization (ablation)ModernNCA · tiny benchmark, classificationaverage rank: 2.333 -> 2.537Hurt
add a residual connection (ablation)ModernNCA · tiny benchmark, regressionaverage rank: 2.333 -> 2.806Hurt
add PLR numerical encoding (ablation)ModernNCA · tiny benchmark, classificationaverage rank: 3.037 -> 2.630Helped
add PLR numerical encoding (ablation)ModernNCA · tiny benchmark, regressionaverage rank: 3.389 -> 3.222Helped
replace Euclidean distance with cosine distance (ablation)ModernNCA · tiny benchmark, classificationaverage rank: 2.593 -> 2.111Helped
replace Euclidean distance with cosine distance (ablation)ModernNCA · tiny benchmark, regressionaverage rank: 2.500 -> 2.529Hurt
use class-wise label-based sampling instead of random sampling (ablation)ModernNCA · tiny benchmark, classificationaverage rank: 1.869 -> 2.230Hurt

Surprising findings

Limitations

Experimental setup

Datasets: 300-dataset tabular benchmark (UCI, OpenML, Kaggle, others) 45-dataset tiny benchmark

Benchmarks: 300-dataset tabular benchmark 45-dataset tiny benchmark

Metrics: accuracy RMSE average performance rank win/tie/lose with t-test training time memory usage

Baselines: CatBoost XGBoost LightGBM RandomForest SVM KNN TabR MLP MLP-PLR FT-Transformer ResNet SAINT

Builds on: Neighbourhood Components Analysis TabR soft-NN loss PLR embeddings

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy