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 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="1106.5730")

Code

Syntology Ran 0 of 24 code samples harvested from 3 repositories linked to this paper; 24 have no recorded run.

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

ElizaWszola/HTHC mentioned on GitHub report
dmmiller612/sparktorch mentioned on GitHubpytorchMIT report
lifeomic/sparkflow mentioned on GitHubtfMIT report
maxpumperla/elephas mentioned on GitHubtfMIT report
yongsheng268/sparkflow mentioned on GitHubtfMIT 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; 0 ran; 0 honoured the contract we drafted; 24 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.

24unverified

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; 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.

add_params maxpumperla/elephas/elephas/utils/functional_utils.py community (archive-listed) unverified MIT (permissive) · 5845a9f358c1aebd · report
as_enum maxpumperla/elephas/elephas/utils/model_utils.py community (archive-listed) unverified MIT (permissive) · 26266f994d9c5ab4 · report
build_adam_config lifeomic/sparkflow/sparkflow/graph_utils.py community (archive-listed) unverified MIT (permissive) · f1d06b5ecd11b217 · report
build_graph lifeomic/sparkflow/sparkflow/graph_utils.py community (archive-listed) unverified MIT (permissive) · de19052b4807c568 · report
build_optimizer lifeomic/sparkflow/sparkflow/tensorflow_async.py community (archive-listed) unverified MIT (permissive) · 65ad80c13f16808e · report
build_rmsprop_config lifeomic/sparkflow/sparkflow/graph_utils.py community (archive-listed) unverified MIT (permissive) · 6931025bf1d0e11b · report
convert_json_to_weights lifeomic/sparkflow/sparkflow/ml_util.py community (archive-listed) unverified MIT (permissive) · b665a4bab47422a1 · report
convert_to_serialized_torch dmmiller612/sparktorch/sparktorch/inference.py community (archive-listed) unverified MIT (permissive) · f7af48c85d7f2b6e · report
convert_weights_to_json lifeomic/sparkflow/sparkflow/ml_util.py community (archive-listed) unverified MIT (permissive) · 2fc09059ad3fca01 · report
from_matrix maxpumperla/elephas/elephas/mllib/adapter.py community (archive-listed) unverified MIT (permissive) · 2712866b8caee6bd · report
from_vector maxpumperla/elephas/elephas/mllib/adapter.py community (archive-listed) unverified MIT (permissive) · 80ae39b85048fd6f · report
get_main dmmiller612/sparktorch/sparktorch/hogwild.py community (archive-listed) unverified MIT (permissive) · 60068090f95c632a · report
get_neutral maxpumperla/elephas/elephas/utils/functional_utils.py community (archive-listed) unverified MIT (permissive) · dabcb1f56c2aeec4 · report
get_server_weights lifeomic/sparkflow/sparkflow/HogwildSparkModel.py community (archive-listed) unverified MIT (permissive) · a17f3090c2ef6a4c · report
get_state_dict dmmiller612/sparktorch/sparktorch/hogwild.py community (archive-listed) unverified MIT (permissive) · 1146a0a7466202aa · report
handle_data lifeomic/sparkflow/sparkflow/tensorflow_async.py community (archive-listed) unverified MIT (permissive) · 2f23661733396fbf · report
handle_features dmmiller612/sparktorch/sparktorch/util.py community (archive-listed) unverified MIT (permissive) · 1bdf839eca414ecc · report
load_byte_array dmmiller612/sparktorch/sparktorch/pipeline_util.py community (archive-listed) unverified MIT (permissive) · 9d11d280b0167a20 · report
load_byte_array lifeomic/sparkflow/sparkflow/pipeline_util.py community (archive-listed) unverified MIT (permissive) · 3974c66cb4e0844e · report
put_early_stop dmmiller612/sparktorch/sparktorch/hogwild.py community (archive-listed) unverified MIT (permissive) · 4afd4babdb245f0e · report
subtract_params maxpumperla/elephas/elephas/utils/functional_utils.py community (archive-listed) unverified MIT (permissive) · 2bd77115365b2003 · report
tensorflow_get_weights lifeomic/sparkflow/sparkflow/ml_util.py community (archive-listed) unverified MIT (permissive) · 39f1bc951fa89a77 · report
torch_decoder dmmiller612/sparktorch/sparktorch/util.py community (archive-listed) unverified MIT (permissive) · e4fd2bc4dbc289b1 · report
torch_encoder dmmiller612/sparktorch/sparktorch/util.py community (archive-listed) unverified MIT (permissive) · 899235f37bc817b4 · report

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