VivID: A Visually Improved GIF Encoding Network Design

Published: 2025, Last Modified: 07 Jan 2026IEEE Trans. Circuits Syst. Video Technol. 2025EveryoneRevisionsBibTeXCC BY-SA 4.0
Abstract: Graphics Interchange Format (GIF) encoding is the art of reproducing an image with limited colors. Existing GIF encoding schemes often introduce unpleasant visual artifacts such as banding artifact, dotted-pattern noise and color shift, especially when the palette size is small. To address the issues above, we propose VivID, a Visually Improved GIF Encoding Network Design, which is compatible with exiting GIF decoders. VivID consists of three modules and two of them provide the functionality within the GIF encoding pipeline. Firstly, in order to reduce the color shift introduced by color quantization, we design the multi-palette extractor to create a GIF image with minimal distortion by extracting a near-optimal palette. This module can significantly improve the image fidelity and gains adaptability to multiple palette sizes after only one-time training. Furthermore, to reduce banding artifact and the dotted-pattern noise caused by dithering process, we propose banding remover which can randomize quantization error to neighbourhood by utilizing a learnable dithering pattern. Moreover, to further eliminate the banding artifacts, we design the banding scorer module, which is a novel metric for evaluating banding artifact and it correlates well with subjective perception. We adopt it as a customized loss for training dithering module. Extensive experiments across various aspects demonstrate that VivID produces visually pleasing results even when the palette size is extremely small, outperforming both traditional and existing learning based GIF encoding methods.
Loading