{"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/scalable-neural-network-kernels","title":"Scalable Neural Network Kernels","arxiv_id":"2310.13225","date":"2023-10-20","proceeding":null,"authors":["Arijit Sehanobish","Krzysztof Choromanski","Yunfan Zhao","Avinava Dubey","Valerii Likhosherstov"],"abstract":"We introduce the concept of scalable neural network kernels (SNNKs), the replacements of regular feedforward layers (FFLs), capable of approximating the latter, but with favorable computational properties. SNNKs effectively disentangle the inputs from the parameters of the neural network in the FFL, only to connect them in the final computation via the dot-product kernel. They are also strictly more expressive, as allowing to model complicated relationships beyond the functions of the dot-products of parameter-input vectors. We also introduce the neural network bundling process that applies SNNKs to compactify deep neural network architectures, resulting in additional compression gains. In its extreme version, it leads to the fully bundled network whose optimal parameters can be expressed via explicit formulae for several loss functions (e.g. mean squared error), opening a possibility to bypass backpropagation. As a by-product of our analysis, we introduce the mechanism of the universal random features (or URFs), applied to instantiate several SNNK variants, and interesting on its own in the context of scalable kernel methods. We provide rigorous theoretical analysis of all these concepts as well as an extensive empirical evaluation, ranging from point-wise kernel estimation to Transformers' fine-tuning with novel adapter layers inspired by SNNKs. Our mechanism provides up to 5x reduction in the number of trainable parameters, while maintaining competitive accuracy.","url_abs":"https://arxiv.org/abs/2310.13225v2","url_pdf":"https://arxiv.org/pdf/2310.13225v2.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":"scalable-neural-network-kernels","repo_url":"https://github.com/arijitthegame/neural-network-kernels","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":null}],"tasks":[],"methods":[{"method_slug":"adapter","method_name":"Adapter"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2310.13225","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2310.13225"}},"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/arijitthegame/neural-network-kernels","reach":null}],"summary":{"ran":1,"ran_honours":2,"ran_fixture":2,"ran_draft_wrong":1},"by_repo_kind":{"official":{"samples":6,"ran":6,"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":"07257301af3ee38e","entry":"NNK_Relu","repo":"arijitthegame/neural-network-kernels","repo_kind":"official","path":"src/nnk/nnk.py","file_url":"https://github.com/arijitthegame/neural-network-kernels/blob/HEAD/src/nnk/nnk.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"07257301af3ee38e"}},{"code_sha256_prefix":"2c0818e72b25c605","entry":"gaussian_orthogonal_random_matrix","repo":"arijitthegame/neural-network-kernels","repo_kind":"official","path":"src/nnk/nnk.py","file_url":"https://github.com/arijitthegame/neural-network-kernels/blob/HEAD/src/nnk/nnk.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"2c0818e72b25c605"}},{"code_sha256_prefix":"97b8b7b080cf8316","entry":"orthogonal_matrix_chunk","repo":"arijitthegame/neural-network-kernels","repo_kind":"official","path":"src/nnk/nnk.py","file_url":"https://github.com/arijitthegame/neural-network-kernels/blob/HEAD/src/nnk/nnk.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"97b8b7b080cf8316"}},{"code_sha256_prefix":"12d992bada5a8f1f","entry":"phi_relu_mapping_torch","repo":"arijitthegame/neural-network-kernels","repo_kind":"official","path":"src/nnk/nnk.py","file_url":"https://github.com/arijitthegame/neural-network-kernels/blob/HEAD/src/nnk/nnk.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"12d992bada5a8f1f"}},{"code_sha256_prefix":"20927dc12ec540d0","entry":"torch_apply_along_axis","repo":"arijitthegame/neural-network-kernels","repo_kind":"official","path":"src/nnk/nnk.py","file_url":"https://github.com/arijitthegame/neural-network-kernels/blob/HEAD/src/nnk/nnk.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"20927dc12ec540d0"}},{"code_sha256_prefix":"018c1037643f8259","entry":"torch_apply_along_axis_asym_kernel","repo":"arijitthegame/neural-network-kernels","repo_kind":"official","path":"src/nnk/nnk.py","file_url":"https://github.com/arijitthegame/neural-network-kernels/blob/HEAD/src/nnk/nnk.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"018c1037643f8259"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}