{"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/graph-level-anomaly-detection-via","title":"Graph-level Anomaly Detection via Hierarchical Memory Networks","arxiv_id":"2307.00755","date":"2023-07-03","proceeding":null,"authors":["Chaoxi Niu","Guansong Pang","Ling Chen"],"abstract":"Graph-level anomaly detection aims to identify abnormal graphs that exhibit deviant structures and node attributes compared to the majority in a graph set. One primary challenge is to learn normal patterns manifested in both fine-grained and holistic views of graphs for identifying graphs that are abnormal in part or in whole. To tackle this challenge, we propose a novel approach called Hierarchical Memory Networks (HimNet), which learns hierarchical memory modules -- node and graph memory modules -- via a graph autoencoder network architecture. The node-level memory module is trained to model fine-grained, internal graph interactions among nodes for detecting locally abnormal graphs, while the graph-level memory module is dedicated to the learning of holistic normal patterns for detecting globally abnormal graphs. The two modules are jointly optimized to detect both locally- and globally-anomalous graphs. Extensive empirical results on 16 real-world graph datasets from various domains show that i) HimNet significantly outperforms the state-of-art methods and ii) it is robust to anomaly contamination. Codes are available at: https://github.com/Niuchx/HimNet.","url_abs":"https://arxiv.org/abs/2307.00755v1","url_pdf":"https://arxiv.org/pdf/2307.00755v1.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":"graph-level-anomaly-detection-via","repo_url":"https://github.com/niuchx/himnet","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"anomaly-detection","task_name":"Anomaly Detection"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2307.00755","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2307.00755"}},"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/niuchx/himnet","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":8},"by_repo_kind":{"official":{"samples":8,"ran":0,"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":"8a50ac7dc02ab524","entry":"adj_process","repo":"niuchx/himnet","repo_kind":"official","path":"util.py","file_url":"https://github.com/niuchx/himnet/blob/HEAD/util.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":"8a50ac7dc02ab524"}},{"code_sha256_prefix":"4eee51ae2a2722ab","entry":"graphembloss","repo":"niuchx/himnet","repo_kind":"official","path":"loss.py","file_url":"https://github.com/niuchx/himnet/blob/HEAD/loss.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":"4eee51ae2a2722ab"}},{"code_sha256_prefix":"2ec8df88ec229583","entry":"hard_shrink_relu","repo":"niuchx/himnet","repo_kind":"official","path":"GCN_embedding.py","file_url":"https://github.com/niuchx/himnet/blob/HEAD/GCN_embedding.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":"2ec8df88ec229583"}},{"code_sha256_prefix":"00f227f6ee7015cb","entry":"loss_func","repo":"niuchx/himnet","repo_kind":"official","path":"loss.py","file_url":"https://github.com/niuchx/himnet/blob/HEAD/loss.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":"00f227f6ee7015cb"}},{"code_sha256_prefix":"566c422dbe3fc845","entry":"node_dict","repo":"niuchx/himnet","repo_kind":"official","path":"util.py","file_url":"https://github.com/niuchx/himnet/blob/HEAD/util.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":"566c422dbe3fc845"}},{"code_sha256_prefix":"8c736e11bd71d4db","entry":"node_iter","repo":"niuchx/himnet","repo_kind":"official","path":"util.py","file_url":"https://github.com/niuchx/himnet/blob/HEAD/util.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":"8c736e11bd71d4db"}},{"code_sha256_prefix":"9fe42ed549cc3b5b","entry":"train","repo":"niuchx/himnet","repo_kind":"official","path":"train_herg.py","file_url":"https://github.com/niuchx/himnet/blob/HEAD/train_herg.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":"9fe42ed549cc3b5b"}},{"code_sha256_prefix":"9c0b9d8409441cb6","entry":"train","repo":"niuchx/himnet","repo_kind":"official","path":"train_tox.py","file_url":"https://github.com/niuchx/himnet/blob/HEAD/train_tox.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":"9c0b9d8409441cb6"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}