SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2111.00056 · NeurIPS · 2021

Generalized Data Weighting via Class-level Gradient Manipulation

Dejing Dou, Xi Chen, Hao Liu, Can Chen, Shuhao Zheng, Erqun Dong, Xue Liu

arXiv · PDF · Open in the Atlas

Code that ran

2 of 3 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (1 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 2 have no contract verdict; 0 failures of our instrument; 1 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/2111.00056.json · badge: /api/ran/2111.00056.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
ggchen1997/gdw-nips2021 community
Papers with Code archive
2 ran · 1 no recorded run
FunctionStatusWhere it lives
MetaLinear Ran
ran on a synthesized input
ggchen1997/gdw-nips2021/resnet.py
pointer only (licence: NONE) · get_code("ef620bdfbad2b0c0")
How it ran

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

VNet Ran
ran on a synthesized input · constructed an object; no result was computed
ggchen1997/gdw-nips2021/resnet.py
pointer only (licence: NONE) · get_code("ee2c8697bacec637")
How it ran

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

MetaModule Not yet run
unverified (harvested, no recorded run)
ggchen1997/gdw-nips2021/resnet.py
pointer only (licence: NONE) · get_code("08d497b926d84a32")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ggchen1997/gdw-nips2021 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 3 samples lifted from this paper's linked repositories, 3 carry a function identity and 0 do not. Of the 3 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 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
MetaLinear
brick of this paper's assembly: model
3 other papers
1 dated earlier, 2 later · 2 only as an assembly brick
2104.15092 (2021-04)
Faster Meta Update Strategy for Noise-Robust Deep Learning
2207.13856 (2022-07)
Imbalanced Semi-supervised Learning with Bias Adaptive Classifier
2603.17255 (2026-03)
Variational Rectification Inference for Learning with Noisy Labels
MetaModule
brick of this paper's assembly: helper
3 other papers
1 dated earlier, 2 later · 3 only as an assembly brick
2103.12579 (2021-03)
MetaSAug: Meta Semantic Augmentation for Long-Tailed Visual Recognition
2207.13856 (2022-07)
Imbalanced Semi-supervised Learning with Bias Adaptive Classifier
2603.17255 (2026-03)
Variational Rectification Inference for Learning with Noisy Labels

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

Label noise and class imbalance are two major issues coexisting in real-world datasets. To alleviate the two issues, state-of-the-art methods reweight each instance by leveraging a small amount of clean and unbiased data. Yet, these methods overlook class-level information within each instance, which can be further utilized to improve performance. To this end, in this paper, we propose Generalized Data Weighting (GDW) to simultaneously mitigate label noise and class imbalance by manipulating gradients at the class level. To be specific, GDW unrolls the loss gradient to class-level gradients by the chain rule and reweights the flow of each gradient separately. In this way, GDW achieves remarkable performance improvement on both issues. Aside from the performance gain, GDW efficiently obtains class-level weights without introducing any extra computational cost compared with instance weighting methods. Specifically, GDW performs a gradient descent step on class-level weights, which only relies on intermediate gradients. Extensive experiments in various settings verify the effectiveness of GDW. For example, GDW outperforms state-of-the-art methods by 2.56% under the 60% uniform noise setting in CIFAR10. Our code is available at https://github.com/GGchen1997/GDW-NIPS2021.

For agents

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

get_harvested_code_for_paper("2111.00056")
get_code_for_paper("2111.00056")
have("2111.00056")

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

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

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

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

Connect an agent — have() is free.