{"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/temporal-attentive-covariance-pooling","title":"Temporal-attentive Covariance Pooling Networks for Video Recognition","arxiv_id":"2110.14381","date":"2021-10-27","proceeding":"NeurIPS 2021 12","authors":["Zilin Gao","Qilong Wang","Bingbing Zhang","QinGhua Hu","Peihua Li"],"abstract":"For video recognition task, a global representation summarizing the whole contents of the video snippets plays an important role for the final performance. However, existing video architectures usually generate it by using a simple, global average pooling (GAP) method, which has limited ability to capture complex dynamics of videos. For image recognition task, there exist evidences showing that covariance pooling has stronger representation ability than GAP. Unfortunately, such plain covariance pooling used in image recognition is an orderless representative, which cannot model spatio-temporal structure inherent in videos. Therefore, this paper proposes a Temporal-attentive Covariance Pooling(TCP), inserted at the end of deep architectures, to produce powerful video representations. Specifically, our TCP first develops a temporal attention module to adaptively calibrate spatio-temporal features for the succeeding covariance pooling, approximatively producing attentive covariance representations. Then, a temporal covariance pooling performs temporal pooling of the attentive covariance representations to characterize both intra-frame correlations and inter-frame cross-correlations of the calibrated features. As such, the proposed TCP can capture complex temporal dynamics. Finally, a fast matrix power normalization is introduced to exploit geometry of covariance representations. Note that our TCP is model-agnostic and can be flexibly integrated into any video architectures, resulting in TCPNet for effective video recognition. The extensive experiments on six benchmarks (e.g., Kinetics, Something-Something V1 and Charades) using various video architectures show our TCPNet is clearly superior to its counterparts, while having strong generalization ability. The source code is publicly available.","url_abs":"https://arxiv.org/abs/2110.14381v3","url_pdf":"https://arxiv.org/pdf/2110.14381v3.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":"temporal-attentive-covariance-pooling","repo_url":"https://github.com/ZilinGao/Temporal-attentive-Covariance-Pooling-Networks-for-Video-Recognition","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"video-recognition","task_name":"Video Recognition"}],"methods":[{"method_slug":"average-pooling","method_name":"Average Pooling"},{"method_slug":"global-average-pooling","method_name":"Global Average Pooling"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2110.14381","atlas_url":"https://app.syntology.ai/?focus=2110.14381","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2110.14381"}},"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":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/ZilinGao/Temporal-attentive-Covariance-Pooling-Networks-for-Video-Recognition","reach":null}],"summary":{"ran_fixture":2,"ran_draft_wrong":1,"unverified":4},"by_repo_kind":{"official":{"samples":6,"ran":2,"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":1,"samples":[{"code_sha256_prefix":"3e3d33392b6ecdd9","entry":"CovpoolLayer","repo":null,"repo_kind":null,"path":null,"file_url":null,"link_basis":"identical_code_first_harvested_elsewhere","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":null,"inline_ok":false,"mcp_get_code":{"code_sha256":"3e3d33392b6ecdd9"}},{"code_sha256_prefix":"6776471b993716d5","entry":"SqrtmLayer","repo":"ZilinGao/Temporal-attentive-Covariance-Pooling-Networks-for-Video-Recognition","repo_kind":"official","path":"ops/TCP/TCP_module.py","file_url":"https://github.com/ZilinGao/Temporal-attentive-Covariance-Pooling-Networks-for-Video-Recognition/blob/HEAD/ops/TCP/TCP_module.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"6776471b993716d5"}},{"code_sha256_prefix":"4449cd6f8dea45fe","entry":"TriuvecLayer","repo":"ZilinGao/Temporal-attentive-Covariance-Pooling-Networks-for-Video-Recognition","repo_kind":"official","path":"ops/TCP/TCP_module.py","file_url":"https://github.com/ZilinGao/Temporal-attentive-Covariance-Pooling-Networks-for-Video-Recognition/blob/HEAD/ops/TCP/TCP_module.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"4449cd6f8dea45fe"}},{"code_sha256_prefix":"5d87fd9203ae46f0","entry":"MPNCOV","repo":"ZilinGao/Temporal-attentive-Covariance-Pooling-Networks-for-Video-Recognition","repo_kind":"official","path":"ops/TCP/TCP_module.py","file_url":"https://github.com/ZilinGao/Temporal-attentive-Covariance-Pooling-Networks-for-Video-Recognition/blob/HEAD/ops/TCP/TCP_module.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"5d87fd9203ae46f0"}},{"code_sha256_prefix":"ba8c3ae89ec35d5e","entry":"Sqrtm","repo":"ZilinGao/Temporal-attentive-Covariance-Pooling-Networks-for-Video-Recognition","repo_kind":"official","path":"ops/TCP/TCP_module.py","file_url":"https://github.com/ZilinGao/Temporal-attentive-Covariance-Pooling-Networks-for-Video-Recognition/blob/HEAD/ops/TCP/TCP_module.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"ba8c3ae89ec35d5e"}},{"code_sha256_prefix":"094cbb7ad19b8d97","entry":"TCP","repo":"ZilinGao/Temporal-attentive-Covariance-Pooling-Networks-for-Video-Recognition","repo_kind":"official","path":"ops/TCP/TCP_module.py","file_url":"https://github.com/ZilinGao/Temporal-attentive-Covariance-Pooling-Networks-for-Video-Recognition/blob/HEAD/ops/TCP/TCP_module.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"094cbb7ad19b8d97"}},{"code_sha256_prefix":"63001ebf5638c4b9","entry":"Triuvec","repo":"ZilinGao/Temporal-attentive-Covariance-Pooling-Networks-for-Video-Recognition","repo_kind":"official","path":"ops/TCP/TCP_module.py","file_url":"https://github.com/ZilinGao/Temporal-attentive-Covariance-Pooling-Networks-for-Video-Recognition/blob/HEAD/ops/TCP/TCP_module.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"63001ebf5638c4b9"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}