Manuscript Offprint

arXiv:2610.05779

A Spatiotemporal Semantic Importance-Guided Unified Compression and Editing Framework for AI-Generated Videos

Xihua Sheng, Dong Liu, Chang Wen Chen

Xihua Sheng, Member, IEEE, Dong Liu, Senior Member, IEEE, Chang Wen Chen, Life Fellow, IEEE

Abstract—AI-generated videos are rapidly increasing in volume, duration, and resolution, creating growing demands for efficient storage and transmission. Unlike natural videos captured from the physical world, AI-generated videos are samples from a learned generative distribution, where semantic structures are critical to content consistency, while many local textures and stochastic details can be plausibly regenerated. This distinction suggests that compression should preserve semantically important spatiotemporal information rather than reconstruct every pixel of a particular generative sample. Beyond reconstruction, AI-generated videos also create a practical need for prompt-based editing, where users expect to modify generated content while preserving its original spatiotemporal semantics. Motivated by these observations, we propose a unified compression and editing framework for AI-generated videos that incorporates a frozen video generator as a reusable generative prior. Within this framework, we design three spatiotemporal semantic importance-guided techniques that respectively address what to transmit, how much to transmit, and how to use the transmitted side information. First, an innovation selection method projects the latent discrepancy using spatiotemporal semantic importance, so that the selected innovations prioritize semantic invariants over replaceable generative variations. Second, a frame-adaptive bit allocation method estimates the nonuniform semantic demands of latent frames and allocates more innovations to frames requiring stronger semantic preservation. Third, a unified reconstruction and editing method continuously adjusts the influence of the transmitted side information, enabling the same compressed representation to provide strong guidance for faithful reconstruction or serve as a flexible semantic anchor for structure-preserving prompt-driven editing. Extensive experiments on videos generated by multiple video generation models show that our codec achieves superior rate-perception performance over traditional, neural, and generative video codecs, while enabling structure-preserving prompt-based editing from the same bitstream.

Index Terms—AI-generated videos, spatiotemporal semantic importance, video coding, video editing.

I. INTRODUCTION

Artificial Intelligence (AI) video generation is emerging as a new paradigm for content creation. It is becoming increasingly popular across a wide range of applications such as short-form video creation and advertising. As AI-generated videos rapidly grow in volume, duration, and resolution, they are creating substantial storage and transmission demands. This raises a direct but underexplored problem: how should AI-generated videos be compressed?

Existing video coding methods [1]–[3] mostly assume that videos are natural signals captured by cameras. A natural video records the physical world: object boundaries, textures, motion trajectories, and illumination changes all come from a real scene, and the goal of compression is to preserve this external signal under a bitrate constraint. AI-generated videos are fundamentally different. They are not measurements of a real scene, but samples drawn from the distribution learned by a generative model [4]. In such videos, identity, layout, object relations, and motion trends usually define the spatiotemporal semantics of the content, while many local textures, small appearance changes, and stochastic details are only one possible realization of the generation process. In other words, not all pixel-level differences in an AI-generated video are equally meaningful: some differences break identity, silhouette, or motion consistency, while others can be regenerated differently and still remain plausible. Directly compressing AI-generated videos as natural videos therefore ignores the statistical origin and semantic structure of generated content. This distinction changes the coding objective. For AI-generated videos, the goal should not be to reconstruct every pixel, but to preserve the information that determines semantic consistency.

Beyond reconstruction, this semantic view also changes how a compressed bitstream can be used at the receiver side. In conventional video coding, the bitstream is primarily designed for decoded playback. When further modifications are desired, such as transferring the style, changing object attributes, removing the watermarks of the generated video while preserving its original structure and motion, a separate editing model is commonly applied to the reconstructed video. Such a model needs to analyze the video again, for example by encoding it into a latent space to extract the structural and motion information required for prompt-based editing [5]–[9]. However, this spatiotemporal semantic information has already been conveyed by the compressed bitstream. Re-extracting it from the reconstructed video therefore introduces redundant processing and additional computational complexity. In this setting, the compressed bitstream should not merely describe a one-time reconstruction. It should also carry reusable semantic constraints that support controlled editing.

Video generation models [10]–[12] provide a new opportunity to realize these goals. A video generator [13]–[15] has learned to transform noisy latent variables into video content

Date of current version October 6, 2026.

X. Sheng and C. Chen are with the Department of Computing, The Hong Kong Polytechnic University, Hong Kong SAR, China (e-mail: xihua.sheng@polyu.edu.hk, changwen.chen@polyu.edu.hk).

D. Liu is with the MOE Key Laboratory of Brain-Inspired Intelligent Perception and Cognition, University of Science and Technology of China, Hefei 230093, China (e-mail: dongeliu@ustc.edu.cn).

Corresponding Author: Chang Wen Chen.

with plausible appearance, structure, and motion. When a frozen video generator is integrated into a codec, it can serve as a reusable video prior: the generator restores replaceable details, while the bitstream only needs to transmit compact side information that constrains the generation process toward the source video. In this sense, compression no longer has to independently describe the complete video signal. Meanwhile, because the generator is prompt-conditioned, the same side information can be combined with a user-defined prompt to produce an edited video that follows the editing intention while preserving the source spatiotemporal semantics. This forms a unified AI-generated video coding framework, where one compressed representation supports both high-quality reconstruction and prompt-based editing, without training a new compression model or introducing a separate post-reconstruction editing model.

However, turning this opportunity into a practical codec faces three key problems. First, side-information selection needs to account for spatiotemporal semantic importance. If information is selected only according to latent errors, the bitstream may spend bits on replaceable stochastic textures instead of protecting the semantic structures that determine content consistency. Second, the side-information budget needs to reflect the nonuniform spatiotemporal semantic importance of latent frames. Uniform allocation may waste bits on semantically stable frames with substantial temporal redundancy, while providing insufficient information for frames that require stronger semantic preservation. Third, reconstruction and editing impose different requirements on the same side information. Reconstruction needs strong constraints to recover the source video, while editing needs sufficient flexibility to follow a new prompt. Overly rigid constraints suppress editing, whereas overly weak constraints cause structural drift. Therefore, the codec needs a controllable mechanism for using the same bitstream under different reconstruction and editing requirements.

To address these problems, we propose a spatiotemporal semantic importance-guided unified compression and editing framework for AI-generated videos. First, we propose a spatiotemporal semantic importance-guided innovation selection method to determine what information should be transmitted. It projects the latent discrepancy according to spatiotemporal semantic importance and selects innovations that prioritize semantic invariants over replaceable generative variations. Second, we propose a spatiotemporal semantic importance-guided bit allocation method to determine how much information should be assigned to each latent frame. It evaluates frame-level semantic demand and allocates more innovations to frames requiring stronger semantic preservation. Third, we propose a spatiotemporal semantic importance-constrained unified reconstruction and editing method to determine how the transmitted side information should be used at the receiver. It continuously adjusts the influence of the bitstream constraint, allowing the same compressed representation to provide strong guidance for source reconstruction or serve as a flexible semantic anchor for prompt-driven editing.

To summarize, our main contributions are threefold:

• We propose, to the best of our knowledge, the first unified compression and editing framework specifically designed for AI-generated videos, where one compact bitstream supports both high-quality reconstruction and structure-preserving prompt-based editing.

• We propose three spatiotemporal semantic importance-guided techniques: an innovation selection method that prioritizes semantically critical latent information, a frame-adaptive bit allocation method that adapts the innovation budget to frame-level semantic demand, and a unified reconstruction and editing method that balances transmitted spatiotemporal semantics with prompt-induced editing semantics.

• Extensive experiments on AI-generated videos from multiple generation models demonstrate that our framework achieves superior rate-perception performance against traditional, neural, and generative video codecs, while further enabling structure-preserving prompt-based editing from the same compressed bitstream.

The remainder of this paper is organized as follows. Section II reviews related work. Section III describes our proposed methods. Section IV presents experimental results. Section VI concludes the paper and discusses the future work.

References (69)