{"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/similarity-navigated-conformal-prediction-for","title":"Similarity-Navigated Conformal Prediction for Graph Neural Networks","arxiv_id":"2405.14303","date":"2024-05-23","proceeding":null,"authors":["Jianqing Song","Jianguo Huang","Wenyu Jiang","Baoming Zhang","Shuangjie Li","Chongjun Wang"],"abstract":"Graph Neural Networks have achieved remarkable accuracy in semi-supervised node classification tasks. However, these results lack reliable uncertainty estimates. Conformal prediction methods provide a theoretical guarantee for node classification tasks, ensuring that the conformal prediction set contains the ground-truth label with a desired probability (e.g., 95%). In this paper, we empirically show that for each node, aggregating the non-conformity scores of nodes with the same label can improve the efficiency of conformal prediction sets while maintaining valid marginal coverage. This observation motivates us to propose a novel algorithm named Similarity-Navigated Adaptive Prediction Sets (SNAPS), which aggregates the non-conformity scores based on feature similarity and structural neighborhood. The key idea behind SNAPS is that nodes with high feature similarity or direct connections tend to have the same label. By incorporating adaptive similar nodes information, SNAPS can generate compact prediction sets and increase the singleton hit ratio (correct prediction sets of size one). Moreover, we theoretically provide a finite-sample coverage guarantee of SNAPS. Extensive experiments demonstrate the superiority of SNAPS, improving the efficiency of prediction sets and singleton hit ratio while maintaining valid coverage.","url_abs":"https://arxiv.org/abs/2405.14303v2","url_pdf":"https://arxiv.org/pdf/2405.14303v2.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":"similarity-navigated-conformal-prediction-for","repo_url":"https://github.com/janqsong/snaps","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"conformal-prediction","task_name":"Conformal Prediction"},{"task_slug":"node-classification","task_name":"Node Classification"},{"task_slug":"prediction","task_name":"Prediction"},{"task_slug":null,"task_name":"valid"}],"methods":[{"method_slug":"set","method_name":"SET"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2405.14303","atlas_url":"https://app.syntology.ai/?focus=2405.14303","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2405.14303"}},"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/janqsong/SNAPS","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/janqsong/snaps","reach":{"status":"ok"}}],"summary":{"ran":4,"ran_honours":1,"ran_draft_wrong":1},"by_repo_kind":{"official":{"samples":6,"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":6,"samples":[{"code_sha256_prefix":"a6304833c79b1bcb","entry":"CPTransformation","repo":"janqsong/snaps","repo_kind":"official","path":"gnn_cp/cp/graph_transformations.py","file_url":"https://github.com/janqsong/snaps/blob/HEAD/gnn_cp/cp/graph_transformations.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":"a6304833c79b1bcb"}},{"code_sha256_prefix":"1d8136fde07e7146","entry":"SNAPSTransformation","repo":"janqsong/snaps","repo_kind":"official","path":"gnn_cp/cp/graph_transformations.py","file_url":"https://github.com/janqsong/snaps/blob/HEAD/gnn_cp/cp/graph_transformations.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":"1d8136fde07e7146"}},{"code_sha256_prefix":"49fbe0d4c895ef77","entry":"compute_tune_calib_fraction","repo":"janqsong/SNAPS","repo_kind":"official","path":"utils.py","file_url":"https://github.com/janqsong/SNAPS/blob/HEAD/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":"49fbe0d4c895ef77"}},{"code_sha256_prefix":"8e6629dff4ea0a71","entry":"test","repo":"janqsong/SNAPS","repo_kind":"official","path":"ogbn-arxiv.py","file_url":"https://github.com/janqsong/SNAPS/blob/HEAD/ogbn-arxiv.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"8e6629dff4ea0a71"}},{"code_sha256_prefix":"82f54a95d4951b19","entry":"train","repo":"janqsong/SNAPS","repo_kind":"official","path":"ogbn_products.py","file_url":"https://github.com/janqsong/SNAPS/blob/HEAD/ogbn_products.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"82f54a95d4951b19"}},{"code_sha256_prefix":"6eec0f8d58591cd8","entry":"train","repo":"janqsong/SNAPS","repo_kind":"official","path":"ogbn-arxiv.py","file_url":"https://github.com/janqsong/SNAPS/blob/HEAD/ogbn-arxiv.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":"6eec0f8d58591cd8"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}