Abstract
Neural Image Compression (NIC) has demonstrated superior rate-distortion performance over traditional codecs but often suffers from high computational costs and architectural rigidity. We present BaSIC (BayesNet structure learning for computational Scalable neural Image Compression), a framework that introduces fine-grained computational control across the entire compression pipeline. By formulating the compression model as a Bayesian Network and learning its structure, BaSIC enables a single model to scale its complexity dynamically. This approach addresses the serial bottlenecks of autoregressive modules and the fixed widths of backbone networks, achieving state-of-the-art rate-distortion performance while providing flexible scalability for diverse hardware constraints.
Introduction
The transition from traditional image codecs like JPEG and HEVC to Neural Image Compression (NIC) has been driven by significant improvements in rate-distortion (RD) performance. However, the practical deployment of NIC is hindered by its computational intensity. Modern codecs must be "computationally scalable," meaning they should operate efficiently on everything from low-power mobile devices to high-performance servers.
Existing solutions, such as SlimCAE, utilize slimmable neural networks to adjust backbone width. However, they often overlook the primary bottleneck in NIC: the autoregressive (AR) module. AR modules are typically serial and slow, making them difficult to scale without sacrificing compression efficiency. BaSIC addresses this by treating the entire NIC architecture as a Bayesian Network (BayesNet) and learning an optimal structure that balances complexity and performance.
Methodology
BaSIC re-envisions the NIC pipeline through two distinct structural learning tasks: Inter-node and Intra-node BayesNet learning.
1. Inter-node BayesNet (Backbone Scalability)
This component manages dependencies between different variable groups, such as the latent representation and the reconstructed image. BaSIC employs a heterogeneous bipartite graph where edges represent neural network layers of varying complexities. By using slimmable networks and the Gumbel-softmax trick for differentiable optimization, the model can select "thinner" or "thicker" paths based on the available computational budget.
2. Intra-node BayesNet (Autoregressive Scalability)
The AR module's dependencies are modeled as a multipartite graph. Nodes within the same "partite" (group) can be processed in parallel. By learning the optimal number of groups ($k$), BaSIC can trade off decompression speed for compression efficiency. This is optimized using the VIMCO Monte-Carlo method to minimize bit-rate while maintaining acyclic constraints.
Experimental Results
The framework was evaluated on standard benchmarks, including ImageNet and CLIC for training, and the Kodak dataset for validation.
Key findings include:
- Efficiency Gains: BaSIC outperforms SlimCAE, saving approximately 2% more bits at maximum complexity and up to 10% more bits at minimum complexity.
- Granular Control: The framework provides superior control over MACs/pixel. For instance, BaSIC can precisely target a 200k MAC/pixel threshold, whereas previous methods offer much coarser adjustments.
- AR Performance: Learned intra-node structures consistently beat hand-crafted parallel models like Checkerboard or Channel-wise. In a 10-stage parallel configuration, BaSIC's learned structure nearly matches the performance of a fully serial Masked Convolution, which is the theoretical upper bound for compression efficiency.
Conclusion
BaSIC demonstrates that the topology of a Bayesian Network is a powerful proxy for computational complexity. By learning both inter-node and intra-node structures, the framework moves beyond hand-crafted heuristics to provide a unified, scalable solution for neural image compression. While training such models is more intensive due to Monte-Carlo optimization, the resulting flexibility and performance gains make it a promising direction for real-world deployment. Future work will explore extending these principles to video compression and achieving even more fluid transitions between complexity levels during inference.
Summary updated