Papers › Empirical Risk Minimization and Stochastic Gradient Descent for Relational Data

Empirical Risk Minimization and Stochastic Gradient Descent for Relational Data

27 Jun 2018arXiv:1806.10701archive 2025-07-28

Victor Veitch, Morgane Austern, Wenda Zhou, David M. Blei, Peter Orbanz

Empirical risk minimization is the main tool for prediction problems, but its extension to relational data remains unsolved. We solve this problem using recent ideas from graph sampling theory to (i) define an empirical risk for relational data and (ii) obtain stochastic gradients for this empirical risk that are automatically unbiased. This is achieved by considering the method by which data is sampled from a graph as an explicit component of model design. By integrating fast implementations of graph sampling schemes with standard automatic differentiation tools, we provide an efficient turnkey solver for the risk minimization problem. We establish basic theoretical properties of the procedure. Finally, we demonstrate relational ERM with application to two non-standard problems: one-stage training for semi-supervised node classification, and learning embedding vectors for vertex attributes. Experiments confirm that the turnkey inference procedure is effective in practice, and that the sampling scheme used for model specification has a strong effect on model performance. Code is available at https://github.com/wooden-spoon/relational-ERM.

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

Code

Syntology Ran 0 of 23 code samples harvested from 1 repository linked to this paper; 23 have no recorded run.

By repository: official repository: 23 samples from 1 repository, 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.

wooden-spoon/relational-ERM officialmentioned in papermentioned 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

23 samples harvested; 0 ran; 0 honoured the contract we drafted; 23 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.

23unverified

Licence: 0 of the 23 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 wooden-spoon/relational-ERM. “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.

adapt_random_walk_window wooden-spoon/relational-ERM/src/relational_erm/sampling/adapters.py official repository unverified MIT (permissive) · 7c4eae3809a6a5f0 · report
add_negative_sample wooden-spoon/relational-ERM/src/relational_erm/sampling/negative_sampling.py official repository unverified MIT (permissive) · c92775f5dfcb2ea9 · report
apply_adapter wooden-spoon/relational-ERM/src/relational_erm/sampling/adapters.py official repository unverified MIT (permissive) · d6d0baaf4674b45b · report
compute_edge_logits wooden-spoon/relational-ERM/src/relational_erm/models/label_clustering.py official repository unverified MIT (permissive) · b89681b6bcc47b09 · report
create_packed_adjacency_from_redundant_edge_list wooden-spoon/relational-ERM/src/relational_erm/graph_ops/representations.py official repository unverified MIT (permissive) · 2653ebdb4adef8ce · report
create_packed_adjacency_list wooden-spoon/relational-ERM/src/relational_erm/graph_ops/representations.py official repository unverified MIT (permissive) · 2fd19352149c130b · report
edge_list_to_adj_mat wooden-spoon/relational-ERM/src/relational_erm/graph_ops/tensorflow.py official repository unverified MIT (permissive) · 800dd4877fb341b6 · report
get_unigram_distribution wooden-spoon/relational-ERM/src/relational_erm/sampling/factories.py official repository unverified MIT (permissive) · 0439ddb77b64a048 · report
is_connected wooden-spoon/relational-ERM/src/relational_erm/graph_ops/structure.py official repository unverified MIT (permissive) · aaa7c3eb2800a70a · report
macro_f1 wooden-spoon/relational-ERM/src/relational_erm/models/metrics.py official repository unverified MIT (permissive) · 29195ba13112cc60 · report
macro_f1_oracle wooden-spoon/relational-ERM/src/relational_erm/models/metrics.py official repository unverified MIT (permissive) · 421a04d324bbda92 · report
make_learned_unigram_logits wooden-spoon/relational-ERM/src/relational_erm/sampling/negative_sampling.py official repository unverified MIT (permissive) · 3931742278578086 · report
make_node_classifier wooden-spoon/relational-ERM/src/relational_erm/models/multilabel_node_classification_template.py official repository unverified MIT (permissive) · 01e38183fab627fc · report
make_simple_skipgram_loss wooden-spoon/relational-ERM/src/relational_erm/models/skipgram.py official repository unverified MIT (permissive) · 2f819eacfbd7c7bf · report
make_weighted_loss wooden-spoon/relational-ERM/src/relational_erm/models/skipgram.py official repository unverified MIT (permissive) · c703de90c21e5f2a · report
oracle_predictions wooden-spoon/relational-ERM/src/relational_erm/models/metrics.py official repository unverified MIT (permissive) · 34f77f68c9add49f · report
parallel_dataset wooden-spoon/relational-ERM/src/relational_erm/sampling/factories.py official repository unverified MIT (permissive) · d49c54e9119eca26 · report
preprocess_data wooden-spoon/relational-ERM/src/relational_erm/data_processing/pokec.py official repository unverified MIT (permissive) · f4e29a9d525179a1 · report
preprocess_data wooden-spoon/relational-ERM/src/relational_erm/data_processing/wikipedia_hyperlink.py official repository unverified MIT (permissive) · c26027e156fcba64 · report
preprocess_packed_adjacency_list wooden-spoon/relational-ERM/src/relational_erm/data_processing/pokec.py official repository unverified MIT (permissive) · 23019e1839641c35 · report
preprocess_packed_adjacency_list wooden-spoon/relational-ERM/src/relational_erm/data_processing/wikipedia_hyperlink.py official repository unverified MIT (permissive) · e790895dcebdb558 · report
redundant_edge_list_to_adj_list wooden-spoon/relational-ERM/src/relational_erm/graph_ops/representations.py official repository unverified MIT (permissive) · 0f8181e306b9d954 · report
skipgram_loss wooden-spoon/relational-ERM/src/relational_erm/models/label_clustering.py official repository unverified MIT (permissive) · 984d81b9ef31f1fa · report

Tasks

Graph SamplingNode Classification

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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