{"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/scene-adaptive-sparse-transformer-for-event","title":"Scene Adaptive Sparse Transformer for Event-based Object Detection","arxiv_id":"2404.01882","date":"2024-04-02","proceeding":"CVPR 2024 1","authors":["Yansong Peng","Hebei Li","Yueyi Zhang","Xiaoyan Sun","Feng Wu"],"abstract":"While recent Transformer-based approaches have shown impressive performances on event-based object detection tasks, their high computational costs still diminish the low power consumption advantage of event cameras. Image-based works attempt to reduce these costs by introducing sparse Transformers. However, they display inadequate sparsity and adaptability when applied to event-based object detection, since these approaches cannot balance the fine granularity of token-level sparsification and the efficiency of window-based Transformers, leading to reduced performance and efficiency. Furthermore, they lack scene-specific sparsity optimization, resulting in information loss and a lower recall rate. To overcome these limitations, we propose the Scene Adaptive Sparse Transformer (SAST). SAST enables window-token co-sparsification, significantly enhancing fault tolerance and reducing computational overhead. Leveraging the innovative scoring and selection modules, along with the Masked Sparse Window Self-Attention, SAST showcases remarkable scene-aware adaptability: It focuses only on important objects and dynamically optimizes sparsity level according to scene complexity, maintaining a remarkable balance between performance and computational cost. The evaluation results show that SAST outperforms all other dense and sparse networks in both performance and efficiency on two large-scale event-based object detection datasets (1Mpx and Gen1). Code: https://github.com/Peterande/SAST","url_abs":"https://arxiv.org/abs/2404.01882v1","url_pdf":"https://arxiv.org/pdf/2404.01882v1.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":"scene-adaptive-sparse-transformer-for-event","repo_url":"https://github.com/peterande/sast","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"object","task_name":"Object"},{"task_slug":"object-detection","task_name":"Object Detection"},{"task_slug":"object-detection-1","task_name":"object-detection"}],"methods":[{"method_slug":"absolute-position-encodings","method_name":"Absolute Position Encodings"},{"method_slug":"adam","method_name":"Adam"},{"method_slug":"attention","method_name":"Attention"},{"method_slug":"attention-dropout","method_name":"Attention Dropout"},{"method_slug":"bpe","method_name":"BPE"},{"method_slug":"cosine-annealing","method_name":"Cosine Annealing"},{"method_slug":"dense-connections","method_name":"Dense Connections"},{"method_slug":"dropout","method_name":"Dropout"},{"method_slug":"label-smoothing","method_name":"Label Smoothing"},{"method_slug":"layer-normalization","method_name":"Layer Normalization"},{"method_slug":"linear-layer","method_name":"Linear Layer"},{"method_slug":"linear-warmup-with-cosine-annealing","method_name":"Linear Warmup With Cosine Annealing"},{"method_slug":"multi-head-attention","method_name":"Multi-Head Attention"},{"method_slug":"position-wise-feed-forward-layer","method_name":"Position-Wise Feed-Forward Layer"},{"method_slug":"residual-connection","method_name":"Residual Connection"},{"method_slug":"softmax","method_name":"Softmax"},{"method_slug":"sparse-transformer","method_name":"Sparse Transformer"},{"method_slug":"transformer","method_name":"Transformer"},{"method_slug":"weight-decay","method_name":"Weight Decay"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2404.01882","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2404.01882"}},"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":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/peterande/sast","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":19,"unverified":4},"by_repo_kind":{"official":{"samples":23,"ran":19,"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":"bbb0ade8018ebd05","entry":"adaptive_avgmax_pool2d","repo":"peterande/sast","repo_kind":"official","path":"models/layers/SAST/layers/adaptive_avgmax_pool.py","file_url":"https://github.com/peterande/sast/blob/HEAD/models/layers/SAST/layers/adaptive_avgmax_pool.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"bbb0ade8018ebd05"}},{"code_sha256_prefix":"c98e5e298f086636","entry":"adaptive_catavgmax_pool2d","repo":"peterande/sast","repo_kind":"official","path":"models/layers/SAST/layers/adaptive_avgmax_pool.py","file_url":"https://github.com/peterande/sast/blob/HEAD/models/layers/SAST/layers/adaptive_avgmax_pool.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c98e5e298f086636"}},{"code_sha256_prefix":"01c6892d9a801397","entry":"adaptive_pool_feat_mult","repo":"peterande/sast","repo_kind":"official","path":"models/layers/SAST/layers/adaptive_avgmax_pool.py","file_url":"https://github.com/peterande/sast/blob/HEAD/models/layers/SAST/layers/adaptive_avgmax_pool.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"01c6892d9a801397"}},{"code_sha256_prefix":"cbbc57f409d42ffa","entry":"get_score_index_2d21d","repo":"peterande/sast","repo_kind":"official","path":"models/layers/SAST/SAST.py","file_url":"https://github.com/peterande/sast/blob/HEAD/models/layers/SAST/SAST.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"cbbc57f409d42ffa"}},{"code_sha256_prefix":"81ac552f9dbe370b","entry":"get_score_index_with_padding","repo":"peterande/sast","repo_kind":"official","path":"models/layers/SAST/SAST.py","file_url":"https://github.com/peterande/sast/blob/HEAD/models/layers/SAST/SAST.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"81ac552f9dbe370b"}},{"code_sha256_prefix":"91c27523dde7eb4a","entry":"hard_sigmoid_jit","repo":"peterande/sast","repo_kind":"official","path":"models/layers/SAST/layers/activations_jit.py","file_url":"https://github.com/peterande/sast/blob/HEAD/models/layers/SAST/layers/activations_jit.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"91c27523dde7eb4a"}},{"code_sha256_prefix":"4145a10ea19abed7","entry":"measure_average_inference_time","repo":"peterande/sast","repo_kind":"official","path":"benchmark.py","file_url":"https://github.com/peterande/sast/blob/HEAD/benchmark.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"4145a10ea19abed7"}},{"code_sha256_prefix":"c846e38866e73be5","entry":"measure_average_inference_time_iter","repo":"peterande/sast","repo_kind":"official","path":"benchmark.py","file_url":"https://github.com/peterande/sast/blob/HEAD/benchmark.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c846e38866e73be5"}},{"code_sha256_prefix":"801c85b8903bfff5","entry":"mish","repo":"peterande/sast","repo_kind":"official","path":"models/layers/SAST/layers/activations.py","file_url":"https://github.com/peterande/sast/blob/HEAD/models/layers/SAST/layers/activations.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"801c85b8903bfff5"}},{"code_sha256_prefix":"14eddd8cc4c65fe0","entry":"mish_jit","repo":"peterande/sast","repo_kind":"official","path":"models/layers/SAST/layers/activations_jit.py","file_url":"https://github.com/peterande/sast/blob/HEAD/models/layers/SAST/layers/activations_jit.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"14eddd8cc4c65fe0"}},{"code_sha256_prefix":"e6af227db6ae09fc","entry":"nChw_2_nhwC","repo":"peterande/sast","repo_kind":"official","path":"models/detection/recurrent_backbone/sast_rnn.py","file_url":"https://github.com/peterande/sast/blob/HEAD/models/detection/recurrent_backbone/sast_rnn.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e6af227db6ae09fc"}},{"code_sha256_prefix":"fd2881b1b9beb054","entry":"nhwC_2_nChw","repo":"peterande/sast","repo_kind":"official","path":"models/detection/recurrent_backbone/sast_rnn.py","file_url":"https://github.com/peterande/sast/blob/HEAD/models/detection/recurrent_backbone/sast_rnn.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"fd2881b1b9beb054"}},{"code_sha256_prefix":"137e22c9aa778ef8","entry":"non_zero_ratio","repo":"peterande/sast","repo_kind":"official","path":"models/detection/recurrent_backbone/sast_rnn.py","file_url":"https://github.com/peterande/sast/blob/HEAD/models/detection/recurrent_backbone/sast_rnn.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"137e22c9aa778ef8"}},{"code_sha256_prefix":"d83b6ecf3cdc1d6a","entry":"sigmoid","repo":"peterande/sast","repo_kind":"official","path":"models/layers/SAST/layers/activations.py","file_url":"https://github.com/peterande/sast/blob/HEAD/models/layers/SAST/layers/activations.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d83b6ecf3cdc1d6a"}},{"code_sha256_prefix":"717e4d22b6d103e6","entry":"swish","repo":"peterande/sast","repo_kind":"official","path":"models/layers/SAST/layers/activations.py","file_url":"https://github.com/peterande/sast/blob/HEAD/models/layers/SAST/layers/activations.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"717e4d22b6d103e6"}},{"code_sha256_prefix":"8e341f8585b3fe94","entry":"swish_jit","repo":"peterande/sast","repo_kind":"official","path":"models/layers/SAST/layers/activations_jit.py","file_url":"https://github.com/peterande/sast/blob/HEAD/models/layers/SAST/layers/activations_jit.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"8e341f8585b3fe94"}},{"code_sha256_prefix":"ccf59d4aa2ccacdb","entry":"swish_jit_bwd","repo":"peterande/sast","repo_kind":"official","path":"models/layers/SAST/layers/activations_me.py","file_url":"https://github.com/peterande/sast/blob/HEAD/models/layers/SAST/layers/activations_me.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ccf59d4aa2ccacdb"}},{"code_sha256_prefix":"2d53e47b891cd927","entry":"swish_jit_fwd","repo":"peterande/sast","repo_kind":"official","path":"models/layers/SAST/layers/activations_me.py","file_url":"https://github.com/peterande/sast/blob/HEAD/models/layers/SAST/layers/activations_me.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2d53e47b891cd927"}},{"code_sha256_prefix":"51a2f9920a170144","entry":"swish_me","repo":"peterande/sast","repo_kind":"official","path":"models/layers/SAST/layers/activations_me.py","file_url":"https://github.com/peterande/sast/blob/HEAD/models/layers/SAST/layers/activations_me.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"51a2f9920a170144"}},{"code_sha256_prefix":"d3e74ef9dbf0cdbd","entry":"compute_fps","repo":"peterande/sast","repo_kind":"official","path":"benchmark.py","file_url":"https://github.com/peterande/sast/blob/HEAD/benchmark.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":"d3e74ef9dbf0cdbd"}},{"code_sha256_prefix":"08cbeea40a76034a","entry":"get_downsample_layer_Cf2Cl","repo":"peterande/sast","repo_kind":"official","path":"models/layers/SAST/ops.py","file_url":"https://github.com/peterande/sast/blob/HEAD/models/layers/SAST/ops.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":"08cbeea40a76034a"}},{"code_sha256_prefix":"d3003493fd75fcd5","entry":"get_non_zero_ratio","repo":"peterande/sast","repo_kind":"official","path":"models/layers/SAST/SAST.py","file_url":"https://github.com/peterande/sast/blob/HEAD/models/layers/SAST/SAST.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":"d3003493fd75fcd5"}},{"code_sha256_prefix":"f0b44651e598ca66","entry":"rel_logits_1d","repo":"peterande/sast","repo_kind":"official","path":"models/layers/SAST/layers/bottleneck_attn.py","file_url":"https://github.com/peterande/sast/blob/HEAD/models/layers/SAST/layers/bottleneck_attn.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":"f0b44651e598ca66"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}