SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2310.15709 · 2023

Causal Representation Learning Made Identifiable by Grouping of Observational Variables

arXiv · PDF · Open in the Atlas

Code that ran

6 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 0 have no contract verdict; 6 failures of our instrument; 1 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/2310.15709.json · badge: /api/ran/2310.15709.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
hmorioka/gcarl canonical (classifier label)
classifier basis: census
6 ran · 1 no recorded run
FunctionStatusWhere it lives
gen_net Ran
ran; our contract draft was wrong, not the code
hmorioka/gcarl/subfunc/generate_dataset.py
code served (permissive licence) · get_code("aadafdde9f61d6f7")
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 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 numpy as np
from scipy.special import comb
from itertools import combinations

# Analyze the function signature and body to determine parameter types and reasonable values
num_group = 3  # number of groups
num_dim = 4    # number of variables in a single group

# The function uses these ranges to sample values - they should be [min, max] pairs
lam1_range = [0.5, 1.5]
lam2_range = [0.5, 1.5]
lamin1_range = [0.5, 1.5]
lamin2_range = [0.5, 1.5]

# These control sparsity of the generated adjacency matrices
num_neighbor = 2  # number of neighbors for inter-group connections
num_neighbor_in = 1  # number of neighbors for intra-group connections

# num_latent can be None or an integer less than num_dim
num_latent = None

# Boolean flag for normalization
norm_by_num_parents = True

# Random seed for reproducibility
random_seed = 42

ARGS = {
    'num_group': num_group,
    'num_dim': num_dim,
    'lam1_range': lam1_range,
    'lam2_range': lam2_range,
    'lamin1_range': lamin1_range,
    'lamin2_range': lamin2_range,
    'num_neighbor': num_neighbor,
    'num_neighbor_in': num_neighbor_in,
    'num_latent': num_latent,
    'norm_by_num_parents': norm_by_num_parents,
    'random_seed': random_seed,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — 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
gen_net_dag Ran
ran; our contract draft was wrong, not the code
hmorioka/gcarl/subfunc/generate_dataset.py
code served (permissive licence) · get_code("8cc11b69747da417")
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 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 numpy as np
from scipy.special import comb
from itertools import combinations

# Set random seed for reproducibility
np.random.seed(0)

# Define arguments for gen_net_dag function
ARGS = {
    'num_group': 3,
    'num_dim': 4,
    'lam1_range': [0.5, 1.5],
    'lam2_range': [0.5, 1.5],
    'lamin1_range': [0.5, 1.5],
    'lamin2_range': [0.5, 1.5],
    'num_neighbor': 2,
    'num_neighbor_in': 1,
    'num_neighbor_in_max': 2,
    'norm_by_num_parents': True,
    'random_seed': 42,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — 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
make_cost_matrix Ran
ran; our contract draft was wrong, not the code
hmorioka/gcarl/subfunc/munkres.py
code served (permissive licence) · get_code("60f32cea809132df")
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 list, ndim 2, dtype family int; 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 sys

# Simple profit matrix - 3x4 matrix of profit values
profit_matrix = [
    [10, 20, 30, 40],
    [15, 25, 35, 45],
    [12, 22, 32, 42]
]

# Inversion function that converts profit to cost
# Using a simple approach: max_value - profit
inversion_function = lambda x: 100 - x

ARGS = {
    "profit_matrix": profit_matrix,
    "inversion_function": inversion_function
}
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 list, ndim 2, dtype family int — a list output has no array shape of its own; none is stated
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
w_permute Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
hmorioka/gcarl/gcarl/utils.py
code served (permissive licence) · get_code("2e4e71a1d5589fc8")
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 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 numpy as np
from itertools import combinations

# Set random seed for reproducibility
np.random.seed(0)

# Define dimensions
num_dim = 4
num_group = 3

# Calculate number of group combinations: C(3,2) = 3
group_combs = list(combinations(np.arange(num_group), 2))
num_combs = len(group_combs)  # This will be 3

# Create w: [dim, dim, 2, group-pair]
# Shape: [4, 4, 2, 3]
w = np.random.randn(num_dim, num_dim, 2, num_combs)

# Create sort_idx: [dim, group]
# Shape: [4, 3]
# Each column contains a permutation of indices 0-3
sort_idx = np.array([
    [0, 1, 2],
    [1, 2, 3],
    [2, 3, 0],
    [3, 0, 1]
], dtype=int)

# num_group is already defined as 3

# Create win (optional): [dim, dim, group]
# Shape: [4, 4, 3]
win = np.random.randn(num_dim, num_dim, num_group)

ARGS = {
    'w': w,
    'sort_idx': sort_idx,
    'num_group': num_group,
    'win': win
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — 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
w_threshold Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
hmorioka/gcarl/gcarl/utils.py
code served (permissive licence) · get_code("3a09c60e4da6bd1b")
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 ndarray, ndim 4, dtype family float, shape (4, 4, 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 numpy as np

# Create a small 4D numpy array with shape [dim, dim, 2, group-pair]
# Using distinct sizes: 4 for dim, 2 for the third dimension, 3 for group-pair
w = np.random.randn(4, 4, 2, 3)

# Define ARGS dict with all parameters
ARGS = {
    "w": w,
    "thresh_ratio": 0.5,
    "comb_wise": False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 4, dtype family float, shape (4, 4, 2, 3) — shape (4, 4, 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: none by the harness; any seed is in the setup block
w_to_directed Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
hmorioka/gcarl/gcarl/utils.py
code served (permissive licence) · get_code("8e9723eeb23e5649")
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 ndarray, ndim 4, dtype family float, shape (4, 4, 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 numpy as np

# Create a small valid w array with shape [dim, dim, 2, group-pair]
# dim=4, group-pair=3
dim = 4
num_comb = 3
w = np.random.randn(dim, dim, 2, num_comb) * 0.5

ARGS = {
    "w": w,
    "zero_tolerance": 1e-10,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 4, dtype family float, shape (4, 4, 2, 3) — shape (4, 4, 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: none by the harness; any seed is in the setup block
generate_dataset Not yet run
unverified (harvested, no recorded run)
hmorioka/gcarl/subfunc/generate_dataset.py
code served (permissive licence) · get_code("e819903465fc4d8e")
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, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 1 the same month, 1 later) and 6 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
make_cost_matrix 8 other papers
3 dated earlier, 1 the same month, 4 later · 2 only as an assembly brick
2007.10930 (2020-07)
Towards Nonlinear Disentanglement in Natural Data with Temporal Sparse Coding
2206.02416 (2022-06)
Embrace the Gap: VAEs Perform Independent Mechanism Analysis
2210.13647 (2022-10)
Temporally Disentangled Representation Learning
and 5 more not named here

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

A topic of great current interest is Causal Representation Learning (CRL), whose goal is to learn a causal model for hidden features in a data-driven manner. Unfortunately, CRL is severely ill-posed since it is a combination of the two notoriously ill-posed problems of representation learning and causal discovery. Yet, finding practical identifiability conditions that guarantee a unique solution is crucial for its practical applicability. Most approaches so far have been based on assumptions on the latent causal mechanisms, such as temporal causality, or existence of supervision or interventions; these can be too restrictive in actual applications. Here, we show identifiability based on novel, weak constraints, which requires no temporal structure, intervention, nor weak supervision. The approach is based on assuming the observational mixing exhibits a suitable grouping of the observational variables. We also propose a novel self-supervised estimation framework consistent with the model, prove its statistical consistency, and experimentally show its superior CRL performances compared to the state-of-the-art baselines. We further demonstrate its robustness against latent confounders and causal cycles.

For agents

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

get_harvested_code_for_paper("2310.15709")
get_code_for_paper("2310.15709")
have("2310.15709")

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

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

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

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

Connect an agent — have() is free.