{"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/sparsett-visual-tracking-with-sparse","title":"SparseTT: Visual Tracking with Sparse Transformers","arxiv_id":"2205.03776","date":"2022-05-08","proceeding":null,"authors":["Zhihong Fu","Zehua Fu","Qingjie Liu","Wenrui Cai","Yunhong Wang"],"abstract":"Transformers have been successfully applied to the visual tracking task and significantly promote tracking performance. The self-attention mechanism designed to model long-range dependencies is the key to the success of Transformers. However, self-attention lacks focusing on the most relevant information in the search regions, making it easy to be distracted by background. In this paper, we relieve this issue with a sparse attention mechanism by focusing the most relevant information in the search regions, which enables a much accurate tracking. Furthermore, we introduce a double-head predictor to boost the accuracy of foreground-background classification and regression of target bounding boxes, which further improve the tracking performance. Extensive experiments show that, without bells and whistles, our method significantly outperforms the state-of-the-art approaches on LaSOT, GOT-10k, TrackingNet, and UAV123, while running at 40 FPS. Notably, the training time of our method is reduced by 75% compared to that of TransT. The source code and models are available at https://github.com/fzh0917/SparseTT.","url_abs":"https://arxiv.org/abs/2205.03776v1","url_pdf":"https://arxiv.org/pdf/2205.03776v1.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":"sparsett-visual-tracking-with-sparse","repo_url":"https://github.com/fzh0917/sparsett","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"visual-tracking","task_name":"Visual Tracking"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2205.03776","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2205.03776"}},"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/fzh0917/SparseTT","reach":null}],"summary":{"ran_draft_wrong":2,"ran_fixture":1,"unverified":2},"by_repo_kind":{"official":{"samples":5,"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":0,"samples":[{"code_sha256_prefix":"46a5c304f9496352","entry":"_in_projection","repo":"fzh0917/SparseTT","repo_kind":"official","path":"videoanalyst/model/utils/multi_head_attention_topk.py","file_url":"https://github.com/fzh0917/SparseTT/blob/HEAD/videoanalyst/model/utils/multi_head_attention_topk.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"46a5c304f9496352"}},{"code_sha256_prefix":"3b431f1271f7e934","entry":"_in_projection_packed","repo":"fzh0917/SparseTT","repo_kind":"official","path":"videoanalyst/model/utils/multi_head_attention_topk.py","file_url":"https://github.com/fzh0917/SparseTT/blob/HEAD/videoanalyst/model/utils/multi_head_attention_topk.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3b431f1271f7e934"}},{"code_sha256_prefix":"28b1767f6122dd8b","entry":"_scaled_dot_product_attention_topk","repo":"fzh0917/SparseTT","repo_kind":"official","path":"videoanalyst/model/utils/multi_head_attention_topk.py","file_url":"https://github.com/fzh0917/SparseTT/blob/HEAD/videoanalyst/model/utils/multi_head_attention_topk.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"28b1767f6122dd8b"}},{"code_sha256_prefix":"d396a79efde4c6a4","entry":"MultiHeadAttentionTopK","repo":"fzh0917/SparseTT","repo_kind":"official","path":"videoanalyst/model/utils/multi_head_attention_topk.py","file_url":"https://github.com/fzh0917/SparseTT/blob/HEAD/videoanalyst/model/utils/multi_head_attention_topk.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":"d396a79efde4c6a4"}},{"code_sha256_prefix":"4c32f65341cfff95","entry":"multi_head_attention_forward_topk","repo":"fzh0917/SparseTT","repo_kind":"official","path":"videoanalyst/model/utils/multi_head_attention_topk.py","file_url":"https://github.com/fzh0917/SparseTT/blob/HEAD/videoanalyst/model/utils/multi_head_attention_topk.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":"4c32f65341cfff95"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}