{"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/diversity-measurable-anomaly-detection","title":"Diversity-Measurable Anomaly Detection","arxiv_id":"2303.05047","date":"2023-03-09","proceeding":"CVPR 2023 1","authors":["Wenrui Liu","Hong Chang","Bingpeng Ma","Shiguang Shan","Xilin Chen"],"abstract":"Reconstruction-based anomaly detection models achieve their purpose by suppressing the generalization ability for anomaly. However, diverse normal patterns are consequently not well reconstructed as well. Although some efforts have been made to alleviate this problem by modeling sample diversity, they suffer from shortcut learning due to undesired transmission of abnormal information. In this paper, to better handle the tradeoff problem, we propose Diversity-Measurable Anomaly Detection (DMAD) framework to enhance reconstruction diversity while avoid the undesired generalization on anomalies. To this end, we design Pyramid Deformation Module (PDM), which models diverse normals and measures the severity of anomaly by estimating multi-scale deformation fields from reconstructed reference to original input. Integrated with an information compression module, PDM essentially decouples deformation from prototypical embedding and makes the final anomaly score more reliable. Experimental results on both surveillance videos and industrial images demonstrate the effectiveness of our method. In addition, DMAD works equally well in front of contaminated data and anomaly-like normal samples.","url_abs":"https://arxiv.org/abs/2303.05047v1","url_pdf":"https://arxiv.org/pdf/2303.05047v1.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":"diversity-measurable-anomaly-detection","repo_url":"https://github.com/FlappyPeggy/DMAD","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"anomaly-detection","task_name":"Anomaly Detection"},{"task_slug":"anomaly-detection-in-surveillance-videos","task_name":"Anomaly Detection In Surveillance Videos"},{"task_slug":"defect-detection","task_name":"Defect Detection"},{"task_slug":"diversity","task_name":"Diversity"},{"task_slug":"one-class-classification","task_name":"One-Class Classification"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/anomaly-detection-on-chuk-avenue","task":"Anomaly Detection","dataset":"CUHK Avenue","model":"DMAD","rank_in_archive_order":8,"of":35,"metrics":{"AUC":"92.8%"},"uses_additional_data":false},{"leaderboard":"/sota/anomaly-detection-on-chuk-avenue","task":"Anomaly Detection","dataset":"CUHK Avenue","model":"ConvVQ","rank_in_archive_order":32,"of":35,"metrics":{"AUC":"84.3%"},"uses_additional_data":false},{"leaderboard":"/sota/anomaly-detection-on-mvtec-ad","task":"Anomaly Detection","dataset":"MVTec AD","model":"DMAD","rank_in_archive_order":30,"of":148,"metrics":{"Detection AUROC":"99.5","Segmentation AUROC":"98.2"},"uses_additional_data":false},{"leaderboard":"/sota/anomaly-detection-on-shanghaitech","task":"Anomaly Detection","dataset":"ShanghaiTech","model":"DMAD","rank_in_archive_order":19,"of":31,"metrics":{"AUC":"78.8%"},"uses_additional_data":false},{"leaderboard":"/sota/anomaly-detection-on-ucsd-ped2","task":"Anomaly Detection","dataset":"UCSD Ped2","model":"DMAD","rank_in_archive_order":1,"of":14,"metrics":{"AUC":"99.7%"},"uses_additional_data":false},{"leaderboard":"/sota/anomaly-detection-on-ucsd-ped2","task":"Anomaly Detection","dataset":"UCSD Ped2","model":"ConvVQ","rank_in_archive_order":14,"of":14,"metrics":{"AUC":"90.2%"},"uses_additional_data":false}],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2303.05047","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2303.05047"}},"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/FlappyPeggy/DMAD","reach":null}],"summary":{"ran":6,"unverified":5},"by_repo_kind":{"official":{"samples":11,"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":11,"samples":[{"code_sha256_prefix":"612cd76b06aef68c","entry":"AddCoords2d","repo":"FlappyPeggy/DMAD","repo_kind":"official","path":"DMAD-PDM/model/final_future_prediction_avenue.py","file_url":"https://github.com/FlappyPeggy/DMAD/blob/HEAD/DMAD-PDM/model/final_future_prediction_avenue.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":"612cd76b06aef68c"}},{"code_sha256_prefix":"f497b74cc58136f9","entry":"Encoder","repo":"FlappyPeggy/DMAD","repo_kind":"official","path":"DMAD-PDM/model/final_future_prediction_avenue.py","file_url":"https://github.com/FlappyPeggy/DMAD/blob/HEAD/DMAD-PDM/model/final_future_prediction_avenue.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":"f497b74cc58136f9"}},{"code_sha256_prefix":"ab724afabb3e6755","entry":"Gradient_Loss","repo":"FlappyPeggy/DMAD","repo_kind":"official","path":"DMAD-PDM/model/final_future_prediction_avenue.py","file_url":"https://github.com/FlappyPeggy/DMAD/blob/HEAD/DMAD-PDM/model/final_future_prediction_avenue.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ab724afabb3e6755"}},{"code_sha256_prefix":"d80167025eab6d3a","entry":"Smooth_Loss","repo":"FlappyPeggy/DMAD","repo_kind":"official","path":"DMAD-PDM/model/final_future_prediction_avenue.py","file_url":"https://github.com/FlappyPeggy/DMAD/blob/HEAD/DMAD-PDM/model/final_future_prediction_avenue.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d80167025eab6d3a"}},{"code_sha256_prefix":"ff4aa2b0c349449c","entry":"Test_Loss","repo":"FlappyPeggy/DMAD","repo_kind":"official","path":"DMAD-PDM/model/final_future_prediction_avenue.py","file_url":"https://github.com/FlappyPeggy/DMAD/blob/HEAD/DMAD-PDM/model/final_future_prediction_avenue.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ff4aa2b0c349449c"}},{"code_sha256_prefix":"ceaedbec84a683b3","entry":"VectorQuantizer","repo":"FlappyPeggy/DMAD","repo_kind":"official","path":"DMAD-PDM/model/final_future_prediction_avenue.py","file_url":"https://github.com/FlappyPeggy/DMAD/blob/HEAD/DMAD-PDM/model/final_future_prediction_avenue.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":"ceaedbec84a683b3"}},{"code_sha256_prefix":"81777f6e7c660aa5","entry":"CoordConv2d","repo":"FlappyPeggy/DMAD","repo_kind":"official","path":"DMAD-PDM/model/final_future_prediction_avenue.py","file_url":"https://github.com/FlappyPeggy/DMAD/blob/HEAD/DMAD-PDM/model/final_future_prediction_avenue.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":"81777f6e7c660aa5"}},{"code_sha256_prefix":"a50fc811a481940f","entry":"Decoder","repo":"FlappyPeggy/DMAD","repo_kind":"official","path":"DMAD-PDM/model/final_future_prediction_avenue.py","file_url":"https://github.com/FlappyPeggy/DMAD/blob/HEAD/DMAD-PDM/model/final_future_prediction_avenue.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":"a50fc811a481940f"}},{"code_sha256_prefix":"98dfa446d4b5a790","entry":"OffsetNet","repo":"FlappyPeggy/DMAD","repo_kind":"official","path":"DMAD-PDM/model/final_future_prediction_avenue.py","file_url":"https://github.com/FlappyPeggy/DMAD/blob/HEAD/DMAD-PDM/model/final_future_prediction_avenue.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":"98dfa446d4b5a790"}},{"code_sha256_prefix":"a7e24966b92237ec","entry":"ResBlock","repo":"FlappyPeggy/DMAD","repo_kind":"official","path":"DMAD-PDM/model/final_future_prediction_avenue.py","file_url":"https://github.com/FlappyPeggy/DMAD/blob/HEAD/DMAD-PDM/model/final_future_prediction_avenue.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":"a7e24966b92237ec"}},{"code_sha256_prefix":"0e53439852c7bd3c","entry":"convAE","repo":"FlappyPeggy/DMAD","repo_kind":"official","path":"DMAD-PDM/model/final_future_prediction_avenue.py","file_url":"https://github.com/FlappyPeggy/DMAD/blob/HEAD/DMAD-PDM/model/final_future_prediction_avenue.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":"0e53439852c7bd3c"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}