Manuscript Offprint
arXiv:2610.33616Semantic-Guided Frequency Modulation for Learned Image Compression
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
High-frequency attenuation can reduce the rate of learned image codecs but also remove object boundaries and fine detail. We propose Semantic-Guided Adaptive Latent-Frequency Modulation (SG-AFM), which uses a semantic structural prior to guide attenuation of encoder latents. SG-AFM applies a Haar wavelet transform and combines a fixed semantic-frequency multiplier with a bounded learned correction to modulate high-frequency subbands. The semantic prior is computed only at the encoder. No semantic map is transmitted, and no decoder modules are added. Across six datasets, SG-AFM reduces PSNR-based BD-rate relative to TCM by an average of 13.17%. It achieves the best BD-rate among the compared methods on ExDark, NightCity, and OnePlus, with a mean reduction of 16.80%. An ablation on OnePlus demonstrates the benefit of spatially aligned semantic guidance, and visual comparisons illustrate improved reconstruction of local structures.
1 Introduction
In images with complex illumination, object boundaries and fine detail appear alongside glare, reflections, and sharp exposure transitions. High-frequency latent responses can occur in all of these regions, so their magnitude alone does not identify which structures to prioritize during compression. The information a codec must preserve depends on its specified reconstruction and prediction requirements [1]. Attenuating these responses can reduce bitrate, but applying attenuation without spatial guidance can also degrade reconstruction. We use semantic structure to guide where and how strongly to attenuate the high-frequency components of encoder latents.
Learned image compression (LIC) methods improve rate-distortion (RD) performance through learned transforms, entropy models, and quantization. Balanced RD optimization further improves compression efficiency by coordinating the competing rate and distortion objectives during training [2]. TCM [3] combines convolutional and Transformer architectures for local and non-local modeling. MambaIC [4] and Cassic [5] use state-space models for long-range and content-adaptive representation learning, while adaptive lattice vector quantization [6] supports multirate coding. Frequency-aware methods explicitly process frequency components. FTIC [7] combines multiscale directional analysis with adaptive frequency modulation, and

- White dashed box: Region with pronounced HF modulation Green box: Semantically important structure Yellow box: Non-critical HF regions
Figure 1: Semantic guidance for latent-frequency modulation. Examples from ExDark, NightCity, and OnePlus show the input, original high-frequency (HF) response , semantic structural prior S, modulated response, and reconstruction. Green boxes mark structural regions and yellow boxes mark other HF regions. White dashed boxes locate examples of modulation in the response maps.
SAAF [8] combines sparse attention with content-adaptive frequency processing. Frequency-biased compression and compensation [9] couples frequency suppression with reconstruction. Semantic information has also been used to refine generative image compression [10], while region-adaptive latent masking allocates coding resources according to local image importance [11]. We introduce an image-derived semantic prior into latent-frequency modulation to guide the spatial distribution of attenuation.
Figure 1 illustrates the semantic and frequency information used by our method. The latent high-frequency response highlights local activations, while a structural prior derived from SAM [12] identifies regions to prioritize. We combine these two inputs in Semantic-Guided Adaptive Latent-Frequency Modulation (SG-AFM). We use a fixed multiplier to apply less attenuation at locations with higher semantic importance and learn a residual correction for each channel and spatial location.
We insert SG-AFM between the analysis and hyper-analysis transforms of TCM. A discrete wavelet transform (DWT) separates the latent into low- and high-frequency subbands. We modulate the high-frequency coefficients and reconstruct the latent before entropy coding. Semantic extraction and modulation operate only at the encoder, so the decoder requires no semantic map or additional modules.
Our contributions are:
● We introduce semantic-guided modulation of high-frequency latent subbands using a fixed semantic-frequency multiplier and a bounded learned correction. The module adjusts attenuation across channels and spatial locations without transmitting a semantic map or changing the decoder architecture.
• We evaluate SG-AFM on six datasets and obtain a mean PSNR-based BD-rate reduction of 13.17% relative to TCM. SG-AFM achieves the best BD-rate among the compared methods on ExDark, NightCity, and OnePlus, averaging 16.80% lower rate than TCM. An ablation on OnePlus demonstrates the benefit of spatially aligned semantic guidance over blind and shuffled modulation.
2.1 Encoder-Side Semantic Guidance
Given an image , the TCM analysis transform produces the latent representation . We extract object and structural cues from using SAM [12] and represent them as a semantic structural prior . We assign greater structural importance to locations with larger values of when computing the fixed attenuation multiplier. SG-AFM processes and to produce a modulated latent with the same dimensions as , as shown in Fig. 2.
The TCM hyperprior and channel-wise entropy model encode the quantized modulated latent together with its hyperlatents. The synthesis transform reconstructs from the entropy-decoded latent . The decoder does not require . We retain the decoder architecture and perform all semantic extraction and latent modulation at the encoder.

Figure 2: SG-AFM within the TCM codec. We derive the semantic prior S from the input image and combine it with wavelet responses of the encoder latent y. We compute the modulation weights from a fixed multiplier and a bounded learned correction. We multiply each signed high-frequency subband by these weights and retain the low-frequency subband before IDWT reconstruction of . The aggregate visualizes the modulated response. Entropy coding retains the TCM main-latent and hyperlatent streams and transmits no semantic map.
2.2 Latent-Frequency Decomposition and Fixed Prior
A one-level Haar DWT decomposes into a low-frequency subband and three directional high-frequency subbands , , and , each of size . We retain and compute an aggregate response from the magnitudes of the high-frequency coefficients, . Here, rescales the response to , giving . Each entry of describes the high-frequency response at one latent channel and spatial location.
We resize to the subband resolution and broadcast it along the channel dimension to obtain . The fixed semantic-frequency multiplier is
where sets the base attenuation strength. Equivalently, . At a fixed high-frequency response, larger values of give a multiplier closer to one and therefore less attenuation. At locations with low semantic importance, stronger high-frequency responses receive more attenuation. The fixed term thus combines the amount of local high-frequency activity with its assigned semantic importance.
2.3 Adaptive Semantic-Frequency Modulation
Different directional patterns can produce the same aggregate response . We use the three directional magnitude maps separately to learn a residual correction that adjusts to the image content and channel statistics.
We concatenate , , and with and process them with a convolution, a Gaussian Error Linear Unit (GELU), a convolution, a second GELU, a convolution, and a sigmoid activation. Through the layer, we can use neighboring responses as well as directional composition to determine the attenuation weight shared by the three directional subbands. The predictor output is . We compute the final modulation weights as
where sets the range of the residual and is the lower clipping threshold. The correction lies in and adjusts the attenuation separately for each channel and location. Clipping at one prevents amplification of the high-frequency coefficients.
We use , , and for every dataset and rate point. These values imply and , so the lower clipping threshold is inactive in this configuration. The learned correction can increase or decrease attenuation relative to the semantic preference in .
2.4 High-Frequency Modulation and Coding
We apply the same weights to the three signed high-frequency subbands and retain LL,
(3) where denotes element-wise multiplication and IDWT is the inverse wavelet transform. The resulting has the original latent dimensions and enters the TCM hyperanalysis and entropy-coding path. The bitstream contains the coded main latent and hyperlatents. No additional stream is needed for or the modulation weights. For visualization, we define separately from the signed subbands used in the inverse transform.
3 Experimental Results
3.1 Datasets and Experimental Settings
We evaluate SG-AFM on six datasets. Kodak [13] and Tecnick [14] are normal-light compression benchmarks. ExDark [15], NightCity [16], and OnePlus [17] contain complex-illumination images, including nighttime scenes and uneven exposure. We also evaluate on the low-light VELoL dataset [18]. We include every image in each evaluation set without content-based selection.
We use TCM [3] as the compression reference and compare with BPG [19], VTM-23.3 Intra [20], Cheng-attn [21], TCM-AuxT [22], DCAE [23], and LALIC [24]. All experiments use a single NVIDIA Tesla V100 GPU. The modulation parameters are identical across datasets and rate points. For all modulation variants in the ablation, we jointly fine-tune the encoder and synthesis transform while retaining the synthesis architecture.
We measure rate in bits per pixel (bpp) and reconstruction quality using peak signal-to-noise ratio (PSNR) and multi-scale structural similarity (MS-SSIM). PSNR is reported in decibels (dB), and MS-SSIM is converted to the logarithmic scale as . PSNR-based Bjøntegaard delta rate (BD-rate) compares rate with the original TCM at equivalent quality. Negative values indicate rate savings. We compute group averages as arithmetic means of the dataset BD-rate values. For semantic regions of interest (RoIs), RoI-PSNR measures reconstruction fidelity, RoI-L1 measures pixel-wise error, and RoI-Grad measures gradient-domain error. Higher PSNR and MS-SSIM are better, while lower RoI-L1 and RoI-Grad are better.
3.2 Rate-Distortion Performance
SG-AFM reduces PSNR-based BD-rate relative to TCM on all six datasets, with an average reduction of 13.17%. Table 1 gives the dataset comparisons, and Fig. 3 shows the PSNR and MS-SSIM curves. SG-AFM achieves the best BD-rate among the compared methods on all three complex-illumination datasets. The reductions relative to TCM are 17.06% on ExDark, 16.25% on NightCity, and 17.10% on OnePlus.
Across the three complex-illumination datasets, SG-AFM averages a 16.80% BD-rate reduction, exceeding LALIC's mean reduction of 13.27% by 3.53 percentage points. LALIC is the strongest competing method by this group average. On NightCity, SG-AFM achieves -16.25%, compared with -11.60% for DCAE and -9.99% for LALIC. SG-AFM improves the rate-distortion tradeoff over TCM in both PSNR and MS-SSIM on these three datasets (Fig. 3).
RD Curve of PSNR on the Kodak Dataset

RD Curve of MS-SSIM on the Kodak Dataset
RD Curve of PSNR on the Tecnick Dataset
RD Curve of MS-SSIM on the Tecnick Dataset
RD Curve of PSNR on the ExDark Dataset

RD Curve of MS-SSIM on the ExDark Dataset
RD Curve of PSNR on the NightCity Dataset
RD Curve of MS-SSIM on the NightCity Dataset
RD Curve of PSNR on the OnePlus Dataset

RD Curve of MS-SSIM on the OnePlus Dataset
RD Curve of PSNR on the VELoL Dataset
RD Curve of MS-SSIM on the VELoL Dataset
Figure 3: Rate-distortion curves on six datasets, measured by PSNR and MS-SSIM against bits per pixel. Blue boxes highlight ExDark, NightCity, and OnePlus, the three complex-illumination benchmarks. Kodak and Tecnick provide normal-light comparisons, and VELoL provides a low-light comparison.
Table 1: PSNR-based BD-rate (%) relative to TCM. Negative values indicate rate savings. More negative values are better. N-Avg. and C-Avg. denote averages over the normal-light and complex-illumination datasets, respectively. Best results are highlighted in bold.
| Method | Normal Light | Complex Illumination | Low Light | Average | ||||
|---|---|---|---|---|---|---|---|---|
| Kodak | Tecnick | ExDark | NightCity | OnePlus | VELoL | N-Avg. | C-Avg. | |
| BPG [19] | +37.84 | +42.59 | +31.51 | +61.81 | +21.01 | +42.60 | +40.22 | +38.11 |
| VTM-23.3 [20] | +16.09 | +11.63 | +13.37 | +36.09 | +6.23 | +21.00 | +13.86 | +18.56 |
| Cheng-attn [21] | +14.73 | +20.53 | +11.86 | +11.97 | +10.66 | +1.63 | +17.63 | +11.50 |
| TCM-AuxT [22] | -0.87 | -1.94 | -0.38 | -0.04 | -1.52 | -0.97 | -1.41 | -0.65 |
| DCAE [23] | -8.63 | -13.24 | -12.30 | -11.60 | -13.97 | -19.26 | -10.94 | -12.62 |
| LALIC [24] | -7.62 | -12.75 | -14.50 | -9.99 | -15.32 | -20.86 | -10.19 | -13.27 |
| SG-AFM (Ours) | -6.14 | -6.88 | -17.06 | -16.25 | -17.10 | -15.58 | -6.51 | -16.80 |
SG-AFM also improves on TCM outside this group. It reduces BD-rate by 6.14% on Kodak and 6.88% on Tecnick, averaging 6.51% on the normal-light benchmarks. On VELoL, the reduction is 15.58%. DCAE and LALIC achieve larger reductions on these three datasets. SG-AFM's strongest comparative performance is on ExDark, NightCity, and OnePlus, where it ranks first among the evaluated methods.
3.3 Effect of Semantic Guidance
We compare aligned semantic guidance with two alternative modulation variants on OnePlus at . The blind variant applies frequency modulation without semantic guidance. Random-shuffle uses a spatially shuffled prior to disrupt its alignment with the latent. Table 2 reports the full-image and region-wise metrics.
Table 2: Ablation study on OnePlus at . All modulation variants jointly fine-tune the synthesis transform without changing its architecture. RoI denotes the semantic region of interest. Best results are highlighted in bold.
| Variant | PSNR↑ | MS-SSIM(dB)↑ | bpp↓ | RoI-PSNR↑ | RoI-L1↓ | RoI-Grad↓ |
|---|---|---|---|---|---|---|
| TCM Anchor | 37.7183 | 17.3199 | 0.687595 | 36.6200 | 0.011387 | 0.046202 |
| Blind | 37.6466 | 17.2660 | 0.654422 | 36.5456 | 0.011484 | 0.046752 |
| Random-shuffle | 37.6400 | 17.2701 | 0.657338 | 36.5604 | 0.011477 | 0.046650 |
| Ours | 38.4718 | 17.8835 | 0.656493 | 36.6994 | 0.011322 | 0.046068 |
With aligned semantic guidance, SG-AFM achieves 38.4718 dB PSNR at 0.656493 bpp. It improves PSNR by 0.7535 dB and reduces rate by 4.52% relative to the TCM reference. Blind modulation reaches the lowest rate, 0.654422 bpp, but yields 37.6466 dB PSNR. Using aligned guidance therefore improves PSNR by 0.8252 dB over blind modulation at 0.32% higher bpp.
The shuffled prior gives 37.6400 dB PSNR at 0.657338 bpp. Aligned guidance improves both rate and reconstruction quality relative to this variant. SG-AFM also achieves the best MS-SSIM and all three RoI metrics in the table. Blind and shuffled modulation reduce bitrate but lower PSNR relative to TCM. With aligned semantic guidance, SG-AFM achieves both lower bitrate and higher PSNR than TCM. This comparison demonstrates the value of spatial alignment when using semantic information to guide latent-frequency attenuation.
3.4 Visual and Region-Wise Quality
Figure 4 compares reconstructions of a complex-illumination scene and enlarges a structural region. SG-AFM preserves the local contours and boundary details, whereas the competing methods exhibit stronger smoothing in the enlarged region. At approximately 0.12 bpp, it achieves 34.95 dB RoI-PSNR, compared with 30.01 dB for LALIC and 30.32 dB for TCM-AuxT.
Relative to LALIC at the displayed 0.12 bpp, SG-AFM increases RoI-PSNR by 4.94 dB. Its full-image PSNR is 31.70 dB, compared with 31.94 dB for LALIC. The example illustrates improved fidelity within the semantic region alongside a 0.24 dB reduction in full-image PSNR.
4 Conclusion
SG-AFM uses a semantic structural prior to guide attenuation of high-frequency latent subbands before entropy coding. We combine a fixed semantic-frequency multiplier with a bounded learned correction and retain the TCM decoder architecture
Original Image
PSNR/ RoI-PSNR/ bpp
BPG
31.21/ 28.45/ 0.16
VTM
31.14/ 28.62/ 0.12
Cheng-attn
31.43/ 29.55/ 0.15
TCM
31.76/ 29.38/ 0.13

TCM-AuxT
31.82/ 30.32/ 0.13
DCAE
31.88/ 29.04/ 0.11
LALIC
31.94/ 30.01/ 0.12
SG-AFM(Ours)
31.70/ 34.95/ 0.12
Figure 4: Visual and region-wise reconstruction quality in a complex-illumination scene. For each method, the reconstructed image is followed by an enlargement of the highlighted structural region. Labels report PSNR/RoI-PSNR/bpp. SG-AFM preserves more structural detail in the enlarged region at a comparable rate.
without transmitting a semantic map. SG-AFM reduces PSNR-based BD-rate relative to TCM on six datasets, with a mean reduction of 13.17%. It achieves the best BD-rate among the compared methods on ExDark, NightCity, and OnePlus, averaging 16.80% lower rate than TCM. The OnePlus ablation demonstrates that spatially aligned semantic guidance improves the RD performance of latent-frequency modulation, and the visual example illustrates its benefit for local structural reconstruction.
5 Acknowledgements
This work was supported by the National Key Research and Development Program of China (No. 2024YFE0212000) and the Jiangsu Key Laboratory of Industrial AI. The corresponding author is Wen Ji.
References
[1] A. Furutanpey and K. Bunte, “On task scope and information retention in source coding,” arXiv preprint arXiv:2609.37575, pp. 1–30, 2026.
[2] Y. Zhang, Z. Duan, Y. Huang, and F. Zhu, “Balanced rate-distortion optimization in learned image compression,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2025, pp. 2428–2438.
[3] J. Liu, H. Sun, and J. Katto, “Learned image compression with mixed transformer-cnn architectures,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2023, pp. 14388–14397.
[4] F. Zeng, H. Tang, Y. Shao, S. Chen, L. Shao, and Y. Wang, “MambaIC: State space models for high-performance learned image compression,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2025, pp. 18041–18050.
[5] S. Qin, J. Wang, Y. Zhou, B. Chen, T. Luo, B. An, T. Dai, S.-T. Xia, and Y. Wang, "Cassic: Towards content-adaptive state-space models for learned image compression," in Proceedings of the IEEE/CVF International Conference on Computer Vision, 2025, pp. 15727–15736.
[6] H. Xu, X. Wu, and X. Zhang, “Multirate neural image compression with adaptive lattice vector quantization,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2025, pp. 7633–7642.
[7] H. Li, S. Li, W. Dai, C. Li, J. Zou, and H. Xiong, “Frequency-aware transformer for learned image compression,” in International Conference on Learning Representations, 2024.
[8] H. Ma, X. Shi, H. Sun, X. Yue, X. Liu, G. Wang, and W. Cai, “Learned image compression via sparse attention and adaptive frequency,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2026, pp. 41278–41287.
[9] J. Liu, Q. Zheng, Z. Liu, Y. Zhong, P. Liu, T. Liu, S. Xu, Y. Lu, S. Li, D. Niu, and Y. Fan, “Frequency-biased synergistic design for image compression and compensation,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2025, pp. 12820–12829.
[10] Y. Xia, Y. Zhou, J. Wang, B. An, H. Wang, Y. Wang, and B. Chen, “DiffPC: Diffusion-based high perceptual fidelity image compression with semantic refinement,” in International Conference on Learning Representations, 2025, pp. 1–27.
[11] J. Xu, S. Wang, J. Chen, Z. Li, P. Jia, F. Zhao, G. Xiang, Z. Hao, S. Zhang, and X. Xie, "Decouple distortion from perception: Region adaptive diffusion for extreme-low bitrate perception image compression," in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2025, pp. 18051–18061.
[12] N. Carion, L. Gustafson, Y.-T. Hu et al., “SAM 3: Segment anything with concepts,” arXiv preprint arXiv:2511.16719, pp. 1–76, 2025.
[13] Eastman Kodak Company, “Kodak Lossless True Color Image Suite,” https://r0k.us/graphics/kodak/.
[14] N. Asuni and A. Giachetti, “TESTIMAGES: A large data archive for display and algorithm testing,” Journal of Graphics Tools, vol. 17, no. 4, pp. 113–125, 2015.
[15] Y. P. Loh and C. S. Chan, “Getting to know low-light images with the exclusively dark dataset,” Computer Vision and Image Understanding, vol. 178, pp. 30–42, 2019.
[16] X. Tan, K. Xu, Y. Cao, Y. Zhang, L. Ma, and R. W. H. Lau, “Night-time scene parsing with a large real dataset,” IEEE Transactions on Image Processing, vol. 30, pp. 9085–9098, 2021.
[17] K. Yu, Z. Li, Y. Peng, C. C. Loy, and J. Gu, “ReconfigISP: Reconfigurable camera image processing pipeline,” in IEEE/CVF International Conference on Computer Vision, 2021, pp. 4228–4237.
[18] J. Liu, D. Xu, W. Yang, M. Fan, and H. Huang, “Benchmarking low-light image enhancement and beyond,” International Journal of Computer Vision, vol. 129, no. 4, pp. 1153–1184, 2021.
[19] F. Bellard, "BPG image format," https://bellard.org/bpg/, 2018.
[20] Joint Video Experts Team, “VVC Test Model (VTM), version 23.3,” https://vcgit.hhi.fraunhofer.de/jvet/VVCSoftware_VTM, 2024.
[21] Z. Cheng, H. Sun, M. Takeuchi, and J. Katto, “Learned image compression with discretized gaussian mixture likelihoods and attention modules,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2020, pp. 7939–7948.
[22] H. Li, S. Li, W. Dai, M. Cao, N. Kan, C. Li, J. Zou, and H. Xiong, “On disentangled training for nonlinear transform in learned image compression,” in The International Conference on Learning Representations, 2025.
[23] J. Lu, L. Zhang, X. Zhou, M. Li, W. Li, and S. Gu, “Learned image compression with dictionary-based entropy model,” in IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2025, pp. 12850–12859.
[24] D. Feng, Z. Cheng, S. Wang, R. Wu, H. Hu, G. Lu, and L. Song, “Linear attention modeling for learned image compression,” in IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2025, pp. 7623–7632.