{"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/understanding-matrix-function-normalizations","title":"Understanding Matrix Function Normalizations in Covariance Pooling through the Lens of Riemannian Geometry","arxiv_id":"2407.10484","date":"2024-07-15","proceeding":null,"authors":["Ziheng Chen","Yue Song","Xiao-Jun Wu","Gaowen Liu","Nicu Sebe"],"abstract":"Global Covariance Pooling (GCP) has been demonstrated to improve the performance of Deep Neural Networks (DNNs) by exploiting second-order statistics of high-level representations. GCP typically performs classification of the covariance matrices by applying matrix function normalization, such as matrix logarithm or power, followed by a Euclidean classifier. However, covariance matrices inherently lie in a Riemannian manifold, known as the Symmetric Positive Definite (SPD) manifold. The current literature does not provide a satisfactory explanation of why Euclidean classifiers can be applied directly to Riemannian features after the normalization of the matrix power. To mitigate this gap, this paper provides a comprehensive and unified understanding of the matrix logarithm and power from a Riemannian geometry perspective. The underlying mechanism of matrix functions in GCP is interpreted from two perspectives: one based on tangent classifiers (Euclidean classifiers on the tangent space) and the other based on Riemannian classifiers. Via theoretical analysis and empirical validation through extensive experiments on fine-grained and large-scale visual classification datasets, we conclude that the working mechanism of the matrix functions should be attributed to the Riemannian classifiers they implicitly respect.","url_abs":"https://arxiv.org/abs/2407.10484v2","url_pdf":"https://arxiv.org/pdf/2407.10484v2.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":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2407.10484","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2407.10484"}},"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":"deterministic:regex_extraction","url":"https://github.com/GitZH-Chen/RiemGCP","reach":null}],"summary":{"ran_draft_wrong":2,"ran_fixture":1},"by_repo_kind":{"found_in_text":{"samples":3,"ran":3,"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":3,"samples":[{"code_sha256_prefix":"3d1d24e276e5fa29","entry":"CovpoolLayer","repo":"GitZH-Chen/RiemGCP","repo_kind":"found_in_text","path":"src/representation/MPNCOV.py","file_url":"https://github.com/GitZH-Chen/RiemGCP/blob/HEAD/src/representation/MPNCOV.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"3d1d24e276e5fa29"}},{"code_sha256_prefix":"3c7b6412a1bc9cf4","entry":"SqrtmLayer","repo":"GitZH-Chen/RiemGCP","repo_kind":"found_in_text","path":"src/representation/MPNCOV.py","file_url":"https://github.com/GitZH-Chen/RiemGCP/blob/HEAD/src/representation/MPNCOV.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"3c7b6412a1bc9cf4"}},{"code_sha256_prefix":"79779889169ce6af","entry":"TriuvecLayer","repo":"GitZH-Chen/RiemGCP","repo_kind":"found_in_text","path":"src/representation/MPNCOV.py","file_url":"https://github.com/GitZH-Chen/RiemGCP/blob/HEAD/src/representation/MPNCOV.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"79779889169ce6af"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}