{"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/directional-graph-networks-1","title":"Directional Graph Networks","arxiv_id":"2010.02863","date":"2020-10-06","proceeding":null,"authors":["Dominique Beaini","Saro Passaro","Vincent Létourneau","William L. Hamilton","Gabriele Corso","Pietro Liò"],"abstract":"The lack of anisotropic kernels in graph neural networks (GNNs) strongly limits their expressiveness, contributing to well-known issues such as over-smoothing. To overcome this limitation, we propose the first globally consistent anisotropic kernels for GNNs, allowing for graph convolutions that are defined according to topologicaly-derived directional flows. First, by defining a vector field in the graph, we develop a method of applying directional derivatives and smoothing by projecting node-specific messages into the field. Then, we propose the use of the Laplacian eigenvectors as such vector field. We show that the method generalizes CNNs on an $n$-dimensional grid and is provably more discriminative than standard GNNs regarding the Weisfeiler-Lehman 1-WL test. We evaluate our method on different standard benchmarks and see a relative error reduction of 8% on the CIFAR10 graph dataset and 11% to 32% on the molecular ZINC dataset, and a relative increase in precision of 1.6% on the MolPCBA dataset. An important outcome of this work is that it enables graph networks to embed directions in an unsupervised way, thus allowing a better representation of the anisotropic features in different physical or biological problems.","url_abs":"https://arxiv.org/abs/2010.02863v4","url_pdf":"https://arxiv.org/pdf/2010.02863v4.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":"directional-graph-networks-1","repo_url":"https://github.com/Saro00/DGN","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":null},{"paper_slug":"directional-graph-networks-1","repo_url":"https://github.com/gbouritsas/gsn","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"data-augmentation","task_name":"Data Augmentation"},{"task_slug":"graph-classification","task_name":"Graph Classification"},{"task_slug":"graph-regression","task_name":"Graph Regression"},{"task_slug":"node-classification","task_name":"Node Classification"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/graph-classification-on-cifar10-100k","task":"Graph Classification","dataset":"CIFAR10 100k","model":"DGN","rank_in_archive_order":10,"of":20,"metrics":{"Accuracy (%)":"72.84"},"uses_additional_data":false},{"leaderboard":"/sota/graph-property-prediction-on-ogbg-molhiv","task":"Graph Property Prediction","dataset":"ogbg-molhiv","model":"DGN","rank_in_archive_order":21,"of":43,"metrics":{"Ext. data":"No","Number of params":"114065","Test ROC-AUC":"0.7970 ± 0.0097","Validation ROC-AUC":"0.8470 ± 0.0047"},"uses_additional_data":false},{"leaderboard":"/sota/graph-property-prediction-on-ogbg-molpcba","task":"Graph Property Prediction","dataset":"ogbg-molpcba","model":"DGN","rank_in_archive_order":21,"of":36,"metrics":{"Ext. data":"No","Number of params":"6732696","Test AP":"0.2885 ± 0.0030","Validation AP":"0.2970 ± 0.0021"},"uses_additional_data":false},{"leaderboard":"/sota/node-classification-on-pattern-100k","task":"Node Classification","dataset":"PATTERN 100k","model":"DGN","rank_in_archive_order":2,"of":9,"metrics":{"Accuracy (%)":"86.680"},"uses_additional_data":false}],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2010.02863","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2010.02863"}},"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/gbouritsas/gsn","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/Saro00/DGN","reach":null}],"summary":{"ran_draft_wrong":2,"ran_honours":3,"ran_violates":1,"unverified":8},"by_repo_kind":{"listed":{"samples":14,"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":0,"samples":[{"code_sha256_prefix":"fe76e55f0b804b7b","entry":"get_activation","repo":"gbouritsas/gsn","repo_kind":"listed","path":"directional_gsn/nets/layers.py","file_url":"https://github.com/gbouritsas/gsn/blob/HEAD/directional_gsn/nets/layers.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"fe76e55f0b804b7b"}},{"code_sha256_prefix":"f72434c0dcd5d11b","entry":"gpu_setup","repo":"gbouritsas/gsn","repo_kind":"listed","path":"directional_gsn/main_HIV.py","file_url":"https://github.com/gbouritsas/gsn/blob/HEAD/directional_gsn/main_HIV.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f72434c0dcd5d11b"}},{"code_sha256_prefix":"5d07dbe669b9f73a","entry":"scale_amplification","repo":"gbouritsas/gsn","repo_kind":"listed","path":"directional_gsn/nets/scalers.py","file_url":"https://github.com/gbouritsas/gsn/blob/HEAD/directional_gsn/nets/scalers.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5d07dbe669b9f73a"}},{"code_sha256_prefix":"d0d453f04b18e8f1","entry":"scale_attenuation","repo":"gbouritsas/gsn","repo_kind":"listed","path":"directional_gsn/nets/scalers.py","file_url":"https://github.com/gbouritsas/gsn/blob/HEAD/directional_gsn/nets/scalers.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d0d453f04b18e8f1"}},{"code_sha256_prefix":"2d32c33e16bad56e","entry":"scale_identity","repo":"gbouritsas/gsn","repo_kind":"listed","path":"directional_gsn/nets/scalers.py","file_url":"https://github.com/gbouritsas/gsn/blob/HEAD/directional_gsn/nets/scalers.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":"2d32c33e16bad56e"}},{"code_sha256_prefix":"f017532fc389cbfe","entry":"str2bool","repo":"gbouritsas/gsn","repo_kind":"listed","path":"directional_gsn/utils_parsing.py","file_url":"https://github.com/gbouritsas/gsn/blob/HEAD/directional_gsn/utils_parsing.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"f017532fc389cbfe"}},{"code_sha256_prefix":"ee86c81b47055403","entry":"aggregate_max","repo":"gbouritsas/gsn","repo_kind":"listed","path":"directional_gsn/nets/aggregators.py","file_url":"https://github.com/gbouritsas/gsn/blob/HEAD/directional_gsn/nets/aggregators.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":"ee86c81b47055403"}},{"code_sha256_prefix":"24fa352e05630952","entry":"aggregate_mean","repo":"gbouritsas/gsn","repo_kind":"listed","path":"directional_gsn/nets/aggregators.py","file_url":"https://github.com/gbouritsas/gsn/blob/HEAD/directional_gsn/nets/aggregators.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":"24fa352e05630952"}},{"code_sha256_prefix":"a79bba4bc6411d00","entry":"aggregate_min","repo":"gbouritsas/gsn","repo_kind":"listed","path":"directional_gsn/nets/aggregators.py","file_url":"https://github.com/gbouritsas/gsn/blob/HEAD/directional_gsn/nets/aggregators.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":"a79bba4bc6411d00"}},{"code_sha256_prefix":"831368bc983a71e0","entry":"encode","repo":"gbouritsas/gsn","repo_kind":"listed","path":"directional_gsn/utils_one_hot_encoding.py","file_url":"https://github.com/gbouritsas/gsn/blob/HEAD/directional_gsn/utils_one_hot_encoding.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":"831368bc983a71e0"}},{"code_sha256_prefix":"8c86e6abd3cdd4c4","entry":"get_custom_edge_list","repo":"gbouritsas/gsn","repo_kind":"listed","path":"directional_gsn/utils_subgraph_encoding.py","file_url":"https://github.com/gbouritsas/gsn/blob/HEAD/directional_gsn/utils_subgraph_encoding.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":"8c86e6abd3cdd4c4"}},{"code_sha256_prefix":"94c293b9defb4188","entry":"str2ListOfLists2int","repo":"gbouritsas/gsn","repo_kind":"listed","path":"directional_gsn/utils_parsing.py","file_url":"https://github.com/gbouritsas/gsn/blob/HEAD/directional_gsn/utils_parsing.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":"94c293b9defb4188"}},{"code_sha256_prefix":"fa9cf77a40a3bfae","entry":"str2ListOfListsOfLists2int","repo":"gbouritsas/gsn","repo_kind":"listed","path":"directional_gsn/utils_parsing.py","file_url":"https://github.com/gbouritsas/gsn/blob/HEAD/directional_gsn/utils_parsing.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":"fa9cf77a40a3bfae"}},{"code_sha256_prefix":"77a61130d1c9fd6b","entry":"to_undirected","repo":"gbouritsas/gsn","repo_kind":"listed","path":"directional_gsn/utils_graph_processing.py","file_url":"https://github.com/gbouritsas/gsn/blob/HEAD/directional_gsn/utils_graph_processing.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":"77a61130d1c9fd6b"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}