Papers › NBDT: Neural-Backed Decision Trees

NBDT: Neural-Backed Decision Trees

1 Apr 2020arXiv:2004.00221archive 2025-07-28

Alvin Wan, Lisa Dunlap, Daniel Ho, Jihan Yin, Scott Lee, Henry Jin, Suzanne Petryk, Sarah Adel Bargal, Joseph E. Gonzalez

Machine learning applications such as finance and medicine demand accurate and justifiable predictions, barring most deep learning methods from use. In response, previous work combines decision trees with deep learning, yielding models that (1) sacrifice interpretability for accuracy or (2) sacrifice accuracy for interpretability. We forgo this dilemma by jointly improving accuracy and interpretability using Neural-Backed Decision Trees (NBDTs). NBDTs replace a neural network's final linear layer with a differentiable sequence of decisions and a surrogate loss. This forces the model to learn high-level concepts and lessens reliance on highly-uncertain decisions, yielding (1) accuracy: NBDTs match or outperform modern neural networks on CIFAR, ImageNet and better generalize to unseen classes by up to 16%. Furthermore, our surrogate loss improves the original model's accuracy by up to 2%. NBDTs also afford (2) interpretability: improving human trustby clearly identifying model mistakes and assisting in dataset debugging. Code and pretrained NBDTs are at https://github.com/alvinwan/neural-backed-decision-trees.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2004.00221")

Code

Syntology Ran 18 of 29 code samples harvested from 2 repositories linked to this paper; 11 have no recorded run. Of those that ran: 1 ran · honoured contract; 14 ran · our draft was wrong; 3 ran with no contract checked.

By repository: official repository: 6 samples from 1 repository, 1 ran; community (archive-listed): 23 samples from 1 repository, 17 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

alvinwan/neural-backed-decision-trees officialmentioned in papermentioned on GitHubpytorch report
XAVILLA/nbdt mentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

29 samples harvested; 18 ran; 1 honoured the contract we drafted; 11 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
14ran · our draft was wrong
3ran
11unverified

Licence: 0 of the 29 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

dataset_to_dummy_classes alvinwan/neural-backed-decision-trees/nbdt/model.py official repository ran · our draft was wrong MIT (permissive) · a32351468906ce8a · report
EmbeddedDecisionRules alvinwan/neural-backed-decision-trees/nbdt/model.py official repository unverified MIT (permissive) · 55ce848c52ee5cb8 · report
HardEmbeddedDecisionRules alvinwan/neural-backed-decision-trees/nbdt/model.py official repository unverified MIT (permissive) · be59a6ad0e2ddec0 · report
NBDT alvinwan/neural-backed-decision-trees/nbdt/model.py official repository unverified MIT (permissive) · 899f401f38f1fd83 · report
Tree alvinwan/neural-backed-decision-trees/nbdt/model.py official repository unverified MIT (permissive) · fbc1d6876bb0df31 · report
load_state_dict_from_key alvinwan/neural-backed-decision-trees/nbdt/model.py official repository unverified MIT (permissive) · 14f8f9f850c7e428 · report
Colors XAVILLA/nbdt/nbdt/model.py community (archive-listed) ran MIT (permissive) · 1020d5e79c4766de · report
FakeSynset XAVILLA/nbdt/nbdt/model.py community (archive-listed) ran MIT (permissive) · 52cf40b8aae2967f · report
coerce_state_dict XAVILLA/nbdt/nbdt/model.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 303cf42ae5edc004 · report
dataset_to_default_path_graph XAVILLA/nbdt/nbdt/model.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 23b18dbf212e73e9 · report
dataset_to_default_path_wnids XAVILLA/nbdt/nbdt/model.py community (archive-listed) ran · our draft was wrong MIT (permissive) · e081d64f5cad1cd9 · report
dataset_to_dummy_classes XAVILLA/nbdt/nbdt/model.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 4625fb450d4c7b8c · report
fwd XAVILLA/nbdt/nbdt/model.py community (archive-listed) ran MIT (permissive) · 8497ac1255b3b1a5 · report
get_leaf_to_path XAVILLA/nbdt/nbdt/model.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 642244caa777143c · report
get_leaves XAVILLA/nbdt/nbdt/model.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 6cbac319834ba8ae · report
get_roots XAVILLA/nbdt/nbdt/model.py community (archive-listed) ran · our draft was wrong MIT (permissive) · e31c7cca6d6133a2 · report
get_wnids XAVILLA/nbdt/nbdt/model.py community (archive-listed) ran · our draft was wrong MIT (permissive) · e270d7f9006e5c50 · report
hierarchy_to_path_graph XAVILLA/nbdt/nbdt/model.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 8c79e86eb84f0948 · report
is_leaf XAVILLA/nbdt/nbdt/model.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 626c774cdb0ecdea · report
read_graph XAVILLA/nbdt/nbdt/model.py community (archive-listed) ran · honoured contract MIT (permissive) · 7ef704b1f90df1c8 · report
synset_to_name XAVILLA/nbdt/nbdt/model.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 8d5c8808f6873339 · report
wnid_to_name XAVILLA/nbdt/nbdt/model.py community (archive-listed) ran · our draft was wrong fingerprinted MIT (permissive) · 71ff6b40cffae955 · report
wnid_to_synset XAVILLA/nbdt/nbdt/model.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 1743b41d3adb91a6 · report
EmbeddedDecisionRules XAVILLA/nbdt/nbdt/model.py community (archive-listed) unverified MIT (permissive) · 95c098426e5a427f · report
HardEmbeddedDecisionRules XAVILLA/nbdt/nbdt/model.py community (archive-listed) unverified MIT (permissive) · e9189fbf051e129d · report
NBDT XAVILLA/nbdt/nbdt/model.py community (archive-listed) unverified MIT (permissive) · 13e0602b87690b50 · report
Node XAVILLA/nbdt/nbdt/model.py community (archive-listed) unverified MIT (permissive) · 20d642b846aa125d · report
Tree XAVILLA/nbdt/nbdt/model.py community (archive-listed) unverified MIT (permissive) · 4553e20f251d19cb · report
load_state_dict_from_key XAVILLA/nbdt/nbdt/model.py community (archive-listed) unverified MIT (permissive) · e33501c9d70eab4b · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

1x1 ConvolutionAverage PoolingBatch NormalizationConvolutionDense ConnectionsDepthwise ConvolutionDepthwise Separable ConvolutionDropoutEfficientNetInterpretabilityInverted Residual BlockLinear LayerPointwise ConvolutionRMSPropReLUSigmoid ActivationSqueeze-and-Excitation Block

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections