SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2110.12425 · NeurIPS · 2021

Kernelized Heterogeneous Risk Minimization

Bo Li, Peng Cui, Jiashuo Liu, Zheyuan Hu, Zheyan Shen

arXiv · PDF · Open in the Atlas

Code that ran

12 of 15 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (4 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 0 violated it and 4 have no contract verdict; 6 failures of our instrument; 3 no recorded run); 1 of them was also run on the host, not in the jail, by the peer-agreement lane that set its level, 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/2110.12425.json · badge: /api/ran/2110.12425.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
ljsthu/kernelized-hrm canonical (classifier label)
classifier basis: classifier_2025
12 ran · 3 no recorded run
FunctionStatusWhere it lives
sign Ran
ran, honoured the contract we drafted
ljsthu/kernelized-hrm/KernelHRM_sim2.py
pointer only (licence: NONE) · get_code("3b6283c878822a61")
How it ran

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

Cluster Ran
ran on a synthesized input · constructed an object; no result was computed
ljsthu/kernelized-hrm/KernelHRM_sim1.py
pointer only (licence: NONE) · get_code("bf437be63ede2989")
How it ran

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

LinearRegression Ran
ran on a synthesized input · constructed an object; no result was computed
ljsthu/kernelized-hrm/KernelHRM_sim1.py
pointer only (licence: NONE) · get_code("27ab67ec9210e7b3")
How it ran

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

MLP Ran
ran on a synthesized input · constructed an object; no result was computed
ljsthu/kernelized-hrm/KernelHRM_sim1.py
pointer only (licence: NONE) · get_code("11d0bc2a1914365c")
How it ran

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

OLS Ran
ran on a synthesized input · constructed an object; no result was computed
ljsthu/kernelized-hrm/KernelHRM_sim1.py
pointer only (licence: NONE) · get_code("1c99d2dc9ab7891c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ljsthu/kernelized-hrm 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_num_params Ran
ran, honoured the contract we drafted
ljsthu/kernelized-hrm/KernelHRM_sim1.py
pointer only (licence: NONE) · get_code("19807066944b363c")
How it ran

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

data_generation Ran
ran; our contract draft was wrong, not the code
ljsthu/kernelized-hrm/KernelHRM_sim2.py
pointer only (licence: NONE) · get_code("f70cb7870823be0b")
How it ran

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

generate_data Ran
ran; our contract draft was wrong, not the code
ljsthu/kernelized-hrm/KernelHRM_sim1.py
pointer only (licence: NONE) · get_code("3b4fd708358d370f")
How it ran

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

generate_data_list Ran
ran; our contract draft was wrong, not the code
ljsthu/kernelized-hrm/KernelHRM_sim1.py
pointer only (licence: NONE) · get_code("fd4759ad594a444e")
How it ran

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

generate_data_list Ran
ran; our contract draft was wrong, not the code
ljsthu/kernelized-hrm/KernelHRM_sim1.py
pointer only (licence: NONE) · get_code("d54bbed2b4ddf817")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ljsthu/kernelized-hrm 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
ljsthu/kernelized-hrm/KernelHRM_sim1.py
pointer only (licence: NONE) · get_code("9ca7f76887e2e090")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ljsthu/kernelized-hrm 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
ljsthu/kernelized-hrm/KernelHRM_sim1.py
pointer only (licence: NONE) · get_code("063084ef6602865c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ljsthu/kernelized-hrm 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_NTF Not yet run
unverified (harvested, no recorded run)
ljsthu/kernelized-hrm/KernelHRM_sim1.py
pointer only (licence: NONE) · get_code("23e8900a6cf8f63a")
How it ran

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

generate_data Not yet run
unverified (harvested, no recorded run)
ljsthu/kernelized-hrm/KernelHRM_sim1.py
pointer only (licence: NONE) · get_code("08d53c1a25fc4fe1")
How it ran

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

main_KernelHRM Not yet run
unverified (harvested, no recorded run)
ljsthu/kernelized-hrm/KernelHRM_sim1.py
pointer only (licence: NONE) · get_code("56efc9e5e87bde34")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ljsthu/kernelized-hrm 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 12 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 0 later) and 11 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
sign 1 other paper
1 dated earlier
2105.03818 (2021-05)
Heterogeneous Risk Minimization

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

The ability to generalize under distributional shifts is essential to reliable machine learning, while models optimized with empirical risk minimization usually fail on non-i.i.d testing data. Recently, invariant learning methods for out-of-distribution (OOD) generalization propose to find causally invariant relationships with multienvironments. However, modern datasets are frequently multi-sourced without explicit source labels, rendering many invariant learning methods inapplicable. In this paper, we propose Kernelized Heterogeneous Risk Minimization (KerHRM) algorithm, which achieves both the latent heterogeneity exploration and invariant learning in kernel space, and then gives feedback to the original neural network by appointing invariant gradient direction. We theoretically justify our algorithm and empirically validate the effectiveness of our algorithm with extensive experiments.

For agents

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

get_harvested_code_for_paper("2110.12425")
get_code_for_paper("2110.12425")
have("2110.12425")

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

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

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

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

Connect an agent — have() is free.