SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2502.01312 · ICCV · 2025

CleanPose: Category-Level Object Pose Estimation via Causal Learning and Knowledge Distillation

Yi Feng, Chengju Liu, Qijun Chen, Xiao Lin, Minghao Zhu, Yun Peng, Liuyi Wang, Xianyou Zhong, Jingwei Yang

arXiv · PDF · Open in the Atlas

Code that ran

7 of 15 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 6 have no contract verdict; 1 failure of our instrument; 8 no recorded run), measured 2026-11-23; 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/2502.01312.json · badge: /api/ran/2502.01312.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
chrislin0621/CleanPose community
Papers with Code archive
7 ran · 8 no recorded run
FunctionStatusWhere it lives
AttnLayer Ran
ran on a synthesized input
chrislin0621/CleanPose/model/Net.py
code served (permissive licence) · get_code("fa05b7e94be8cde1")
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 numpy as np
from types import SimpleNamespace

INIT_ARGS = {
    "cfg": SimpleNamespace(
        block_num=2,
        d_model=4,
        num_head=2,
        dim_ffn=8
    )
}

# Construct input tensors
batch_size = 2
kpt_num = 3
feature_dim = 4
input_feature_len = 5

batch_kpt_query = torch.randn(batch_size, kpt_num, feature_dim)
input_feature = torch.randn(batch_size, input_feature_len, feature_dim)

ARGS = {
    "batch_kpt_query": batch_kpt_query,
    "input_feature": input_feature
}
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 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)
GAFA_block Ran
ran on a synthesized input
chrislin0621/CleanPose/model/Net.py
code served (permissive licence) · get_code("26f88ba1688512ac")
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

# INIT_ARGS for GAFA_block.__init__(k, d_model)
INIT_ARGS = {
    'k': 8,
    'd_model': 16
}

# ARGS for GAFA_block.forward(kpt_feature, kpt_3d, pts_feature, pts)
batch_size = 2
kpt_num = 5
n_pts = 20
d_model = 16  # must match INIT_ARGS['d_model']

ARGS = {
    'kpt_feature': torch.randn(batch_size, kpt_num, d_model),
    'kpt_3d': torch.randn(batch_size, kpt_num, 3),
    'pts_feature': torch.randn(batch_size, n_pts, d_model),
    'pts': torch.randn(batch_size, n_pts, 3)
}
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)
NOCS_Predictor Ran
ran on a synthesized input
chrislin0621/CleanPose/model/Net.py
code served (permissive licence) · get_code("90255e016ab82eb0")
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. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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

class AttnLayerConfig:
    def __init__(self):
        self.block_num = 2
        self.d_model = 256
        self.num_head = 4
        self.dim_ffn = 256

class NOCSPredictorConfig:
    def __init__(self):
        self.bins_num = 8
        self.cat_num = 3
        self.AttnLayer = AttnLayerConfig()

cfg = NOCSPredictorConfig()

INIT_ARGS = {
    'cfg': cfg
}

batch_size = 2
kpt_num = 5
dim = 256
cat_num = 3

kpt_feature = torch.randn(batch_size, kpt_num, dim)
index = torch.randint(0, cat_num, (batch_size,))

ARGS = {
    'kpt_feature': kpt_feature,
    'index': index
}
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)
Reconstructor Ran
ran on a synthesized input
chrislin0621/CleanPose/model/Net.py
code served (permissive licence) · get_code("3ac6e58890e8ee98")
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 torch.nn as nn

class Config:
    def __init__(self, pts_per_kpt, ndim):
        self.pts_per_kpt = pts_per_kpt
        self.ndim = ndim

INIT_ARGS = {
    'cfg': Config(pts_per_kpt=3, ndim=16)
}

ARGS = {
    'kpt_3d': torch.randn(2, 3, 5),
    'kpt_feature': torch.randn(2, 16, 5)
}
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)
SelfAttnBlock Ran
ran on a synthesized input
chrislin0621/CleanPose/model/Net.py
code served (permissive licence) · get_code("1a44b54a9fad4a8f")
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, shape (2, 5, 8) 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

class SelfAttnBlock(nn.Module):

    def __init__(self, d_model=256, num_heads=4, dim_ffn=256, dropout=0.0, dropout_attn=None):
        super().__init__()
        if dropout_attn is None:
            dropout_attn = dropout
        self.self_attn = nn.MultiheadAttention(d_model, num_heads, dropout=dropout, batch_first=True)
        self.norm1 = nn.LayerNorm(d_model)
        self.norm2 = nn.LayerNorm(d_model)
        self.dropout1 = nn.Dropout(dropout, inplace=False)
        self.dropout2 = nn.Dropout(dropout, inplace=False)
        self.ffn = nn.Sequential(nn.Linear(d_model, dim_ffn), nn.ReLU(), nn.Dropout(dropout, inplace=False), nn.Linear(dim_ffn, d_model))

    def with_pos_embed(self, tensor, pos=None):
        return tensor if pos is None else tensor + pos

    def forward(self, kpt_query):
        kpt_query2 = self.norm1(kpt_query)
        kpt_query2, _ = self.self_attn(kpt_query2, kpt_query2, value=kpt_query2)
        kpt_query = kpt_query + self.dropout1(kpt_query2)
        kpt_query2 = self.norm2(kpt_query)
        kpt_query2 = self.ffn(kpt_query2)
        kpt_query = kpt_query + self.dropout2(kpt_query2)
        return kpt_query


INIT_ARGS = {
    'd_model': 8,
    'num_heads': 2,
    'dim_ffn': 12,
    'dropout': 0.1,
    'dropout_attn': None,
}

ARGS = {
    'kpt_query': torch.randn(2, 5, 8),
}

if __name__ == '__main__':
    block = SelfAttnBlock(**INIT_ARGS)
    output = block(**ARGS)
    print(f"Output shape: {output.shape}")
    print(f"Expected shape: {ARGS['kpt_query'].shape}")
    assert output.shape == ARGS['kpt_query'].shape, "Shape mismatch!"
    print("Success!")
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, shape (2, 5, 8) — shape (2, 5, 8) 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)
SelfAttnLayer Ran
ran on a synthesized input
chrislin0621/CleanPose/model/Net.py
code served (permissive licence) · get_code("d2dec6b34b2d7c40")
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, shape (2, 3, 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 torch
import torch.nn as nn

class SelfAttnBlock(nn.Module):

    def __init__(self, d_model=256, num_heads=4, dim_ffn=256, dropout=0.0, dropout_attn=None):
        super().__init__()
        if dropout_attn is None:
            dropout_attn = dropout
        self.self_attn = nn.MultiheadAttention(d_model, num_heads, dropout=dropout, batch_first=True)
        self.norm1 = nn.LayerNorm(d_model)
        self.norm2 = nn.LayerNorm(d_model)
        self.dropout1 = nn.Dropout(dropout, inplace=False)
        self.dropout2 = nn.Dropout(dropout, inplace=False)
        self.ffn = nn.Sequential(nn.Linear(d_model, dim_ffn), nn.ReLU(), nn.Dropout(dropout, inplace=False), nn.Linear(dim_ffn, d_model))

    def with_pos_embed(self, tensor, pos=None):
        return tensor if pos is None else tensor + pos

    def forward(self, kpt_query):
        kpt_query2 = self.norm1(kpt_query)
        kpt_query2, _ = self.self_attn(kpt_query2, kpt_query2, value=kpt_query2)
        kpt_query = kpt_query + self.dropout1(kpt_query2)
        kpt_query2 = self.norm2(kpt_query)
        kpt_query2 = self.ffn(kpt_query2)
        kpt_query = kpt_query + self.dropout2(kpt_query2)
        return kpt_query

class SelfAttnLayer(nn.Module):

    def __init__(self, cfg):
        super().__init__()
        self.block_num = cfg.block_num
        self.d_model = cfg.d_model
        self.num_head = cfg.num_head
        self.dim_ffn = cfg.dim_ffn
        self.attn_blocks = nn.ModuleList()
        for i in range(self.block_num):
            self.attn_blocks.append(SelfAttnBlock(d_model=self.d_model, num_heads=self.num_head, dim_ffn=self.dim_ffn, dropout=0.0, dropout_attn=None))

    def forward(self, batch_kpt_query):
        """
        Args:
            batch_kpt_query: b, kpt_num, dim
            
        Returns:
            batch_kpt_query: b, kpt_num, dim
        """
        for i in range(self.block_num):
            batch_kpt_query = self.attn_blocks[i](batch_kpt_query)
        return batch_kpt_query


class Config:
    def __init__(self, block_num, d_model, num_head, dim_ffn):
        self.block_num = block_num
        self.d_model = d_model
        self.num_head = num_head
        self.dim_ffn = dim_ffn


INIT_ARGS = {
    'cfg': Config(block_num=2, d_model=4, num_head=2, dim_ffn=8)
}

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

if __name__ == '__main__':
    model = SelfAttnLayer(**INIT_ARGS)
    output = model(**ARGS)
    print(f"Output shape: {output.shape}")
    print(f"Expected shape: {ARGS['batch_kpt_query'].shape}")
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, shape (2, 3, 4) — shape (2, 3, 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: torch and numpy seeded to 0 by the harness immediately before the class was constructed from INIT_ARGS (fixture_check.py)
generate_augmentation Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
chrislin0621/CleanPose/model/Net.py
code served (permissive licence) · get_code("7abe78c69907e9f2")
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) and returned tuple. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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)

ARGS = {
    "batchsize": 2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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: none by the harness; any seed is in the setup block
FrontDoorEncoder Not yet run
unverified (harvested, no recorded run)
chrislin0621/CleanPose/model/Net.py
code served (permissive licence) · get_code("b83475c102ca6c28")
How it ran

no invocation recorded.

GeometricAwareFeatureAggregator Not yet run
unverified (harvested, no recorded run)
chrislin0621/CleanPose/model/Net.py
code served (permissive licence) · get_code("7fe233dbe547a481")
How it ran

no invocation recorded.

InstanceAdaptiveKeypointDetector Not yet run
unverified (harvested, no recorded run)
chrislin0621/CleanPose/model/Net.py
code served (permissive licence) · get_code("d2a9de8ed92d97cf")
How it ran

no invocation recorded.

Net Not yet run
unverified (harvested, no recorded run)
chrislin0621/CleanPose/model/Net.py
code served (permissive licence) · get_code("b6f7131d7ccfefee")
How it ran

no invocation recorded.

PointNet2MSG Not yet run
unverified (harvested, no recorded run)
chrislin0621/CleanPose/model/Net.py
code served (permissive licence) · get_code("f1985e166d40ab54")
How it ran

no invocation recorded.

PointnetFPModule Not yet run
unverified (harvested, no recorded run)
chrislin0621/CleanPose/model/Net.py
code served (permissive licence) · get_code("efc0a4da7f1b4bd8")
How it ran

no invocation recorded.

PointnetSAModuleMSG Not yet run
unverified (harvested, no recorded run)
chrislin0621/CleanPose/model/Net.py
code served (permissive licence) · get_code("5bb52eaf3a735b3a")
How it ran

no invocation recorded.

PoseSizeEstimator Not yet run
unverified (harvested, no recorded run)
chrislin0621/CleanPose/model/Net.py
code served (permissive licence) · get_code("30c3e14c39143ee1")
How it ran

no invocation recorded.

Also present in other papers' code

Of 15 samples lifted from this paper's linked repositories, 15 carry a function identity and 0 do not. Of the 15 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 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.

FunctionAlso present inEarliest-datedOthers named
PointNet2MSG
brick of this paper's assembly: helper
2 other papers
2 dated earlier
2207.05444 (2022-07)
Category-Level 6D Object Pose and Size Estimation using Self-Supervised Deep Prior Deformation Networks
2303.13479 (2023-03)
IST-Net: Prior-free Category-level Pose Estimation with Implicit Space Transformation
PointnetSAModuleMSG
brick of this paper's assembly: helper
2 other papers
2 dated earlier · 1 only as an assembly brick
2207.05444 (2022-07)
Category-Level 6D Object Pose and Size Estimation using Self-Supervised Deep Prior Deformation Networks
2303.13479 (2023-03)
IST-Net: Prior-free Category-level Pose Estimation with Implicit Space Transformation
PointnetFPModule
brick of this paper's assembly: helper
1 other paper
1 dated earlier
2207.05444 (2022-07)
Category-Level 6D Object Pose and Size Estimation using Self-Supervised Deep Prior Deformation Networks

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

In the effort to achieve robust and generalizable categorylevel object pose estimation, recent methods primarily focus on learning fundamental representations from data. However, the inherent biases within the data are often overlooked: the repeated training samples and similar environments may mislead the models to over-rely on specific patterns, hindering models' performance on novel instances. In this paper, we present CleanPose, a novel method that mitigates the data biases to enhance categorylevel pose estimation by integrating causal learning and knowledge distillation. By incorporating key causal variables (structural information and hidden confounders) into causal modeling, we propose the causal inference module based on front-door adjustment, which promotes unbiased estimation by reducing potential spurious correlations. Additionally, to further confront the data bias at the feature level, we devise a residual-based knowledge distillation approach to transfer unbiased semantic knowledge from 3D foundation model, providing comprehensive causal supervision. Extensive experiments across multiple benchmarks (REAL275, CAMERA25 and HouseCat6D) hightlight the superiority of proposed CleanPose over stateof-the-art methods. Code will be available at https: //github.com/chrislin0621/CleanPose.

For agents

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

get_harvested_code_for_paper("2502.01312")
get_code_for_paper("2502.01312")
have("2502.01312")

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

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

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

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

Connect an agent — have() is free.