{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/pygsl-a-graph-structure-learning-toolkit","title":"pyGSL: A Graph Structure Learning Toolkit","arxiv_id":"2211.03583","date":"2022-11-07","proceeding":null,"authors":["Max Wasserman","Gonzalo Mateos"],"abstract":"We introduce pyGSL, a Python library that provides efficient implementations of state-of-the-art graph structure learning models along with diverse datasets to evaluate them on. The implementations are written in GPU-friendly ways, allowing one to scale to much larger network tasks. A common interface is introduced for algorithm unrolling methods, unifying implementations of recent state-of-the-art techniques and allowing new methods to be quickly developed by avoiding the need to rebuild the underlying unrolling infrastructure. Implementations of differentiable graph structure learning models are written in PyTorch, allowing us to leverage the rich software ecosystem that exists e.g., around logging, hyperparameter search, and GPU-communication. This also makes it easy to incorporate these models as components in larger gradient based learning systems where differentiable estimates of graph structure may be useful, e.g. in latent graph learning. Diverse datasets and performance metrics allow consistent comparisons across models in this fast growing field. The full code repository can be found on https://github.com/maxwass/pyGSL.","url_abs":"https://arxiv.org/abs/2211.03583v1","url_pdf":"https://arxiv.org/pdf/2211.03583v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"pygsl-a-graph-structure-learning-toolkit","repo_url":"https://github.com/maxwass/pygsl","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":null,"task_name":"GPU"},{"task_slug":"graph-learning","task_name":"Graph Learning"},{"task_slug":"graph-structure-learning","task_name":"Graph structure learning"},{"task_slug":"unrolling","task_name":"Rolling Shutter Correction"}],"methods":[{"method_slug":null,"method_name":"Library"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2211.03583","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2211.03583"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"deterministic:regex_extraction","url":"https://github.com/maxwass/pyGSL","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/maxwass/pygsl","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":11},"by_repo_kind":{"official":{"samples":11,"ran":0,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"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"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"e7eeeef866a8af21","entry":"accuracy","repo":"maxwass/pyGSL","repo_kind":"official","path":"graph_learning/misc/metrics.py","file_url":"https://github.com/maxwass/pyGSL/blob/HEAD/graph_learning/misc/metrics.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e7eeeef866a8af21"}},{"code_sha256_prefix":"55350ed9715690c8","entry":"all_incorrect_predictions","repo":"maxwass/pyGSL","repo_kind":"official","path":"graph_learning/misc/metrics.py","file_url":"https://github.com/maxwass/pyGSL/blob/HEAD/graph_learning/misc/metrics.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"55350ed9715690c8"}},{"code_sha256_prefix":"01d3e9ea5fb275da","entry":"edge_density","repo":"maxwass/pyGSL","repo_kind":"official","path":"graph_learning/misc/utils.py","file_url":"https://github.com/maxwass/pyGSL/blob/HEAD/graph_learning/misc/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"01d3e9ea5fb275da"}},{"code_sha256_prefix":"d91db99a58c3f085","entry":"glasso_batch","repo":"maxwass/pyGSL","repo_kind":"official","path":"graph_learning/models/model_based/glasso/glasso.py","file_url":"https://github.com/maxwass/pyGSL/blob/HEAD/graph_learning/models/model_based/glasso/glasso.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d91db99a58c3f085"}},{"code_sha256_prefix":"a80520708aaf6030","entry":"make_checkpoint_callback_dict","repo":"maxwass/pyGSL","repo_kind":"official","path":"graph_learning/misc/train_funcs.py","file_url":"https://github.com/maxwass/pyGSL/blob/HEAD/graph_learning/misc/train_funcs.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a80520708aaf6030"}},{"code_sha256_prefix":"1291bd7a357bf4d9","entry":"network_deconvolution","repo":"maxwass/pyGSL","repo_kind":"official","path":"graph_learning/models/model_based/network_deconvolution/network_deconvolution.py","file_url":"https://github.com/maxwass/pyGSL/blob/HEAD/graph_learning/models/model_based/network_deconvolution/network_deconvolution.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"1291bd7a357bf4d9"}},{"code_sha256_prefix":"ce3d3efcb85593e5","entry":"perfect_predictions","repo":"maxwass/pyGSL","repo_kind":"official","path":"graph_learning/misc/metrics.py","file_url":"https://github.com/maxwass/pyGSL/blob/HEAD/graph_learning/misc/metrics.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ce3d3efcb85593e5"}},{"code_sha256_prefix":"2bd3ddbe941b22dd","entry":"primal_value","repo":"maxwass/pyGSL","repo_kind":"official","path":"graph_learning/models/model_based/smooth/smooth.py","file_url":"https://github.com/maxwass/pyGSL/blob/HEAD/graph_learning/models/model_based/smooth/smooth.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2bd3ddbe941b22dd"}},{"code_sha256_prefix":"d6f823e5f68c9d0a","entry":"sample_spherical","repo":"maxwass/pyGSL","repo_kind":"official","path":"graph_learning/misc/utils.py","file_url":"https://github.com/maxwass/pyGSL/blob/HEAD/graph_learning/misc/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d6f823e5f68c9d0a"}},{"code_sha256_prefix":"978f6f2b1520e6d2","entry":"smooth_objective","repo":"maxwass/pyGSL","repo_kind":"official","path":"graph_learning/models/model_based/smooth/smooth.py","file_url":"https://github.com/maxwass/pyGSL/blob/HEAD/graph_learning/models/model_based/smooth/smooth.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"978f6f2b1520e6d2"}},{"code_sha256_prefix":"90dd80a487cccc41","entry":"sumSquareForm","repo":"maxwass/pyGSL","repo_kind":"official","path":"graph_learning/misc/utils.py","file_url":"https://github.com/maxwass/pyGSL/blob/HEAD/graph_learning/misc/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"90dd80a487cccc41"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}