{"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/multiplying-matrices-without-multiplying","title":"Multiplying Matrices Without Multiplying","arxiv_id":"2106.10860","date":"2021-06-21","proceeding":null,"authors":["Davis Blalock","John Guttag"],"abstract":"Multiplying matrices is among the most fundamental and compute-intensive operations in machine learning. Consequently, there has been significant work on efficiently approximating matrix multiplies. We introduce a learning-based algorithm for this task that greatly outperforms existing methods. Experiments using hundreds of matrices from diverse domains show that it often runs $100\\times$ faster than exact matrix products and $10\\times$ faster than current approximate methods. In the common case that one matrix is known ahead of time, our method also has the interesting property that it requires zero multiply-adds. These results suggest that a mixture of hashing, averaging, and byte shuffling$-$the core operations of our method$-$could be a more promising building block for machine learning than the sparsified, factorized, and/or scalar quantized matrix products that have recently been the focus of substantial research and hardware investment.","url_abs":"https://arxiv.org/abs/2106.10860v1","url_pdf":"https://arxiv.org/pdf/2106.10860v1.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":"multiplying-matrices-without-multiplying","repo_url":"https://github.com/dblalock/bolt","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok","spdx":"MPL-2.0"}},{"paper_slug":"multiplying-matrices-without-multiplying","repo_url":"https://github.com/joennlae/halutmatmul","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"multiplying-matrices-without-multiplying","repo_url":"https://github.com/nlpodyssey/gomaddness","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok","spdx":"BSD-2-Clause"}}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2106.10860","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2106.10860"}},"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/joennlae/halutmatmul","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/nlpodyssey/gomaddness","reach":{"status":"ok","spdx":"BSD-2-Clause"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/dblalock/bolt","reach":{"status":"ok","spdx":"MPL-2.0"}}],"summary":{"unverified":14},"by_repo_kind":{"listed":{"samples":14,"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":"ca1b9a40081545de","entry":"apiurl","repo":"joennlae/halutmatmul","repo_kind":"listed","path":".github/vast.ai/vast.py","file_url":"https://github.com/joennlae/halutmatmul/blob/HEAD/.github/vast.ai/vast.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":"ca1b9a40081545de"}},{"code_sha256_prefix":"730a9804a13735ee","entry":"apply_decision_tree_torch","repo":"joennlae/halutmatmul","repo_kind":"listed","path":"src/python/halutmatmul/modules.py","file_url":"https://github.com/joennlae/halutmatmul/blob/HEAD/src/python/halutmatmul/modules.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":"730a9804a13735ee"}},{"code_sha256_prefix":"032e5daad938f30b","entry":"apply_hash_function_opt","repo":"joennlae/halutmatmul","repo_kind":"listed","path":"src/python/halutmatmul/functions.py","file_url":"https://github.com/joennlae/halutmatmul/blob/HEAD/src/python/halutmatmul/functions.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":"032e5daad938f30b"}},{"code_sha256_prefix":"f4e2c94e3f70116c","entry":"check_file_exists","repo":"joennlae/halutmatmul","repo_kind":"listed","path":"src/python/halutmatmul/model.py","file_url":"https://github.com/joennlae/halutmatmul/blob/HEAD/src/python/halutmatmul/model.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":"f4e2c94e3f70116c"}},{"code_sha256_prefix":"23ddb990fe91a50d","entry":"check_is_more_than_enough","repo":"joennlae/halutmatmul","repo_kind":"listed","path":"src/python/halutmatmul/learn.py","file_url":"https://github.com/joennlae/halutmatmul/blob/HEAD/src/python/halutmatmul/learn.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":"23ddb990fe91a50d"}},{"code_sha256_prefix":"b500410027a5635e","entry":"create_bit_matrix","repo":"joennlae/halutmatmul","repo_kind":"listed","path":"src/python/halutmatmul/modules.py","file_url":"https://github.com/joennlae/halutmatmul/blob/HEAD/src/python/halutmatmul/modules.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":"b500410027a5635e"}},{"code_sha256_prefix":"7d8b3253078afc99","entry":"create_selection_matrix","repo":"joennlae/halutmatmul","repo_kind":"listed","path":"src/python/halutmatmul/modules.py","file_url":"https://github.com/joennlae/halutmatmul/blob/HEAD/src/python/halutmatmul/modules.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":"7d8b3253078afc99"}},{"code_sha256_prefix":"bc4355895f3d953f","entry":"deindent","repo":"joennlae/halutmatmul","repo_kind":"listed","path":".github/vast.ai/vast.py","file_url":"https://github.com/joennlae/halutmatmul/blob/HEAD/.github/vast.ai/vast.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":"bc4355895f3d953f"}},{"code_sha256_prefix":"423bc966744f4f58","entry":"get_module_by_name","repo":"joennlae/halutmatmul","repo_kind":"listed","path":"src/python/halutmatmul/model.py","file_url":"https://github.com/joennlae/halutmatmul/blob/HEAD/src/python/halutmatmul/model.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":"423bc966744f4f58"}},{"code_sha256_prefix":"5cd252885b619401","entry":"read_luts_opt","repo":"joennlae/halutmatmul","repo_kind":"listed","path":"src/python/halutmatmul/functions.py","file_url":"https://github.com/joennlae/halutmatmul/blob/HEAD/src/python/halutmatmul/functions.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":"5cd252885b619401"}},{"code_sha256_prefix":"1df4b72b2fa42ada","entry":"run_command","repo":"joennlae/halutmatmul","repo_kind":"listed","path":".github/vast.ai/vast_ai_helper.py","file_url":"https://github.com/joennlae/halutmatmul/blob/HEAD/.github/vast.ai/vast_ai_helper.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":"1df4b72b2fa42ada"}},{"code_sha256_prefix":"4ddebb219c22ace3","entry":"run_ssh_commands","repo":"joennlae/halutmatmul","repo_kind":"listed","path":".github/vast.ai/vast_ai_helper.py","file_url":"https://github.com/joennlae/halutmatmul/blob/HEAD/.github/vast.ai/vast_ai_helper.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":"4ddebb219c22ace3"}},{"code_sha256_prefix":"080451f563966a56","entry":"startup","repo":"joennlae/halutmatmul","repo_kind":"listed","path":".github/vast.ai/vast_ai_helper.py","file_url":"https://github.com/joennlae/halutmatmul/blob/HEAD/.github/vast.ai/vast_ai_helper.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":"080451f563966a56"}},{"code_sha256_prefix":"b0a4a137805be58e","entry":"translate_null_strings_to_blanks","repo":"joennlae/halutmatmul","repo_kind":"listed","path":".github/vast.ai/vast.py","file_url":"https://github.com/joennlae/halutmatmul/blob/HEAD/.github/vast.ai/vast.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":"b0a4a137805be58e"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}