Separating Knowledge and Perception with Procedural Data

Adrian Rodriguez-Munoz, Manel Baradad, Phillip Isola, Antonio Torralba

Abstract

Standard vision models entangle feature extraction with real-world knowledge, complicating data privacy and "unlearning." This paper proposes a framework that separates perception from knowledge by training an embedding model exclusively on procedurally generated data. By utilizing a k-nearest neighbors (k-NN) visual memory for downstream tasks, the model achieves competitive performance on real-world benchmarks while ensuring that real-world data never influences the model's weights.

Introduction

Neural networks typically bake training data directly into their parameters, creating significant challenges for privacy, copyright, and maintenance. If a model is trained on sensitive or copyrighted material, removing that influence often requires a full, costly retraining. This work explores a radical alternative: training a highly capable vision model without ever showing it a real image.

Methodology: Perception vs. Knowledge

The core of the proposed approach is the strict separation of the feature extractor (perception) from the reference database (knowledge).

The framework separates perception (procedurally trained model) from knowledge (visual memory) to enable applications like classification and segmentation.

Procedural Training

The authors train a Vision Transformer (ViT-S) using the DINO self-supervised objective on non-realistic, code-generated images. To ensure the embeddings are robust and generalizable, they introduce Shaders KML (K-Means Leaves) Mixup. Unlike previous procedural datasets that used static masks, KML uses K-Means clustering in RGB space to generate dynamic, data-driven masks from shader images. This forces the model to learn complex visual features rather than simple shortcuts.

Visual Memory and Inference

At inference time, the frozen procedural model embeds query images. These embeddings are used to query a "visual memory"—a database of real-world reference images—via k-NN. This allows the system to perform classification, zero-shot segmentation, and in-context segmentation without the neural weights ever having "seen" a real object.

Data Diversity: From Shaders to Realism

The study compares various training sources, ranging from noise-based StyleGAN outputs to complex procedural shaders and standard real-world datasets like Places and ImageNet.

Comparison of procedural data types (Stylegan, Shaders, Masked Shaders) used for training versus realistic datasets (Places, ImageNet).

Key Insights

  1. Perfect Data Unlearning: Since real images are only stored in the external visual memory, "unlearning" an image is as simple as deleting its entry from the database. The model weights remain untouched and free of sensitive data.
  2. Agnostic Features: Procedural models often outperform real-data models on fine-grained tasks (e.g., bird or flower classification). While real-data models may overfit to specific semantic contexts, procedural models learn generalizable texture and shape features.
  3. The "Gestalt" Gap: A primary limitation is the lack of object-level grouping. Procedural models match local textures effectively but struggle to realize that visually distinct parts (like a bird's beak and its tail) belong to the same entity.

Experimental Results

  • Human Alignment: On the NIGHTS visual similarity benchmark, the best procedural model achieved 82.4% alignment with human judgment, trailing a Places-trained model by only 0.9%.
  • Domain Generalization: The procedural model outperformed a Places-trained baseline by 15% on Flowers102 and 8% on CUB200.
  • Privacy-Sensitive Tasks: On MedMNIST, the model matched or exceeded ResNet baselines in 7 of 10 medical imaging datasets without ever seeing a medical image during training.
  • Segmentation: The approach achieved zero-shot segmentation on COCO with performance within 10% of models trained on real data.

Conclusion

This work demonstrates that real-world images are not strictly necessary for training powerful visual feature extractors. By separating perception from knowledge, AI systems can become more modular, private, and easier to maintain. Future research will focus on bridging the "Gestalt" gap to improve object-level understanding in procedural representations.

Summary updated

BibTeX
@inproceedings{rodriguezmunoz2025separating,
  author = {Adrian Rodriguez-Munoz and Manel Baradad and Phillip Isola and Antonio Torralba},
  title = {{Separating Knowledge and Perception with Procedural Data}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=oyFAFpqaca},
}
Figure