{"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/variable-rate-deep-image-compression-through","title":"Variable-Rate Deep Image Compression through Spatially-Adaptive Feature Transform","arxiv_id":"2108.09551","date":"2021-08-21","proceeding":"ICCV 2021 10","authors":["Myungseo Song","Jinyoung Choi","Bohyung Han"],"abstract":"We propose a versatile deep image compression network based on Spatial Feature Transform (SFT arXiv:1804.02815), which takes a source image and a corresponding quality map as inputs and produce a compressed image with variable rates. Our model covers a wide range of compression rates using a single model, which is controlled by arbitrary pixel-wise quality maps. In addition, the proposed framework allows us to perform task-aware image compressions for various tasks, e.g., classification, by efficiently estimating optimized quality maps specific to target tasks for our encoding network. This is even possible with a pretrained network without learning separate models for individual tasks. Our algorithm achieves outstanding rate-distortion trade-off compared to the approaches based on multiple models that are optimized separately for several different target rates. At the same level of compression, the proposed approach successfully improves performance on image classification and text region quality preservation via task-aware quality map estimation without additional model training. The code is available at the project website: https://github.com/micmic123/QmapCompression","url_abs":"https://arxiv.org/abs/2108.09551v1","url_pdf":"https://arxiv.org/pdf/2108.09551v1.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":"variable-rate-deep-image-compression-through","repo_url":"https://github.com/micmic123/qmapcompression","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"image-classification","task_name":"Image Classification"},{"task_slug":"image-compression","task_name":"Image Compression"},{"task_slug":"image-classification","task_name":"image-classification"}],"methods":[{"method_slug":"spatial-feature-transform","method_name":"Spatial Feature Transform"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2108.09551","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2108.09551"}},"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/micmic123/qmapcompression","reach":null}],"summary":{"ran_draft_wrong":4,"ran":8,"ran_honours":2,"unverified":9},"by_repo_kind":{"official":{"samples":23,"ran":14,"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":23,"samples":[{"code_sha256_prefix":"57912304b19e055b","entry":"Conv2d","repo":"micmic123/qmapcompression","repo_kind":"official","path":"models/models.py","file_url":"https://github.com/micmic123/qmapcompression/blob/HEAD/models/models.py","link_basis":"first_harvest_node","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":"57912304b19e055b"}},{"code_sha256_prefix":"9c1f1cc448e0664d","entry":"EntropyModel","repo":"micmic123/qmapcompression","repo_kind":"official","path":"models/models.py","file_url":"https://github.com/micmic123/qmapcompression/blob/HEAD/models/models.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"9c1f1cc448e0664d"}},{"code_sha256_prefix":"c39451487c43c591","entry":"GDN","repo":"micmic123/qmapcompression","repo_kind":"official","path":"models/models.py","file_url":"https://github.com/micmic123/qmapcompression/blob/HEAD/models/models.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c39451487c43c591"}},{"code_sha256_prefix":"be5888fab6d676bd","entry":"GDN1","repo":"micmic123/qmapcompression","repo_kind":"official","path":"models/models.py","file_url":"https://github.com/micmic123/qmapcompression/blob/HEAD/models/models.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"be5888fab6d676bd"}},{"code_sha256_prefix":"bf1b22bbc577d39b","entry":"LowerBound","repo":"micmic123/qmapcompression","repo_kind":"official","path":"models/models.py","file_url":"https://github.com/micmic123/qmapcompression/blob/HEAD/models/models.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"bf1b22bbc577d39b"}},{"code_sha256_prefix":"1cd37f07f26da419","entry":"LowerBoundFunction","repo":"micmic123/qmapcompression","repo_kind":"official","path":"models/models.py","file_url":"https://github.com/micmic123/qmapcompression/blob/HEAD/models/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":"1cd37f07f26da419"}},{"code_sha256_prefix":"1640fa653b057731","entry":"NonNegativeParametrizer","repo":"micmic123/qmapcompression","repo_kind":"official","path":"models/models.py","file_url":"https://github.com/micmic123/qmapcompression/blob/HEAD/models/models.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"1640fa653b057731"}},{"code_sha256_prefix":"4c9e4068d6df44c1","entry":"SFT","repo":"micmic123/qmapcompression","repo_kind":"official","path":"models/models.py","file_url":"https://github.com/micmic123/qmapcompression/blob/HEAD/models/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":"4c9e4068d6df44c1"}},{"code_sha256_prefix":"21e656d9f3eb6bb6","entry":"SFTResblk","repo":"micmic123/qmapcompression","repo_kind":"official","path":"models/models.py","file_url":"https://github.com/micmic123/qmapcompression/blob/HEAD/models/models.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"21e656d9f3eb6bb6"}},{"code_sha256_prefix":"c32ca457818c1366","entry":"UpConv2d","repo":"micmic123/qmapcompression","repo_kind":"official","path":"models/models.py","file_url":"https://github.com/micmic123/qmapcompression/blob/HEAD/models/models.py","link_basis":"first_harvest_node","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":"c32ca457818c1366"}},{"code_sha256_prefix":"f2cea3e9848ae52d","entry":"conv","repo":"micmic123/qmapcompression","repo_kind":"official","path":"models/models.py","file_url":"https://github.com/micmic123/qmapcompression/blob/HEAD/models/models.py","link_basis":"first_harvest_node","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":"f2cea3e9848ae52d"}},{"code_sha256_prefix":"1afd37c576493fea","entry":"deconv","repo":"micmic123/qmapcompression","repo_kind":"official","path":"models/models.py","file_url":"https://github.com/micmic123/qmapcompression/blob/HEAD/models/models.py","link_basis":"first_harvest_node","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":"1afd37c576493fea"}},{"code_sha256_prefix":"a94389b554ddc179","entry":"find_named_buffer","repo":"micmic123/qmapcompression","repo_kind":"official","path":"models/models.py","file_url":"https://github.com/micmic123/qmapcompression/blob/HEAD/models/models.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"a94389b554ddc179"}},{"code_sha256_prefix":"d1e39fa98bee2cb7","entry":"get_scale_table","repo":"micmic123/qmapcompression","repo_kind":"official","path":"models/models.py","file_url":"https://github.com/micmic123/qmapcompression/blob/HEAD/models/models.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d1e39fa98bee2cb7"}},{"code_sha256_prefix":"3bc52cfb7b786786","entry":"CompressionModel","repo":"micmic123/qmapcompression","repo_kind":"official","path":"models/models.py","file_url":"https://github.com/micmic123/qmapcompression/blob/HEAD/models/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":"3bc52cfb7b786786"}},{"code_sha256_prefix":"148cb7a629823ea7","entry":"EntropyBottleneck","repo":"micmic123/qmapcompression","repo_kind":"official","path":"models/models.py","file_url":"https://github.com/micmic123/qmapcompression/blob/HEAD/models/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":"148cb7a629823ea7"}},{"code_sha256_prefix":"2474ed1b08d571c3","entry":"GaussianConditional","repo":"micmic123/qmapcompression","repo_kind":"official","path":"models/models.py","file_url":"https://github.com/micmic123/qmapcompression/blob/HEAD/models/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":"2474ed1b08d571c3"}},{"code_sha256_prefix":"dc293862477823c8","entry":"ScaleHyperprior","repo":"micmic123/qmapcompression","repo_kind":"official","path":"models/models.py","file_url":"https://github.com/micmic123/qmapcompression/blob/HEAD/models/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":"dc293862477823c8"}},{"code_sha256_prefix":"9732c184d3a8e96b","entry":"SpatiallyAdaptiveCompression","repo":"micmic123/qmapcompression","repo_kind":"official","path":"models/models.py","file_url":"https://github.com/micmic123/qmapcompression/blob/HEAD/models/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":"9732c184d3a8e96b"}},{"code_sha256_prefix":"d05821ea9fe6037d","entry":"_EntropyCoder","repo":"micmic123/qmapcompression","repo_kind":"official","path":"models/models.py","file_url":"https://github.com/micmic123/qmapcompression/blob/HEAD/models/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":"d05821ea9fe6037d"}},{"code_sha256_prefix":"5612db1b73ea390d","entry":"_update_registered_buffer","repo":"micmic123/qmapcompression","repo_kind":"official","path":"models/models.py","file_url":"https://github.com/micmic123/qmapcompression/blob/HEAD/models/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":"5612db1b73ea390d"}},{"code_sha256_prefix":"faadfa6193587d6c","entry":"default_entropy_coder","repo":"micmic123/qmapcompression","repo_kind":"official","path":"models/models.py","file_url":"https://github.com/micmic123/qmapcompression/blob/HEAD/models/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":"faadfa6193587d6c"}},{"code_sha256_prefix":"a089d0be0293d735","entry":"update_registered_buffers","repo":"micmic123/qmapcompression","repo_kind":"official","path":"models/models.py","file_url":"https://github.com/micmic123/qmapcompression/blob/HEAD/models/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":"a089d0be0293d735"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}