TL;DR
Neural image compression delivers incredible quality but usually requires processing the entire image at once, causing GPU memory usage to skyrocket for high-resolution images. This paper introduces Continuous Patch Stitching (CPS), a padding-free, block-wise compression framework that mathematically eliminates block artifacts while cutting memory requirements to under 4GB for ultra-high-resolution images.
What Problem Does This Paper Address?
Deep learning-based image compression models routinely outperform traditional hand-crafted codecs like JPEG and HEVC. However, they suffer from a massive practical limitation: during inference, they typically need to process the entire image as a single input to maintain global context. For high-resolution images (such as 4K or 8K), this demands an unsustainable amount of GPU memory, frequently leading to Out-Of-Memory (OOM) errors.
If you try to solve this by cutting the image into independent blocks or patches (block-wise compression), standard neural networks introduce ugly "block artifacts" along the borders. Previous attempts to fix this relied on slow autoregressive processing or heavy post-processing filters, which defeat the purpose of saving computational resources. The authors look to achieve seamless, artifact-free patch stitching without sacrificing speed or memory.
Methods
The authors present the Continuous Patch Stitching (CPS) framework, which processes image patches independently and in parallel, yet yields results mathematically identical to full-image processing.
Key components include:
- Padding-Free Convolutions: Standard networks use zero-padding to maintain feature map sizes, which causes boundary discontinuities when patches are processed separately. CPS eliminates padding entirely across all convolutional layers.
- Parallel Overlapping Patch Stitching (POPS): Without padding, feature map edges naturally shrink. The authors mathematically derive the exact "unreachable region" at patch boundaries and propose an optimal overlapping strategy in the image domain to seamlessly stitch features back together.
- Even-Sized Kernels: To prevent size mismatches during padding-free down-sampling and up-sampling (with a stride of 2), the framework utilizes even-sized kernels (e.g., $2 \times 2$) in its Even-sized Down-sampling/Up-sampling Residual Blocks (EDRB/EURB).
- Bottleneck Residual Blocks (BRB): To increase network depth and receptive fields without altering patch sizes, the authors introduce a padding-free bottleneck block that uses $1 \times 1$ convolutions for skip connections alongside $3 \times 3$ convolutions.
Datasets
- Training: The Flicker 2W dataset was used, with images randomly cropped into $256 \times 256$ patches.
- Evaluation:
- Kodak dataset: 24 lossless low-resolution images ($512 \times 768$) used for standard baseline comparisons.
- DIV8k dataset: 24 randomly sampled high-resolution images ranging from 2K to 8K resolutions to test high-resolution efficiency.
Key Insights and Ideas
- Padding is the Enemy of Parallelism: The core reason neural networks create block artifacts when processing patches independently is convolutional padding. Zero-padding introduces artificial data at the borders that doesn't match the true neighboring patch content.
- Input-Independent Boundary Effects: Surprisingly, the authors prove mathematically that the size of the "unreachable boundary region" in a padding-free network is entirely independent of the input patch size ($w_p$). It depends solely on the layer's receptive field ($r_l$) and scale factor ($\rho_l$). This insight makes the POPS overlapping strategy universally applicable to various network architectures.
- Embracing Even Kernels: While computer vision traditionally favors odd-sized kernels ($3 \times 3$, $5 \times 5$) for symmetric feature alignment, even-sized kernels ($2 \times 2$) are crucial in padding-free architectures to maintain clean integer division ratios during down/up-sampling.
Key Results
- State-of-the-Art Efficiency: CPS achieves a BD-rate reduction (higher compression efficiency at equivalent quality) of -28.96% on the Kodak dataset and -34.19% on the DIV8k dataset compared to the HEVC anchor (HM16.0), outperforming other learned block-wise methods.
- Capped Memory Footprint: While full-resolution neural compression models show exponential memory growth as image resolution increases, CPS maintains a flat, stable memory profile. It requires less than 4GB of memory to compress ultra-high-resolution 5K images, requiring less than half the computing resources of existing models.
- Zero Block Artifacts: Both qualitative visual results and quantitative metrics (like PSNR-B, which specifically measures blocking artifacts) confirm that CPS completely eliminates edge discontinuities.
Limitations and Future Work
The authors do not explicitly detail major limitations, but a few areas for future exploration are apparent:
- Extension to Video: The framework is currently optimized and evaluated for static image compression; extending this padding-free, continuous stitching paradigm to video compression (where temporal padding and motion vectors complicate boundaries) remains an open challenge.
- Broader CV Applications: The authors note that their mathematical framework for continuous stitching is highly generalizable and suggest adapting it to other distributed computer vision tasks—such as object detection or segmentation on ultra-high-res imagery—where OOM errors are common.
Summary updated