SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.06163 · NeurIPS · 2024

Markov Equivalence and Consistency in Differentiable Structure Learning

Pradeep Ravikumar, Bryon Aragam, Kevin Bello, Chang Deng

arXiv · PDF · Open in the Atlas

Code that ran

4 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; 4 failures of our instrument; 3 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/2410.06163.json · badge: /api/ran/2410.06163.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
Scriddie/Varsortability canonical (classifier label)
classifier basis: census
3 ran · 2 no recorded run
xunzheng/notears reimplementation (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
copy not recorded community
not in the paper's declared repositories
0 ran · 1 no recorded run
FunctionStatusWhere it lives
coefficient_based_order Ran
ran; our contract draft was wrong, not the code
Scriddie/Varsortability/src/chain_orientation.py
code served (permissive licence) · get_code("c2ba12495ea1e34a")
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 str. 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

# Create a small sample dataset
# The function expects Xin to be a 2D array where:
# - rows are samples
# - columns are features
# We'll use shape (5, 4) to have multiple samples and features

np.random.seed(0)
Xin = np.random.randn(5, 4)

ARGS = {
    'Xin': Xin,
    'coinflipifundecided': True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
regcoeffs Ran
ran; our contract draft was wrong, not the code
Scriddie/Varsortability/src/chain_orientation_three_vars_symbolic.py
code served (permissive licence) · get_code("ee404575ddaf526d")
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, ndim 1, 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.

from sympy import symbols
from sympy.stats import Normal

# Create symbolic random variables
x = Normal('x', 0, 1)
y = Normal('y', 0, 1)
z = Normal('z', 0, 1)

ARGS = {
    'x': x,
    'y': y,
    'z': z
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
sympy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple 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
squared_loss Ran
ran; our contract draft was wrong, not the code
xunzheng/notears/notears/nonlinear.py
code served (permissive licence) · get_code("c60cc034e8957e26")
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 Tensor, ndim 0, dtype family float, shape () 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

torch.manual_seed(0)

# Create small tensors for output and target
# output: model predictions, shape (batch_size, feature_dim)
# target: ground truth labels, same shape as output
batch_size = 2
feature_dim = 4

output = torch.randn(batch_size, feature_dim)
target = torch.randn(batch_size, feature_dim)

ARGS = {
    "output": output,
    "target": target,
}
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 Tensor, ndim 0, dtype family float, shape () — shape () 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
variance_based_order Ran
ran; our contract draft was wrong, not the code
Scriddie/Varsortability/src/chain_orientation.py
code served (permissive licence) · get_code("7976785b32d28df1")
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 str. 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

# Create a small numpy array with distinct dimensions
# The function calls X.var(0, keepdims=True) and compares variances
# We need at least 2 rows and some columns to get meaningful variance differences
X = np.array([
    [1.0, 2.0, 3.0, 4.0],
    [1.1, 2.5, 3.2, 4.1],
    [1.2, 3.0, 3.5, 4.2]
], dtype=np.float32)

ARGS = {
    'X': X,
    'coinflipifundecided': True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
notears_linear Not yet run
unverified (harvested, no recorded run)
this paper's copy was not recorded; identical code first harvested from xunzheng/notears
pointer only · get_code("8121d0e3bc3faff7")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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.

sortnregress Not yet run
unverified (harvested, no recorded run)
Scriddie/Varsortability/src/sortnregress.py
code served (permissive licence) · get_code("ac90314a0b2a1492")
How it ran

no invocation recorded. this sample carries JSON test cases instead of a setup block; get_reference_implementation serves them with the level they back.

varsortability Not yet run
unverified (harvested, no recorded run)
Scriddie/Varsortability/src/varsortability.py
code served (permissive licence) · get_code("82949ad32ef09d09")
How it ran

no invocation recorded. this sample carries JSON test cases instead of a setup block; get_reference_implementation serves them with the level they back.

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, 6 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 0 the same month, 2 later) and 1 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
notears_linear 8 other papers
7 dated earlier, 1 later
1803.01422 (2018-03)
DAGs with NO TEARS: Continuous Optimization for Structure Learning
1909.13189 (2019-09)
Learning Sparse Nonparametric DAGs
2006.10201 (2020-06)
On the Role of Sparsity and DAG Constraints for Learning Linear DAGs
and 5 more not named here
squared_loss 8 other papers
6 dated earlier, 2 later · 1 only as an assembly brick
1909.13189 (2019-09)
Learning Sparse Nonparametric DAGs
2105.02522 (2021-05)
Neural graphical modelling in continuous-time: consistency guarantees and algorithms
2106.01474 (2021-06)
Testing Directed Acyclic Graph via Structural, Supervised and Generative Adversarial Learning
and 5 more not named here
sortnregress 2 other papers
2 dated earlier
2102.13647 (2021-02)
Beware of the Simulated DAG! Causal Discovery Benchmarks May Be Easy To Game
2303.18211 (2023-03)
A Scale-Invariant Sorting Criterion to Find a Causal Order in Additive Noise Models
coefficient_based_order 1 other paper
1 dated earlier
2102.13647 (2021-02)
Beware of the Simulated DAG! Causal Discovery Benchmarks May Be Easy To Game
variance_based_order 1 other paper
1 dated earlier
2102.13647 (2021-02)
Beware of the Simulated DAG! Causal Discovery Benchmarks May Be Easy To Game
varsortability 1 other paper
1 dated earlier
2102.13647 (2021-02)
Beware of the Simulated DAG! Causal Discovery Benchmarks May Be Easy To Game

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

Existing approaches to differentiable structure learning of directed acyclic graphs (DAGs) rely on strong identifiability assumptions in order to guarantee that global minimizers of the acyclicity-constrained optimization problem identifies the true DAG. Moreover, it has been observed empirically that the optimizer may exploit undesirable artifacts in the loss function. We explain and remedy these issues by studying the behaviour of differentiable acyclicity-constrained programs under general likelihoods with multiple global minimizers. By carefully regularizing the likelihood, it is possible to identify the sparsest model in the Markov equivalence class, even in the absence of an identifiable parametrization or even faithfulness. We first study the Gaussian case in detail, showing how proper regularization of the likelihood defines a score that identifies the sparsest model. These results are then generalized to general models and likelihoods, where the same claims hold. Furthermore, under standard faithfulness assumptions, our approach also recovers the Markov equivalence class. These theoretical results are validated empirically, showing how this can be done using standard gradient-based optimizers, thus paving the way for differentiable structure learning under general models and losses.

For agents

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

get_harvested_code_for_paper("2410.06163")
get_code_for_paper("2410.06163")
have("2410.06163")

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

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

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

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

Connect an agent — have() is free.