{"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/arxiv-2605-07270","title":"bispectrum: Selective $G$-Bispectra Made Practical","arxiv_id":"2605.07270","date":"2026-05-08","proceeding":null,"authors":["Johan Mathe","Adele Myers","Simon Mataigne","Nina Miolane"],"abstract":"Many machine learning tasks are invariant under the action of a group $G$ of transformations: signal classification can be invariant under translations, image classification under 2D rotations, and spherical-image classification under 3D rotations. The $G$-bispectrum is a principled complete invariant of a signal (retaining all all signal's information up to the group action) with proven benefits in machine learning and as a pooling layer in deep networks. However, its deployment has been hampered by high computational cost and a patchwork of group-specific implementations. We present bispectrum, an open-source, fully unit-tested PyTorch library that implements selective $G$-bispectra for seven different group actions, as differentiable modules that can be directly incorporated into machine learning pipelines and deep learning architectures. For finite groups $G$, selectivity reduces the computational cost from $O(|G|^2)$ to $O(|G|)$. For planar rotations, we leverage the disk bispectrum. For spherical 3D rotations, we introduce an augmented selective bispectrum at band-limit $L$ which reduces the cost from $O(L^3)$ to $Θ(L^2)$ coefficients. We profile the entire library (for which we implemented various compute optimizations), showing that it delivers near-exact $G$-invariance with its selective $G$-bispectra computed in sub-millisecond time on GPU (up to commonly used bandlimits). We evaluate the benefits of incorporating $G$-bispectra as pooling layers into deep learning architectures on three classical benchmark datasets --comparing against norm pooling, gated pooling, Fourier-ELU pooling, max pooling, and (non-equivariant) data-augmented convolutional baselines. Results show that $G$-bispectra consistently outperform alternatives in the low-data, moderate-capacity regime.","url_abs":"https://arxiv.org/abs/2605.07270","url_pdf":"https://arxiv.org/pdf/2605.07270","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2605.07270","atlas_url":"https://app.syntology.ai/?focus=2605.07270","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2605.07270"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+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":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/geometric-intelligence/bispectrum","reach":null}],"summary":{"ran":4,"unverified":6},"by_repo_kind":{"found_in_text":{"samples":10,"ran":4,"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":"4571fb37042d0479","entry":"bessel_jn","repo":"geometric-intelligence/bispectrum","repo_kind":"found_in_text","path":"src/bispectrum/_bessel.py","file_url":"https://github.com/geometric-intelligence/bispectrum/blob/HEAD/src/bispectrum/_bessel.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"4571fb37042d0479"}},{"code_sha256_prefix":"b806d5820c24e96a","entry":"cartesian_to_spherical","repo":"geometric-intelligence/bispectrum","repo_kind":"found_in_text","path":"src/bispectrum/rotation.py","file_url":"https://github.com/geometric-intelligence/bispectrum/blob/HEAD/src/bispectrum/rotation.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b806d5820c24e96a"}},{"code_sha256_prefix":"6920e14981bda100","entry":"recovery_error_up_to_group_action","repo":"geometric-intelligence/bispectrum","repo_kind":"found_in_text","path":"benchmarks/bench_inversion.py","file_url":"https://github.com/geometric-intelligence/bispectrum/blob/HEAD/benchmarks/bench_inversion.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6920e14981bda100"}},{"code_sha256_prefix":"ea6da5d8731205b0","entry":"spherical_to_cartesian","repo":"geometric-intelligence/bispectrum","repo_kind":"found_in_text","path":"src/bispectrum/rotation.py","file_url":"https://github.com/geometric-intelligence/bispectrum/blob/HEAD/src/bispectrum/rotation.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ea6da5d8731205b0"}},{"code_sha256_prefix":"dcdb4515b1b53110","entry":"bessel_jn_zeros","repo":"geometric-intelligence/bispectrum","repo_kind":"found_in_text","path":"src/bispectrum/_bessel.py","file_url":"https://github.com/geometric-intelligence/bispectrum/blob/HEAD/src/bispectrum/_bessel.py","link_basis":"first_harvest_node","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":"dcdb4515b1b53110"}},{"code_sha256_prefix":"4721d6766dfd94bd","entry":"clebsch_gordan","repo":"geometric-intelligence/bispectrum","repo_kind":"found_in_text","path":"src/bispectrum/_cg.py","file_url":"https://github.com/geometric-intelligence/bispectrum/blob/HEAD/src/bispectrum/_cg.py","link_basis":"first_harvest_node","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":"4721d6766dfd94bd"}},{"code_sha256_prefix":"8fc0a9c4e919f2c2","entry":"compute_all_bessel_roots","repo":"geometric-intelligence/bispectrum","repo_kind":"found_in_text","path":"src/bispectrum/_bessel.py","file_url":"https://github.com/geometric-intelligence/bispectrum/blob/HEAD/src/bispectrum/_bessel.py","link_basis":"first_harvest_node","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":"8fc0a9c4e919f2c2"}},{"code_sha256_prefix":"0a913c17417cb19c","entry":"compute_cg_matrix","repo":"geometric-intelligence/bispectrum","repo_kind":"found_in_text","path":"src/bispectrum/_cg.py","file_url":"https://github.com/geometric-intelligence/bispectrum/blob/HEAD/src/bispectrum/_cg.py","link_basis":"first_harvest_node","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":"0a913c17417cb19c"}},{"code_sha256_prefix":"d0cef85b1cc80ce2","entry":"random_rotation_matrix","repo":"geometric-intelligence/bispectrum","repo_kind":"found_in_text","path":"src/bispectrum/rotation.py","file_url":"https://github.com/geometric-intelligence/bispectrum/blob/HEAD/src/bispectrum/rotation.py","link_basis":"first_harvest_node","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":"d0cef85b1cc80ce2"}},{"code_sha256_prefix":"68ca94715d91f00e","entry":"wigner3j","repo":"geometric-intelligence/bispectrum","repo_kind":"found_in_text","path":"src/bispectrum/_cg.py","file_url":"https://github.com/geometric-intelligence/bispectrum/blob/HEAD/src/bispectrum/_cg.py","link_basis":"first_harvest_node","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":"68ca94715d91f00e"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.LG","source":"arxiv_2026.jsonl"},"syntology_extracted_results":null}