arXiv:2610.27253cs.GROct 2026

Manuscript Offprint

arXiv:2610.27253

Neural Controlled Directional Frame Generation for Sprite Animation

Kenneth Alonso, Gustavo Patow

Kenneth Alonso, Gustavo Patow

GILAB, Universitat de Girona

Girona, Spain

kenneth.alonso.munoz@gmail.com, gustavo.patow@udg.edu

Abstract—Sprite-based animation remains prevalent in video game development, but production workflows require capabilities beyond traditional in-betweening. While existing neural interpolation methods can generate intermediate frames between two close keyframes, animators also need forward extrapolation to predict motion continuations and backward extrapolation for editing and reverse-engineering existing sprite sheets. Current unified video generation models either operate on natural video content with stochastic diffusion sampling incompatible with production requirements, or focus exclusively on interpolation without addressing extrapolation tasks. We present a deep learning approach for controlled directional frame generation in sprite animation using three specialized expert models that share identical U-Net encoder-decoder architectures and a number of domain-specific modifications, including RGBA-aware processing, multiscale flow refinement, pixel-shuffle upsampling, and alpha-gated blending. Each model is trained on different temporal orderings of the same curated dataset: previous (frames 2,3→1), middle (frames 1,3→2), and next (frames 1,2→3). Following data-centric AI principles, we demonstrate that only 280 carefully curated sprite triplets enable effective training for all three directional tasks without requiring massive generic datasets. Evaluation on 42 test triplets using the FLIP perceptual metric shows that all three models achieve comparable quality—previous (0.265), middle (0.258), and next (0.271)—with no significant degradation for extrapolation versus interpolation, outperforming general-purpose baselines by 17-57%. With deterministic single-pass generation and compact model size (206 MB per model), our method provides the first practical solution for controllable any-position frame generation specifically tailored for pixel art sprite animation workflows, validating that quality-over-quantity data curation enables specialized deep learning for niche visual domains.

Index Terms—Sprite Animation, Directional Frame Generation, Controllable Frame Synthesis, Neural Image Synthesis, Pixel Art, Game Development

I. INTRODUCTION

Sprite-based animation remains a cornerstone of modern video game development, valued for its distinct aesthetic appeal, computational efficiency, and rapid prototyping capabilities [1], [2]. While neural frame interpolation has shown promise for automating sprite in-betweening tasks, production workflows continue to face significant limitations when animators require capabilities beyond simple interpolation. Generating the middle frame between two keyframes addresses a substantial portion of animation workload, but practical animation pipelines frequently require directional frame generation: predicting the next frame in a motion sequence or inferring previous frames during editing and reverse-engineering tasks.

Consider three common scenarios in sprite animation production. First, forward extrapolation (next-frame generation): an animator has drawn a character's initial pose and mid-motion keyframe but needs the system to predict the natural continuation frame that completes the motion arc. Second, backward extrapolation (previous-frame generation): when editing or reverse-engineering existing sprite sheets, animators may have only the latter frames of a sequence and need to reconstruct plausible preceding poses. Third, interpolation (middle-frame generation): the traditional in-betweening task of generating transitional frames between two established keyframes [3]. Existing sprite interpolation methods address only the third scenario, leaving forward and backward generation entirely manual or reliant on general-purpose video prediction methods unsuited to pixel art characteristics.

This paper presents a neural architecture for controlled directional frame generation in sprite animation (Figure 1). Rather than training a single unified model with masked conditioning [4], we train three specialized expert models sharing identical U-Net encoder-decoder architectures [5] but operating on different temporal orderings:

• Previous model: Given frames (t+1,t+2)(t+1, t+2), generates frame tt (backward extrapolation)

• Middle model: Given frames (t,t+2)(t, t+2), generates frame t+1t+1 (interpolation)

• Next model: Given frames (t,t+1)(t, t+1), generates frame t+2t+2 (forward extrapolation)

Each model is trained deterministically on sprite animation triplets, preserving the sharp edges, transparency, and palette constraints characteristic of pixel art. At generation time, the user provides two frames and selects the desired temporal direction (previous/middle/next), and the corresponding specialized model produces the output frame with consistent, reproducible results.

Our approach diverges from unified video generation models in three key design decisions. First, domain specialization: training exclusively on pixel art sprites preserves hard edges, limited palettes, and transparency, rather than optimizing for photorealistic video. Second, architectural separation: three expert models allow each to specialize in its specific temporal task previous, middle, or next rather than learning a single set of parameters for all three via masking. Third, deterministic generation: avoiding diffusion-based stochasticity ensures reproducible outputs, which are critical for production workflows where artists require identical results when regenerating frames.

The primary contributions of this work are:

• First directional frame generation system for pixel art: To our knowledge, no prior work enables previous, middle, and next frame generation from two input frames specifically for sprite animation. Current cartoon interpolation methods [6] and prior sprite-specific work [7] address only the middle case, while unified video models [4] target natural video, not stylized pixel art.

• Three-expert-model architecture: We demonstrate that training three specialized models (one per direction) with identical architecture but different frame orderings achieves comparable quality across all three tasks (mean FLIP error ∼\sim0.26) while maintaining deterministic generation. This contrasts with unified masked conditioning approaches that introduce stochasticity or require substantially more training data.

• Empirical validation on sprite animation: Evaluation on 42 test triplets from curated sprite datasets shows that our previous, middle, and next models achieve perceptual quality (FLIP metric [8]) matching or exceeding general-purpose video interpolation baselines, demonstrating that directional control need not sacrifice quality.

• Practical pipeline integration: By providing deterministic and controllable generation, our approach addresses real production constraints faced by indie game developers working with limited computational resources and requiring reproducible animation workflows.

While prior work demonstrated that domain-specific training improves sprite interpolation over general video methods [7], this work extends controllability to encompass the full spectrum of directional frame generation required by animation pipelines. The three-expert-model design enables practical deployment: each model is compact (206MB storage) and deterministic, meeting the operational requirements of game development studios.

Our work aligns with the emerging data-centric AI paradigm [9], [10], which emphasizes that systematic data quality improvements often yield greater performance gains than architectural innovations, especially for specialized domains. Like our prior sprite interpolation work [7], we demonstrate that small, carefully curated datasets can outperform massive, noisy collections when domain-specific quality criteria guide data selection [11]–[13]. This principle is particularly relevant for sprite animation: unlike general video where diversity scales with quantity (millions of YouTube clips), sprite animation exhibits discrete, learnable patterns (walk cycles, attacks, idles) that saturate with hundreds of high-quality examples rather than requiring millions of noisy samples. Our 280-triplet dataset—the same used for sprite interpolation [7]—was curated with explicit quality criteria: diverse animation styles (pixel art to HD sprites), motion categories (rigid, articulated, deformable), resolution ranges (32×32 to 256×256), and edge-case coverage (extreme poses, fast motion, occlusions). Each triplet was manually validated to ensure the middle frame is a genuine artist-drawn in-between. By training three models on different temporal orderings of this same curated dataset (previous: frames 2,3→1; middle: frames 1,3→2; next: frames 1,2→3), we demonstrate that quality-over-quantity data curation enables multiple directional tasks from a single dataset. This data-centric approach [14] validates that careful selection of what to learn from matters more than how much to learn from, a critical advantage for specialized domains where massive datasets do not exist.

The remainder of this paper is organized as follows. Section II reviews video frame synthesis methods, animation automation techniques, and the gap in controllable sprite generation. Section III details the three-model architecture, training procedure, and dataset methodology. Section IV presents quantitative and qualitative evaluation demonstrating comparable performance across all three directional tasks. Section V discusses limitations and future directions for controllable sprite animation synthesis.

PREVIOUS

Generation

Figure

Input: Frame 1, Frame 2

MIDDLE

Generation

Frame 0 (predicted)

Frame 0

Frame 1 (predicted)

Frame 2

NEXT

Generation

Input: Frame 0, Frame 1

Frame 2 (predicted)

Fig. 1. Controlled directional frame generation for sprite animation. Given two input frames (shown in blue boxes), our system can generate the previous, middle, or next frame based on user selection. (Top row) Backward generation: inferring previous frames for animation editing or reverse-engineering. (Middle row) Interpolation: generating the middle frame between two keyframes. (Bottom row) Forward generation: predicting the next frame to continue motion sequences. Each direction uses a specialized model trained for its specific temporal task, ensuring deterministic and consistent outputs suitable for production workflows.

References (41)