Papers › Gradient Centralization: A New Optimization Technique for Deep Neural Networks

Gradient Centralization: A New Optimization Technique for Deep Neural Networks

3 Apr 2020ECCV 2020 8arXiv:2004.01461archive 2025-07-28

Hongwei Yong, Jianqiang Huang, Xian-Sheng Hua, Lei Zhang

Optimization techniques are of great importance to effectively and efficiently train a deep neural network (DNN). It has been shown that using the first and second order statistics (e.g., mean and variance) to perform Z-score standardization on network activations or weight vectors, such as batch normalization (BN) and weight standardization (WS), can improve the training performance. Different from these existing methods that mostly operate on activations or weights, we present a new optimization technique, namely gradient centralization (GC), which operates directly on gradients by centralizing the gradient vectors to have zero mean. GC can be viewed as a projected gradient descent method with a constrained loss function. We show that GC can regularize both the weight space and output feature space so that it can boost the generalization performance of DNNs. Moreover, GC improves the Lipschitzness of the loss function and its gradient so that the training process becomes more efficient and stable. GC is very simple to implement and can be easily embedded into existing gradient based DNN optimizers with only one line of code. It can also be directly used to fine-tune the pre-trained DNNs. Our experiments on various applications, including general image classification, fine-grained image classification, detection and segmentation, demonstrate that GC can consistently improve the performance of DNN learning. The code of GC can be found at https://github.com/Yonghongwei/Gradient-Centralization.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2004.01461")

Code

Syntology Ran 2 of 29 code samples harvested from 4 repositories linked to this paper; 27 have no recorded run. Of those that ran: 1 ran · honoured contract; 1 ran · fixture could not drive it.

By repository: community (archive-listed): 29 samples from 4 repositories, 2 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Yonghongwei/Gradient-Centralization officialmentioned in papermentioned on GitHubpytorch report
HamadYA/GhostFaceNets mentioned on GitHubtfMIT report
IssamLaradji/sps mentioned on GitHubpytorch report
lessw2020/Ranger-Deep-Learning-Optimizer mentioned on GitHubpytorchApache-2.0 report
mhassann22/GCSAM mentioned on GitHubpytorch report
mnikitin/Gradient-Centralization mentioned on GitHubmxnet report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

29 samples harvested; 2 ran; 1 honoured the contract we drafted; 27 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
1ran · fixture could not drive it
27unverified

Licence: 1 of the 29 samples is pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 4 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

centralized_gradient mhassann22/GCSAM/cifar10_gcsam_resnet50.py community (archive-listed) ran · fixture could not drive it fingerprinted no licence file found · pointer only · 27a3d56a09e0e7cf · report
to_4d HamadYA/GhostFaceNets/augment.py community (archive-listed) ran · honoured contract fingerprinted MIT (permissive) · bd1c72a9d8556505 · report
activation HamadYA/GhostFaceNets/backbones/ghost_model.py community (archive-listed) unverified MIT (permissive) · 619357c6cd6c6727 · report
adadelta Rishit-dagli/Gradient-Centralization-TensorFlow/gctf/optimizers.py community (archive-listed) unverified Apache-2.0 (permissive) · 8f86e7549e63b17d · report
adagrad Rishit-dagli/Gradient-Centralization-TensorFlow/gctf/optimizers.py community (archive-listed) unverified Apache-2.0 (permissive) · a02310673d3edff8 · report
add_l2_regularizer_2_model HamadYA/GhostFaceNets/GhostFaceNets.py community (archive-listed) unverified MIT (permissive) · 719582a083732fb7 · report
buildin_models HamadYA/GhostFaceNets/GhostFaceNets.py community (archive-listed) unverified MIT (permissive) · e8ddfad281bed049 · report
buildin_models HamadYA/GhostFaceNets/GhostFaceNets_with_Bias.py community (archive-listed) unverified MIT (permissive) · 6dbeec44cfb81d9f · report
calculate_roc HamadYA/GhostFaceNets/evals.py community (archive-listed) unverified MIT (permissive) · c3af5327e1b4e163 · report
centralized_gradient lessw2020/Ranger-Deep-Learning-Optimizer/ranger/ranger2020.py community (archive-listed) unverified Apache-2.0 (permissive) · 62a2acf5cdbc743f · report
centralized_gradients_for_optimizer Rishit-dagli/Gradient-Centralization-TensorFlow/gctf/centralized_gradients.py community (archive-listed) unverified Apache-2.0 (permissive) · fd031cd7977c1eee · report
distiller_loss_cosine HamadYA/GhostFaceNets/losses.py community (archive-listed) unverified MIT (permissive) · 4799f292d886421d · report
distiller_loss_euclidean HamadYA/GhostFaceNets/losses.py community (archive-listed) unverified MIT (permissive) · 82eb5716083ae566 · report
face_align_landmark HamadYA/GhostFaceNets/IJB_evals.py community (archive-listed) unverified MIT (permissive) · 95b7e550f0df874b · report
from_4d HamadYA/GhostFaceNets/augment.py community (archive-listed) unverified MIT (permissive) · b10fb8ac53c53a97 · report
get_centralized_gradients Rishit-dagli/Gradient-Centralization-TensorFlow/gctf/centralized_gradients.py community (archive-listed) unverified Apache-2.0 (permissive) · 52780979cc1c6e50 · report
ghost_module HamadYA/GhostFaceNets/backbones/ghost_model.py community (archive-listed) unverified MIT (permissive) · 2dcab8fa77a49fd8 · report
half_split_weighted_cosine_similarity HamadYA/GhostFaceNets/evals.py community (archive-listed) unverified MIT (permissive) · b76d78b83d84097c · report
half_split_weighted_cosine_similarity_11 HamadYA/GhostFaceNets/evals.py community (archive-listed) unverified MIT (permissive) · 75f14459448a4cef · report
keras_model_interf HamadYA/GhostFaceNets/IJB_evals.py community (archive-listed) unverified MIT (permissive) · 0d40d2078622e4a1 · report
plot_tpr_far HamadYA/GhostFaceNets/eval_folder.py community (archive-listed) unverified MIT (permissive) · aa04aa5fb992d2bc · report
random_cutout_or_cutout_mask HamadYA/GhostFaceNets/data.py community (archive-listed) unverified MIT (permissive) · b0dc513e1e285780 · report
read_IJB_meta_columns_to_int HamadYA/GhostFaceNets/IJB_evals.py community (archive-listed) unverified MIT (permissive) · c5ac51f2fe4a6729 · report
replace_ReLU_with_PReLU HamadYA/GhostFaceNets/GhostFaceNets.py community (archive-listed) unverified MIT (permissive) · d1106a8957c8d037 · report
replace_add_with_stochastic_depth HamadYA/GhostFaceNets/models.py community (archive-listed) unverified MIT (permissive) · 5de5a42ab87d80ec · report
se_module HamadYA/GhostFaceNets/backbones/ghost_model.py community (archive-listed) unverified MIT (permissive) · ed575936f30efada · report
teacher_model_interf_wrapper HamadYA/GhostFaceNets/data_distiller.py community (archive-listed) unverified MIT (permissive) · 36a0054d36a367be · report
tf_imread HamadYA/GhostFaceNets/data.py community (archive-listed) unverified MIT (permissive) · 95d626160eefd668 · report
update_optimizer Rishit-dagli/Gradient-Centralization-TensorFlow/gctf/optimizers.py community (archive-listed) unverified Apache-2.0 (permissive) · df2465eb334d9036 · report

Tasks

Fine-Grained Image ClassificationGeneral ClassificationImage Classificationimage-classification

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Batch NormalizationWeight Standardization

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections