Transposer: Universal Texture Synthesis Using Feature Maps as Transposed Convolution Filter

Guilin Liu, Rohan Taori, Ting-Chun Wang, Zhiding Yu, Shiqiu Liu, Fitsum A. Reda, Karan Sapra, Andrew Tao, Bryan CatanzaroarXiv 2020

Abstract

Conventional CNNs for texture synthesis consist of a sequence of (de)-convolution and up/down-sampling layers, where each layer operates locally and lacks the ability to capture the long-term structural dependency required by texture synthesis. Thus, they often simply enlarge the input texture, rather than perform reasonable synthesis. As a compromise, many recent methods sacrifice generalizability by training and testing on the same single (or fixed set of) texture image(s), resulting in huge re-training time costs for unseen images. In this work, based on the discovery that the assembling/stitching operation in traditional texture synthesis is analogous to a transposed convolution operation, we propose a novel way of using transposed convolution operation. Specifically, we directly treat the whole encoded feature map of the input texture as transposed convolution filters and the features' self-similarity map, which captures the auto-correlation information, as input to the transposed convolution. Such a design allows our framework, once trained, to be generalizable to perform synthesis of unseen textures with a single forward pass in nearly real-time. Our method achieves state-of-the-art texture synthesis quality based on various metrics. While self-similarity helps preserve the input textures' regular structural patterns, our framework can also take random noise maps for irregular input textures instead of self-similarity maps as transposed convolution inputs. It allows to get more diverse results as well as generate arbitrarily large texture outputs by directly sampling large noise maps in a single pass as well.

Introduction

Texture synthesis—the process of generating a large, seamless version of a small example patch—has historically faced a trade-off between speed and structural fidelity. Traditional patch-based methods are excellent at preserving structure but are computationally expensive. Modern deep learning approaches typically rely on slow per-image optimization or specialized networks that require retraining for every new texture. Universal feed-forward networks often struggle because standard convolutional layers operate locally, lacking the global awareness needed to rearrange texture elements realistically. Transposer addresses these challenges by mimicking classical "stitching" techniques within a neural network, achieving state-of-the-art quality without the need for slow, per-texture optimization.

Methods

The core innovation of Transposer is the non-standard application of the Transposed Convolution Operation. In this framework, the entire encoded feature map of the input texture is treated as the convolution filter.

  • Self-Similarity Map: The model computes a map representing the internal similarity of the feature map. This map serves as the input to the transposed convolution.
  • The "Stitching" Analogy: By convolving the self-similarity map with the feature-map-as-filter, the network effectively "pastes" and "assembles" copies of the input features into a larger grid, mimicking classical patch-stitching within a differentiable feature space.
  • Architecture: The system utilizes a UNet-like structure where an encoder extracts multi-scale features, Transposer blocks expand them, and a decoder generates the final high-resolution output.
The Transposer framework: (a) computing self-similarity, (b) transposed convolution operation, and (c) the overall multi-scale architecture.

Datasets

The model was trained on a massive dataset of 55,583 texture images compiled from 15 sources, including the Brodatz database, Outex, Describing Textures in the Wild (DTD), KTH-TIPS, and VisTex. This large-scale training enables the model to generalize to completely unseen textures during inference without additional optimization.

Key Insights and Ideas

  • Features as Filters: The fundamental breakthrough is recognizing that traditional synthesis "stitching" is functionally equivalent to a transposed convolution when the feature map itself acts as the filter.
  • Structure vs. Variety: While self-similarity maps preserve regular, grid-like structures (e.g., bricks), replacing them with random noise allows for the generation of diverse variations for irregular textures (e.g., pebbles).
  • Real-Time Performance: Transposer handles unseen textures in 43 to 260 milliseconds, a significant improvement over optimization methods that can take over 10 minutes.

Key Results

Transposer achieves state-of-the-art results across multiple metrics, including SSIM, FID, and LPIPS. User studies indicate a strong preference for Transposer's outputs over other universal methods like WCT or pix2pixHD. It even outperformed or matched optimization-based methods that had direct access to the ground truth.

Qualitative comparison of Transposer against state-of-the-art texture synthesis methods.

Limitations and Future Work

Despite its performance, Transposer faces challenges with textures containing very thin, sparse lines or highly non-stationary patterns where global gradients change across the image. Future research may explore combining self-similarity and noise maps for enhanced control or incorporating rotated feature maps to capture more complex symmetries.

Summary updated

BibTeX
@misc{liu2020transposer,
  author = {Guilin Liu and Rohan Taori and Ting-Chun Wang and Zhiding Yu and Shiqiu Liu and Fitsum A. Reda and Karan Sapra and Andrew Tao and Bryan Catanzaro},
  title = {{Transposer: Universal Texture Synthesis Using Feature Maps as Transposed Convolution Filter}},
  year = {2020},
  eprint = {2007.07243},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2007.07243},
}
Figure