{"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/autossvh-exploring-automated-frame-sampling","title":"AutoSSVH: Exploring Automated Frame Sampling for Efficient Self-Supervised Video Hashing","arxiv_id":"2504.03587","date":"2025-04-04","proceeding":"CVPR 2025 1","authors":["Niu Lian","Jun Li","Jinpeng Wang","Ruisheng Luo","YaoWei Wang","Shu-Tao Xia","Bin Chen"],"abstract":"Self-Supervised Video Hashing (SSVH) compresses videos into hash codes for efficient indexing and retrieval using unlabeled training videos. Existing approaches rely on random frame sampling to learn video features and treat all frames equally. This results in suboptimal hash codes, as it ignores frame-specific information density and reconstruction difficulty. To address this limitation, we propose a new framework, termed AutoSSVH, that employs adversarial frame sampling with hash-based contrastive learning. Our adversarial sampling strategy automatically identifies and selects challenging frames with richer information for reconstruction, enhancing encoding capability. Additionally, we introduce a hash component voting strategy and a point-to-set (P2Set) hash-based contrastive objective, which help capture complex inter-video semantic relationships in the Hamming space and improve the discriminability of learned hash codes. Extensive experiments demonstrate that AutoSSVH achieves superior retrieval efficacy and efficiency compared to state-of-the-art approaches. Code is available at https://github.com/EliSpectre/CVPR25-AutoSSVH.","url_abs":"https://arxiv.org/abs/2504.03587v1","url_pdf":"https://arxiv.org/pdf/2504.03587v1.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":"autossvh-exploring-automated-frame-sampling","repo_url":"https://github.com/EliSpectre/CVPR25-AutoSSVH","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"contrastive-learning","task_name":"Contrastive Learning"},{"task_slug":"retrieval","task_name":"Retrieval"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2504.03587","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2504.03587"}},"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/EliSpectre/CVPR25-AutoSSVH","reach":null}],"summary":{"ran":6,"ran_fixture":1,"ran_honours":2,"unverified":5},"by_repo_kind":{"official":{"samples":14,"ran":9,"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":14,"samples":[{"code_sha256_prefix":"e6117615a833f3b6","entry":"Attention","repo":"EliSpectre/CVPR25-AutoSSVH","repo_kind":"official","path":"model/AutoSSVH.py","file_url":"https://github.com/EliSpectre/CVPR25-AutoSSVH/blob/HEAD/model/AutoSSVH.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"e6117615a833f3b6"}},{"code_sha256_prefix":"b7e965b5c4fbf144","entry":"DropPath","repo":"EliSpectre/CVPR25-AutoSSVH","repo_kind":"official","path":"model/AutoSSVH.py","file_url":"https://github.com/EliSpectre/CVPR25-AutoSSVH/blob/HEAD/model/AutoSSVH.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b7e965b5c4fbf144"}},{"code_sha256_prefix":"3d380718a69574e5","entry":"ImportantScore","repo":"EliSpectre/CVPR25-AutoSSVH","repo_kind":"official","path":"model/AutoSSVH.py","file_url":"https://github.com/EliSpectre/CVPR25-AutoSSVH/blob/HEAD/model/AutoSSVH.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"3d380718a69574e5"}},{"code_sha256_prefix":"3ab28f8b588b9388","entry":"Round3","repo":"EliSpectre/CVPR25-AutoSSVH","repo_kind":"official","path":"model/AutoSSVH.py","file_url":"https://github.com/EliSpectre/CVPR25-AutoSSVH/blob/HEAD/model/AutoSSVH.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":"3ab28f8b588b9388"}},{"code_sha256_prefix":"28cc47e76dbaee21","entry":"SampleNet","repo":"EliSpectre/CVPR25-AutoSSVH","repo_kind":"official","path":"model/AutoSSVH.py","file_url":"https://github.com/EliSpectre/CVPR25-AutoSSVH/blob/HEAD/model/AutoSSVH.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"28cc47e76dbaee21"}},{"code_sha256_prefix":"158ad344ab91cc06","entry":"SoftChooseDenseGrad","repo":"EliSpectre/CVPR25-AutoSSVH","repo_kind":"official","path":"model/AutoSSVH.py","file_url":"https://github.com/EliSpectre/CVPR25-AutoSSVH/blob/HEAD/model/AutoSSVH.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":"158ad344ab91cc06"}},{"code_sha256_prefix":"aea2e2185232c611","entry":"__call_trunc_normal_","repo":"EliSpectre/CVPR25-AutoSSVH","repo_kind":"official","path":"model/AutoSSVH.py","file_url":"https://github.com/EliSpectre/CVPR25-AutoSSVH/blob/HEAD/model/AutoSSVH.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"aea2e2185232c611"}},{"code_sha256_prefix":"85cde9a6ed54e358","entry":"get_gumbel","repo":"EliSpectre/CVPR25-AutoSSVH","repo_kind":"official","path":"model/AutoSSVH.py","file_url":"https://github.com/EliSpectre/CVPR25-AutoSSVH/blob/HEAD/model/AutoSSVH.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"85cde9a6ed54e358"}},{"code_sha256_prefix":"5299444dd5349043","entry":"get_sinusoid_encoding_table","repo":"EliSpectre/CVPR25-AutoSSVH","repo_kind":"official","path":"model/AutoSSVH.py","file_url":"https://github.com/EliSpectre/CVPR25-AutoSSVH/blob/HEAD/model/AutoSSVH.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"5299444dd5349043"}},{"code_sha256_prefix":"8bbe4f948732cac1","entry":"AutoSSVH_model","repo":"EliSpectre/CVPR25-AutoSSVH","repo_kind":"official","path":"model/AutoSSVH.py","file_url":"https://github.com/EliSpectre/CVPR25-AutoSSVH/blob/HEAD/model/AutoSSVH.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":"8bbe4f948732cac1"}},{"code_sha256_prefix":"b6979c9643a75f11","entry":"Block","repo":"EliSpectre/CVPR25-AutoSSVH","repo_kind":"official","path":"model/AutoSSVH.py","file_url":"https://github.com/EliSpectre/CVPR25-AutoSSVH/blob/HEAD/model/AutoSSVH.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":"b6979c9643a75f11"}},{"code_sha256_prefix":"ad0355d8be61488b","entry":"Decoder","repo":"EliSpectre/CVPR25-AutoSSVH","repo_kind":"official","path":"model/AutoSSVH.py","file_url":"https://github.com/EliSpectre/CVPR25-AutoSSVH/blob/HEAD/model/AutoSSVH.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":"ad0355d8be61488b"}},{"code_sha256_prefix":"2e4d3cee16039720","entry":"Encoder","repo":"EliSpectre/CVPR25-AutoSSVH","repo_kind":"official","path":"model/AutoSSVH.py","file_url":"https://github.com/EliSpectre/CVPR25-AutoSSVH/blob/HEAD/model/AutoSSVH.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":"2e4d3cee16039720"}},{"code_sha256_prefix":"411015e29d30eff8","entry":"trunc_normal_","repo":"EliSpectre/CVPR25-AutoSSVH","repo_kind":"official","path":"model/AutoSSVH.py","file_url":"https://github.com/EliSpectre/CVPR25-AutoSSVH/blob/HEAD/model/AutoSSVH.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":"411015e29d30eff8"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}