{"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/modeling-multiple-normal-action","title":"Modeling Multiple Normal Action Representations for Error Detection in Procedural Tasks","arxiv_id":"2503.22405","date":"2025-03-28","proceeding":"CVPR 2025 1","authors":["Wei-Jin Huang","Yuan-Ming Li","Zhi-Wei Xia","Yu-Ming Tang","Kun-Yu Lin","Jian-Fang Hu","Wei-Shi Zheng"],"abstract":"Error detection in procedural activities is essential for consistent and correct outcomes in AR-assisted and robotic systems. Existing methods often focus on temporal ordering errors or rely on static prototypes to represent normal actions. However, these approaches typically overlook the common scenario where multiple, distinct actions are valid following a given sequence of executed actions. This leads to two issues: (1) the model cannot effectively detect errors using static prototypes when the inference environment or action execution distribution differs from training; and (2) the model may also use the wrong prototypes to detect errors if the ongoing action label is not the same as the predicted one. To address this problem, we propose an Adaptive Multiple Normal Action Representation (AMNAR) framework. AMNAR predicts all valid next actions and reconstructs their corresponding normal action representations, which are compared against the ongoing action to detect errors. Extensive experiments demonstrate that AMNAR achieves state-of-the-art performance, highlighting the effectiveness of AMNAR and the importance of modeling multiple valid next actions in error detection. The code is available at https://github.com/iSEE-Laboratory/AMNAR.","url_abs":"https://arxiv.org/abs/2503.22405v1","url_pdf":"https://arxiv.org/pdf/2503.22405v1.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":"modeling-multiple-normal-action","repo_url":"https://github.com/isee-laboratory/amnar","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":null,"task_name":"valid"}],"methods":[{"method_slug":"focus","method_name":"Focus"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2503.22405","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2503.22405"}},"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/isee-laboratory/amnar","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"deterministic:regex_extraction","url":"https://github.com/iSEE-Laboratory/AMNAR","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_fixture":1,"ran":2,"ran_honours":1,"unverified":12},"by_repo_kind":{"official":{"samples":16,"ran":4,"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":"a34c005ba2203f35","entry":"drop_path","repo":"iSEE-Laboratory/AMNAR","repo_kind":"official","path":"libs/modeling/blocks.py","file_url":"https://github.com/iSEE-Laboratory/AMNAR/blob/HEAD/libs/modeling/blocks.py","link_basis":"harvester_set","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a34c005ba2203f35"}},{"code_sha256_prefix":"256e0c401be2a266","entry":"get_labels_start_end_time","repo":"iSEE-Laboratory/AMNAR","repo_kind":"official","path":"eval_utils.py","file_url":"https://github.com/iSEE-Laboratory/AMNAR/blob/HEAD/eval_utils.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":"256e0c401be2a266"}},{"code_sha256_prefix":"3531df7b0c9b0791","entry":"get_sinusoid_encoding","repo":"iSEE-Laboratory/AMNAR","repo_kind":"official","path":"libs/modeling/blocks.py","file_url":"https://github.com/iSEE-Laboratory/AMNAR/blob/HEAD/libs/modeling/blocks.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"3531df7b0c9b0791"}},{"code_sha256_prefix":"b3c5c209fda2be1d","entry":"levenstein","repo":"iSEE-Laboratory/AMNAR","repo_kind":"official","path":"eval_utils.py","file_url":"https://github.com/iSEE-Laboratory/AMNAR/blob/HEAD/eval_utils.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":"b3c5c209fda2be1d"}},{"code_sha256_prefix":"9dc97196363b645b","entry":"acc_precision_recall_f1","repo":"iSEE-Laboratory/AMNAR","repo_kind":"official","path":"metric_vis_multiprocess.py","file_url":"https://github.com/iSEE-Laboratory/AMNAR/blob/HEAD/metric_vis_multiprocess.py","link_basis":"harvester_set","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":"9dc97196363b645b"}},{"code_sha256_prefix":"54142e08e5e7b123","entry":"acc_tpr_fpr","repo":"iSEE-Laboratory/AMNAR","repo_kind":"official","path":"metric_vis_multiprocess.py","file_url":"https://github.com/iSEE-Laboratory/AMNAR/blob/HEAD/metric_vis_multiprocess.py","link_basis":"harvester_set","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":"54142e08e5e7b123"}},{"code_sha256_prefix":"12d8ba65aabcb2b4","entry":"ctr_diou_loss_1d","repo":"iSEE-Laboratory/AMNAR","repo_kind":"official","path":"libs/modeling/losses.py","file_url":"https://github.com/iSEE-Laboratory/AMNAR/blob/HEAD/libs/modeling/losses.py","link_basis":"harvester_set","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":"12d8ba65aabcb2b4"}},{"code_sha256_prefix":"66693d03280664b1","entry":"ctr_giou_loss_1d","repo":"iSEE-Laboratory/AMNAR","repo_kind":"official","path":"libs/modeling/losses.py","file_url":"https://github.com/iSEE-Laboratory/AMNAR/blob/HEAD/libs/modeling/losses.py","link_basis":"harvester_set","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":"66693d03280664b1"}},{"code_sha256_prefix":"aa71c46542c9f663","entry":"error_acc","repo":"iSEE-Laboratory/AMNAR","repo_kind":"official","path":"metric_vis_multiprocess.py","file_url":"https://github.com/iSEE-Laboratory/AMNAR/blob/HEAD/metric_vis_multiprocess.py","link_basis":"harvester_set","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":"aa71c46542c9f663"}},{"code_sha256_prefix":"fd5970b4bd634bdc","entry":"load_config","repo":"iSEE-Laboratory/AMNAR","repo_kind":"official","path":"libs/core/config.py","file_url":"https://github.com/iSEE-Laboratory/AMNAR/blob/HEAD/libs/core/config.py","link_basis":"harvester_set","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":"fd5970b4bd634bdc"}},{"code_sha256_prefix":"170940905c04f542","entry":"mstcn_edit_score","repo":"iSEE-Laboratory/AMNAR","repo_kind":"official","path":"eval_utils.py","file_url":"https://github.com/iSEE-Laboratory/AMNAR/blob/HEAD/eval_utils.py","link_basis":"harvester_set","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":"170940905c04f542"}},{"code_sha256_prefix":"37aec3cd29c8d0b4","entry":"process_threshold","repo":"iSEE-Laboratory/AMNAR","repo_kind":"official","path":"metric_action_multiplicity.py","file_url":"https://github.com/iSEE-Laboratory/AMNAR/blob/HEAD/metric_action_multiplicity.py","link_basis":"harvester_set","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":"37aec3cd29c8d0b4"}},{"code_sha256_prefix":"cee845f405ecf37e","entry":"register_backbone","repo":"iSEE-Laboratory/AMNAR","repo_kind":"official","path":"libs/modeling/models.py","file_url":"https://github.com/iSEE-Laboratory/AMNAR/blob/HEAD/libs/modeling/models.py","link_basis":"harvester_set","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":"cee845f405ecf37e"}},{"code_sha256_prefix":"3db1c5ab5f3f0198","entry":"register_generator","repo":"iSEE-Laboratory/AMNAR","repo_kind":"official","path":"libs/modeling/models.py","file_url":"https://github.com/iSEE-Laboratory/AMNAR/blob/HEAD/libs/modeling/models.py","link_basis":"harvester_set","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":"3db1c5ab5f3f0198"}},{"code_sha256_prefix":"e5ef13b176081594","entry":"register_neck","repo":"iSEE-Laboratory/AMNAR","repo_kind":"official","path":"libs/modeling/models.py","file_url":"https://github.com/iSEE-Laboratory/AMNAR/blob/HEAD/libs/modeling/models.py","link_basis":"harvester_set","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":"e5ef13b176081594"}},{"code_sha256_prefix":"a617c27dff1d8aec","entry":"sigmoid_focal_loss","repo":"iSEE-Laboratory/AMNAR","repo_kind":"official","path":"libs/modeling/losses.py","file_url":"https://github.com/iSEE-Laboratory/AMNAR/blob/HEAD/libs/modeling/losses.py","link_basis":"harvester_set","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":"a617c27dff1d8aec"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}