TL;DR
NeuralLVC is one of the first temporally conditioned neural video codecs designed for true, pixel-perfect lossless compression. By combining a discrete masked diffusion entropy model with a lightweight I/P-frame architecture, it exploits temporal redundancies to outperform traditional lossless standards like H.264 and H.265 by a significant margin.
What Problem Does This Paper Address?
While neural networks have revolutionized lossy video compression (achieving extreme data reduction by discarding imperceptible details), lossless video compression has remained largely untouched by deep learning.
Lossless compression is non-negotiable in fields like medical imaging (where compression artifacts could obscure a lesion), film archiving, and post-production pipelines (where artifact accumulation across multiple edit cycles is unacceptable). Traditional tools like H.264 and H.265 have lossless modes, but they rely on hand-crafted, block-based motion estimation and predictors. Meanwhile, existing neural lossless methods focus almost exclusively on still images, treating video frames as independent entities and missing out on massive bitrate savings from frame-to-frame temporal redundancy.
Methods
NeuralLVC introduces an end-to-end neural framework built on three core pillars:
- An I/P-Frame Architecture: The first frame (I-frame) is compressed independently. Subsequent frames (P-frames) compress the temporal differences between consecutive frames.
- Bijective Linear Tokenization: To guarantee exact pixel reconstruction, the authors avoid cluster-based tokenization (which introduces quantization errors). Instead, they use a mathematical mapping that pairs every distinct pixel value or temporal difference to a unique token, ensuring the process is perfectly invertible.
- Masked Diffusion Entropy Model with Temporal Conditioning: Inspired by large language diffusion models (specifically LLaDA), the entropy model uses bidirectional attention. Unlike standard autoregressive models that read pixels strictly left-to-right, this model looks in all directions simultaneously to predict a masked pixel's value. For P-frames, a lightweight reference embedding layer (adding just 1.3% more parameters) conditions the model on the previous decoded frame.
To overcome the speed bottleneck of bidirectional attention—which prevents standard key-value caching—the authors implement group-wise parallel decoding. This allows the codec to predict and decode chunks of pixels simultaneously, offering a controllable trade-off between speed and compression performance.
[Frame t (Current)] --> [Temporal Tokenization]
|
v
[Frame t-1 (Decoded)] --> [Decoded Reference] --> [Conditional Entropy Model] --> [Arithmetic Coding] --> [P-stream]
Datasets
- Training:
- I-frame model: A 50K-image subset of ImageNet.
- P-frame model: The Vimeo-90k dataset (~58K 7-frame sequences).
- Evaluation: A total of 33 test sequences across four resolutions:
- 9 Xiph.org CIF sequences (352×288)
- 3 Xiph 720p sequences
- 4 full-length Xiph 1080p sequences
- 7-sequence UVG benchmark (1920×1080)
- 10-sequence BVI-AOM database (1920×1088)
- Kodak image dataset (for standalone I-frame spatial evaluation)
Key Insights and Ideas
- Temporal beats spatial: A cross-domain ablation revealed that even if an image codec has a vastly superior spatial model (like ArIB-BPS), applying it frame-by-frame to a video performs worse than NeuralLVC's weaker spatial model equipped with temporal conditioning. Temporal context is simply too powerful to ignore.
- The Bidirectional Advantage: Spatial dependencies in images are non-causal (pixels relate to what is above, below, left, and right of them). Bidirectional attention captures this naturally, yielding much more accurate probability estimations for arithmetic coding than traditional raster-scan approaches.
- No Error Drift: Because the reference frame reconstruction is bit-exact, the P-frame reference never drifts. This eliminates the error accumulation typically seen in long prediction chains of lossy neural codecs.
Key Results
- CIF Sequences: NeuralLVC achieved an average compression rate of 29.85%, outperforming H.265 lossless (36.37%) and H.264 lossless (36.77%).
- High Definition (HD): The advantage scaled seamlessly to HD without retraining. On full-length 1080p Xiph sequences, NeuralLVC averaged a 29.46% compression rate compared to H.265's 38.00%—widening its performance margin to 22.5% relative savings.
- True vs. Near-Lossless: While VVC at QP=0 achieved slightly lower bitrates, it introduced small quantization errors (not truly lossless). NeuralLVC maintained a verified zero-pixel error across all test sequences.
Limitations and Future Work
- Inference Speed: Operating at roughly 0.06 FPS on an NVIDIA GH200 for CIF resolution, NeuralLVC is currently too slow for real-time applications. It is strictly suited for offline archiving.
- Patch Isolation: The framework processes video in independent 32×32 patches, meaning it misses out on long-range spatial context across the entire frame. It also lacks cross-channel dependency modeling in the YUV420 space.
- Simple GOP Structure: The current I/P framework assumes sequential frame access and lacks advanced features like scene-change detection.
The authors point to architectural optimizations, speculative decoding, and model distillation as vital next steps to accelerate the codec.
Summary updated