{"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-2606-04373","title":"Selective Coupling of Decoupled Informative Regions: Masked Attention Alignment for Data-Free Quantization of Vision Transformers","arxiv_id":"2606.04373","date":"2026-06-03","proceeding":"ICML","authors":["Biao Qian","Yang Wang","Yong Wu","Jungong Han"],"abstract":"Data-Free Quantization (DFQ) addresses data security concerns by synthesizing samples, without accessing real data. It has garnered increasing attention in the context of Vision Transformers (ViTs), owing to the superiority of the self-attention mechanism compared to classical convolutional operation. However, previous DFQ arts for ViTs often suffer from a distribution mismatch between synthetic samples and input distribution expected by quantized models Q, resulting in the suboptimal performance. In this paper, we propose a novel Masked Attention Alignment approach for Data-Free Quantization of ViTs, named MaskAQ, revealing that: 1) the semantics in the self-attention mechanism is predominantly localized to a sparse subset of patches, called informative regions; 2) the informative regions dominate the mutual information between synthetic samples and Q's outputs. To these ends, we incorporate differential entropy maximum over patch similarity of synthetic samples, to decouple informative regions from noisy background. To couple with varied Q, the informative regions are selected to align full-precision models with Q via a masked attention alignment objective, thus yielding high-quality synthetic samples. Furthermore, a periodic sample refreshing strategy comes up to endow MaskAQ with the capacity to continually adapt to the evolving state of Q throughout the training process, to preserve desirable mutual information with synthetic samples. Extensive experiments verify the merits of MaskAQ over state-of-the-art approaches across multiple backbones and downstream tasks. Our code is available at https://github.com/hfutqian/MaskAQ.","url_abs":"https://arxiv.org/abs/2606.04373","url_pdf":"https://arxiv.org/pdf/2606.04373","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/2606.04373","atlas_url":"https://app.syntology.ai/?focus=2606.04373","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2606.04373"}},"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/hfutqian/MaskAQ","reach":null}],"summary":{"ran":3,"ran_honours":2,"ran_fixture":3,"ran_draft_wrong":2,"unverified":2},"by_repo_kind":{"found_in_text":{"samples":12,"ran":10,"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":"5483c0322ebd2788","entry":"ColorJitter","repo":"hfutqian/MaskAQ","repo_kind":"found_in_text","path":"MaskAQ/hydra_image_gen_ssim_att_map.py","file_url":"https://github.com/hfutqian/MaskAQ/blob/HEAD/MaskAQ/hydra_image_gen_ssim_att_map.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"5483c0322ebd2788"}},{"code_sha256_prefix":"31e36e389cbb635b","entry":"GaussianNoise","repo":"hfutqian/MaskAQ","repo_kind":"found_in_text","path":"MaskAQ/hydra_image_gen_ssim_att_map.py","file_url":"https://github.com/hfutqian/MaskAQ/blob/HEAD/MaskAQ/hydra_image_gen_ssim_att_map.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"31e36e389cbb635b"}},{"code_sha256_prefix":"b647b6fa7c6ef9f7","entry":"attention_entropy_loss_similarity","repo":"hfutqian/MaskAQ","repo_kind":"found_in_text","path":"MaskAQ/hydra_image_gen_ssim_att_map.py","file_url":"https://github.com/hfutqian/MaskAQ/blob/HEAD/MaskAQ/hydra_image_gen_ssim_att_map.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"b647b6fa7c6ef9f7"}},{"code_sha256_prefix":"be79c10c1ba8dfc0","entry":"generate_attention_mask","repo":"hfutqian/MaskAQ","repo_kind":"found_in_text","path":"MaskAQ/hydra_image_gen_ssim_att_map.py","file_url":"https://github.com/hfutqian/MaskAQ/blob/HEAD/MaskAQ/hydra_image_gen_ssim_att_map.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"be79c10c1ba8dfc0"}},{"code_sha256_prefix":"5ba2c5affabe46db","entry":"get_image_prior_losses","repo":"hfutqian/MaskAQ","repo_kind":"found_in_text","path":"MaskAQ/hydra_image_gen_ssim_att_map.py","file_url":"https://github.com/hfutqian/MaskAQ/blob/HEAD/MaskAQ/hydra_image_gen_ssim_att_map.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"5ba2c5affabe46db"}},{"code_sha256_prefix":"caed5009a1578053","entry":"hook_class","repo":"hfutqian/MaskAQ","repo_kind":"found_in_text","path":"MaskAQ/hydra_image_gen_ssim_att_map.py","file_url":"https://github.com/hfutqian/MaskAQ/blob/HEAD/MaskAQ/hydra_image_gen_ssim_att_map.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"caed5009a1578053"}},{"code_sha256_prefix":"591c839354b2719c","entry":"masked_attention_difference_loss","repo":"hfutqian/MaskAQ","repo_kind":"found_in_text","path":"MaskAQ/hydra_image_gen_ssim_att_map.py","file_url":"https://github.com/hfutqian/MaskAQ/blob/HEAD/MaskAQ/hydra_image_gen_ssim_att_map.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"591c839354b2719c"}},{"code_sha256_prefix":"cf587069fbbe0afd","entry":"ssim_loss_att_map","repo":"hfutqian/MaskAQ","repo_kind":"found_in_text","path":"MaskAQ/hydra_image_gen_ssim_att_map.py","file_url":"https://github.com/hfutqian/MaskAQ/blob/HEAD/MaskAQ/hydra_image_gen_ssim_att_map.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"cf587069fbbe0afd"}},{"code_sha256_prefix":"f6230f919b38e3b4","entry":"stochastic_mask_drop","repo":"hfutqian/MaskAQ","repo_kind":"found_in_text","path":"MaskAQ/hydra_image_gen_ssim_att_map.py","file_url":"https://github.com/hfutqian/MaskAQ/blob/HEAD/MaskAQ/hydra_image_gen_ssim_att_map.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":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"f6230f919b38e3b4"}},{"code_sha256_prefix":"f88a9d4be2458283","entry":"update_mask_ratio","repo":"hfutqian/MaskAQ","repo_kind":"found_in_text","path":"MaskAQ/hydra_image_gen_ssim_att_map.py","file_url":"https://github.com/hfutqian/MaskAQ/blob/HEAD/MaskAQ/hydra_image_gen_ssim_att_map.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"f88a9d4be2458283"}},{"code_sha256_prefix":"0bbe2df88e08bd7d","entry":"generate","repo":"hfutqian/MaskAQ","repo_kind":"found_in_text","path":"MaskAQ/hydra_image_gen_ssim_att_map.py","file_url":"https://github.com/hfutqian/MaskAQ/blob/HEAD/MaskAQ/hydra_image_gen_ssim_att_map.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"0bbe2df88e08bd7d"}},{"code_sha256_prefix":"f13dc6e6820fb836","entry":"ssim_loss_att_map_swin","repo":"hfutqian/MaskAQ","repo_kind":"found_in_text","path":"MaskAQ/hydra_image_gen_ssim_att_map.py","file_url":"https://github.com/hfutqian/MaskAQ/blob/HEAD/MaskAQ/hydra_image_gen_ssim_att_map.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"f13dc6e6820fb836"}}]},"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_2026.jsonl"},"syntology_extracted_results":{"kind":"leaderboard_placements","source":"Syntology's leaderboard-shaped extractor over the paper's own arXiv-HTML tables: a model pointed at a cell, the number was read from that cell and checked against the board's metric, dataset, split and scale, and an independent check accepted the entry; not reviewed by the paper's authors or the archive's editors","extractor_model":"global.anthropic.claude-sonnet-4-5-20250929-v1:0","verifier_model":null,"prompt_sha":"fa63d4bb9d755694","coverage":{"sentence":"Syntology has checked 6,885 of the 9,623 papers on this site that are newer than the archive; results from the others appear after they are checked.","papers_newer_than_archive":9623,"papers_checked":6885},"entries":[],"not_placed":{"boards":1,"rejected_by_independent_check":0,"refused_by_a_rule":1,"check_did_not_answer":0,"proposed_without_a_cell":0,"declined_by_site":0}}}