{"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/dual-aggregation-transformer-for-image-super","title":"Dual Aggregation Transformer for Image Super-Resolution","arxiv_id":"2308.03364","date":"2023-08-07","proceeding":"ICCV 2023 1","authors":["Zheng Chen","Yulun Zhang","Jinjin Gu","Linghe Kong","Xiaokang Yang","Fisher Yu"],"abstract":"Transformer has recently gained considerable popularity in low-level vision tasks, including image super-resolution (SR). These networks utilize self-attention along different dimensions, spatial or channel, and achieve impressive performance. This inspires us to combine the two dimensions in Transformer for a more powerful representation capability. Based on the above idea, we propose a novel Transformer model, Dual Aggregation Transformer (DAT), for image SR. Our DAT aggregates features across spatial and channel dimensions, in the inter-block and intra-block dual manner. Specifically, we alternately apply spatial and channel self-attention in consecutive Transformer blocks. The alternate strategy enables DAT to capture the global context and realize inter-block feature aggregation. Furthermore, we propose the adaptive interaction module (AIM) and the spatial-gate feed-forward network (SGFN) to achieve intra-block feature aggregation. AIM complements two self-attention mechanisms from corresponding dimensions. Meanwhile, SGFN introduces additional non-linear spatial information in the feed-forward network. Extensive experiments show that our DAT surpasses current methods. Code and models are obtainable at https://github.com/zhengchen1999/DAT.","url_abs":"https://arxiv.org/abs/2308.03364v2","url_pdf":"https://arxiv.org/pdf/2308.03364v2.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":"dual-aggregation-transformer-for-image-super","repo_url":"https://github.com/zhengchen1999/dat","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":"image-super-resolution","task_name":"Image Super-Resolution"},{"task_slug":"super-resolution","task_name":"Super-Resolution"}],"methods":[{"method_slug":"absolute-position-encodings","method_name":"Absolute Position Encodings"},{"method_slug":"adam","method_name":"Adam"},{"method_slug":"attention","method_name":"Attention"},{"method_slug":"bpe","method_name":"BPE"},{"method_slug":"dense-connections","method_name":"Dense Connections"},{"method_slug":"dropout","method_name":"Dropout"},{"method_slug":"label-smoothing","method_name":"Label Smoothing"},{"method_slug":"layer-normalization","method_name":"Layer Normalization"},{"method_slug":"linear-layer","method_name":"Linear Layer"},{"method_slug":"multi-head-attention","method_name":"Multi-Head Attention"},{"method_slug":"position-wise-feed-forward-layer","method_name":"Position-Wise Feed-Forward Layer"},{"method_slug":"residual-connection","method_name":"Residual Connection"},{"method_slug":"softmax","method_name":"Softmax"},{"method_slug":"transformer","method_name":"Transformer"}],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/image-super-resolution-on-manga109-4x","task":"Image Super-Resolution","dataset":"Manga109 - 4x upscaling","model":"DAT+","rank_in_archive_order":11,"of":50,"metrics":{"PSNR":"32.67","SSIM":"0.9301"},"uses_additional_data":false},{"leaderboard":"/sota/image-super-resolution-on-manga109-4x","task":"Image Super-Resolution","dataset":"Manga109 - 4x upscaling","model":"DAT","rank_in_archive_order":13,"of":50,"metrics":{"PSNR":"32.51","SSIM":"0.9291"},"uses_additional_data":false},{"leaderboard":"/sota/image-super-resolution-on-set14-4x-upscaling","task":"Image Super-Resolution","dataset":"Set14 - 4x upscaling","model":"DAT+","rank_in_archive_order":12,"of":104,"metrics":{"PSNR":"29.29","SSIM":"0.7983"},"uses_additional_data":false},{"leaderboard":"/sota/image-super-resolution-on-set14-4x-upscaling","task":"Image Super-Resolution","dataset":"Set14 - 4x upscaling","model":"DAT","rank_in_archive_order":17,"of":104,"metrics":{"PSNR":"29.23","SSIM":"0.7973"},"uses_additional_data":false}],"syntology":{"syntology_url":"https://syntology.ai/paper/2308.03364","atlas_url":"https://app.syntology.ai/?focus=2308.03364","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2308.03364"}},"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":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/zhengchen1999/dat","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"deterministic:regex_extraction","url":"https://github.com/zhengchen1999/DAT","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"ran_draft_wrong":4,"ran_fixture":3,"ran":2,"unverified":8},"by_repo_kind":{"official":{"samples":17,"ran":9,"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":"ef9faf68f492a375","entry":"flow_warp","repo":"zhengchen1999/dat","repo_kind":"official","path":"basicsr/archs/arch_util.py","file_url":"https://github.com/zhengchen1999/dat/blob/HEAD/basicsr/archs/arch_util.py","link_basis":"harvester_set","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":"ef9faf68f492a375"}},{"code_sha256_prefix":"cd569444547de84f","entry":"get_position_from_periods","repo":"zhengchen1999/dat","repo_kind":"official","path":"basicsr/models/lr_scheduler.py","file_url":"https://github.com/zhengchen1999/dat/blob/HEAD/basicsr/models/lr_scheduler.py","link_basis":"harvester_set","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":"cd569444547de84f"}},{"code_sha256_prefix":"15c613ecceb6aa71","entry":"img2windows","repo":"zhengchen1999/dat","repo_kind":"official","path":"basicsr/archs/dat_arch.py","file_url":"https://github.com/zhengchen1999/dat/blob/HEAD/basicsr/archs/dat_arch.py","link_basis":"harvester_set","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"15c613ecceb6aa71"}},{"code_sha256_prefix":"5360d45b71ae2bb1","entry":"insert_bn","repo":"zhengchen1999/dat","repo_kind":"official","path":"basicsr/archs/vgg_arch.py","file_url":"https://github.com/zhengchen1999/dat/blob/HEAD/basicsr/archs/vgg_arch.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"5360d45b71ae2bb1"}},{"code_sha256_prefix":"96ad5dc9ca239aec","entry":"make_layer","repo":"zhengchen1999/dat","repo_kind":"official","path":"basicsr/archs/arch_util.py","file_url":"https://github.com/zhengchen1999/dat/blob/HEAD/basicsr/archs/arch_util.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"96ad5dc9ca239aec"}},{"code_sha256_prefix":"f6b0e1eb5b7df3e3","entry":"master_only","repo":"zhengchen1999/dat","repo_kind":"official","path":"basicsr/utils/dist_util.py","file_url":"https://github.com/zhengchen1999/dat/blob/HEAD/basicsr/utils/dist_util.py","link_basis":"harvester_set","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":"f6b0e1eb5b7df3e3"}},{"code_sha256_prefix":"95067518dc16b3e5","entry":"reorder_image","repo":"zhengchen1999/dat","repo_kind":"official","path":"basicsr/metrics/metric_util.py","file_url":"https://github.com/zhengchen1999/dat/blob/HEAD/basicsr/metrics/metric_util.py","link_basis":"harvester_set","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":"95067518dc16b3e5"}},{"code_sha256_prefix":"5a1d8458dc7077a6","entry":"resize_flow","repo":"zhengchen1999/dat","repo_kind":"official","path":"basicsr/archs/arch_util.py","file_url":"https://github.com/zhengchen1999/dat/blob/HEAD/basicsr/archs/arch_util.py","link_basis":"harvester_set","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":"5a1d8458dc7077a6"}},{"code_sha256_prefix":"8cb23a62748d3b1c","entry":"windows2img","repo":"zhengchen1999/dat","repo_kind":"official","path":"basicsr/archs/dat_arch.py","file_url":"https://github.com/zhengchen1999/dat/blob/HEAD/basicsr/archs/dat_arch.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"8cb23a62748d3b1c"}},{"code_sha256_prefix":"c7d43bba6b42f357","entry":"Adaptive_Channel_Attention","repo":"zhengchen1999/DAT","repo_kind":"official","path":"basicsr/archs/dat_arch.py","file_url":"https://github.com/zhengchen1999/DAT/blob/HEAD/basicsr/archs/dat_arch.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":"c7d43bba6b42f357"}},{"code_sha256_prefix":"eb1bcc92fa12ac09","entry":"Adaptive_Spatial_Attention","repo":"zhengchen1999/DAT","repo_kind":"official","path":"basicsr/archs/dat_arch.py","file_url":"https://github.com/zhengchen1999/DAT/blob/HEAD/basicsr/archs/dat_arch.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":"eb1bcc92fa12ac09"}},{"code_sha256_prefix":"4b1b9c3dd99587cd","entry":"DAT","repo":"zhengchen1999/DAT","repo_kind":"official","path":"basicsr/archs/dat_arch.py","file_url":"https://github.com/zhengchen1999/DAT/blob/HEAD/basicsr/archs/dat_arch.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":"4b1b9c3dd99587cd"}},{"code_sha256_prefix":"84c1383fd9c16d18","entry":"DATB","repo":"zhengchen1999/DAT","repo_kind":"official","path":"basicsr/archs/dat_arch.py","file_url":"https://github.com/zhengchen1999/DAT/blob/HEAD/basicsr/archs/dat_arch.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":"84c1383fd9c16d18"}},{"code_sha256_prefix":"f4d1f0c3893d9aaa","entry":"ResidualGroup","repo":"zhengchen1999/DAT","repo_kind":"official","path":"basicsr/archs/dat_arch.py","file_url":"https://github.com/zhengchen1999/DAT/blob/HEAD/basicsr/archs/dat_arch.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":"f4d1f0c3893d9aaa"}},{"code_sha256_prefix":"a648a03a952822c0","entry":"reduce_loss","repo":"zhengchen1999/dat","repo_kind":"official","path":"basicsr/losses/loss_util.py","file_url":"https://github.com/zhengchen1999/dat/blob/HEAD/basicsr/losses/loss_util.py","link_basis":"harvester_set","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":"a648a03a952822c0"}},{"code_sha256_prefix":"1ba39317ea81871a","entry":"weight_reduce_loss","repo":"zhengchen1999/dat","repo_kind":"official","path":"basicsr/losses/loss_util.py","file_url":"https://github.com/zhengchen1999/dat/blob/HEAD/basicsr/losses/loss_util.py","link_basis":"harvester_set","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":"1ba39317ea81871a"}},{"code_sha256_prefix":"cf63f8afc13f62a7","entry":"weighted_loss","repo":"zhengchen1999/dat","repo_kind":"official","path":"basicsr/losses/loss_util.py","file_url":"https://github.com/zhengchen1999/dat/blob/HEAD/basicsr/losses/loss_util.py","link_basis":"harvester_set","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":"cf63f8afc13f62a7"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}