Efficient Scale-Invariant Generator with Column-Row Entangled Pixel Synthesis

Van Thanh Le, Thuan Hoang Nguyen, Anh Tuan TranCVPR 2023

Abstract

Any-scale image synthesis offers an efficient and scalable solution to synthesize photo-realistic images at any scale, even going beyond 2K resolution. However, existing GAN-based solutions depend excessively on convolutions and a hierarchical architecture, which introduce inconsistency and the "texture sticking" issue when scaling the output resolution. From another perspective, INR-based generators are scale-equivariant by design, but their huge memory footprint and slow inference hinder these networks from being adopted in large-scale or real-time systems. In this work, we propose Column-Row Entangled Pixel Synthesis (CREPS), a new generative model that is both efficient and scale-equivariant without using any spatial convolutions or coarse-to-fine design. To save memory footprint and make the system scalable, we employ a novel bi-line representation that decomposes layer-wise feature maps into separate "thick" column and row encodings. Experiments on various datasets, including FFHQ, LSUN-Church, MetFaces, and Flickr-Scenery, confirm CREPS' ability to synthesize scale-consistent and alias-free images at any arbitrary resolution with proper training and inference speed.

Introduction

In the field of Generative Adversarial Networks (GANs), achieving "any-scale" synthesis—the ability to generate an image at arbitrary resolutions from the same latent code—remains a significant challenge. Traditional architectures, such as StyleGAN, rely heavily on spatial convolutions and hierarchical (coarse-to-fine) designs. While effective for fixed resolutions, these methods introduce a "spatial bias" that leads to the "texture sticking" phenomenon: as the resolution changes or the camera zooms, textures shift or warp because convolutional filters are tied to specific pixel neighborhoods.

Implicit Neural Representations (INRs) offer a potential solution by predicting each pixel independently based on coordinates, making them scale-equivariant by design. However, INRs face a "memory wall." Because they treat every pixel as an independent query, their memory requirements grow quadratically ($O(N^2)$) relative to resolution. This makes training at high resolutions (e.g., 1024x1024) prohibitively expensive, often leading to Out-of-Memory (OOM) errors on standard hardware.

Methodology: Column-Row Entangled Pixel Synthesis

CREPS addresses these limitations by discarding spatial convolutions entirely in favor of a coordinate-based approach that maintains efficiency. The architecture is built on two primary innovations:

1. Thick Bi-line Representation

Instead of storing a full $H \times W \times C$ feature map, CREPS decomposes features into two lightweight tensors: a row embedding ($H \times D$) and a column embedding ($W \times D$). The feature for any specific pixel $(i, j)$ is computed as the dot product of the $i$-th row and $j$-th column. By maintaining a small "thickness" ($D$, e.g., $D=8$), the model reduces memory complexity from $O(N^2)$ to $O(N)$. This allows the system to scale to extreme resolutions that were previously unreachable for INR-based models.

2. Layer-wise Feature Composition

To ensure the model retains the representational power of traditional GANs, CREPS generates these row/column pairs at every layer. These are fused using an asymmetric fusion scheme. Earlier layers, which represent global structure and geometry, are processed through deeper, narrow decoders. Later layers, responsible for fine textures and details, use a shallower path. By utilizing $1 \times 1$ convolutions (effectively pixel-wise fully connected layers), the model ensures that each pixel's synthesis is independent of its neighbors, guaranteeing perfect scale-equivariance.

Experimental Setup

The researchers evaluated CREPS across several high-resolution benchmarks to test its versatility and quality:

  • FFHQ: Human faces at 512x512 and 1024x1024.
  • LSUN-Church: Outdoor architectural photography (256x256).
  • MetFaces: High-detail portraits from art collections (1024x1024).
  • Flickr-Scenery: Diverse landscape imagery (256x256).
  • AFHQ-Dog: Animal faces, used primarily to evaluate transfer learning capabilities.

Key Results and Insights

Efficiency and Scalability

CREPS demonstrates a significant reduction in resource consumption. At 512x512 resolution, CREPS requires only 4.5GB of VRAM, a stark contrast to the 10.4GB required by CIPS (a leading INR-GAN). Furthermore, CREPS achieves inference speeds approximately 4x faster than its INR-based predecessors. The authors successfully demonstrated a single-pass generation of an image at 3687 x 3687 resolution on a 32GB V100 GPU.

Synthesis Quality and Consistency

Despite the reduced memory footprint, CREPS maintains high image quality. On the FFHQ-512 dataset, it achieved a Frechet Inception Distance (FID) of 4.43, outperforming CIPS (6.18) and remaining competitive with StyleGAN2 (3.41).

Crucially, CREPS excels at scale consistency. When generating the same image at both 256x256 and 512x512, CREPS achieved a Peak Signal-to-Noise Ratio (PSNR) of 34.65. This vastly outperforms AnyresGAN (24.19) and ScaleParty (24.50), both of which suffer from significant detail shifts during resolution scaling.

The Power of Low-Rank Representation

A key insight from this work is that a full 2D grid is not strictly necessary to represent complex image features. A "thick" outer product of 1D vectors can capture sufficient information for photo-realistic synthesis. Additionally, because the model is coordinate-based, it possesses inherent extrapolation power, allowing for "out-painting" or infinite zooming where details remain consistent even outside the original training coordinate range.

Limitations and Future Work

While CREPS represents a leap forward in efficient any-scale synthesis, some challenges remain. Because pixels are synthesized independently, the model can occasionally produce artifacts such as wavy patterns or vertical symmetry. Furthermore, while scaling and translation are native to the architecture, complex geometric transformations like rotation currently require more computationally expensive sampling tricks. Future research may focus on incorporating lightweight spatial guidance or advanced activation functions to further refine image quality and eliminate these residual artifacts.

Summary updated

BibTeX
@inproceedings{le2023efficient,
  author = {Van Thanh Le and Thuan Hoang Nguyen and Anh Tuan Tran},
  title = {{Efficient Scale-Invariant Generator with Column-Row Entangled Pixel Synthesis}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
  url = {https://openreview.net/forum?id=jeUAC_d5sc},
}
Figure