{"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-2606-07574","title":"Accelerating Birkhoff Projection for Manifold-Constrained Hyper-Connections","arxiv_id":"2606.07574","date":"2026-05-26","proceeding":null,"authors":["Chenrui Wang","Yixuan Qiu"],"abstract":"Manifold-constrained hyper-connections (mHCs) have recently been proposed as a principled extension of hyper-connections, where the residual mixing matrices are constrained to be doubly stochastic via projection onto the Birkhoff polytope. In practical mHC implementations, this constraint is enforced by Sinkhorn-Knopp iterations, and the backward pass relies on unrolling the iterative solver. This design introduces substantial computation and memory overhead, and may also yield inaccurate projections when the algorithm converges slowly on challenging inputs, undermining the intended norm-control and stability guarantees of mHCs. In this work, we focus on the practically important 4x4 Birkhoff projection setting and develop an end-to-end acceleration framework. By leveraging the dual formulation, we reduce the problem to a three-dimensional unconstrained convex problem and solve it with Newton's method, achieving fast convergence and high accuracy. For the backward pass, we replace the unrolled differentiation with implicit differentiation, yielding exact gradients without storing intermediate states. To exploit massive parallelism, we design a warp-level CUDA kernel that uses only register-level primitives, avoiding global and shared memory I/O. Extensive experiments against representative open-source baselines demonstrate that the proposed solver yields substantially more reliable doubly stochastic projections -- especially when the input magnitude is large -- and achieves significant end-to-end speedups (including the backward pass), reaching over 20x acceleration at large batch sizes while maintaining orders of magnitude smaller marginal errors.","url_abs":"https://arxiv.org/abs/2606.07574","url_pdf":"https://arxiv.org/pdf/2606.07574","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/2606.07574","atlas_url":"https://app.syntology.ai/?focus=2606.07574","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2606.07574"}},"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/yixuan/mHC-proj","reach":null},{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/LottoLottoLotto/triton-sinkhorn","reach":{"status":"ok","spdx":"MIT"}},{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/AndreSlavescu/mHC.cu","reach":null},{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/tile-ai/tilelang","reach":null}],"summary":{"ran":10,"unverified":15},"by_repo_kind":{"found_in_text":{"samples":25,"ran":10,"repositories":3}},"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":18,"samples":[{"code_sha256_prefix":"e974f4bd178ed565","entry":"ast_replace","repo":"tile-ai/tilelang","repo_kind":"found_in_text","path":"tilelang/autodd.py","file_url":"https://github.com/tile-ai/tilelang/blob/HEAD/tilelang/autodd.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"e974f4bd178ed565"}},{"code_sha256_prefix":"8d7da170dd13a4b2","entry":"enrich_error","repo":"tile-ai/tilelang","repo_kind":"found_in_text","path":"tilelang/errors.py","file_url":"https://github.com/tile-ai/tilelang/blob/HEAD/tilelang/errors.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"8d7da170dd13a4b2"}},{"code_sha256_prefix":"59f90204f7a703ac","entry":"get_sparse_attn_mask_from_threshold","repo":"tile-ai/tilelang","repo_kind":"found_in_text","path":"benchmark/blocksparse_attention/benchmark_tilelang_block_sparse_fmha.py","file_url":"https://github.com/tile-ai/tilelang/blob/HEAD/benchmark/blocksparse_attention/benchmark_tilelang_block_sparse_fmha.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"59f90204f7a703ac"}},{"code_sha256_prefix":"2a5505e23545a896","entry":"parse_expr","repo":"tile-ai/tilelang","repo_kind":"found_in_text","path":"tilelang/autodd.py","file_url":"https://github.com/tile-ai/tilelang/blob/HEAD/tilelang/autodd.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"2a5505e23545a896"}},{"code_sha256_prefix":"217c15b4d65b4275","entry":"parse_pass_profile_threshold_ms","repo":"tile-ai/tilelang","repo_kind":"found_in_text","path":"tilelang/env.py","file_url":"https://github.com/tile-ai/tilelang/blob/HEAD/tilelang/env.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"217c15b4d65b4275"}},{"code_sha256_prefix":"8352f04e0096d0a2","entry":"parse_stmts","repo":"tile-ai/tilelang","repo_kind":"found_in_text","path":"tilelang/autodd.py","file_url":"https://github.com/tile-ai/tilelang/blob/HEAD/tilelang/autodd.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"8352f04e0096d0a2"}},{"code_sha256_prefix":"fb633f5db7d21b29","entry":"resolve_pass_profile_threshold_ms","repo":"tile-ai/tilelang","repo_kind":"found_in_text","path":"tilelang/env.py","file_url":"https://github.com/tile-ai/tilelang/blob/HEAD/tilelang/env.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"fb633f5db7d21b29"}},{"code_sha256_prefix":"965fb3065b913305","entry":"sinkhorn_bwd_configs","repo":"yixuan/mHC-proj","repo_kind":"found_in_text","path":"benchmark/mhc/tilelang/tileexamples/example_mhc_bwd.py","file_url":"https://github.com/yixuan/mHC-proj/blob/HEAD/benchmark/mhc/tilelang/tileexamples/example_mhc_bwd.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"965fb3065b913305"}},{"code_sha256_prefix":"3af4129d0baacac5","entry":"sinkhorn_forward","repo":"yixuan/mHC-proj","repo_kind":"found_in_text","path":"benchmark/mhc/tilelang/tileexamples/example_mhc_bwd.py","file_url":"https://github.com/yixuan/mHC-proj/blob/HEAD/benchmark/mhc/tilelang/tileexamples/example_mhc_bwd.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"3af4129d0baacac5"}},{"code_sha256_prefix":"262c7809a2c5c065","entry":"sinkhorn_normalize_ref","repo":"yixuan/mHC-proj","repo_kind":"found_in_text","path":"benchmark/mhc/tilelang/tileexamples/example_mhc_pre.py","file_url":"https://github.com/yixuan/mHC-proj/blob/HEAD/benchmark/mhc/tilelang/tileexamples/example_mhc_pre.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"262c7809a2c5c065"}},{"code_sha256_prefix":"c0f41b9b1a95cc70","entry":"MHCLayer","repo":"AndreSlavescu/mHC.cu","repo_kind":"found_in_text","path":"src/python/mhc/layer.py","file_url":"https://github.com/AndreSlavescu/mHC.cu/blob/HEAD/src/python/mhc/layer.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":"c0f41b9b1a95cc70"}},{"code_sha256_prefix":"7c329ee6d11ac976","entry":"MHCLayerDynamicFunction","repo":"AndreSlavescu/mHC.cu","repo_kind":"found_in_text","path":"src/python/mhc/layer.py","file_url":"https://github.com/AndreSlavescu/mHC.cu/blob/HEAD/src/python/mhc/layer.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":"7c329ee6d11ac976"}},{"code_sha256_prefix":"c5999cb7ded3fbf5","entry":"MHCLayerFunction","repo":"AndreSlavescu/mHC.cu","repo_kind":"found_in_text","path":"src/python/mhc/layer.py","file_url":"https://github.com/AndreSlavescu/mHC.cu/blob/HEAD/src/python/mhc/layer.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":"c5999cb7ded3fbf5"}},{"code_sha256_prefix":"bb55715d4d98f5d9","entry":"find_lib_path","repo":"tile-ai/tilelang","repo_kind":"found_in_text","path":"tilelang/libinfo.py","file_url":"https://github.com/tile-ai/tilelang/blob/HEAD/tilelang/libinfo.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"bb55715d4d98f5d9"}},{"code_sha256_prefix":"5a7ebea60532e87e","entry":"get_sparse_attn_mask_from_topk","repo":"tile-ai/tilelang","repo_kind":"found_in_text","path":"benchmark/blocksparse_attention/benchmark_tilelang_block_sparse_fmha.py","file_url":"https://github.com/tile-ai/tilelang/blob/HEAD/benchmark/blocksparse_attention/benchmark_tilelang_block_sparse_fmha.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"5a7ebea60532e87e"}},{"code_sha256_prefix":"de2aeba37cd0d5fa","entry":"mhc_layer_fused","repo":"AndreSlavescu/mHC.cu","repo_kind":"found_in_text","path":"src/python/mhc/layer.py","file_url":"https://github.com/AndreSlavescu/mHC.cu/blob/HEAD/src/python/mhc/layer.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":"de2aeba37cd0d5fa"}},{"code_sha256_prefix":"a9653fc9dfc2f5cf","entry":"mhc_layer_fused_dynamic","repo":"AndreSlavescu/mHC.cu","repo_kind":"found_in_text","path":"src/python/mhc/layer.py","file_url":"https://github.com/AndreSlavescu/mHC.cu/blob/HEAD/src/python/mhc/layer.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":"a9653fc9dfc2f5cf"}},{"code_sha256_prefix":"73d4e398bf5771a9","entry":"mhc_layer_fused_dynamic_inference","repo":"AndreSlavescu/mHC.cu","repo_kind":"found_in_text","path":"src/python/mhc/layer.py","file_url":"https://github.com/AndreSlavescu/mHC.cu/blob/HEAD/src/python/mhc/layer.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":"73d4e398bf5771a9"}},{"code_sha256_prefix":"eac1238da138b9a1","entry":"mhc_layer_fused_inference","repo":"AndreSlavescu/mHC.cu","repo_kind":"found_in_text","path":"src/python/mhc/layer.py","file_url":"https://github.com/AndreSlavescu/mHC.cu/blob/HEAD/src/python/mhc/layer.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":"eac1238da138b9a1"}},{"code_sha256_prefix":"cffd036edc98927f","entry":"mhc_pre_ref","repo":"yixuan/mHC-proj","repo_kind":"found_in_text","path":"benchmark/mhc/tilelang/tileexamples/example_mhc_pre.py","file_url":"https://github.com/yixuan/mHC-proj/blob/HEAD/benchmark/mhc/tilelang/tileexamples/example_mhc_pre.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"cffd036edc98927f"}},{"code_sha256_prefix":"6151a5cbf6b46f4f","entry":"sinkhorn_knopp_tilekernels_n4_backward","repo":"yixuan/mHC-proj","repo_kind":"found_in_text","path":"benchmark/mhc/tilelang/tilekernels/kernels.py","file_url":"https://github.com/yixuan/mHC-proj/blob/HEAD/benchmark/mhc/tilelang/tilekernels/kernels.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"6151a5cbf6b46f4f"}},{"code_sha256_prefix":"b3d2122e2dc0275a","entry":"sinkhorn_knopp_tilekernels_n4_forward","repo":"yixuan/mHC-proj","repo_kind":"found_in_text","path":"benchmark/mhc/tilelang/tilekernels/kernels.py","file_url":"https://github.com/yixuan/mHC-proj/blob/HEAD/benchmark/mhc/tilelang/tilekernels/kernels.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b3d2122e2dc0275a"}},{"code_sha256_prefix":"b5ca29a3a9f1425f","entry":"vanilla","repo":"yixuan/mHC-proj","repo_kind":"found_in_text","path":"benchmark/accuracy.py","file_url":"https://github.com/yixuan/mHC-proj/blob/HEAD/benchmark/accuracy.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b5ca29a3a9f1425f"}},{"code_sha256_prefix":"d6899deeb47b44ea","entry":"vanilla_fwd","repo":"yixuan/mHC-proj","repo_kind":"found_in_text","path":"benchmark/runtime.py","file_url":"https://github.com/yixuan/mHC-proj/blob/HEAD/benchmark/runtime.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d6899deeb47b44ea"}},{"code_sha256_prefix":"ac65aa82ba90925d","entry":"vanilla_fwd_bwd","repo":"yixuan/mHC-proj","repo_kind":"found_in_text","path":"benchmark/runtime.py","file_url":"https://github.com/yixuan/mHC-proj/blob/HEAD/benchmark/runtime.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ac65aa82ba90925d"}}]},"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":{"kind":"leaderboard_placements","source":"Syntology's leaderboard-shaped extractor over the paper's own arXiv-HTML tables: a model pointed at a cell, the number was read from that cell and checked against the board's metric, dataset, split and scale, and an independent check accepted the entry; not reviewed by the paper's authors or the archive's editors","extractor_model":"global.anthropic.claude-sonnet-4-5-20250929-v1:0","verifier_model":null,"prompt_sha":"fa63d4bb9d755694","coverage":{"sentence":"Syntology has checked 7,081 of the 9,623 papers on this site that are newer than the archive; results from the others appear after they are checked.","papers_newer_than_archive":9623,"papers_checked":7081},"entries":[],"not_placed":{"boards":0,"rejected_by_independent_check":0,"refused_by_a_rule":0,"check_did_not_answer":0,"proposed_without_a_cell":0,"declined_by_site":0}}}