SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2412.16534 · NeurIPS · 2024

DOFEN: Deep Oblivious Forest ENsemble

Kuan-Yu Chen, Ping-Han Chiang, Tien-Hao Chang, Catboost Catboost, Catboost, Gradientboostingtree Gradientboostingtree, Lightgbm Lightgbm, Mlp Mlp

arXiv · PDF · Open in the Atlas

Code that ran

3 of 7 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 3 have no contract verdict; 0 failures of our instrument; 4 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/2412.16534.json · badge: /api/ran/2412.16534.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
sinopac-digital-technology-division/dofen canonical (classifier label)
classifier basis: classifier_2025
3 ran · 4 no recorded run
FunctionStatusWhere it lives
ConditionGeneration Ran
ran on a synthesized input
sinopac-digital-technology-division/dofen/model.py
code served (permissive licence) · get_code("6c7ea4cf74514478")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 3, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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
import numpy as np

import torch
import torch.nn as nn
import numpy as np

class FastGroupConv1d(nn.Conv1d):
    """
    This class is built to resolve the issue: the slow operation speed of group convolution when number of groups are large.
    We found that directly using self-written matrix multiplication can dramatically accelerate operation speed of group convolution.
    The `fast_mode` argument decides when to switch from native operation in `nn.Conv1d` to self-written one by setting the group threshold.
    
    See following pytorch issues for more detailed description of this bug: 
    * https://github.com/pytorch/pytorch/issues/18631
    * https://github.com/pytorch/pytorch/issues/70954
    * https://github.com/pytorch/pytorch/issues/73764
    """

    def __init__(self, *args, **kwargs):
        self.fast_mode = kwargs.pop('fast_mode')
        nn.Conv1d.__init__(self, *args, **kwargs)
        if self.groups > self.fast_mode:
            self.weight = nn.Parameter(self.weight.reshape(self.groups, self.out_channels // self.groups, self.in_channels // self.groups, 1).permute(3, 0, 2, 1))
            self.bias = nn.Parameter(self.bias.unsqueeze(0).unsqueeze(-1))

    def forward(self, x):
        if self.groups > self.fast_mode:
            x = x.reshape(-1, self.groups, self.in_channels // self.groups, 1)
            return (x * self.weight).sum(2, keepdims=True).permute(0, 1, 3, 2).reshape(-1, self.out_channels, 1) + self.bias
        else:
            return self._conv_forward(x, self.weight, self.bias)

class Reshape(nn.Module):

    def __init__(self, *args):
        super(Reshape, self).__init__()
        self.shape = args

    def forward(self, x):
        return x.reshape(self.shape)

class ConditionGeneration(nn.Module):

    def __init__(self, column_category_count, n_cond=128, categorical_optimized=False, fast_mode=64, device=torch.device('cpu')):
        super(ConditionGeneration, self).__init__()
        self.device = device
        self.fast_mode = fast_mode
        self.categorical_optimized = categorical_optimized
        self.num_index, self.cat_index, self.cat_count, self.cat_offset = self.get_num_cat_index(column_category_count)
        self.n_cond = n_cond
        self.phi_1 = self.get_phi_1()

    def get_num_cat_index(self, column_category_count):
        num_index = []
        cat_index = []
        cat_count = []
        for idx, ele in enumerate(column_category_count):
            if ele == -1:
                num_index.append(idx)
            else:
                cat_index.append(idx)
                cat_count.append(ele)
        cat_offset = torch.tensor([0] + np.cumsum(cat_count).tolist()[:-1]).long().to(self.device)
        return (num_index, cat_index, cat_count, cat_offset)

    def get_phi_1(self):
        phi_1 = nn.ModuleDict()
        if len(self.num_index):
            phi_1['num'] = nn.Sequential(Reshape(-1, len(self.num_index), 1), FastGroupConv1d(len(self.num_index), len(self.num_index) * self.n_cond, kernel_size=1, groups=len(self.num_index), fast_mode=self.fast_mode), nn.Sigmoid(), Reshape(-1, len(self.num_index), self.n_cond))
        if len(self.cat_index):
            phi_1['cat'] = nn.ModuleDict()
            phi_1['cat']['embedder'] = nn.Embedding(sum(self.cat_count), self.n_cond)
            phi_1['cat']['mapper'] = nn.Sequential(Reshape(-1, len(self.cat_index) * self.n_cond, 1), nn.GroupNorm(len(self.cat_index), len(self.cat_index) * self.n_cond), FastGroupConv1d(len(self.cat_index) * self.n_cond, len(self.cat_index) * self.n_cond, kernel_size=1, groups=len(self.cat_index) * self.n_cond if self.categorical_optimized else len(self.cat_index), fast_mode=self.fast_mode), nn.Sigmoid(), Reshape(-1, len(self.cat_index), self.n_cond))
        return phi_1

    def forward(self, x):
        M = []
        if len(self.num_index):
            num_x = x[:, self.num_index].float()
            num_sample_emb = self.phi_1['num'](num_x)
            M.append(num_sample_emb)
        if len(self.cat_index):
            cat_x = x[:, self.cat_index].long() + self.cat_offset
            cat_sample_emb = self.phi_1['cat']['mapper'](self.phi_1['cat']['embedder'](cat_x))
            M.append(cat_sample_emb)
        M = torch.cat(M, dim=1)
        M = M.permute(0, 2, 1)
        return M


INIT_ARGS = {
    'column_category_count': [-1, -1, 3, 5],
    'n_cond': 16,
    'categorical_optimized': False,
    'fast_mode': 64,
    'device': torch.device('cpu')
}

ARGS = {
    'x': torch.randn(2, 4)
}

if __name__ == '__main__':
    model = ConditionGeneration(**INIT_ARGS)
    output = model(**ARGS)
    print(f"Output shape: {output.shape}")
    print(f"Output: {output}")
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family float — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
FastGroupConv1d Ran
ran on a synthesized input
sinopac-digital-technology-division/dofen/model.py
code served (permissive licence) · get_code("4cff273618c91c78")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 3, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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

# INIT_ARGS for FastGroupConv1d.__init__
INIT_ARGS = {
    'in_channels': 12,
    'out_channels': 24,
    'kernel_size': 1,
    'groups': 6,
    'fast_mode': 4,
    'bias': True
}

# ARGS for FastGroupConv1d.forward
# Input shape: (batch_size, in_channels, sequence_length)
ARGS = {
    'x': torch.randn(2, 12, 8)
}
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
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 3, dtype family float — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
rODTConstruction Ran
ran on a synthesized input
sinopac-digital-technology-division/dofen/model.py
code served (permissive licence) · get_code("6a3bd84449e05e00")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, class construct-then-call prompt, model not recorded) and returned Tensor, ndim 3, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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

# INIT_ARGS for rODTConstruction.__init__(n_cond, n_col)
INIT_ARGS = {
    'n_cond': 3,
    'n_col': 4
}

# ARGS for rODTConstruction.forward(M)
# M should have shape (batch, n_cond, n_col) based on the reshape logic
# M.reshape(M.shape[0], -1, 1) flattens dims 1 and 2, so M should be (batch, n_cond, n_col)
ARGS = {
    'M': torch.randn(2, 3, 4)
}
Setup block drafted by
a language model, class construct-then-call prompt, model not recorded
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 3, dtype family float — no output shape is stated: observe_signature.py observed this class with its constructor sizes canonicalised where it could, which the node does not record, so its shape is not stated as this setup block's
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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
DOFEN Not yet run
unverified (harvested, no recorded run)
sinopac-digital-technology-division/dofen/model.py
code served (permissive licence) · get_code("0845ba1300c71b51")
How it ran

no invocation recorded.

Reshape Not yet run
unverified (harvested, no recorded run)
sinopac-digital-technology-division/dofen/model.py
code served (permissive licence) · get_code("599b4fc184cdb4c5")
How it ran

no invocation recorded.

rODTForestBagging Not yet run
unverified (harvested, no recorded run)
sinopac-digital-technology-division/dofen/model.py
code served (permissive licence) · get_code("1b213366ea7b03f6")
How it ran

no invocation recorded.

rODTForestConstruction Not yet run
unverified (harvested, no recorded run)
sinopac-digital-technology-division/dofen/model.py
code served (permissive licence) · get_code("97008b384c615567")
How it ran

no invocation recorded.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 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 7 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

Deep Neural Networks (DNNs) have revolutionized artificial intelligence, achieving impressive results on diverse data types, including images, videos, and texts. However, DNNs still lag behind Gradient Boosting Decision Trees (GBDT) on tabular data, a format extensively utilized across various domains. In this paper, we propose DOFEN, short for Deep Oblivious Forest ENsemble, a novel DNN architecture inspired by oblivious decision trees. DOFEN constructs relaxed oblivious decision trees (rODTs) by randomly combining conditions for each column and further enhances performance with a two-level rODT forest ensembling process. By employing this approach, DOFEN achieves state-of-the-art results among DNNs and further narrows the gap between DNNs and tree-based models on the well-recognized benchmark: Tabular Benchmark [1], which includes 73 total datasets spanning a wide array of domains.

For agents

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

get_harvested_code_for_paper("2412.16534")
get_code_for_paper("2412.16534")
have("2412.16534")

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

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

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

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

Connect an agent — have() is free.