{"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/diffassemble-a-unified-graph-diffusion-model","title":"DiffAssemble: A Unified Graph-Diffusion Model for 2D and 3D Reassembly","arxiv_id":"2402.19302","date":"2024-02-29","proceeding":"CVPR 2024 1","authors":["Gianluca Scarpellini","Stefano Fiorini","Francesco Giuliari","Pietro Morerio","Alessio Del Bue"],"abstract":"Reassembly tasks play a fundamental role in many fields and multiple approaches exist to solve specific reassembly problems. In this context, we posit that a general unified model can effectively address them all, irrespective of the input data type (images, 3D, etc.). We introduce DiffAssemble, a Graph Neural Network (GNN)-based architecture that learns to solve reassembly tasks using a diffusion model formulation. Our method treats the elements of a set, whether pieces of 2D patch or 3D object fragments, as nodes of a spatial graph. Training is performed by introducing noise into the position and rotation of the elements and iteratively denoising them to reconstruct the coherent initial pose. DiffAssemble achieves state-of-the-art (SOTA) results in most 2D and 3D reassembly tasks and is the first learning-based approach that solves 2D puzzles for both rotation and translation. Furthermore, we highlight its remarkable reduction in run-time, performing 11 times faster than the quickest optimization-based method for puzzle solving. Code available at https://github.com/IIT-PAVIS/DiffAssemble","url_abs":"https://arxiv.org/abs/2402.19302v1","url_pdf":"https://arxiv.org/pdf/2402.19302v1.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":"diffassemble-a-unified-graph-diffusion-model","repo_url":"https://github.com/iit-pavis/diffassemble","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"denoising","task_name":"Denoising"},{"task_slug":"graph-neural-network","task_name":"Graph Neural Network"}],"methods":[{"method_slug":"diffusion","method_name":"Diffusion"},{"method_slug":"graph-neural-network","method_name":"Graph Neural Network"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2402.19302","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2402.19302"}},"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/iit-pavis/diffassemble","reach":null}],"summary":{"ran":3,"ran_honours":3,"ran_draft_wrong":1,"ran_violates":1,"unverified":8},"by_repo_kind":{"official":{"samples":16,"ran":8,"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":16,"samples":[{"code_sha256_prefix":"c6ba46a75cc4c7de","entry":"Exophormer_GNN","repo":"iit-pavis/diffassemble","repo_kind":"official","path":"puzzle_diff/model/spatial_diffusion.py","file_url":"https://github.com/iit-pavis/diffassemble/blob/HEAD/puzzle_diff/model/spatial_diffusion.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":"c6ba46a75cc4c7de"}},{"code_sha256_prefix":"853fb3e8375b1a22","entry":"GCN","repo":"iit-pavis/diffassemble","repo_kind":"official","path":"puzzle_diff/model/spatial_diffusion.py","file_url":"https://github.com/iit-pavis/diffassemble/blob/HEAD/puzzle_diff/model/spatial_diffusion.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":"853fb3e8375b1a22"}},{"code_sha256_prefix":"ee30ebfbd2d26e63","entry":"Transformer_GNN","repo":"iit-pavis/diffassemble","repo_kind":"official","path":"puzzle_diff/model/spatial_diffusion.py","file_url":"https://github.com/iit-pavis/diffassemble/blob/HEAD/puzzle_diff/model/spatial_diffusion.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":"ee30ebfbd2d26e63"}},{"code_sha256_prefix":"66961a32f6104980","entry":"cosine_beta_schedule","repo":"iit-pavis/diffassemble","repo_kind":"official","path":"puzzle_diff/model/spatial_diffusion.py","file_url":"https://github.com/iit-pavis/diffassemble/blob/HEAD/puzzle_diff/model/spatial_diffusion.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"66961a32f6104980"}},{"code_sha256_prefix":"75938900df057f17","entry":"cosine_discrete_beta_schedule","repo":"iit-pavis/diffassemble","repo_kind":"official","path":"puzzle_diff/model/spatial_diffusion.py","file_url":"https://github.com/iit-pavis/diffassemble/blob/HEAD/puzzle_diff/model/spatial_diffusion.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"75938900df057f17"}},{"code_sha256_prefix":"65d377dcba896cef","entry":"interpolate_color","repo":"iit-pavis/diffassemble","repo_kind":"official","path":"puzzle_diff/model/spatial_diffusion.py","file_url":"https://github.com/iit-pavis/diffassemble/blob/HEAD/puzzle_diff/model/spatial_diffusion.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"65d377dcba896cef"}},{"code_sha256_prefix":"0758f1d8eda12e1f","entry":"interpolate_color1d","repo":"iit-pavis/diffassemble","repo_kind":"official","path":"puzzle_diff/model/spatial_diffusion.py","file_url":"https://github.com/iit-pavis/diffassemble/blob/HEAD/puzzle_diff/model/spatial_diffusion.py","link_basis":"first_harvest_node","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"0758f1d8eda12e1f"}},{"code_sha256_prefix":"37a36e71b86103ce","entry":"linear_beta_schedule","repo":"iit-pavis/diffassemble","repo_kind":"official","path":"puzzle_diff/model/spatial_diffusion.py","file_url":"https://github.com/iit-pavis/diffassemble/blob/HEAD/puzzle_diff/model/spatial_diffusion.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"37a36e71b86103ce"}},{"code_sha256_prefix":"c15dde48a426f277","entry":"BasicBlock","repo":"iit-pavis/diffassemble","repo_kind":"official","path":"puzzle_diff/model/spatial_diffusion.py","file_url":"https://github.com/iit-pavis/diffassemble/blob/HEAD/puzzle_diff/model/spatial_diffusion.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":"c15dde48a426f277"}},{"code_sha256_prefix":"8c0f25a0642ad0c9","entry":"Eff_GAT","repo":"iit-pavis/diffassemble","repo_kind":"official","path":"puzzle_diff/model/spatial_diffusion.py","file_url":"https://github.com/iit-pavis/diffassemble/blob/HEAD/puzzle_diff/model/spatial_diffusion.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":"8c0f25a0642ad0c9"}},{"code_sha256_prefix":"07d8d928387b7cde","entry":"GNN_Diffusion","repo":"iit-pavis/diffassemble","repo_kind":"official","path":"puzzle_diff/model/spatial_diffusion.py","file_url":"https://github.com/iit-pavis/diffassemble/blob/HEAD/puzzle_diff/model/spatial_diffusion.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":"07d8d928387b7cde"}},{"code_sha256_prefix":"08a34a30f6b7319f","entry":"ModelScheduler","repo":"iit-pavis/diffassemble","repo_kind":"official","path":"puzzle_diff/model/spatial_diffusion.py","file_url":"https://github.com/iit-pavis/diffassemble/blob/HEAD/puzzle_diff/model/spatial_diffusion.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":"08a34a30f6b7319f"}},{"code_sha256_prefix":"563e4b5350a21f15","entry":"ResNet","repo":"iit-pavis/diffassemble","repo_kind":"official","path":"puzzle_diff/model/spatial_diffusion.py","file_url":"https://github.com/iit-pavis/diffassemble/blob/HEAD/puzzle_diff/model/spatial_diffusion.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":"563e4b5350a21f15"}},{"code_sha256_prefix":"6f3ee56844431d2a","entry":"ResNet18","repo":"iit-pavis/diffassemble","repo_kind":"official","path":"puzzle_diff/model/spatial_diffusion.py","file_url":"https://github.com/iit-pavis/diffassemble/blob/HEAD/puzzle_diff/model/spatial_diffusion.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":"6f3ee56844431d2a"}},{"code_sha256_prefix":"df91df5171beed9b","entry":"extract","repo":"iit-pavis/diffassemble","repo_kind":"official","path":"puzzle_diff/model/spatial_diffusion.py","file_url":"https://github.com/iit-pavis/diffassemble/blob/HEAD/puzzle_diff/model/spatial_diffusion.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":"df91df5171beed9b"}},{"code_sha256_prefix":"d726810ea6025a06","entry":"greedy_cost_assignment","repo":"iit-pavis/diffassemble","repo_kind":"official","path":"puzzle_diff/model/spatial_diffusion.py","file_url":"https://github.com/iit-pavis/diffassemble/blob/HEAD/puzzle_diff/model/spatial_diffusion.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":"d726810ea6025a06"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}