{"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/asdl-a-unified-interface-for-gradient","title":"ASDL: A Unified Interface for Gradient Preconditioning in PyTorch","arxiv_id":"2305.04684","date":"2023-05-08","proceeding":null,"authors":["Kazuki Osawa","Satoki Ishikawa","Rio Yokota","Shigang Li","Torsten Hoefler"],"abstract":"Gradient preconditioning is a key technique to integrate the second-order information into gradients for improving and extending gradient-based learning algorithms. In deep learning, stochasticity, nonconvexity, and high dimensionality lead to a wide variety of gradient preconditioning methods, with implementation complexity and inconsistent performance and feasibility. We propose the Automatic Second-order Differentiation Library (ASDL), an extension library for PyTorch, which offers various implementations and a plug-and-play unified interface for gradient preconditioning. ASDL enables the study and structured comparison of a range of gradient preconditioning methods.","url_abs":"https://arxiv.org/abs/2305.04684v1","url_pdf":"https://arxiv.org/pdf/2305.04684v1.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":"asdl-a-unified-interface-for-gradient","repo_url":"https://github.com/kazukiosawa/asdl","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"asdl-a-unified-interface-for-gradient","repo_url":"https://github.com/kazukiosawa/asdfghjkl","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[],"methods":[{"method_slug":null,"method_name":"Library"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2305.04684","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2305.04684"}},"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":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/kazukiosawa/asdl","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/kazukiosawa/asdfghjkl","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":11},"by_repo_kind":{"listed":{"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":"5b6026671740e023","entry":"batch","repo":"kazukiosawa/asdfghjkl","repo_kind":"listed","path":"asdl/kernel.py","file_url":"https://github.com/kazukiosawa/asdfghjkl/blob/HEAD/asdl/kernel.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":"5b6026671740e023"}},{"code_sha256_prefix":"d69412bb02bf97db","entry":"batch_gradient","repo":"kazukiosawa/asdfghjkl","repo_kind":"listed","path":"asdl/gradient.py","file_url":"https://github.com/kazukiosawa/asdfghjkl/blob/HEAD/asdl/gradient.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":"d69412bb02bf97db"}},{"code_sha256_prefix":"ab495f0a55df1c5e","entry":"data_loader_gradient","repo":"kazukiosawa/asdfghjkl","repo_kind":"listed","path":"asdl/gradient.py","file_url":"https://github.com/kazukiosawa/asdfghjkl/blob/HEAD/asdl/gradient.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":"ab495f0a55df1c5e"}},{"code_sha256_prefix":"e44e55f6487cc4a6","entry":"empirical_direct_ntk","repo":"kazukiosawa/asdfghjkl","repo_kind":"listed","path":"asdl/kernel.py","file_url":"https://github.com/kazukiosawa/asdfghjkl/blob/HEAD/asdl/kernel.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":"e44e55f6487cc4a6"}},{"code_sha256_prefix":"57afc790c255271a","entry":"get_n_cols_by_tril","repo":"kazukiosawa/asdfghjkl","repo_kind":"listed","path":"asdl/symmatrix.py","file_url":"https://github.com/kazukiosawa/asdfghjkl/blob/HEAD/asdl/symmatrix.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":"57afc790c255271a"}},{"code_sha256_prefix":"81ebbd081c0756f2","entry":"im2col_2d","repo":"kazukiosawa/asdfghjkl","repo_kind":"listed","path":"asdl/utils.py","file_url":"https://github.com/kazukiosawa/asdfghjkl/blob/HEAD/asdl/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":"81ebbd081c0756f2"}},{"code_sha256_prefix":"73326303496c3144","entry":"im2col_2d_slow","repo":"kazukiosawa/asdfghjkl","repo_kind":"listed","path":"asdl/utils.py","file_url":"https://github.com/kazukiosawa/asdfghjkl/blob/HEAD/asdl/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":"73326303496c3144"}},{"code_sha256_prefix":"75827a0fc45e1c0f","entry":"matrix_to_tril","repo":"kazukiosawa/asdfghjkl","repo_kind":"listed","path":"asdl/symmatrix.py","file_url":"https://github.com/kazukiosawa/asdfghjkl/blob/HEAD/asdl/symmatrix.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":"75827a0fc45e1c0f"}},{"code_sha256_prefix":"e918e426cd1158c2","entry":"original_requires_grad","repo":"kazukiosawa/asdfghjkl","repo_kind":"listed","path":"asdl/utils.py","file_url":"https://github.com/kazukiosawa/asdfghjkl/blob/HEAD/asdl/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":"e918e426cd1158c2"}},{"code_sha256_prefix":"ba2c2aeacd748837","entry":"save_batch_gradient","repo":"kazukiosawa/asdfghjkl","repo_kind":"listed","path":"asdl/gradient.py","file_url":"https://github.com/kazukiosawa/asdfghjkl/blob/HEAD/asdl/gradient.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":"ba2c2aeacd748837"}},{"code_sha256_prefix":"9b09609412fc50ba","entry":"tril_to_matrix","repo":"kazukiosawa/asdfghjkl","repo_kind":"listed","path":"asdl/symmatrix.py","file_url":"https://github.com/kazukiosawa/asdfghjkl/blob/HEAD/asdl/symmatrix.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":"9b09609412fc50ba"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}