Papers › HOGWILD!: A Lock-Free Approach to Parallelizing Stochastic Gradient Descent

HOGWILD!: A Lock-Free Approach to Parallelizing Stochastic Gradient Descent

28 Jun 2011arXiv:1106.5730archive 2025-07-28

Feng Niu, Benjamin Recht, Christopher Re, Stephen J. Wright

Stochastic Gradient Descent (SGD) is a popular algorithm that can achieve state-of-the-art performance on a variety of machine learning tasks. Several researchers have recently proposed schemes to parallelize SGD, but all require performance-destroying memory locking and synchronization. This work aims to show using novel theoretical analysis, algorithms, and implementation that SGD can be implemented without any locking. We present an update scheme called HOGWILD! which allows processors access to shared memory with the possibility of overwriting each other's work. We show that when the associated optimization problem is sparse, meaning most gradient updates only modify small parts of the decision variable, then HOGWILD! achieves a nearly optimal rate of convergence. We demonstrate experimentally that HOGWILD! outperforms alternative schemes that use locking by an order of magnitude.

PaperPDFCodeCode Syntology ran

In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

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

For agents, on Syntology's MCP service (how to connect):

Code

Syntology 24 code samples harvested from 3 repositories linked to this paper: 16 ran (of which 0 constructed an object rather than computing a result; 16 with no instrument failure: 0 honoured, 0 violated, 16 with no contract checked; 0 where Syntology's instrument failed) · 8 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code; here there are none.

By repository: community (archive-listed): 24 samples from 3 repositories, 16 ran (16 with no instrument failure; 0 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Levels written on 2026-09-26 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed.

ElizaWszola/HTHC mentioned on GitHubSyntology: not harvested report
dmmiller612/sparktorch mentioned on GitHubpytorchMITSyntology: 8 samples, 4 ran (0 instrument-failed) · 4 unverified report
lifeomic/sparkflow mentioned on GitHubtfMITSyntology: 10 samples, 6 ran (0 instrument-failed) · 4 unverified report
maxpumperla/elephas mentioned on GitHubtfMITSyntology: 6 samples, 6 ran (0 instrument-failed) · 0 unverified report
yongsheng268/sparkflow mentioned on GitHubtfMITSyntology: not harvested 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

24 samples harvested: 16 ran (of which 0 constructed an object rather than computing a result; 16 with no instrument failure: 0 honoured, 0 violated, 16 with no contract checked; 0 where Syntology's instrument failed) · 8 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page has not changed since , the first build that kept a record date for it; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

16ran
8unverified

Licence: 0 of the 24 samples are 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 3 repositories linked to this paper, official or community; the list below is grouped by repository, each group headed by its name and what it is to the paper. “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. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (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 are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. 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 six 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; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. 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.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity.

dmmiller612/sparktorch community (archive-listed) 8 samples, 4 ran (0 instrument-failed) · 4 unverified
convert_to_serialized_torch sparktorch/inference.py ran MIT (permissive) · f7af48c85d7f2b6e · report fixture: signature network:callable/0/? · returned str · level recorded 2026-09-26
load_byte_array sparktorch/pipeline_util.py ran MIT (permissive) · 9d11d280b0167a20 · report fixture: signature stop_words:list/1/str · returned dict · level recorded 2026-09-26
torch_decoder sparktorch/util.py ran MIT (permissive) · e4fd2bc4dbc289b1 · report fixture: signature model_ser:str/0/str · returned SimpleModel · level recorded 2026-09-26
torch_encoder sparktorch/util.py ran MIT (permissive) · 899235f37bc817b4 · report fixture: signature obj:Tensor/2/float · returned str · level recorded 2026-09-26
get_main sparktorch/hogwild.py unverified MIT (permissive) · 60068090f95c632a · report
get_state_dict in 105 papers sparktorch/hogwild.py unverified MIT (permissive) · 1146a0a7466202aa · report
handle_features sparktorch/util.py unverified MIT (permissive) · 1bdf839eca414ecc · report
put_early_stop sparktorch/hogwild.py unverified MIT (permissive) · 4afd4babdb245f0e · report
lifeomic/sparkflow community (archive-listed) 10 samples, 6 ran (0 instrument-failed) · 4 unverified
build_adam_config sparkflow/graph_utils.py ran MIT (permissive) · f1d06b5ecd11b217 · report fixture: signature learning_rate:float/0/float, beta1:float/0/float, beta2:float/0/float, epsilon:float/0/float, use_locking:bool/0/bool · returned str · level recorded 2026-09-26
build_rmsprop_config sparkflow/graph_utils.py ran MIT (permissive) · 6931025bf1d0e11b · report fixture: signature learning_rate:float/0/float, decay:float/0/float, momentum:float/0/float, epsilon:float/0/float, use_locking:bool/0/bool, centered:bool/0/bool · returned str · level recorded 2026-09-26
convert_json_to_weights sparkflow/ml_util.py ran MIT (permissive) · b665a4bab47422a1 · report fixture: signature json_weights:str/0/str · returned list · level recorded 2026-09-26
convert_weights_to_json sparkflow/ml_util.py ran MIT (permissive) · 2fc09059ad3fca01 · report fixture: signature weights:list/1/Tensor · returned str · level recorded 2026-09-26
handle_data sparkflow/tensorflow_async.py ran MIT (permissive) · 2f23661733396fbf · report fixture: signature data:SimpleData/0/?, inp_col:str/0/str, label_col:str/0/str · returned tuple · level recorded 2026-09-26
load_byte_array sparkflow/pipeline_util.py ran MIT (permissive) · 3974c66cb4e0844e · report fixture: signature stop_words:list/1/str · returned dict · level recorded 2026-09-26
build_graph in 20 papers sparkflow/graph_utils.py unverified MIT (permissive) · de19052b4807c568 · report
build_optimizer in 83 papers sparkflow/tensorflow_async.py unverified MIT (permissive) · 65ad80c13f16808e · report
get_server_weights sparkflow/HogwildSparkModel.py unverified MIT (permissive) · a17f3090c2ef6a4c · report
tensorflow_get_weights sparkflow/ml_util.py unverified MIT (permissive) · 39f1bc951fa89a77 · report
maxpumperla/elephas community (archive-listed) 6 samples, 6 ran (0 instrument-failed) · 0 unverified
add_params elephas/utils/functional_utils.py ran MIT (permissive) · 5845a9f358c1aebd · report fixture: signature param_list_left:list/1/ndarray, param_list_right:list/1/ndarray · returned list · level recorded 2026-09-26
as_enum elephas/utils/model_utils.py ran MIT (permissive) · 26266f994d9c5ab4 · report fixture: signature d:dict/0/? · returned ModelType · level recorded 2026-09-26
from_matrix elephas/mllib/adapter.py ran MIT (permissive) · 2712866b8caee6bd · report fixture: signature matrix:MockMLlibMatrix/0/? · returned ndarray · level recorded 2026-09-26
from_vector elephas/mllib/adapter.py ran MIT (permissive) · 80ae39b85048fd6f · report fixture: signature vector:DenseVector/0/? · returned ndarray · level recorded 2026-09-26
get_neutral elephas/utils/functional_utils.py ran fingerprinted MIT (permissive) · dabcb1f56c2aeec4 · report fixture: signature array_list:list/1/ndarray · returned list · level recorded 2026-09-26
subtract_params elephas/utils/functional_utils.py ran MIT (permissive) · 2bd77115365b2003 · report fixture: signature param_list_left:list/1/ndarray, param_list_right:list/1/ndarray · returned list · level recorded 2026-09-26

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

SGD

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