Unpaired Image Translation via Vector Symbolic Architectures

Justin Theiss, Jay Leverett, Daeil Kim, Aayush Prakash

Abstract

Image-to-image translation has played an important role in enabling synthetic data for computer vision. However, if the source and target domains have a large semantic mismatch, existing techniques often suffer from source content corruption, also known as semantic flipping. To address this problem, we propose a new paradigm for image-to-image translation using Vector Symbolic Architectures (VSA), a theoretical framework which defines algebraic operations in a high-dimensional vector (hypervector) space. We introduce VSA-based constraints on adversarial learning for source-to-target translations by learning a hypervector mapping that inverts the translation to ensure consistency with source content. We show both qualitatively and quantitatively that our method improves over other state-of-the-art techniques.

Introduction

Unpaired image-to-image (I2I) translation—the process of mapping images from a source domain to a target domain without direct one-to-one supervision—is a cornerstone of modern computer vision. Common applications include translating synthetic data (e.g., video game environments) into realistic imagery for training autonomous systems. However, a persistent challenge in this field is "semantic flipping."

Semantic flipping occurs when there is a significant "content gap" between domains. For instance, if a source dataset contains vast open skies while the target dataset is dominated by dense forests, an adversarial network may erroneously learn to translate sky pixels into tree pixels to satisfy the discriminator. This leads to visual hallucinations, such as trees appearing in mid-air or artifacts from the target domain (like specific car ornaments) being forced onto source objects. While existing methods like CycleGAN and CUT attempt to preserve structure through pixel-level cyclic consistency or contrastive learning, they often fail when the distribution shift is too extreme.

The VSAIT Framework

To mitigate these issues, we introduce VSAIT, a framework that leverages Vector Symbolic Architectures (VSA). VSA is a theoretical framework, often utilized in neuroscience and cognitive science, that defines algebraic operations in high-dimensional vector spaces, or "hyperspaces."

1. Hypervector Encoding

The VSAIT pipeline begins by extracting features from images using a pre-trained VGG19 network. These features are then projected into a high-dimensional hyperspace (typically 4,096 dimensions) using Locality Sensitive Hashing (LSH). This projection ensures that the semantic content of the image is represented in a format suitable for VSA operations.

2. The Mapping Vector ($u_{X \leftrightarrow Y}$)

Rather than relying solely on a standard generator, VSAIT trains a mapper network ($F$) to identify a specific hypervector that represents the transformation between the source and target domains. In the language of VSA, this vector acts as a key that can "unbind" source-specific attributes and "bind" target-specific attributes, effectively performing the translation through algebraic manipulation in hyperspace.

3. VSA-Based Cyclic Loss

The core innovation of VSAIT is its loss function. In a high-dimensional space, two random vectors are almost certainly orthogonal. VSAIT exploits this property: if the model attempts to perform a semantic flip (e.g., turning a "car" into a "tree"), the resulting hypervector will be nearly perpendicular to the original source vector. By enforcing a constraint where the translation must be mathematically invertible back to the original source hypervector, the model is forced to maintain semantic integrity. Unlike CycleGAN, which focuses on pixel-level reconstruction, VSAIT focuses on hypervector reconstruction, allowing for significant stylistic changes while keeping the underlying semantic meaning locked.

Experimental Evaluation

We evaluated VSAIT against several state-of-the-art baselines, including CUT, DRIT, and GcGAN, across three primary benchmarks designed to test resilience to content gaps:

  • GTA to Cityscapes: Translating synthetic images from Grand Theft Auto V to the real-world Cityscapes dataset.
  • Google Maps to Aerial Photos: A standard I2I benchmark.
  • Sub-sampled Google Maps: A modified task where one domain was intentionally sub-sampled to create a massive imbalance in land-to-water ratios, specifically to bait models into semantic flipping.

Quantitative Results

On the challenging GTA-to-Cityscapes task, VSAIT demonstrated superior performance in both semantic preservation and visual quality. It achieved a Mean Intersection over Union (mIoU) of 30.89, significantly outperforming the next best baseline, SRUNIT, which reached 22.69. Furthermore, VSAIT achieved the best Kernel Inception Distance (KID) of 8.74, indicating that the generated images were more visually similar to the target distribution than those produced by competing methods.

Qualitative Observations

Qualitative analysis confirmed that while other models hallucinated trees in the sky or deleted palm trees (which are absent in the Cityscapes target set), VSAIT correctly translated the style of the environment without corrupting the semantic labels of the objects. The model successfully adapted the "realism" of the target domain while respecting the original layout of the source image.

Discussion and Limitations

The effectiveness of VSAIT stems from the "orthogonality shield" provided by high-dimensional space. However, the method has specific requirements:

  • Feature Dependency: The current implementation relies on VGG19 features. Performance may degrade in domains where VGG19 is not an effective feature extractor, such as abstract masks or non-natural imagery.
  • Dimensionality: The algebraic properties of VSA require high dimensionality to function. Experiments showed that performance drops significantly if the hyperspace is reduced below 700 dimensions.

Conclusion

VSAIT introduces a robust paradigm for unpaired image-to-image translation by shifting the focus from pixel-level consistency to algebraic consistency in a high-dimensional hyperspace. By leveraging the properties of Vector Symbolic Architectures, we provide a mathematical safeguard against semantic flipping, enabling more reliable translation even across domains with significant content gaps.

Summary updated

BibTeX
@inproceedings{theiss2022unpaired,
  author = {Justin Theiss and Jay Leverett and Daeil Kim and Aayush Prakash},
  title = {{Unpaired Image Translation via Vector Symbolic Architectures}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  url = {https://openreview.net/forum?id=qNjJjBOsNqI},
}
Figure