{"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/selective-focus-investigating-semantics","title":"Selective Focus: Investigating Semantics Sensitivity in Post-training Quantization for Lane Detection","arxiv_id":"2405.06264","date":"2024-05-10","proceeding":null,"authors":["Yunqian Fan","Xiuying Wei","Ruihao Gong","Yuqing Ma","Xiangguo Zhang","Qi Zhang","Xianglong Liu"],"abstract":"Lane detection (LD) plays a crucial role in enhancing the L2+ capabilities of autonomous driving, capturing widespread attention. The Post-Processing Quantization (PTQ) could facilitate the practical application of LD models, enabling fast speeds and limited memories without labeled data. However, prior PTQ methods do not consider the complex LD outputs that contain physical semantics, such as offsets, locations, etc., and thus cannot be directly applied to LD models. In this paper, we pioneeringly investigate semantic sensitivity to post-processing for lane detection with a novel Lane Distortion Score. Moreover, we identify two main factors impacting the LD performance after quantization, namely intra-head sensitivity and inter-head sensitivity, where a small quantization error in specific semantics can cause significant lane distortion. Thus, we propose a Selective Focus framework deployed with Semantic Guided Focus and Sensitivity Aware Selection modules, to incorporate post-processing information into PTQ reconstruction. Based on the observed intra-head sensitivity, Semantic Guided Focus is introduced to prioritize foreground-related semantics using a practical proxy. For inter-head sensitivity, we present Sensitivity Aware Selection, efficiently recognizing influential prediction heads and refining the optimization objectives at runtime. Extensive experiments have been done on a wide variety of models including keypoint-, anchor-, curve-, and segmentation-based ones. Our method produces quantized models in minutes on a single GPU and can achieve 6.4% F1 Score improvement on the CULane dataset.","url_abs":"https://arxiv.org/abs/2405.06264v1","url_pdf":"https://arxiv.org/pdf/2405.06264v1.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":[{"task_slug":"autonomous-driving","task_name":"Autonomous Driving"},{"task_slug":null,"task_name":"GPU"},{"task_slug":"lane-detection","task_name":"Lane Detection"},{"task_slug":"quantization","task_name":"Quantization"},{"task_slug":"sensitivity","task_name":"Sensitivity"}],"methods":[{"method_slug":"aware","method_name":"AWARE"},{"method_slug":"focus","method_name":"Focus"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2405.06264","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2405.06264"}},"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/PannenetsF/SelectiveFocus","reach":null}],"summary":{"ran_draft_wrong":3,"ran":3,"unverified":8},"by_repo_kind":{"found_in_text":{"samples":14,"ran":6,"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":"9abccdfbe5440910","entry":"QConfig","repo":"PannenetsF/SelectiveFocus","repo_kind":"found_in_text","path":"pad/utils/runners/lane_det_quant_trainer.py","file_url":"https://github.com/PannenetsF/SelectiveFocus/blob/HEAD/pad/utils/runners/lane_det_quant_trainer.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"9abccdfbe5440910"}},{"code_sha256_prefix":"41ff89724cf234e1","entry":"get_rank","repo":"PannenetsF/SelectiveFocus","repo_kind":"found_in_text","path":"pad/utils/runners/lane_det_quant_trainer.py","file_url":"https://github.com/PannenetsF/SelectiveFocus/blob/HEAD/pad/utils/runners/lane_det_quant_trainer.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"41ff89724cf234e1"}},{"code_sha256_prefix":"eb3e7062d67261a5","entry":"get_sampler","repo":"PannenetsF/SelectiveFocus","repo_kind":"found_in_text","path":"pad/utils/runners/lane_det_quant_trainer.py","file_url":"https://github.com/PannenetsF/SelectiveFocus/blob/HEAD/pad/utils/runners/lane_det_quant_trainer.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"eb3e7062d67261a5"}},{"code_sha256_prefix":"c9d133b7656f2129","entry":"get_world_size","repo":"PannenetsF/SelectiveFocus","repo_kind":"found_in_text","path":"pad/utils/runners/lane_det_quant_trainer.py","file_url":"https://github.com/PannenetsF/SelectiveFocus/blob/HEAD/pad/utils/runners/lane_det_quant_trainer.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c9d133b7656f2129"}},{"code_sha256_prefix":"e4d71e90ee09ce61","entry":"is_main_process","repo":"PannenetsF/SelectiveFocus","repo_kind":"found_in_text","path":"pad/utils/runners/lane_det_quant_trainer.py","file_url":"https://github.com/PannenetsF/SelectiveFocus/blob/HEAD/pad/utils/runners/lane_det_quant_trainer.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":"e4d71e90ee09ce61"}},{"code_sha256_prefix":"3a37f431350cb887","entry":"reduce_dict","repo":"PannenetsF/SelectiveFocus","repo_kind":"found_in_text","path":"pad/utils/runners/lane_det_quant_trainer.py","file_url":"https://github.com/PannenetsF/SelectiveFocus/blob/HEAD/pad/utils/runners/lane_det_quant_trainer.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"3a37f431350cb887"}},{"code_sha256_prefix":"211dabacfbcea7c7","entry":"BaseRunner","repo":"PannenetsF/SelectiveFocus","repo_kind":"found_in_text","path":"pad/utils/runners/lane_det_quant_trainer.py","file_url":"https://github.com/PannenetsF/SelectiveFocus/blob/HEAD/pad/utils/runners/lane_det_quant_trainer.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":"211dabacfbcea7c7"}},{"code_sha256_prefix":"ddbb781402a89bb4","entry":"BaseTrainer","repo":"PannenetsF/SelectiveFocus","repo_kind":"found_in_text","path":"pad/utils/runners/lane_det_quant_trainer.py","file_url":"https://github.com/PannenetsF/SelectiveFocus/blob/HEAD/pad/utils/runners/lane_det_quant_trainer.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":"ddbb781402a89bb4"}},{"code_sha256_prefix":"b1603fdccb472975","entry":"LaneDetQuantTrainer","repo":"PannenetsF/SelectiveFocus","repo_kind":"found_in_text","path":"pad/utils/runners/lane_det_quant_trainer.py","file_url":"https://github.com/PannenetsF/SelectiveFocus/blob/HEAD/pad/utils/runners/lane_det_quant_trainer.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":"b1603fdccb472975"}},{"code_sha256_prefix":"c89efb6f77bb1758","entry":"LaneDetTrainer","repo":"PannenetsF/SelectiveFocus","repo_kind":"found_in_text","path":"pad/utils/runners/lane_det_quant_trainer.py","file_url":"https://github.com/PannenetsF/SelectiveFocus/blob/HEAD/pad/utils/runners/lane_det_quant_trainer.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":"c89efb6f77bb1758"}},{"code_sha256_prefix":"2a2c02ba64d3e902","entry":"get_collate_fn","repo":"PannenetsF/SelectiveFocus","repo_kind":"found_in_text","path":"pad/utils/runners/lane_det_quant_trainer.py","file_url":"https://github.com/PannenetsF/SelectiveFocus/blob/HEAD/pad/utils/runners/lane_det_quant_trainer.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":"2a2c02ba64d3e902"}},{"code_sha256_prefix":"fee17d06c0661f3e","entry":"init_distributed_mode","repo":"PannenetsF/SelectiveFocus","repo_kind":"found_in_text","path":"pad/utils/runners/lane_det_quant_trainer.py","file_url":"https://github.com/PannenetsF/SelectiveFocus/blob/HEAD/pad/utils/runners/lane_det_quant_trainer.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":"fee17d06c0661f3e"}},{"code_sha256_prefix":"045cf9d1358080e2","entry":"set_random_seed","repo":"PannenetsF/SelectiveFocus","repo_kind":"found_in_text","path":"pad/utils/runners/lane_det_quant_trainer.py","file_url":"https://github.com/PannenetsF/SelectiveFocus/blob/HEAD/pad/utils/runners/lane_det_quant_trainer.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":"045cf9d1358080e2"}},{"code_sha256_prefix":"689e589a252baec7","entry":"setup_for_distributed","repo":"PannenetsF/SelectiveFocus","repo_kind":"found_in_text","path":"pad/utils/runners/lane_det_quant_trainer.py","file_url":"https://github.com/PannenetsF/SelectiveFocus/blob/HEAD/pad/utils/runners/lane_det_quant_trainer.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":"689e589a252baec7"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}