{"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/arxiv-2510-15783","title":"ReCon: Region-Controllable Data Augmentation with Rectification and Alignment for Object Detection","arxiv_id":"2510.15783","date":"2025-10-17","proceeding":"NeurIPS","authors":["Haowei Zhu","Tianxiang Pan","Rui Qin","Jun-Hai Yong","Bin Wang"],"abstract":"The scale and quality of datasets are crucial for training robust perception models. However, obtaining large-scale annotated data is both costly and time-consuming. Generative models have emerged as a powerful tool for data augmentation by synthesizing samples that adhere to desired distributions. However, current generative approaches often rely on complex post-processing or extensive fine-tuning on massive datasets to achieve satisfactory results, and they remain prone to content-position mismatches and semantic leakage. To overcome these limitations, we introduce ReCon, a novel augmentation framework that enhances the capacity of structure-controllable generative models for object detection. ReCon integrates region-guided rectification into the diffusion sampling process, using feedback from a pre-trained perception model to rectify misgenerated regions within diffusion sampling process. We further propose region-aligned cross-attention to enforce spatial-semantic alignment between image regions and their textual cues, thereby improving both semantic consistency and overall image fidelity. Extensive experiments demonstrate that ReCon substantially improve the quality and trainability of generated data, achieving consistent performance gains across various datasets, backbone architectures, and data scales. Our code is available at https://github.com/haoweiz23/ReCon .","url_abs":"https://arxiv.org/abs/2510.15783","url_pdf":"https://arxiv.org/pdf/2510.15783","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2510.15783","atlas_url":"https://app.syntology.ai/?focus=2510.15783","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2510.15783"}},"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":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/haoweiz23/ReCon","reach":{"status":"ok"}}],"summary":{"ran_draft_wrong":1,"unverified":12},"by_repo_kind":{"found_in_text":{"samples":13,"ran":1,"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":13,"samples":[{"code_sha256_prefix":"63e7d99da5ea137f","entry":"retrieve_timesteps","repo":"haoweiz23/ReCon","repo_kind":"found_in_text","path":"pipelines/pipeline_controlnet_recon.py","file_url":"https://github.com/haoweiz23/ReCon/blob/HEAD/pipelines/pipeline_controlnet_recon.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"63e7d99da5ea137f"}},{"code_sha256_prefix":"9b752fc598a9435b","entry":"bbox_encode","repo":"haoweiz23/ReCon","repo_kind":"found_in_text","path":"utils/generation_utils.py","file_url":"https://github.com/haoweiz23/ReCon/blob/HEAD/utils/generation_utils.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":"9b752fc598a9435b"}},{"code_sha256_prefix":"edf3593ab00c7564","entry":"create_cross_attention_mask","repo":"haoweiz23/ReCon","repo_kind":"found_in_text","path":"models/attention_processor.py","file_url":"https://github.com/haoweiz23/ReCon/blob/HEAD/models/attention_processor.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":"edf3593ab00c7564"}},{"code_sha256_prefix":"49d6c351dd5f8baa","entry":"create_polygon_mask","repo":"haoweiz23/ReCon","repo_kind":"found_in_text","path":"utils/plot_utils.py","file_url":"https://github.com/haoweiz23/ReCon/blob/HEAD/utils/plot_utils.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":"49d6c351dd5f8baa"}},{"code_sha256_prefix":"7bb51e4545605eb5","entry":"cross_attention_with_multi_KV","repo":"haoweiz23/ReCon","repo_kind":"found_in_text","path":"models/attention_processor.py","file_url":"https://github.com/haoweiz23/ReCon/blob/HEAD/models/attention_processor.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":"7bb51e4545605eb5"}},{"code_sha256_prefix":"81954369153e1842","entry":"dilate_with_no_overlap","repo":"haoweiz23/ReCon","repo_kind":"found_in_text","path":"pipelines/recon_helper.py","file_url":"https://github.com/haoweiz23/ReCon/blob/HEAD/pipelines/recon_helper.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":"81954369153e1842"}},{"code_sha256_prefix":"e7fd0e7384eafe63","entry":"get_bboxes_union","repo":"haoweiz23/ReCon","repo_kind":"found_in_text","path":"pipelines/recon_helper.py","file_url":"https://github.com/haoweiz23/ReCon/blob/HEAD/pipelines/recon_helper.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":"e7fd0e7384eafe63"}},{"code_sha256_prefix":"e18fc75828d40d3f","entry":"iou","repo":"haoweiz23/ReCon","repo_kind":"found_in_text","path":"pipelines/recon_helper.py","file_url":"https://github.com/haoweiz23/ReCon/blob/HEAD/pipelines/recon_helper.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":"e18fc75828d40d3f"}},{"code_sha256_prefix":"97adae2d05ca5b3e","entry":"prepare_image","repo":"haoweiz23/ReCon","repo_kind":"found_in_text","path":"pipelines/pipeline_controlnet_recon.py","file_url":"https://github.com/haoweiz23/ReCon/blob/HEAD/pipelines/pipeline_controlnet_recon.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":"97adae2d05ca5b3e"}},{"code_sha256_prefix":"5015fca4827c3ded","entry":"random_split_dataset","repo":"haoweiz23/ReCon","repo_kind":"found_in_text","path":"generate.py","file_url":"https://github.com/haoweiz23/ReCon/blob/HEAD/generate.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":"5015fca4827c3ded"}},{"code_sha256_prefix":"8262566e1ed7239a","entry":"retrieve_latents","repo":"haoweiz23/ReCon","repo_kind":"found_in_text","path":"pipelines/pipeline_controlnet_recon.py","file_url":"https://github.com/haoweiz23/ReCon/blob/HEAD/pipelines/pipeline_controlnet_recon.py","link_basis":"plan_row","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":"8262566e1ed7239a"}},{"code_sha256_prefix":"f759aa4f93d14c47","entry":"scaled_dot_product_attention","repo":"haoweiz23/ReCon","repo_kind":"found_in_text","path":"models/attention_processor.py","file_url":"https://github.com/haoweiz23/ReCon/blob/HEAD/models/attention_processor.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":"f759aa4f93d14c47"}},{"code_sha256_prefix":"a402bc6a24a27858","entry":"tokenize_coordinates","repo":"haoweiz23/ReCon","repo_kind":"found_in_text","path":"utils/generation_utils.py","file_url":"https://github.com/haoweiz23/ReCon/blob/HEAD/utils/generation_utils.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":"a402bc6a24a27858"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.CV","source":"arxiv_api"},"syntology_extracted_results":null}