SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2405.04715 · 2024

Causality Pursuit from Heterogeneous Environments via Neural Adversarial Invariance Learning

arXiv · PDF · Open in the Atlas

Code that ran

19 of 23 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; 3 honoured the contract we drafted, 2 violated it and 0 have no contract verdict; 14 failures of our instrument; 4 no recorded run), measured 2026-11-22; 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/2405.04715.json · badge: /api/ran/2405.04715.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
wmyw96/fair canonical (classifier label)
classifier basis: census
19 ran · 4 no recorded run
FunctionStatusWhere it lives
acc Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
wmyw96/fair/app2_waterbird.py
pointer only (licence: NONE) · get_code("d978e9bb19ebe7ef")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wmyw96/fair 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.

bce_loss Ran
ran; our contract draft was wrong, not the code
wmyw96/fair/app2_waterbird.py
pointer only (licence: NONE) · get_code("9a7de74b80f4a1b3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wmyw96/fair 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.

broadcast Ran
ran; our contract draft was wrong, not the code
wmyw96/fair/methods/demo_wrapper.py
pointer only (licence: NONE) · get_code("1200849ad05d7415")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wmyw96/fair 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.

calc_fair_ll_loss Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
wmyw96/fair/methods/brute_force.py
pointer only (licence: NONE) · get_code("8cdeac9fdef41ee1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wmyw96/fair 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.

crop_and_resize Ran
ran; our contract draft was wrong, not the code
wmyw96/fair/dataset_utils.py
pointer only (licence: NONE) · get_code("baa53c8c87dfebf5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wmyw96/fair 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.

get_bootstrap_sample Ran
ran; our contract draft was wrong, not the code
wmyw96/fair/app1_lightchamber.py
pointer only (licence: NONE) · get_code("d65948012ed5d50e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wmyw96/fair 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.

least_squares Ran
ran, violated the contract we drafted
wmyw96/fair/methods/brute_force.py
pointer only (licence: NONE) · get_code("57b0fd8ee21f9a75")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wmyw96/fair 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.

linear_eval_worst_test Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
wmyw96/fair/app1_lightchamber.py
pointer only (licence: NONE) · get_code("d50265a213843089")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wmyw96/fair 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.

misclass Ran
ran, honoured the contract we drafted
wmyw96/fair/app2_waterbird.py
pointer only (licence: NONE) · get_code("1338080004e9cb31")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wmyw96/fair 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.

np_mse Ran
ran, violated the contract we drafted
wmyw96/fair/examples.py
pointer only (licence: NONE) · get_code("63e4a6083777113b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wmyw96/fair 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.

pooled_least_squares Ran
ran, honoured the contract we drafted
wmyw96/fair/methods/brute_force.py
pointer only (licence: NONE) · get_code("27cd28db25f6d08f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wmyw96/fair 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.

pooled_least_squares Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
wmyw96/fair/methods/tools.py
pointer only (licence: NONE) · get_code("56ed97af3ac40ad3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wmyw96/fair 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.

pretty Ran
ran; our contract draft was wrong, not the code
wmyw96/fair/methods/predessors.py
pointer only (licence: NONE); the stored copy get_code serves, from parshakova/IRM_ICP-IC_ERM, is pointer only (licence: NOASSERTION) · get_code("db4d05619d1e83d4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wmyw96/fair 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.

print_prob Ran
ran; our contract draft was wrong, not the code
wmyw96/fair/methods/fair_algo.py
pointer only (licence: NONE) · get_code("1218daa5fb683b49")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wmyw96/fair 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.

sample_gumbel Ran
ran; our contract draft was wrong, not the code
wmyw96/fair/methods/fair_algo.py
pointer only (licence: NONE) · get_code("676c479401247881")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wmyw96/fair 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.

sigmoid Ran
ran, honoured the contract we drafted
wmyw96/fair/methods/fair_algo.py
pointer only (licence: NONE) · get_code("f069ff33169e6799")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wmyw96/fair 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.

split Ran
ran; our contract draft was wrong, not the code
wmyw96/fair/generate_waterbird.py
pointer only (licence: NONE) · get_code("53b88db991b1fee9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wmyw96/fair 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.

standardize Ran
ran; our contract draft was wrong, not the code
wmyw96/fair/app1_lightchamber.py
pointer only (licence: NONE) · get_code("eca91351cf206f3f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wmyw96/fair 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.

torch_mse Ran
ran; our contract draft was wrong, not the code
wmyw96/fair/examples.py
pointer only (licence: NONE) · get_code("fabb695cacbf0ab8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wmyw96/fair 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.

combine_and_mask Not yet run
unverified (harvested, no recorded run)
wmyw96/fair/dataset_utils.py
pointer only (licence: NONE) · get_code("3989528d3ff8483b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wmyw96/fair 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.

mydist Not yet run
unverified (harvested, no recorded run)
wmyw96/fair/methods/demo_wrapper.py
pointer only (licence: NONE) · get_code("2d96c81c0bc1177e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wmyw96/fair 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.

oracle_irm Not yet run
unverified (harvested, no recorded run)
wmyw96/fair/methods/demo_wrapper.py
pointer only (licence: NONE) · get_code("acb4501b200564b3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wmyw96/fair 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.

run_irm Not yet run
unverified (harvested, no recorded run)
wmyw96/fair/methods/irm.py
pointer only (licence: NONE) · get_code("662d39d9bdb55ccb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, wmyw96/fair 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 23 samples lifted from this paper's linked repositories, 23 carry a function identity and 0 do not. Of the 23 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, 1 later) and 20 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
combine_and_mask 4 other papers
2 dated earlier, 2 later
2007.04612 (2020-07)
Concept Bottleneck Models
2310.06161 (2023-10)
Mitigating Simplicity Bias in Deep Learning for Improved OOD Generalization and Robustness
2510.02818 (2025-10)
Mitigating Spurious Correlation via Distributionally Robust Learning with Hierarchical Ambiguity Sets
and 1 more not named here
pretty 3 other papers
3 dated earlier
1907.02893 (2019-07)
Invariant Risk Minimization
2010.16412 (2020-10)
Empirical or Invariant Risk Minimization? A Sample Complexity Perspective
2311.11114 (2023-11)
Environment-Aware Dynamic Graph Learning for Out-of-Distribution Generalization
sample_gumbel 1 other paper
1 dated earlier
1611.01144 (2016-11)
Categorical Reparameterization with Gumbel-Softmax

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-22.

Repositories linked to this paper

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

Abstract

Pursuing causality from data is a fundamental problem in scientific discovery, treatment intervention, and transfer learning. This paper introduces a novel algorithmic method for addressing nonparametric invariance and causality learning in regression models across multiple environments, where the joint distribution of response variables and covariates varies, but the conditional expectations of outcome given an unknown set of quasi-causal variables are invariant. The challenge of finding such an unknown set of quasi-causal or invariant variables is compounded by the presence of endogenous variables that have heterogeneous effects across different environments. The proposed Focused Adversarial Invariant Regularization (FAIR) framework utilizes an innovative minimax optimization approach that drives regression models toward prediction-invariant solutions through adversarial testing. Leveraging the representation power of neural networks, FAIR neural networks (FAIR-NN) are introduced for causality pursuit. It is shown that FAIR-NN can find the invariant variables and quasi-causal variables under a minimal identification condition and that the resulting procedure is adaptive to low-dimensional composition structures in a non-asymptotic analysis. Under a structural causal model, variables identified by FAIR-NN represent pragmatic causality and provably align with exact causal mechanisms under conditions of sufficient heterogeneity. Computationally, FAIR-NN employs a novel Gumbel approximation with decreased temperature and a stochastic gradient descent ascent algorithm. The procedures are demonstrated using simulated and real-data examples.

For agents

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

get_harvested_code_for_paper("2405.04715")
get_code_for_paper("2405.04715")
have("2405.04715")

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

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

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

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

Connect an agent — have() is free.