SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2309.17130 · 2023

GRANDE: Gradient-Based Decision Tree Ensembles for Tabular Data

arXiv · PDF · Open in the Atlas

Code that ran

7 of 12 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 7 failures of our instrument; 5 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2309.17130.json · badge: /api/ran/2309.17130.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
s-marton/gradtree canonical (classifier label)
classifier basis: census
6 ran · 3 no recorded run
s-marton/grande canonical (classifier label)
classifier basis: classifier_2025
1 ran · 2 no recorded run
FunctionStatusWhere it lives
embed_data Ran
ran; our contract draft was wrong, not the code
s-marton/grande/GRANDE/GRANDE.py
code served (permissive licence) · get_code("72f1542c18d5bf8e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 15) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Create a simple numeric embeddings module
class NumericEmbeddings(nn.Module):
    def __init__(self, input_size, embedding_dim):
        super().__init__()
        self.linear = nn.Linear(input_size, embedding_dim)
    
    def forward(self, x):
        return self.linear(x).unsqueeze(2)

# Create a simple category embeddings module
class CategoryEmbeddings(nn.Module):
    def __init__(self, num_categories, embedding_dim):
        super().__init__()
        self.embedding = nn.Embedding(num_categories, embedding_dim)
    
    def forward(self, x):
        return self.embedding(x)

# Create sample data
batch_size = 2
total_features = 8

# X: Input tensor with batch_size=2, total_features=8
X = torch.randn(batch_size, total_features, dtype=torch.float32)

# Feature indices
num_features = [0, 1]  # numeric features at indices 0, 1
categorical_features_raw_indices = [2, 3]  # categorical features at indices 2, 3
encoded_columns_indices = [4, 5]  # encoded columns at indices 4, 5

# Create embeddings
numeric_embeddings = NumericEmbeddings(input_size=2, embedding_dim=3)
category_embeddings = CategoryEmbeddings(num_categories=10, embedding_dim=4)

# Create preprocessed data (optional)
preprocessed_data = torch.randn(batch_size, 2, dtype=torch.float32)

# Ensure categorical features are in valid range for embedding
X[:, categorical_features_raw_indices] = torch.randint(0, 10, (batch_size, 2), dtype=torch.float32)

ARGS = {
    "X": X,
    "num_features": num_features,
    "categorical_features_raw_indices": categorical_features_raw_indices,
    "encoded_columns_indices": encoded_columns_indices,
    "numeric_embeddings": numeric_embeddings,
    "category_embeddings": category_embeddings,
    "preprocessed_data": preprocessed_data,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 15) — shape (2, 15) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
entmax15 Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
s-marton/gradtree/GradTree/GradTree.py
code served (permissive licence) · get_code("1ea888d2a2b1221d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned EagerTensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tensorflow as tf
import numpy as np

# Create a simple test input tensor
# Shape: (2, 4) - batch size 2, feature dimension 4
inputs = tf.constant([
    [1.0, 2.0, 3.0, 4.0],
    [5.0, 6.0, 7.0, 8.0]
], dtype=tf.float32)

ARGS = {
    "inputs": inputs,
    "axis": -1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
flatten_dict Ran
ran; our contract draft was wrong, not the code
s-marton/gradtree/experiments_paper_gradtree/utilities/utilities_GDT.py
code served (permissive licence) · get_code("5cd213cdf1030eee")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import collections

# Create a nested dictionary with various types of values
nested_dict = {
    'level1_a': 42,
    'level1_b': 'hello',
    'level1_nested': {
        'level2_a': 3.14,
        'level2_b': True,
        'level2_nested': {
            'level3_a': [1, 2, 3],
            'level3_b': 'deep_value'
        }
    },
    'level1_c': {'simple': 'dict'}
}

ARGS = {
    'd': nested_dict,
    'parent_key': '',
    'sep': '__'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
gather_over_axis Ran
ran; our contract draft was wrong, not the code
s-marton/gradtree/GradTree/GradTree.py
code served (permissive licence) · get_code("8336c9e8ba6d9dd4")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned EagerTensor, ndim 4, dtype family float, shape (2, 3, 3, 5) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tensorflow as tf
import numpy as np

# Create small test tensors
# values: shape [2, 3, 4, 5] - 4D tensor
values = tf.constant(np.arange(2*3*4*5).reshape(2, 3, 4, 5), dtype=tf.float32)

# indices: same shape as values except for gather_axis
# Let's gather along axis=2, so indices shape is [2, 3, 4, 5] but the values at gather_axis will be indices into that dimension
# For gather_axis=2, indices should have shape [2, 3, ?, 5] where ? can be any size
# Actually, looking at the docstring more carefully: indices has same shape as values EXCEPT for gather_axis
# So if values is [2, 3, 4, 5] and gather_axis=2, indices should be [2, 3, ?, 5]
# Let's use shape [2, 3, 3, 5] - different from values' dimension 2 (which is 4)
indices = tf.constant(np.random.randint(0, 4, size=[2, 3, 3, 5]), dtype=tf.int64)

# gather_axis: which axis to gather over
gather_axis = 2

ARGS = {
    'values': values,
    'indices': indices,
    'gather_axis': gather_axis
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 4, dtype family float, shape (2, 3, 3, 5) — shape (2, 3, 3, 5) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
mergeDict Ran
ran; our contract draft was wrong, not the code
s-marton/gradtree/experiments_paper_gradtree/utilities/utilities_GDT.py
code served (permissive licence) · get_code("d229e72a357706bf")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Simple test dictionaries with various value types
dict1 = {
    "a": 1,
    "b": [10, 20],
    "c": {"nested_key": "nested_value"},
    "d": "string_value"
}

dict2 = {
    "b": [30, 40],
    "c": {"another_nested": "another_value"},
    "e": 2,
    "d": "another_string"
}

ARGS = {
    "dict1": dict1,
    "dict2": dict2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
my_gather_nd Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
s-marton/gradtree/experiments_paper_gradtree/utilities/GDT.py
code served (permissive licence) · get_code("c8115ab39abe7f68")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned EagerTensor, ndim 3, dtype family int, shape (2, 2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tensorflow as tf

# Create small tensors for testing
# params: a 3D tensor with shape [2, 3, 4]
params = tf.constant([
    [[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12]],
    [[13, 14, 15, 16], [17, 18, 19, 20], [21, 22, 23, 24]]
], dtype=tf.int32)

# indices: shape [2, 2, 2] - indices into the first 2 dimensions of params
# Each index is a pair [i, j] where i in [0,1] and j in [0,2]
indices = tf.constant([
    [[0, 0], [0, 1]],
    [[1, 0], [1, 2]]
], dtype=tf.int64)

ARGS = {
    "params": params,
    "indices": indices
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type EagerTensor, ndim 3, dtype family int, shape (2, 2, 4) — shape (2, 2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
top_k_over_axis Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
s-marton/gradtree/GradTree/GradTree.py
code served (permissive licence) · get_code("b62cf67dc11a1f54")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned TopKV2. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tensorflow as tf
import numpy as np

# Create a small test tensor with shape (2, 3, 4)
# Using distinct dimensions so shapes are unambiguous
inputs = tf.constant(np.random.randn(2, 3, 4).astype(np.float32))

# k should be smaller than the axis dimension we're operating on
k = 2

# axis can be any valid axis; -1 means last axis
axis = -1

ARGS = {
    'inputs': inputs,
    'k': k,
    'axis': axis,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tensorflow — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type TopKV2 — a TopKV2 output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a TopKV2 output the recorded ndim 4 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
evaluate Not yet run
unverified (harvested, no recorded run)
s-marton/grande/GRANDE/GRANDE.py
code served (permissive licence) · get_code("e82568961456e67f")
How it ran

no invocation recorded.

evaluate_regression Not yet run
unverified (harvested, no recorded run)
s-marton/grande/GRANDE/GRANDE.py
code served (permissive licence) · get_code("5194732dbb0292ff")
How it ran

no invocation recorded.

flatten_list Not yet run
unverified (harvested, no recorded run)
s-marton/gradtree/experiments_paper_gradtree/utilities/utilities_GDT.py
code served (permissive licence) · get_code("aefc54c084793353")
How it ran

no invocation recorded.

sigmoid Not yet run
unverified (harvested, no recorded run)
s-marton/gradtree/experiments_paper_gradtree/utilities/GDT.py
code served (permissive licence) · get_code("00ecfa2a9dd20434")
How it ran

no invocation recorded.

tanh Not yet run
unverified (harvested, no recorded run)
s-marton/gradtree/experiments_paper_gradtree/utilities/GDT.py
code served (permissive licence) · get_code("8ee3af50bfaddadd")
How it ran

no invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 12 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Despite the success of deep learning for text and image data, tree-based ensemble models are still state-of-the-art for machine learning with heterogeneous tabular data. However, there is a significant need for tabular-specific gradient-based methods due to their high flexibility. In this paper, we propose $\text{GRANDE}$, $\text{GRA}$die$\text{N}$t-Based $\text{D}$ecision Tree $\text{E}$nsembles, a novel approach for learning hard, axis-aligned decision tree ensembles using end-to-end gradient descent. GRANDE is based on a dense representation of tree ensembles, which affords to use backpropagation with a straight-through operator to jointly optimize all model parameters. Our method combines axis-aligned splits, which is a useful inductive bias for tabular data, with the flexibility of gradient-based optimization. Furthermore, we introduce an advanced instance-wise weighting that facilitates learning representations for both, simple and complex relations, within a single model. We conducted an extensive evaluation on a predefined benchmark with 19 classification datasets and demonstrate that our method outperforms existing gradient-boosting and deep learning frameworks on most datasets. The method is available under: https://github.com/s-marton/GRANDE

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2309.17130")
get_code_for_paper("2309.17130")
have("2309.17130")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2309.17130.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2309.17130.svg)](https://syntology.ai/paper/2309.17130)

Connect an agent — have() is free.