{"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/through-the-dual-prism-a-spectral-perspective","title":"Through the Dual-Prism: A Spectral Perspective on Graph Data Augmentation for Graph Classification","arxiv_id":"2401.09953","date":"2024-01-18","proceeding":null,"authors":["Yutong Xia","Runpeng Yu","Yuxuan Liang","Xavier Bresson","Xinchao Wang","Roger Zimmermann"],"abstract":"Graph Neural Networks have become the preferred tool to process graph data, with their efficacy being boosted through graph data augmentation techniques. Despite the evolution of augmentation methods, issues like graph property distortions and restricted structural changes persist. This leads to the question: Is it possible to develop more property-conserving and structure-sensitive augmentation methods? Through a spectral lens, we investigate the interplay between graph properties, their augmentation, and their spectral behavior, and observe that keeping the low-frequency eigenvalues unchanged can preserve the critical properties at a large scale when generating augmented graphs. These observations inform our introduction of the Dual-Prism (DP) augmentation methods, including DP-Noise and DP-Mask, which retain essential graph properties while diversifying augmented graphs. Extensive experiments validate the efficiency of our approach, providing a new and promising direction for graph data augmentation.","url_abs":"https://arxiv.org/abs/2401.09953v3","url_pdf":"https://arxiv.org/pdf/2401.09953v3.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":"through-the-dual-prism-a-spectral-perspective","repo_url":"https://github.com/yu-rp/dualprism","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"data-augmentation","task_name":"Data Augmentation"},{"task_slug":"graph-classification","task_name":"Graph Classification"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2401.09953","atlas_url":"https://app.syntology.ai/?focus=2401.09953","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2401.09953"}},"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":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/yu-rp/dualprism","reach":{"status":"ok"}}],"summary":{"ran":6,"unverified":4},"by_repo_kind":{"official":{"samples":10,"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":10,"samples":[{"code_sha256_prefix":"ae4f1bded5dc4c34","entry":"add_noise","repo":"yu-rp/dualprism","repo_kind":"official","path":"src/aug.py","file_url":"https://github.com/yu-rp/dualprism/blob/HEAD/src/aug.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":"ae4f1bded5dc4c34"}},{"code_sha256_prefix":"a61699b46d3d13d8","entry":"generate_threshold_vector","repo":"yu-rp/dualprism","repo_kind":"official","path":"src/aug.py","file_url":"https://github.com/yu-rp/dualprism/blob/HEAD/src/aug.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":"a61699b46d3d13d8"}},{"code_sha256_prefix":"0b1f01b346d86095","entry":"graph_numpy2tensor","repo":"yu-rp/dualprism","repo_kind":"official","path":"src/utils.py","file_url":"https://github.com/yu-rp/dualprism/blob/HEAD/src/utils.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":"0b1f01b346d86095"}},{"code_sha256_prefix":"cbf4d0892481c707","entry":"prepare_dataset","repo":"yu-rp/dualprism","repo_kind":"official","path":"src/utils.py","file_url":"https://github.com/yu-rp/dualprism/blob/HEAD/src/utils.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":"cbf4d0892481c707"}},{"code_sha256_prefix":"7a73d187862ecb75","entry":"prepare_synthetic_dataset","repo":"yu-rp/dualprism","repo_kind":"official","path":"src/utils.py","file_url":"https://github.com/yu-rp/dualprism/blob/HEAD/src/utils.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":"7a73d187862ecb75"}},{"code_sha256_prefix":"c6e56bc4d0f6bab6","entry":"triplet_loss","repo":"yu-rp/dualprism","repo_kind":"official","path":"DIG/dig/auggraph/method/DualPrism/utils/utils.py","file_url":"https://github.com/yu-rp/dualprism/blob/HEAD/DIG/dig/auggraph/method/DualPrism/utils/utils.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":"c6e56bc4d0f6bab6"}},{"code_sha256_prefix":"95afc6f0962b5c2a","entry":"approximate_hamming_similarity","repo":"yu-rp/dualprism","repo_kind":"official","path":"DIG/dig/auggraph/method/DualPrism/utils/utils.py","file_url":"https://github.com/yu-rp/dualprism/blob/HEAD/DIG/dig/auggraph/method/DualPrism/utils/utils.py","link_basis":"harvester_set","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":"95afc6f0962b5c2a"}},{"code_sha256_prefix":"69e7dcdc10127913","entry":"euclidean_distance","repo":"yu-rp/dualprism","repo_kind":"official","path":"DIG/dig/auggraph/method/DualPrism/utils/utils.py","file_url":"https://github.com/yu-rp/dualprism/blob/HEAD/DIG/dig/auggraph/method/DualPrism/utils/utils.py","link_basis":"harvester_set","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":"69e7dcdc10127913"}},{"code_sha256_prefix":"983c6560bfc8086d","entry":"spectral_noise","repo":"yu-rp/dualprism","repo_kind":"official","path":"src/aug.py","file_url":"https://github.com/yu-rp/dualprism/blob/HEAD/src/aug.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":"983c6560bfc8086d"}},{"code_sha256_prefix":"34cc38b600742cf0","entry":"spectral_noise","repo":"yu-rp/dualprism","repo_kind":"official","path":"DIG/dig/auggraph/method/DualPrism/utils/augmentation.py","file_url":"https://github.com/yu-rp/dualprism/blob/HEAD/DIG/dig/auggraph/method/DualPrism/utils/augmentation.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":"34cc38b600742cf0"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}