Manuscript Offprint
arXiv:2611.07148Perceptual Distortion for Overfitted Video Coding: Sliced Matching in Space, Error Alignment in Time
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Tianyi Yang, Ge Gao, Fan Zhang, David Bull
Visual Information Laboratory, University of Bristol, Bristol, UK
{ty.yang, ge1.gao, fan.zhang, dave.bull}@bristol.ac.uk
Abstract—Recent works in neural video coding have increasingly been trading off perceptual quality against reconstruction fidelity at a fixed bitrate. Wasserstein Distortion (WD) offers a principled approach to balancing these objectives by relaxing spatial correspondences in feature matching, enabling lightweight overfitted image codecs to compete with computationally intensive generative decoders. Extending vanilla WD to video, however, presents two challenges: its independent Gaussian approximation limits the expressiveness of feature distribution matching, while unconstrained texture resampling across frames introduces temporal inconsistencies. We address these challenges by distinguishing between the correspondences that can be relaxed and those that must be preserved. Spatially, we introduce a local sliced Wasserstein distortion (SWD) that matches empirical feature distributions through one-dimensional optimal transport, capturing cross-channel dependencies without enforcing exact spatial alignment. Temporally, we employ a novel flow residual that constrains coding errors along motion trajectories, preserving temporal consistency without imposing additional reconstruction fidelity constraints. Evaluated on UVG and HEVC Class B with the overfitted codec COOL-CHIC, our framework achieves BD-rate reductions of 9.2% in DISTS and 3.0% in LPIPS relative to frame-wise WD, averaged over test sequences, while lowering TOF by 10.2% at matched rate.
Index Terms—Neural video compression, implicit neural representation, perceptual video compression
I. INTRODUCTION
Video compression is essential for the efficient transmission and storage of digital video [1]. Learned video codecs [2], [3] now rival H.266/VVC [4] in rate–distortion performance, while overfitted codecs [5]–[8] train a lightweight per-video decoder that cuts decoding complexity by orders of magnitude. Both, however, are mostly optimized for pixel-wise distortions such as MSE, which correlate poorly with human perception and yield blurry reconstructions at low rates.
The rate–distortion–perception theory [9] shows that, at a fixed rate, perceptual quality can only be improved at the expense of reconstruction fidelity. Generative video codecs exploit this trade-off with GAN [10] or diffusion [11] decoders that synthesize realistic textures, but at a decoding cost incompatible with lightweight overfitted codecs.
Inspired by models of human visual perception, Wasserstein Distortion (WD) [12] unifies fidelity and realism by measuring the optimal-transport distance between local distributions of deep features. By allowing spatial rearrangements of perceptually similar textures, WD relaxes the requirement for exact correspondence while preserving local feature statistics, providing a perceptually motivated approach to navigating this trade-off. Ballé et al. [13] demonstrated that C3 [6], an overfitted image codec, optimized with WD rivals generative codecs in perceptual quality at a fraction of decoding cost.
Despite its effectiveness, existing implementations of WD rely on a simplified approximation of the Wasserstein distance. Specifically, local feature distributions are modeled as independent Gaussians, reducing distribution matching to comparisons of per-channel means and standard deviations. While computationally efficient, this approximation overlooks higher-order statistics and cross-channel dependencies, potentially allowing perceptually distinct textures to incur similar distortion penalties.
Extending WD to video introduces a further challenge. By matching feature distributions independently for each frame, WD allows spatial texture rearrangements without enforcing consistency across time. Consequently, the same scene content may be reconstructed with different texture realizations across successive frames, leading to noticeable temporal flickering and instability. This reveals a fundamental distinction between spatial and temporal correspondences: while exact spatial alignment can be relaxed for perceptually plausible texture reconstruction, temporal coherence requires consistency along motion trajectories.
To address these issues, we propose Spatio-Temporal Sliced WD (ST-SWD), a novel perceptual objective for overfitted video coding that tightens WD within frames and anchors it across frames. First, we replace the moment-based approximation with a local sliced Wasserstein distortion (SWD). Rather than comparing per-channel moments, SWD projects local feature vectors onto random directions and compares their sorted projections, performing exact one-dimensional optimal transport along each direction to capture richer distributional statistics, including cross-channel dependencies. Second, we introduce a flow residual that penalizes changes in coding errors along motion trajectories estimated from the source frames. By constraining motion-aligned coding errors rather than their magnitude, this term encourages temporally consistent texture reconstruction and suppresses flickering. We
This work is funded by the University of Bristol Research Internship programme, and the UKRI MyWorld Strength in Places Programme (SIPF00006/1). The authors also acknowledge the use of resources provided by the Isambard-AI National AI Research Resource (AIRR). Isambard-AI is operated by the University of Bristol and is funded by the UK Government's Department for Science, Innovation and Technology (DSIT) via UK Research and Innovation and the Science and Technology Facilities Council [ST/AIRR/I-A-I/1023].

Fig. 1: Overview of ST-SWD. The host codec (COOL-CHIC) is optimized for (center), where comprises the local sliced Wasserstein distortion (left) and the flow residual (right).
integrate ST-SWD into the overfitted video codec COOL-CHIC 5.0 [14] as a drop-in replacement for WD, leaving the decoder and bitstream unchanged. Across UVG and HEVC Class B, ST-SWD achieves average BD-rate savings of 3.0% and 9.2% when evaluated using the perceptual metrics LPIPS and DISTS, respectively, while reducing the temporal metric tOF by 10.2% relative to frame-wise WD.
A. Preliminaries
Let and denote a source video and its reconstruction. Overfitted codecs optimize instance-specific parameters by minimizing the rate-distortion trade-off , where denotes the bitrate; depending on the codec, the coding unit may be a frame [6], [7] or a group of frames or patches [8], [15]. We adopt COOL-CHIC 5.0 [14], [16] as the host codec, as it is a state-of-the-art open-source overfitted codec with inter-frame coding, and its released encoder supports WD for still images [17], which we extend to video as our WD baseline (Sec. III-A). COOL-CHIC encodes each frame in coding order over frame-specific parameters . For inter frames, reconstruction combines motion-compensated prediction from previously decoded reference frames, which remain fixed during the optimization of the current frame, with a learned residual [18]–[20]. Its distortion is , where the two terms correspond to a fidelity anchor and a spatial perceptual distortion, respectively, and the deployed image configuration sets to a rescaled WD.
The deployed WD [13], [17] extracts features from four stages of VGG-16 [21] and independently computes local means and standard deviations for each feature channel at pooling level . The distortion is then defined as
summed over stages and pooling levels , where the weights depend on the pooling scale. This scale is fixed by default, leaving only one active pooling level per stage.
B. Overview
Fig. 1 illustrates ST-SWD, which modifies only the distortion objective of the host codec. The spatial term replaces the deployed WD with a local sliced Wasserstein distortion: VGG-16 features of the source and reconstructed frames are projected onto random directions within local windows and compared through one-dimensional optimal transport, capturing richer local statistics while allowing spatial rearrangements of perceptually similar textures. The temporal term is a flow residual: optical flow estimated from the source frames by RAFT [22] aligns the coding errors of the current and reference frames, and their difference is penalized, encouraging temporally coherent reconstructions without directly penalizing the error magnitude. The overall distortion is
C. Local sliced Wasserstein distortion
The sliced Wasserstein distance approximates high-dimensional optimal transport by averaging one-dimensional Wasserstein distances over random projections [23], [24]. Heitz et al. [25] demonstrated its effectiveness for deep-feature texture synthesis, where it captures distributional information beyond the first two moments. Let denote the feature matrices of the source and reconstruction, respectively, where each row corresponds to a -dimensional feature vector (i.e., channel dimension) and is the number of spatial positions. Given unit projection directions sampled uniformly from and shared between the source and reconstruction, we define
Sorting yields the optimal one-dimensional transport matching [24]. Compared to the moment-based approximation of WD, SWD captures richer distributional statistics, including cross-channel dependencies through projections that jointly combine feature channels.
Existing applications of SWD typically match feature distributions over the entire image [25], [26], which is suitable for texture synthesis but provides insufficient spatial localization for compression. We therefore restrict distribution matching to local windows: at the same four VGG-16 stages as Equation 1, collects feature vectors within non-overlapping windows. The window grid is randomly shifted at each optimization step to prevent artifacts associated with fixed boundaries. At each stage, Equation 3 is summed over windows and normalized by the number of feature positions, while sums equally across the four stages. Directions are resampled at each step (), whereas evaluation and rate-distortion optimized quantization use 128 fixed, seeded directions.
D. Flow residual
Unlike spatial texture matching, temporal consistency requires correspondences along motion trajectories. We therefore constrain coding errors at corresponding positions. Let and denote the bidirectional optical flows estimated by RAFT-large [22] on the source frames. The backward warp aligns reference to current frame through , using bilinear sampling. Let denote the forward–backward consistency and in-frame mask in current-frame coordinates. Defining signed coding errors as and , we penalize their motion-aligned difference:
where is the number of color channels and is a confidence weight, with . This weight suppresses unreliable correspondences where the warped source differs from the current frame. Minimizing this term encourages , allowing coding errors to persist along motion trajectories without directly penalizing their magnitude. Unlike the warping loss of Lai et al. [27], which penalizes and directly constrains reconstructed values, our formulation penalizes temporal changes in signed coding errors. The consistency check follows [28], and errors are computed in RGB on . We consider only references at a display distance of one frame and discard those with fewer than half of their pixels passing the consistency check. For B-frames, we average over the retained references. The temporal term is set to zero when no valid reference is available, including for intra frames.
III. EXPERIMENTS
A. Experimental Setup
Test Conditions. We evaluate on UVG [29] (7 sequences) and HEVC Class B [30] (5 sequences), both at 1080p resolution. Following the common test conditions (CTC) [30], we use a random-access (RA) configuration with an intra period of 32 frames and a hierarchical B-frame prediction structure, and following GNVC-VD [11] we evaluate the first 96 frames of each sequence. We compare our method (ST-SWD) against

Fig. 2: Temporal consistency on Jockey (UVG). WD redraws the lawn every frame, producing spurious motion; the flow residual confines the error to the horse's legs.
conventional codecs x265 [31] and VTM-20.0 [4], COOL-CHIC 5.0 [14], [16] optimized with MSE and deployed WD (Equation 1), and PLVC [10]. Since the released encoder offers WD for still images only, we extend it to video by applying it frame by frame on RGB with the published MSE anchor, while the motion-estimation pre-training stage of COOL-CHIC remains MSE-based; the WD baseline and ST-SWD share this setup. In Equation 2, we set and , close to the 0.8/200 of the rescaled WD [17]. Following the CTC, we use QPs of for the conventional codecs and for all COOL-CHIC variants, and compare methods by BD-rate.
Metrics. Following GNVC-VD [11], we measure bitrate in bits per pixel (bpp) and evaluate per-frame quality using PSNR, LPIPS [32], and DISTS [33]. For temporal fidelity, we report tOF [34], which measures the discrepancy in optical flow between the source and reconstruction, and the warping error [27], computed on the reconstruction with its own RAFT flow and with occlusions masked by forward–backward consistency [28]. Each row of Table I reports ST-SWD relative to that method; BD-rates are omitted if quality-range overlap is below 20% of the narrower range. Temporal metrics report per-sequence changes at matched rates, using PCHIP interpolation of the anchor in log-rate within its range. Beauty is excluded from temporal evaluation because RAFT fails; its flow residual is also disabled, reducing ST-SWD to SWD.
B. Main results
Rate-distortion performance. As shown in Table I and Fig. 4, ST-SWD improves perceptual quality over frame-wise COOL-CHIC (WD), achieving DISTS BD-rate savings of 13.2% on UVG and 3.6% on HEVC-B, with PSNR BD-rate changes within 3.2%. LPIPS also improves on UVG and remains comparable on HEVC-B. In Fig. 3, ST-SWD
TABLE I. Quantitative results on UVG and HEVC-B: ST-SWD vs. each row (negative: ST-SWD better). -: <20% overlap. Dec./Enc.: sec/frame, 1 CPU thread (↑RTX 5090).
| Anchor | PSNR | LPIPS | DISTS | tOF | Dec. | Enc. | |
|---|---|---|---|---|---|---|---|
| UVG | |||||||
| x265 | +36.60% | -77.74% | - | -4.99% | +8.59% | 0.003 | 1.00 |
| VTM | +345.82% | -61.51% | - | +100.99% | +49.82% | 0.022 | 17.6 |
| COOL-CHIC, MSE | +103.19% | -72.66% | - | +30.14% | +50.61% | 3.9 | 447 |
| COOL-CHIC, WD | -0.23% | -5.56% | -13.20% | -12.12% | -8.84% | 4.2 | 1032 |
| ST-SWD (ours) | +0.00% | +0.00% | +0.00% | +0.00% | +0.00% | 4.2 | 1053 |
| HEVC-B | |||||||
| x265 | +66.72% | -82.97% | - | +3.04% | +9.67% | ||
| VTM | +401.30% | -66.87% | - | +63.84% | +33.47% | ||
| COOL-CHIC, MSE | +127.75% | -76.80% | - | +18.45% | +33.59% | same as above | |
| COOL-CHIC, WD | +3.22% | +0.64% | -3.62% | -7.96% | -5.09% | ||

Fig. 3: Visual comparison on YachtRide.

TABLE II. Ablation studies on the UVG dataset [29] excluding Beauty. Spatial metrics are BD-rates against ST-SWD; tOF is the mean change at matched rate.
| Metric | (V1) | (V2) | (V3) |
|---|---|---|---|
| PSNR | -1.13% | +1.10% | +1.17% |
| LPIPS | +7.88% | -2.32% | -0.26% |
| DISTS | +19.03% | -5.93% | -0.73% |
| tOF | -4.18% | +22.02% | +0.22% |
Fig. 4: Rate-distortion curves on UVG [29] and HEVC-B [30].
better preserves hand details and avoids color fringing along the rigging cable. Conventional codecs and MSE-optimized COOL-CHIC achieve better PSNR and mostly lower temporal errors, but require substantially higher bitrates at matched LPIPS. PLVC is shown in Fig. 4 for reference, but its BD-rates are not reported, as only three rate points are available.
Temporal consistency. On UVG and HEVC-B, ST-SWD reduces tOF by 12.1% and 8.0% and by 8.8% and 5.1%, respectively, at matched rate. On the challenging and highly dynamic Jockey sequence (Fig. 2), WD introduces spurious motion in the reconstructed lawn, whereas ST-SWD substantially reduces this artifact, lowering the frame-pair tOF from 17.4 to 1.3 px. These results are consistent with the intended role of the flow residual: encouraging coding errors to remain consistent along source motion trajectories. Sec. III-C examines the contribution of each component and quantifies the trade-off between temporal consistency and spatial quality.
Computational complexity. ST-SWD modifies only the training objective, so its decoder and bitstream are those of the WD baseline. Decoding time is therefore unchanged (measured with COOL-CHIC's reference Python decoder, not an optimized C one, with bit-exact faster motion compensation and noise generation), while encoding time increases by approximately 2% relative to frame-wise WD.
C. Ablations
We ablate ST-SWD on UVG [29] excluding Beauty: (V1) replaces SWD with the deployed WD; (V2) removes the flow residual; (V3) replaces it with the warping loss of [27]. As Table II shows, SWD accounts for most of the perceptual gain: reverting to WD increases the BD-rates, measured in DISTS and LPIPS, by 19.0% and 7.9%, respectively, while yielding slightly lower tOF (-4.2%), as its blurrier textures vary less over time. Removing the flow residual raises tOF by 22.0% at a cost of 5.9% in DISTS. The warping loss obtains a similar tOF but a higher PSNR BD-rate, as it constrains reconstructed values rather than coding errors.
IV. CONCLUSION
We presented ST-SWD, a perceptual distortion for overfitted video coding that matches richer local feature statistics than WD without requiring spatial alignment, and preserves temporal correspondence through a flow residual on coding errors. As a drop-in replacement for WD, it leaves the decoder and bitstream unchanged. Future work will remove the reliance on source optical flow and extend the temporal term beyond adjacent references.
REFERENCES
[1] D. Bull and F. Zhang, Intelligent Image and Video Compression: Communicating Pictures, 2nd ed. Academic Press, 2021.
[2] J. Li, B. Li, and Y. Lu, “Neural video compression with diverse contexts,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2023, pp. 22616–22626.
[3] Z. Jia, B. Li, J. Li, W. Xie, L. Qi, H. Li, and Y. Lu, “Towards practical real-time neural video compression,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2025, pp. 12543–12552.
[4] B. Bross, Y.-K. Wang, Y. Ye, S. Liu, J. Chen, G. J. Sullivan, and J.-R. Ohm, “Overview of the versatile video coding (VVC) standard and its applications,” IEEE Transactions on Circuits and Systems for Video Technology, vol. 31, no. 10, pp. 3736–3764, 2021.
[5] E. Dupont, A. Golifiski, M. Alizadeh, Y. W. Teh, and A. Doucet, “COIN: Compression with implicit neural representations,” 2021, arXiv:2103.03123; ICLR 2021 Neural Compression Workshop.
[6] H. Kim, M. Bauer, L. Theis, J. R. Schwarz, and E. Dupont, “C3: High-performance and low-complexity neural compression from a single image or video,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2024, pp. 9347–9358.
[7] T. Ladune, P. Philippe, F. Henry, G. Clare, and T. Leguay, “COOL-CHIC: Coordinate-based low complexity hierarchical image codec,” in Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), 2023, pp. 13515–13522.
[8] H. M. Kwan, G. Gao, F. Zhang, A. Gower, and D. Bull, “NVRC: Neural video representation compression,” in Advances in Neural Information Processing Systems (NeurIPS), vol. 37, 2024, pp. 132440–132462.
[9] Y. Blau and T. Michaeli, “Rethinking lossy compression: The rate-distortion-perception tradeoff,” in Proceedings of the International Conference on Machine Learning (ICML), 2019, pp. 675–685.
[10] R. Yang, R. Timofte, and L. Van Gool, “Perceptual learned video compression with recurrent conditional GAN,” in Proceedings of the International Joint Conference on Artificial Intelligence (IJCAI), 2022, pp. 1537–1544.
[11] Q. Mao, H. Cheng, T. Yang, L. Jin, and S. Ma, “Generative neural video compression via video diffusion prior,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2026, arXiv:2512.05016.
[12] Y. Qiu, A. B. Wagner, J. Ballé, and L. Theis, “Wasserstein distortion: Unifying fidelity and realism,” in Proceedings of the Annual Conference on Information Sciences and Systems (CISS), 2024, pp. 1–6, arXiv:2310.03629.
[13] J. Ballé, L. Versari, E. Dupont, H. Kim, and M. Bauer, “Good, cheap, and fast: Overfitted image compression with wasserstein distortion,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2025.
[14] T. Ladune, P. Philippe, P. Jaffuer, T. Blard, S. Kervadec, F. Henry, and G. Clare, “Cool-chic 5.0: Faster encoding and inter-feature entropy modeling for overfitted image compression,” 2026, arXiv:2605.02726.
[15] H. M. Kwan, G. Gao, F. Zhang, A. Gower, and D. Bull, “HiNeRV: Video compression with hierarchical encoding-based neural representation,” in Advances in Neural Information Processing Systems (NeurIPS), 2023.
[16] Orange Innovation, “Cool-chic: Low-complexity neural image and video codec,” 2026, software, release 5.0.1, https://github.com/Orange-OpenSource/Cool-Chic.
[17] P. Philippe, T. Ladune, G. Clare, and F. E. Henry, “Perceptually optimised cool-chic for CLIC 2025,” in 7th Challenge on Learned Image Compression, 2025. [Online]. Available: https://openreview.net/forum?id=7S19tNWnRO
[18] T. Leguay, T. Ladune, P. Philippe, and O. Déforges, “Cool-chic video: Learned video coding with 800 parameters,” in Proceedings of the Data Compression Conference (DCC), 2024, pp. 23–32, arXiv:2402.03179.
[19] —, “Improved encoding for overfitted video codecs,” in Proceedings of the IEEE International Symposium on Circuits and Systems (ISCAS), 2025, pp. 1–5, arXiv:2501.16976.
[20] T. Ladune, T. Leguay, P. Philippe, G. Clare, and F. Henry, “Efficient sub-pixel motion compensation in learned video codecs,” 2025, arXiv:2507.21926.
[21] K. Simonyan and A. Zisserman, “Very deep convolutional networks for large-scale image recognition,” in Proceedings of the International Conference on Learning Representations (ICLR), 2015.
[22] Z. Teed and J. Deng, “RAFT: Recurrent all-pairs field transforms for optical flow,” in Proceedings of the European Conference on Computer Vision (ECCV), 2020, pp. 402–419.
[23] J. Rabin, G. Peyré, J. Delon, and M. Bernot, “Wasserstein barycenter and its application to texture mixing,” in Scale Space and Variational Methods in Computer Vision (SSVM), 2011, pp. 435–446.
[24] N. Bonneel, J. Rabin, G. Peyré, and H. Pfister, “Sliced and Radon Wasserstein barycenters of measures,” Journal of Mathematical Imaging and Vision, vol. 51, no. 1, pp. 22–45, 2015.
[25] E. Heitz, K. Vanhoey, T. Chambon, and L. Belcour, “A sliced Wasserstein loss for neural texture synthesis,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2021, pp. 9412–9420, arXiv:2006.07229.
[26] A. Elnekave and Y. Weiss, “Generating natural images with direct patch distributions matching,” in Proceedings of the European Conference on Computer Vision (ECCV), 2022, pp. 544–560.
[27] W.-S. Lai, J.-B. Huang, O. Wang, E. Shechtman, E. Yumer, and M.-H. Yang, “Learning blind video temporal consistency,” in Proceedings of the European Conference on Computer Vision (ECCV), 2018, pp. 179–195.
[28] M. Ruder, A. Dosovitskiy, and T. Brox, “Artistic style transfer for videos,” in Proceedings of the German Conference on Pattern Recognition (GCPR), 2016, pp. 26–36.
[29] A. Mercat, M. Viitanen, and J. Vanne, “UVG dataset: 50/120fps 4K sequences for video codec analysis and development,” in Proceedings of the 11th ACM Multimedia Systems Conference (MMSys), 2020, pp. 297–302.
[30] F. Bossen, “Common test conditions and software reference configurations,” Joint Collaborative Team on Video Coding (JCT-VC), Geneva, Switzerland, Tech. Rep. JCTVC-L1100, 2013.
[31] MulticoreWare, “x265 HEVC encoder,” https://www.x265.org, accessed 2026.
[32] R. Zhang, P. Isola, A. A. Efros, E. Shechtman, and O. Wang, “The unreasonable effectiveness of deep features as a perceptual metric,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2018, pp. 586–595.
[33] K. Ding, K. Ma, S. Wang, and E. P. Simoncelli, “Image quality assessment: Unifying structure and texture similarity,” IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 44, no. 5, pp. 2567–2581, 2022.
[34] M. Chu, Y. Xie, J. Mayer, L. Leal-Taixé, and N. Thuerey, “Learning temporal coherence via self-supervision for GAN-based video generation,” ACM Transactions on Graphics, vol. 39, no. 4, pp. 75:1–75:13, 2020.