SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2403.08649 · 2024

A Causal Inspired Early-Branching Structure for Domain Generalization

arXiv · PDF · Open in the Atlas

Code that ran

11 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; 3 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 8 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/2403.08649.json · badge: /api/ran/2403.08649.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
liangchen527/causeb canonical (classifier label)
classifier basis: census
10 ran · 4 no recorded run
copy not recorded community
not in the paper's declared repositories
1 ran · 0 no recorded run
FunctionStatusWhere it lives
conv3x3 Ran
ran; our contract draft was wrong, not the code
liangchen527/causeb/domainbed/lib/wide_resnet.py
pointer only (licence: NONE); the stored copy get_code serves, from DaikiTanak/manifold_mixup, is pointer only (licence: NONE) · get_code("00e569acd6b45ef0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, liangchen527/causeb 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_test_records Ran
ran; our contract draft was wrong, not the code
liangchen527/causeb/domainbed/model_selection.py
pointer only (licence: NONE) · get_code("53fac8d8d949e72b")
How it ran

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

hashable Ran
ran, honoured the contract we drafted
liangchen527/causeb/domainbed/lib/query.py
pointer only (licence: NONE) · get_code("71a3a61ceed99bf3")
How it ran

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

kernelMatrixGaussian Ran
ran; our contract draft was wrong, not the code
liangchen527/causeb/domainbed/hsic.py
pointer only (licence: NONE); the stored copy get_code serves, from liangchen527/RIDG, is pointer only (licence: NONE) · get_code("160bb5f66cd8558e")
How it ran

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

kernelMatrixLinear Ran
ran; our contract draft was wrong, not the code
liangchen527/causeb/domainbed/hsic.py
pointer only (licence: NONE); the stored copy get_code serves, from liangchen527/RIDG, is pointer only (licence: NONE) · get_code("9ff5c4ac3b4e9b35")
How it ran

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

l2_between_dicts Ran
ran, honoured the contract we drafted
liangchen527/causeb/domainbed/lib/misc.py
pointer only (licence: NONE) · get_code("8ac821ad6e7b6d96")
How it ran

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

make_selector_fn Ran
ran; our contract draft was wrong, not the code
liangchen527/causeb/domainbed/lib/query.py
pointer only (licence: NONE) · get_code("2f8af5779e1edcb6")
How it ran

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

make_weights_for_balanced_classes Ran
ran, honoured the contract we drafted
liangchen527/causeb/domainbed/lib/misc.py
pointer only (licence: NONE) · get_code("5f576ed342c48a0a")
How it ran

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

pairwise_distances Ran
ran; our contract draft was wrong, not the code
liangchen527/causeb/domainbed/hsic.py
pointer only (licence: NONE); the stored copy get_code serves, from liangchen527/RIDG, is pointer only (licence: NONE) · get_code("21bf8deeec959d90")
How it ran

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

remove_batch_norm_from_resnet Ran
ran; our contract draft was wrong, not the code
liangchen527/causeb/domainbed/networks.py
pointer only (licence: NONE) · get_code("196cab71d7129d62")
How it ran

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

stage_path Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from hlzhang109/ddg
pointer only · get_code("c631ff42fed59f21")
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. A run is recorded.

Featurizer_OTHMix Not yet run
unverified (harvested, no recorded run)
liangchen527/causeb/domainbed/networks.py
pointer only (licence: NONE) · get_code("9ef5244f56f6348e")
How it ran

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

get_dataset_class Not yet run
unverified (harvested, no recorded run)
liangchen527/causeb/domainbed/datasets.py
pointer only (licence: NONE) · get_code("d0ea85d74c20dea9")
How it ran

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

num_environments Not yet run
unverified (harvested, no recorded run)
liangchen527/causeb/domainbed/datasets.py
pointer only (licence: NONE) · get_code("73f32252eedba6a4")
How it ran

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

print_row Not yet run
unverified (harvested, no recorded run)
liangchen527/causeb/domainbed/lib/misc.py
pointer only (licence: NONE) · get_code("af3c9a80c8fd1f7a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, liangchen527/causeb 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 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, 15 are also present in other papers whose code we hold (15 with at least one paper dated earlier, 2 the same month, 11 later) and 0 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
conv3x3 74 other papers
54 dated earlier, 3 the same month, 16 later, 1 same year, order not determinable · 5 only as an assembly brick
1605.07146 (2016-05)
Wide Residual Networks
1707.01629 (2017-07)
Dual Path Networks
1802.05668 (2018-02)
Model compression via distillation and quantization
and 71 more not named here
remove_batch_norm_from_resnet 23 other papers
19 dated earlier, 4 later
1907.02893 (2019-07)
Invariant Risk Minimization
2106.02266 (2021-06)
SAND-mask: An Enhanced Gradient Masking Strategy for the Discovery of Invariances in Domain Generalization
2111.12853 (2021-11)
Domain Prompt Learning for Efficiently Adapting CLIP to Unseen Domains
and 20 more not named here
get_test_records 22 other papers
19 dated earlier, 3 later
1710.03077 (2017-10)
Deeper, Broader and Artier Domain Generalization
1907.02893 (2019-07)
Invariant Risk Minimization
2106.02266 (2021-06)
SAND-mask: An Enhanced Gradient Masking Strategy for the Discovery of Invariances in Domain Generalization
and 19 more not named here
get_dataset_class 21 other papers
19 dated earlier, 2 later
1907.02893 (2019-07)
Invariant Risk Minimization
2007.01434 (2020-07)
In Search of Lost Domain Generalization
2106.02266 (2021-06)
SAND-mask: An Enhanced Gradient Masking Strategy for the Discovery of Invariances in Domain Generalization
and 18 more not named here
num_environments 21 other papers
17 dated earlier, 1 the same month, 3 later
1907.02893 (2019-07)
Invariant Risk Minimization
2007.01434 (2020-07)
In Search of Lost Domain Generalization
2106.02266 (2021-06)
SAND-mask: An Enhanced Gradient Masking Strategy for the Discovery of Invariances in Domain Generalization
and 18 more not named here
hashable 20 other papers
17 dated earlier, 3 later
2106.02266 (2021-06)
SAND-mask: An Enhanced Gradient Masking Strategy for the Discovery of Invariances in Domain Generalization
2111.12853 (2021-11)
Domain Prompt Learning for Efficiently Adapting CLIP to Unseen Domains
2203.10789 (2022-03)
Domain Generalization by Mutual-Information Regularization with Pre-trained Models
and 17 more not named here
make_selector_fn 20 other papers
17 dated earlier, 3 later
2106.02266 (2021-06)
SAND-mask: An Enhanced Gradient Masking Strategy for the Discovery of Invariances in Domain Generalization
2111.12853 (2021-11)
Domain Prompt Learning for Efficiently Adapting CLIP to Unseen Domains
2203.10789 (2022-03)
Domain Generalization by Mutual-Information Regularization with Pre-trained Models
and 17 more not named here
make_weights_for_balanced_classes 18 other papers
15 dated earlier, 3 later
1907.02893 (2019-07)
Invariant Risk Minimization
2106.02266 (2021-06)
SAND-mask: An Enhanced Gradient Masking Strategy for the Discovery of Invariances in Domain Generalization
2111.12853 (2021-11)
Domain Prompt Learning for Efficiently Adapting CLIP to Unseen Domains
and 15 more not named here
print_row 11 other papers
10 dated earlier, 1 later
1907.02893 (2019-07)
Invariant Risk Minimization
2106.02266 (2021-06)
SAND-mask: An Enhanced Gradient Masking Strategy for the Discovery of Invariances in Domain Generalization
2111.12853 (2021-11)
Domain Prompt Learning for Efficiently Adapting CLIP to Unseen Domains
and 8 more not named here
stage_path 5 other papers
3 dated earlier, 2 later
1710.03077 (2017-10)
Deeper, Broader and Artier Domain Generalization
2106.03721 (2021-06)
OoD-Bench: Quantifying and Understanding Two Dimensions of Out-of-Distribution Generalization
2111.13839 (2021-11)
Towards Principled Disentanglement for Domain Generalization
and 2 more not named here
kernelMatrixGaussian 3 other papers
2 dated earlier, 1 same year, order not determinable
2305.14428 (2023-05)
Prompting Language-Informed Distribution for Compositional Zero-Shot Learning
2308.11158 (2023-08)
Domain Generalization via Rationale Invariance
02160 (2024 (year only))
Prompting Language-Informed Distribution for Compositional Zero-Shot Learning
kernelMatrixLinear 3 other papers
2 dated earlier, 1 same year, order not determinable
2305.14428 (2023-05)
Prompting Language-Informed Distribution for Compositional Zero-Shot Learning
2308.11158 (2023-08)
Domain Generalization via Rationale Invariance
02160 (2024 (year only))
Prompting Language-Informed Distribution for Compositional Zero-Shot Learning
pairwise_distances 3 other papers
2 dated earlier, 1 same year, order not determinable
2305.14428 (2023-05)
Prompting Language-Informed Distribution for Compositional Zero-Shot Learning
2308.11158 (2023-08)
Domain Generalization via Rationale Invariance
02160 (2024 (year only))
Prompting Language-Informed Distribution for Compositional Zero-Shot Learning
Featurizer_OTHMix 2 other papers
1 dated earlier, 1 later
2308.11158 (2023-08)
Domain Generalization via Rationale Invariance
2410.17020 (2024-10)
LFME: A Simple Framework for Learning from Multiple Experts in Domain Generalization
l2_between_dicts 1 other paper
1 dated earlier
2308.11158 (2023-08)
Domain Generalization via Rationale Invariance

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

Learning domain-invariant semantic representations is crucial for achieving domain generalization (DG), where a model is required to perform well on unseen target domains. One critical challenge is that standard training often results in entangled semantic and domain-specific features. Previous works suggest formulating the problem from a causal perspective and solving the entanglement problem by enforcing marginal independence between the causal (\ie semantic) and non-causal (\ie domain-specific) features. Despite its simplicity, the basic marginal independent-based idea alone may be insufficient to identify the causal feature. By d-separation, we observe that the causal feature can be further characterized by being independent of the domain conditioned on the object, and we propose the following two strategies as complements for the basic framework. First, the observation implicitly implies that for the same object, the causal feature should not be associated with the non-causal feature, revealing that the common practice of obtaining the two features with a shared base feature extractor and two lightweight prediction heads might be inappropriate. To meet the constraint, we propose a simple early-branching structure, where the causal and non-causal feature obtaining branches share the first few blocks while diverging thereafter, for better structure design; Second, the observation implies that the causal feature remains invariant across different domains for the same object. To this end, we suggest that augmentation should be incorporated into the framework to better characterize the causal feature, and we further suggest an effective random domain sampling scheme to fulfill the task. Theoretical and experimental results show that the two strategies are beneficial for the basic marginal independent-based framework. Code is available at \url{https://github.com/liangchen527/CausEB}.

For agents

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

get_harvested_code_for_paper("2403.08649")
get_code_for_paper("2403.08649")
have("2403.08649")

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

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

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

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

Connect an agent — have() is free.