{"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/self-supervised-neuron-segmentation-with","title":"Self-Supervised Neuron Segmentation with Multi-Agent Reinforcement Learning","arxiv_id":"2310.04148","date":"2023-10-06","proceeding":null,"authors":["Yinda Chen","Wei Huang","Shenglong Zhou","Qi Chen","Zhiwei Xiong"],"abstract":"The performance of existing supervised neuron segmentation methods is highly dependent on the number of accurate annotations, especially when applied to large scale electron microscopy (EM) data. By extracting semantic information from unlabeled data, self-supervised methods can improve the performance of downstream tasks, among which the mask image model (MIM) has been widely used due to its simplicity and effectiveness in recovering original information from masked images. However, due to the high degree of structural locality in EM images, as well as the existence of considerable noise, many voxels contain little discriminative information, making MIM pretraining inefficient on the neuron segmentation task. To overcome this challenge, we propose a decision-based MIM that utilizes reinforcement learning (RL) to automatically search for optimal image masking ratio and masking strategy. Due to the vast exploration space, using single-agent RL for voxel prediction is impractical. Therefore, we treat each input patch as an agent with a shared behavior policy, allowing for multi-agent collaboration. Furthermore, this multi-agent model can capture dependencies between voxels, which is beneficial for the downstream segmentation task. Experiments conducted on representative EM datasets demonstrate that our approach has a significant advantage over alternative self-supervised methods on the task of neuron segmentation. Code is available at \\url{https://github.com/ydchen0806/dbMiM}.","url_abs":"https://arxiv.org/abs/2310.04148v1","url_pdf":"https://arxiv.org/pdf/2310.04148v1.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":"self-supervised-neuron-segmentation-with","repo_url":"https://github.com/ydchen0806/dbmim","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"multi-agent-reinforcement-learning","task_name":"Multi-agent Reinforcement Learning"},{"task_slug":"reinforcement-learning","task_name":"Reinforcement Learning"},{"task_slug":"reinforcement-learning-1","task_name":"Reinforcement Learning (RL)"},{"task_slug":"segmentation","task_name":"Segmentation"},{"task_slug":"reinforcement-learning-2","task_name":"reinforcement-learning"}],"methods":[{"method_slug":"mim","method_name":"MIM"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2310.04148","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2310.04148"}},"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/ydchen0806/dbmim","reach":{"status":"ok"}},{"provenance":"deterministic:regex_extraction","url":"https://github.com/ydchen0806/dbMiM","reach":{"status":"ok"}}],"summary":{"ran":15,"ran_violates":1,"ran_honours":2,"ran_draft_wrong":2,"unverified":4},"by_repo_kind":{"official":{"samples":24,"ran":20,"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":24,"samples":[{"code_sha256_prefix":"b4ad2611c31e1f3c","entry":"DecisionModule","repo":"ydchen0806/dbMiM","repo_kind":"official","path":"dbmim/models.py","file_url":"https://github.com/ydchen0806/dbMiM/blob/HEAD/dbmim/models.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":"b4ad2611c31e1f3c"}},{"code_sha256_prefix":"ffa0da027cebb013","entry":"MAEOutput","repo":"ydchen0806/dbMiM","repo_kind":"official","path":"dbmim/models.py","file_url":"https://github.com/ydchen0806/dbMiM/blob/HEAD/dbmim/models.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":"ffa0da027cebb013"}},{"code_sha256_prefix":"7dfdb20a93a38877","entry":"PatchEmbed3D","repo":"ydchen0806/dbMiM","repo_kind":"official","path":"dbmim/models.py","file_url":"https://github.com/ydchen0806/dbMiM/blob/HEAD/dbmim/models.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":"7dfdb20a93a38877"}},{"code_sha256_prefix":"a8c788e1c3eb20c1","entry":"TransformerBlock","repo":"ydchen0806/dbMiM","repo_kind":"official","path":"dbmim/models.py","file_url":"https://github.com/ydchen0806/dbMiM/blob/HEAD/dbmim/models.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":"a8c788e1c3eb20c1"}},{"code_sha256_prefix":"640410b6903d7f7a","entry":"_decision_needs_edge_scores","repo":"ydchen0806/dbMiM","repo_kind":"official","path":"dbmim/models.py","file_url":"https://github.com/ydchen0806/dbMiM/blob/HEAD/dbmim/models.py","link_basis":"first_harvest_node","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"640410b6903d7f7a"}},{"code_sha256_prefix":"0d706bb7ac1a82b9","entry":"_normalize_axis_weights","repo":"ydchen0806/dbMiM","repo_kind":"official","path":"dbmim/models.py","file_url":"https://github.com/ydchen0806/dbMiM/blob/HEAD/dbmim/models.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":"0d706bb7ac1a82b9"}},{"code_sha256_prefix":"17347b00ad3c515c","entry":"_triple","repo":"ydchen0806/dbMiM","repo_kind":"official","path":"dbmim/models.py","file_url":"https://github.com/ydchen0806/dbMiM/blob/HEAD/dbmim/models.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":"17347b00ad3c515c"}},{"code_sha256_prefix":"cf5e36b4f5d5bafc","entry":"affinities_to_connected_components","repo":"ydchen0806/dbmim","repo_kind":"official","path":"dbmim/postprocess.py","file_url":"https://github.com/ydchen0806/dbmim/blob/HEAD/dbmim/postprocess.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":"cf5e36b4f5d5bafc"}},{"code_sha256_prefix":"ffbb8cf276ef9f02","entry":"augment_image_and_label","repo":"ydchen0806/dbmim","repo_kind":"official","path":"dbmim/datasets.py","file_url":"https://github.com/ydchen0806/dbmim/blob/HEAD/dbmim/datasets.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":"ffbb8cf276ef9f02"}},{"code_sha256_prefix":"d00a010268c413ef","entry":"binary_iou_from_logits","repo":"ydchen0806/dbmim","repo_kind":"official","path":"dbmim/metrics.py","file_url":"https://github.com/ydchen0806/dbmim/blob/HEAD/dbmim/metrics.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":"d00a010268c413ef"}},{"code_sha256_prefix":"f0e1aff9aea1ad2d","entry":"device_from_config","repo":"ydchen0806/dbmim","repo_kind":"official","path":"dbmim/utils.py","file_url":"https://github.com/ydchen0806/dbmim/blob/HEAD/dbmim/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":"f0e1aff9aea1ad2d"}},{"code_sha256_prefix":"a8c9b35dce17bae5","entry":"dice_from_logits","repo":"ydchen0806/dbmim","repo_kind":"official","path":"dbmim/metrics.py","file_url":"https://github.com/ydchen0806/dbmim/blob/HEAD/dbmim/metrics.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":"a8c9b35dce17bae5"}},{"code_sha256_prefix":"3f46792b39d12fa5","entry":"ensure_dir","repo":"ydchen0806/dbmim","repo_kind":"official","path":"dbmim/utils.py","file_url":"https://github.com/ydchen0806/dbmim/blob/HEAD/dbmim/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":"3f46792b39d12fa5"}},{"code_sha256_prefix":"8505f28e0bda17d4","entry":"gradient_loss_3d","repo":"ydchen0806/dbMiM","repo_kind":"official","path":"dbmim/models.py","file_url":"https://github.com/ydchen0806/dbMiM/blob/HEAD/dbmim/models.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":"8505f28e0bda17d4"}},{"code_sha256_prefix":"02cf333b1f5f0dd4","entry":"is_main","repo":"ydchen0806/dbmim","repo_kind":"official","path":"train_finetune.py","file_url":"https://github.com/ydchen0806/dbmim/blob/HEAD/train_finetune.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":"02cf333b1f5f0dd4"}},{"code_sha256_prefix":"52e93d4c7dc1aa9b","entry":"load_config","repo":"ydchen0806/dbmim","repo_kind":"official","path":"dbmim/utils.py","file_url":"https://github.com/ydchen0806/dbmim/blob/HEAD/dbmim/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":"52e93d4c7dc1aa9b"}},{"code_sha256_prefix":"3dce450f399d1158","entry":"membrane_edge_map_3d","repo":"ydchen0806/dbMiM","repo_kind":"official","path":"dbmim/models.py","file_url":"https://github.com/ydchen0806/dbMiM/blob/HEAD/dbmim/models.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":"3dce450f399d1158"}},{"code_sha256_prefix":"83684b4d0057676f","entry":"normalize_volume","repo":"ydchen0806/dbmim","repo_kind":"official","path":"dbmim/datasets.py","file_url":"https://github.com/ydchen0806/dbmim/blob/HEAD/dbmim/datasets.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":"83684b4d0057676f"}},{"code_sha256_prefix":"a2a94ab0f75b1a93","entry":"random_crop_3d","repo":"ydchen0806/dbmim","repo_kind":"official","path":"dbmim/datasets.py","file_url":"https://github.com/ydchen0806/dbmim/blob/HEAD/dbmim/datasets.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":"a2a94ab0f75b1a93"}},{"code_sha256_prefix":"d9188e9f5325493b","entry":"relabel_sequential","repo":"ydchen0806/dbmim","repo_kind":"official","path":"dbmim/postprocess.py","file_url":"https://github.com/ydchen0806/dbmim/blob/HEAD/dbmim/postprocess.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":"d9188e9f5325493b"}},{"code_sha256_prefix":"bbe3d482f52125db","entry":"DBMIM3DMAE","repo":"ydchen0806/dbMiM","repo_kind":"official","path":"dbmim/models.py","file_url":"https://github.com/ydchen0806/dbMiM/blob/HEAD/dbmim/models.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":"bbe3d482f52125db"}},{"code_sha256_prefix":"2c0453237d66c5cb","entry":"load_pretrained_backbone","repo":"ydchen0806/dbmim","repo_kind":"official","path":"dbmim/models.py","file_url":"https://github.com/ydchen0806/dbmim/blob/HEAD/dbmim/models.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":"2c0453237d66c5cb"}},{"code_sha256_prefix":"ba4d5d62b9e2f2a3","entry":"unwrap","repo":"ydchen0806/dbmim","repo_kind":"official","path":"train_finetune.py","file_url":"https://github.com/ydchen0806/dbmim/blob/HEAD/train_finetune.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":"ba4d5d62b9e2f2a3"}},{"code_sha256_prefix":"925f14fbca20ff8d","entry":"watershed_fragments","repo":"ydchen0806/dbmim","repo_kind":"official","path":"dbmim/postprocess.py","file_url":"https://github.com/ydchen0806/dbmim/blob/HEAD/dbmim/postprocess.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":"925f14fbca20ff8d"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}