{"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-augmented-normalizing-flows-for-anomaly-1","title":"Graph-Augmented Normalizing Flows for Anomaly Detection of Multiple Time Series","arxiv_id":"2202.07857","date":"2022-02-16","proceeding":"ICLR 2022 4","authors":["Enyan Dai","Jie Chen"],"abstract":"Anomaly detection is a widely studied task for a broad variety of data types; among them, multiple time series appear frequently in applications, including for example, power grids and traffic networks. Detecting anomalies for multiple time series, however, is a challenging subject, owing to the intricate interdependencies among the constituent series. We hypothesize that anomalies occur in low density regions of a distribution and explore the use of normalizing flows for unsupervised anomaly detection, because of their superior quality in density estimation. Moreover, we propose a novel flow model by imposing a Bayesian network among constituent series. A Bayesian network is a directed acyclic graph (DAG) that models causal relationships; it factorizes the joint probability of the series into the product of easy-to-evaluate conditional probabilities. We call such a graph-augmented normalizing flow approach GANF and propose joint estimation of the DAG with flow parameters. We conduct extensive experiments on real-world datasets and demonstrate the effectiveness of GANF for density estimation, anomaly detection, and identification of time series distribution drift.","url_abs":"https://arxiv.org/abs/2202.07857v2","url_pdf":"https://arxiv.org/pdf/2202.07857v2.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-augmented-normalizing-flows-for-anomaly-1","repo_url":"https://github.com/enyandai/ganf","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok"}},{"paper_slug":"graph-augmented-normalizing-flows-for-anomaly-1","repo_url":"https://github.com/D3-AI/Orion","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"graph-augmented-normalizing-flows-for-anomaly-1","repo_url":"https://github.com/signals-dev/Orion","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"graph-augmented-normalizing-flows-for-anomaly-1","repo_url":"https://github.com/sintel-dev/orion","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"anomaly-detection","task_name":"Anomaly Detection"},{"task_slug":"density-estimation","task_name":"Density Estimation"},{"task_slug":"time-series-1","task_name":"Time Series"},{"task_slug":"time-series","task_name":"Time Series Analysis"},{"task_slug":"unsupervised-anomaly-detection","task_name":"Unsupervised Anomaly Detection"}],"methods":[{"method_slug":"normalizing-flows","method_name":"Normalizing Flows"}],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/anomaly-detection-on-voraus-ad","task":"Anomaly Detection","dataset":"voraus-AD","model":"GANF","rank_in_archive_order":3,"of":3,"metrics":{"Avg. Detection AUROC":"79.9"},"uses_additional_data":false}],"syntology":{"syntology_url":"https://syntology.ai/paper/2202.07857","atlas_url":"https://app.syntology.ai/?focus=2202.07857","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2202.07857"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+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/microsoft/EdgeML","reach":null},{"provenance":"deterministic:regex_extraction","url":"https://github.com/EnyanDai/GANF","reach":{"status":"ok"}},{"provenance":"deterministic:regex_extraction","url":"https://github.com/khalooei/ALOCC-CVPR2018","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/enyandai/ganf","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/D3-AI/Orion","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/signals-dev/Orion","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/sintel-dev/orion","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":11,"ran_honours":1,"ran_draft_wrong":1,"unverified":11},"by_repo_kind":{"official":{"samples":10,"ran":7,"repositories":1},"listed":{"samples":5,"ran":3,"repositories":1},"found_in_text":{"samples":9,"ran":3,"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":10,"samples":[{"code_sha256_prefix":"161cda5cabbb68c3","entry":"BatchNorm","repo":"enyandai/ganf","repo_kind":"official","path":"models/GANF.py","file_url":"https://github.com/enyandai/ganf/blob/HEAD/models/GANF.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"161cda5cabbb68c3"}},{"code_sha256_prefix":"9115fcfda4b932e3","entry":"GNN","repo":"enyandai/ganf","repo_kind":"official","path":"models/GANF.py","file_url":"https://github.com/enyandai/ganf/blob/HEAD/models/GANF.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":"9115fcfda4b932e3"}},{"code_sha256_prefix":"892f63ab6c5f2f84","entry":"LinearMaskedCoupling","repo":"enyandai/ganf","repo_kind":"official","path":"models/GANF.py","file_url":"https://github.com/enyandai/ganf/blob/HEAD/models/GANF.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":"892f63ab6c5f2f84"}},{"code_sha256_prefix":"b5885c7b74843b05","entry":"MADE","repo":"enyandai/ganf","repo_kind":"official","path":"models/GANF.py","file_url":"https://github.com/enyandai/ganf/blob/HEAD/models/GANF.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b5885c7b74843b05"}},{"code_sha256_prefix":"466de1ea4db58ebc","entry":"MaskedLinear","repo":"enyandai/ganf","repo_kind":"official","path":"models/GANF.py","file_url":"https://github.com/enyandai/ganf/blob/HEAD/models/GANF.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"466de1ea4db58ebc"}},{"code_sha256_prefix":"0b745b7baaf925c0","entry":"RealNVP","repo":"enyandai/ganf","repo_kind":"official","path":"models/GANF.py","file_url":"https://github.com/enyandai/ganf/blob/HEAD/models/GANF.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":"0b745b7baaf925c0"}},{"code_sha256_prefix":"40125e1efb67fa92","entry":"conv_out_size_same","repo":"khalooei/ALOCC-CVPR2018","repo_kind":"found_in_text","path":"utils.py","file_url":"https://github.com/khalooei/ALOCC-CVPR2018/blob/HEAD/utils.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"40125e1efb67fa92"}},{"code_sha256_prefix":"e1243b39051334f9","entry":"create_masks","repo":"enyandai/ganf","repo_kind":"official","path":"models/GANF.py","file_url":"https://github.com/enyandai/ganf/blob/HEAD/models/GANF.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"e1243b39051334f9"}},{"code_sha256_prefix":"b1b2e280183a2f78","entry":"download","repo":"D3-AI/Orion","repo_kind":"listed","path":"orion/data.py","file_url":"https://github.com/D3-AI/Orion/blob/HEAD/orion/data.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":"b1b2e280183a2f78"}},{"code_sha256_prefix":"fc4f07905e94f225","entry":"format_csv","repo":"D3-AI/Orion","repo_kind":"listed","path":"orion/data.py","file_url":"https://github.com/D3-AI/Orion/blob/HEAD/orion/data.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":"fc4f07905e94f225"}},{"code_sha256_prefix":"1267f9f70dc9e57e","entry":"get_f1_scores","repo":"D3-AI/Orion","repo_kind":"listed","path":"orion/results.py","file_url":"https://github.com/D3-AI/Orion/blob/HEAD/orion/results.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":"1267f9f70dc9e57e"}},{"code_sha256_prefix":"489e2c5f7ad2b380","entry":"get_noisy_data","repo":"khalooei/ALOCC-CVPR2018","repo_kind":"found_in_text","path":"kh_tools.py","file_url":"https://github.com/khalooei/ALOCC-CVPR2018/blob/HEAD/kh_tools.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":"489e2c5f7ad2b380"}},{"code_sha256_prefix":"3dff213b8ae5a2d4","entry":"read_dataset_image_path","repo":"khalooei/ALOCC-CVPR2018","repo_kind":"found_in_text","path":"kh_tools.py","file_url":"https://github.com/khalooei/ALOCC-CVPR2018/blob/HEAD/kh_tools.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":"3dff213b8ae5a2d4"}},{"code_sha256_prefix":"213315d48b01e0a7","entry":"FlowSequential","repo":"enyandai/ganf","repo_kind":"official","path":"models/GANF.py","file_url":"https://github.com/enyandai/ganf/blob/HEAD/models/GANF.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":"213315d48b01e0a7"}},{"code_sha256_prefix":"2a25b017dff45e00","entry":"GANF","repo":"enyandai/ganf","repo_kind":"official","path":"models/GANF.py","file_url":"https://github.com/enyandai/ganf/blob/HEAD/models/GANF.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":"2a25b017dff45e00"}},{"code_sha256_prefix":"02e105c797e3990c","entry":"MAF","repo":"enyandai/ganf","repo_kind":"official","path":"models/GANF.py","file_url":"https://github.com/enyandai/ganf/blob/HEAD/models/GANF.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":"02e105c797e3990c"}},{"code_sha256_prefix":"f0cb37d52c4b56e2","entry":"conv2d","repo":"khalooei/ALOCC-CVPR2018","repo_kind":"found_in_text","path":"ops.py","file_url":"https://github.com/khalooei/ALOCC-CVPR2018/blob/HEAD/ops.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":"f0cb37d52c4b56e2"}},{"code_sha256_prefix":"97a17fbee43a92bd","entry":"conv_cond_concat","repo":"khalooei/ALOCC-CVPR2018","repo_kind":"found_in_text","path":"ops.py","file_url":"https://github.com/khalooei/ALOCC-CVPR2018/blob/HEAD/ops.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":"97a17fbee43a92bd"}},{"code_sha256_prefix":"f43eeb47efdaf9c4","entry":"deconv2d","repo":"khalooei/ALOCC-CVPR2018","repo_kind":"found_in_text","path":"ops.py","file_url":"https://github.com/khalooei/ALOCC-CVPR2018/blob/HEAD/ops.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":"f43eeb47efdaf9c4"}},{"code_sha256_prefix":"a0b95d6b4e00d081","entry":"get_image","repo":"khalooei/ALOCC-CVPR2018","repo_kind":"found_in_text","path":"utils.py","file_url":"https://github.com/khalooei/ALOCC-CVPR2018/blob/HEAD/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":"a0b95d6b4e00d081"}},{"code_sha256_prefix":"0ac44cb4f2a04c3e","entry":"get_image_Slicization","repo":"khalooei/ALOCC-CVPR2018","repo_kind":"found_in_text","path":"utils.py","file_url":"https://github.com/khalooei/ALOCC-CVPR2018/blob/HEAD/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":"0ac44cb4f2a04c3e"}},{"code_sha256_prefix":"6601ccd471fa6c41","entry":"get_summary_page","repo":"D3-AI/Orion","repo_kind":"listed","path":"orion/results.py","file_url":"https://github.com/D3-AI/Orion/blob/HEAD/orion/results.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":"6601ccd471fa6c41"}},{"code_sha256_prefix":"04aff2c366db2eed","entry":"load_csv","repo":"D3-AI/Orion","repo_kind":"listed","path":"orion/data.py","file_url":"https://github.com/D3-AI/Orion/blob/HEAD/orion/data.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":"04aff2c366db2eed"}},{"code_sha256_prefix":"4c27080e85e975e7","entry":"read_image_w_noise","repo":"khalooei/ALOCC-CVPR2018","repo_kind":"found_in_text","path":"kh_tools.py","file_url":"https://github.com/khalooei/ALOCC-CVPR2018/blob/HEAD/kh_tools.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":"4c27080e85e975e7"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}