SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2304.11327 · NeurIPS · 2023

Understanding and Improving Feature Learning for Out-of-Distribution Generalization

Bo Han, Kaiwen Zhou, James Cheng, Yatao Bian, Wei Huang, Yongqiang Chen

arXiv · PDF · Open in the Atlas

Code that ran

3 of 6 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; 1 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 1 failure of our instrument; 3 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/2304.11327.json · badge: /api/ran/2304.11327.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
pytorch/captum canonical (classifier label)
classifier basis: census
3 ran · 3 no recorded run
FunctionStatusWhere it lives
apply_gradient_requirements Ran
ran, violated the contract we drafted
pytorch/captum/captum/_utils/gradient.py
pointer only (licence: BSD-3-Clause); the stored copy get_code serves, from hsaest/Agent-Planning-Analysis, is pointer only (licence: NONE) · get_code("5a2b42df4b995db6")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (BSD-3-Clause), but get_code serves the stored copy, first harvested from hsaest/Agent-Planning-Analysis, and GitHub detected no licence in that repository 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.

parse_version Ran
ran, honoured the contract we drafted
pytorch/captum/captum/_utils/common.py
pointer only (licence: BSD-3-Clause); the stored copy get_code serves, from hsaest/Agent-Planning-Analysis, is pointer only (licence: NONE) · get_code("25d60f9ffaab0b57")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (BSD-3-Clause), but get_code serves the stored copy, first harvested from hsaest/Agent-Planning-Analysis, and GitHub detected no licence in that repository 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.

safe_div Ran
ran; our contract draft was wrong, not the code
pytorch/captum/captum/_utils/common.py
pointer only (licence: BSD-3-Clause); the stored copy get_code serves, from hsaest/Agent-Planning-Analysis, is pointer only (licence: NONE) · get_code("0e5cf30aeea28b18")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (BSD-3-Clause), but get_code serves the stored copy, first harvested from hsaest/Agent-Planning-Analysis, and GitHub detected no licence in that repository 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.

compute_gradients Not yet run
unverified (harvested, no recorded run)
pytorch/captum/captum/_utils/gradient.py
pointer only (licence: BSD-3-Clause); the stored copy get_code serves, from hsaest/Agent-Planning-Analysis, is pointer only (licence: NONE) · get_code("3102f2fd6c8bff3d")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (BSD-3-Clause), but get_code serves the stored copy, first harvested from hsaest/Agent-Planning-Analysis, and GitHub detected no licence in that repository 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.

compute_layer_gradients_and_eval Not yet run
unverified (harvested, no recorded run)
pytorch/captum/captum/_utils/gradient.py
pointer only (licence: BSD-3-Clause); the stored copy get_code serves, from hsaest/Agent-Planning-Analysis, is pointer only (licence: NONE) · get_code("0841c88ad916c6ee")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (BSD-3-Clause), but get_code serves the stored copy, first harvested from hsaest/Agent-Planning-Analysis, and GitHub detected no licence in that repository 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.

progress Not yet run
unverified (harvested, no recorded run)
pytorch/captum/captum/_utils/progress.py
pointer only (licence: BSD-3-Clause); the stored copy get_code serves, from hsaest/Agent-Planning-Analysis, is pointer only (licence: NONE) · get_code("7dde11be93a92ca2")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (BSD-3-Clause), but get_code serves the stored copy, first harvested from hsaest/Agent-Planning-Analysis, and GitHub detected no licence in that repository 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 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 6 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 6 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
apply_gradient_requirements 2 other papers
1 dated earlier, 1 later
2010.12697 (2020-10)
Investigating Saturation Effects in Integrated Gradients
2410.12409 (2024-10)
Revealing the Barriers of Language Agents in Planning
parse_version 2 other papers
1 dated earlier, 1 later
2010.12697 (2020-10)
Investigating Saturation Effects in Integrated Gradients
2410.12409 (2024-10)
Revealing the Barriers of Language Agents in Planning
safe_div 2 other papers
1 dated earlier, 1 later
2010.12697 (2020-10)
Investigating Saturation Effects in Integrated Gradients
2410.12409 (2024-10)
Revealing the Barriers of Language Agents in Planning
compute_gradients 1 other paper
1 later
2410.12409 (2024-10)
Revealing the Barriers of Language Agents in Planning
compute_layer_gradients_and_eval 1 other paper
1 later
2410.12409 (2024-10)
Revealing the Barriers of Language Agents in Planning
progress 1 other paper
1 later
2410.12409 (2024-10)
Revealing the Barriers of Language Agents in Planning

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 common explanation for the failure of out-of-distribution (OOD) generalization is that the model trained with empirical risk minimization (ERM) learns spurious features instead of invariant features. However, several recent studies challenged this explanation and found that deep networks may have already learned sufficiently good features for OOD generalization. Despite the contradictions at first glance, we theoretically show that ERM essentially learns both spurious and invariant features, while ERM tends to learn spurious features faster if the spurious correlation is stronger. Moreover, when fed the ERM learned features to the OOD objectives, the invariant feature learning quality significantly affects the final OOD performance, as OOD objectives rarely learn new features. Therefore, ERM feature learning can be a bottleneck to OOD generalization. To alleviate the reliance, we propose Feature Augmented Training (FeAT), to enforce the model to learn richer features ready for OOD generalization. FeAT iteratively augments the model to learn new features while retaining the already learned features. In each round, the retention and augmentation operations are performed on different subsets of the training data that capture distinct features. Extensive experiments show that FeAT effectively learns richer features thus boosting the performance of various OOD objectives 1 .

For agents

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

get_harvested_code_for_paper("2304.11327")
get_code_for_paper("2304.11327")
have("2304.11327")

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

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

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

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

Connect an agent — have() is free.