SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2505.10704 · NeurIPS · 2025

ZEUS: Zero-shot Embeddings for Unsupervised Separation of Tabular Data

Jacek Tabor, Marek Śmieja, Patryk Marszałek, Tomasz Kuśmierczyk, Witold Wydma Ński

arXiv · PDF · Open in the Atlas

Code that ran

5 of 8 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (2 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 5 have no contract verdict; 0 failures of our instrument; 3 no recorded run), measured 2026-11-24; 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/2505.10704.json · badge: /api/ran/2505.10704.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
gmum/zeus canonical (classifier label)
classifier basis: classifier_2025
1 ran · 2 no recorded run
vlukiyanov/pt-dec unrelated (classifier label)
classifier basis: classifier_2025
2 ran · 0 no recorded run
clabrugere/pytorch-scarf unrelated (classifier label)
classifier basis: classifier_2025
1 ran · 1 no recorded run
jsvir/idc unrelated (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
FunctionStatusWhere it lives
ClusterAssignment Ran
ran on a synthesized input
vlukiyanov/pt-dec/ptdec/dec.py
code served (permissive licence) · get_code("e02d2cfb00f60ecd")
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 2, dtype family float, shape (2, 3) 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
from torch.nn import Parameter
from typing import Optional

class ClusterAssignment(nn.Module):

    def __init__(self, cluster_number: int, embedding_dimension: int, alpha: float=1.0, cluster_centers: Optional[torch.Tensor]=None) -> None:
        """
        Module to handle the soft assignment, for a description see in 3.1.1. in Xie/Girshick/Farhadi,
        where the Student's t-distribution is used measure similarity between feature vector and each
        cluster centroid.

        :param cluster_number: number of clusters
        :param embedding_dimension: embedding dimension of feature vectors
        :param alpha: parameter representing the degrees of freedom in the t-distribution, default 1.0
        :param cluster_centers: clusters centers to initialise, if None then use Xavier uniform
        """
        super(ClusterAssignment, self).__init__()
        self.embedding_dimension = embedding_dimension
        self.cluster_number = cluster_number
        self.alpha = alpha
        if cluster_centers is None:
            initial_cluster_centers = torch.zeros(self.cluster_number, self.embedding_dimension, dtype=torch.float)
            nn.init.xavier_uniform_(initial_cluster_centers)
        else:
            initial_cluster_centers = cluster_centers
        self.cluster_centers = Parameter(initial_cluster_centers)

    def forward(self, batch: torch.Tensor) -> torch.Tensor:
        """
        Compute the soft assignment for a batch of feature vectors, returning a batch of assignments
        for each cluster.

        :param batch: FloatTensor of [batch size, embedding dimension]
        :return: FloatTensor [batch size, number of clusters]
        """
        norm_squared = torch.sum((batch.unsqueeze(1) - self.cluster_centers) ** 2, 2)
        numerator = 1.0 / (1.0 + norm_squared / self.alpha)
        power = float(self.alpha + 1) / 2
        numerator = numerator ** power
        return numerator / torch.sum(numerator, dim=1, keepdim=True)


INIT_ARGS = {
    "cluster_number": 3,
    "embedding_dimension": 4,
    "alpha": 1.0,
    "cluster_centers": None,
}

ARGS = {
    "batch": torch.randn(2, 4),
}

if __name__ == "__main__":
    model = ClusterAssignment(**INIT_ARGS)
    output = model(**ARGS)
    print("Output shape:", output.shape)
    print("Output:\n", output)
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 2, dtype family float, shape (2, 3) — shape (2, 3) 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
DEC Ran
ran on a synthesized input
vlukiyanov/pt-dec/ptdec/dec.py
code served (permissive licence) · get_code("0a5b1f0164507f1a")
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 2, dtype family float, shape (2, 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 torch
import torch.nn as nn
from typing import Optional

class ClusterAssignment(nn.Module):

    def __init__(self, cluster_number: int, embedding_dimension: int, alpha: float=1.0, cluster_centers: Optional[torch.Tensor]=None) -> None:
        """
        Module to handle the soft assignment, for a description see in 3.1.1. in Xie/Girshick/Farhadi,
        where the Student's t-distribution is used measure similarity between feature vector and each
        cluster centroid.

        :param cluster_number: number of clusters
        :param embedding_dimension: embedding dimension of feature vectors
        :param alpha: parameter representing the degrees of freedom in the t-distribution, default 1.0
        :param cluster_centers: clusters centers to initialise, if None then use Xavier uniform
        """
        super(ClusterAssignment, self).__init__()
        self.embedding_dimension = embedding_dimension
        self.cluster_number = cluster_number
        self.alpha = alpha
        if cluster_centers is None:
            initial_cluster_centers = torch.zeros(self.cluster_number, self.embedding_dimension, dtype=torch.float)
            nn.init.xavier_uniform_(initial_cluster_centers)
        else:
            initial_cluster_centers = cluster_centers
        self.cluster_centers = nn.Parameter(initial_cluster_centers)

    def forward(self, batch: torch.Tensor) -> torch.Tensor:
        """
        Compute the soft assignment for a batch of feature vectors, returning a batch of assignments
        for each cluster.

        :param batch: FloatTensor of [batch size, embedding dimension]
        :return: FloatTensor [batch size, number of clusters]
        """
        norm_squared = torch.sum((batch.unsqueeze(1) - self.cluster_centers) ** 2, 2)
        numerator = 1.0 / (1.0 + norm_squared / self.alpha)
        power = float(self.alpha + 1) / 2
        numerator = numerator ** power
        return numerator / torch.sum(numerator, dim=1, keepdim=True)

class DEC(nn.Module):

    def __init__(self, cluster_number: int, hidden_dimension: int, encoder: torch.nn.Module, alpha: float=1.0):
        """
        Module which holds all the moving parts of the DEC algorithm, as described in
        Xie/Girshick/Farhadi; this includes the AutoEncoder stage and the ClusterAssignment stage.

        :param cluster_number: number of clusters
        :param hidden_dimension: hidden dimension, output of the encoder
        :param encoder: encoder to use
        :param alpha: parameter representing the degrees of freedom in the t-distribution, default 1.0
        """
        super(DEC, self).__init__()
        self.encoder = encoder
        self.hidden_dimension = hidden_dimension
        self.cluster_number = cluster_number
        self.alpha = alpha
        self.assignment = ClusterAssignment(cluster_number, self.hidden_dimension, alpha)

    def forward(self, batch: torch.Tensor) -> torch.Tensor:
        """
        Compute the cluster assignment using the ClusterAssignment after running the batch
        through the encoder part of the associated AutoEncoder module.

        :param batch: [batch size, embedding dimension] FloatTensor
        :return: [batch size, number of clusters] FloatTensor
        """
        return self.assignment(self.encoder(batch))


encoder = nn.Sequential(
    nn.Linear(4, 8),
    nn.ReLU(),
    nn.Linear(8, 3)
)

INIT_ARGS = {
    'cluster_number': 5,
    'hidden_dimension': 3,
    'encoder': encoder,
    'alpha': 1.0
}

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

if __name__ == '__main__':
    model = DEC(**INIT_ARGS)
    output = model(**ARGS)
    print(f"Output shape: {output.shape}")
    print(f"Output:\n{output}")
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 2, dtype family float, shape (2, 5) — shape (2, 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
GatingNet Ran
ran on a synthesized input
jsvir/idc/model.py
code served (permissive licence) · get_code("acdb47d8e9641a21")
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 tuple. 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
import math

class Config:
    def __init__(self):
        self.input_dim = 4
        self.gates_hidden_dim = 8
        self.n_clusters = 3

INIT_ARGS = {
    'cfg': Config()
}

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

if __name__ == '__main__':
    from torch import nn
    
    # Import the class (in real usage it would be imported)
    import torch
    import math

    class GatingNet(torch.nn.Module):

        def __init__(self, cfg):
            super(GatingNet, self).__init__()
            self.cfg = cfg
            self._sqrt_2 = math.sqrt(2)
            self.sigma = 0.5
            self.local_gates = torch.nn.Sequential(torch.nn.Linear(cfg.input_dim, cfg.gates_hidden_dim), torch.nn.Tanh(), torch.nn.Linear(cfg.gates_hidden_dim, cfg.input_dim), torch.nn.Tanh())
            self.local_gates.apply(self.init_weights)
            self.global_gates_net = torch.nn.Embedding(self.cfg.n_clusters, self.cfg.input_dim)
            torch.nn.init.normal_(self.global_gates_net.weight, std=0.01)

        @staticmethod
        def init_weights(m):
            if isinstance(m, torch.nn.Linear):
                torch.nn.init.normal_(m.weight, std=0.001)
                if 'bias' in vars(m).keys():
                    m.bias.data.fill_(0.0)

        def global_forward(self, y):
            noise = torch.normal(mean=0, std=self.sigma, size=(y.size(0), self.cfg.input_dim), device=self.global_gates_net.weight.device)
            z = torch.tanh(self.global_gates_net(y)) + 0.5 * noise * self.training
            gates = self.hard_sigmoid(z)
            return (torch.tanh(self.global_gates_net(y)), gates)

        def open_global_gates(self):
            return self.hard_sigmoid(torch.tanh(self.global_gates_net.weight)).sum(dim=1).mean().cpu().item()

        def forward(self, x):
            noise = torch.normal(mean=0, std=self.sigma, size=x.size(), device=x.device)
            mu = self.local_gates(x)
            z = mu + 0.5 * noise * self.training
            gates = self.hard_sigmoid(z)
            sparse_x = x * gates
            return (mu, sparse_x, gates)

        @staticmethod
        def hard_sigmoid(x):
            return torch.clamp(x + 0.5, 0.0, 1.0)

        def regularization(self, mu, reduction_func=torch.mean):
            return reduction_func(0.5 - 0.5 * torch.erf((-1 / 2 - mu) / self._sqrt_2))

        def get_gates(self, x):
            with torch.no_grad():
                gates = self.hard_sigmoid(self.local_gates(x))
            return gates

        def num_open_gates(self, x):
            return self.get_gates(x).sum(dim=1).cpu().median(dim=0)[0].item()

    model = GatingNet(**INIT_ARGS)
    model.eval()
    output = model(**ARGS)
    print("Output shapes:", [o.shape if isinstance(o, torch.Tensor) else o for o in output])
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 tuple — a tuple output has no array shape of its own; none is 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
MLP Ran
ran on a synthesized input · constructed an object; no result was computed
clabrugere/pytorch-scarf/scarf/model.py
code served (permissive licence) · get_code("35598d37019944b8")
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 an instance of its own class, MLP: the run constructed the object and did not call it, so no result was computed. 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
import torch.nn as nn

torch.manual_seed(0)

ARGS = {
    "input_dim": 8,
    "hidden_dim": 16,
    "num_hidden": 3,
    "dropout": 0.1,
}
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 MLP — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a MLP output the recorded ndim 1 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
TransformerEncoderLayer Ran
ran on a synthesized input · constructed an object; no result was computed
gmum/zeus/zeus/model/zeus.py
pointer only (licence: NONE) · get_code("df4358779e4de127")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, gmum/zeus when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

LossType Not yet run
unverified (harvested, no recorded run)
gmum/zeus/zeus/model/zeus.py
pointer only (licence: NONE) · get_code("ca5bbfdc9d156c05")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, gmum/zeus when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

SCARF Not yet run
unverified (harvested, no recorded run)
clabrugere/pytorch-scarf/scarf/model.py
code served (permissive licence) · get_code("0827a38960242e75")
How it ran

no invocation recorded.

ZeusTransformerModel Not yet run
unverified (harvested, no recorded run)
gmum/zeus/zeus/model/zeus.py
pointer only (licence: NONE) · get_code("df3cab4a2ac1d917")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, gmum/zeus when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

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

Repositories linked to this paper

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

Abstract

Clustering tabular data remains a significant open challenge in data analysis and machine learning. Unlike for image data, similarity between tabular records often varies across datasets, making the definition of clusters highly dataset-dependent. Furthermore, the absence of supervised signals complicates hyperparameter tuning in deep learning clustering methods, frequently resulting in unstable performance. To address these issues and reduce the need for per-dataset tuning, we adopt an emerging approach in deep learning: zero-shot learning. We propose ZEUS, a selfcontained model capable of clustering new datasets without any additional training or fine-tuning. It operates by decomposing complex datasets into meaningful components that can then be clustered effectively. Thanks to pre-training on synthetic datasets generated from a latent-variable prior, it generalizes across various datasets without requiring user intervention. To the best of our knowledge, ZEUS is the first zero-shot method capable of generating embeddings for tabular data in a fully unsupervised manner. Experimental results demonstrate that it performs on par with or better than traditional clustering algorithms and recent deep learning-based methods, while being significantly faster and more user-friendly.

For agents

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

get_harvested_code_for_paper("2505.10704")
get_code_for_paper("2505.10704")
have("2505.10704")

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

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

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

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

Connect an agent — have() is free.