Manuscript Offprint

arXiv:2609.35341

Generative Uncertainty as a Self-supervised Signal for Semantic Similarity Learning

Enrico Pallotta, Sina Raoufi, Lars Doorenbos, Gianni Franchi, Juergen Gall

ABSTRACT

Evaluating semantic similarity between videos is a fundamental challenge in computer vision, essential for tasks ranging from out-of-distribution (OOD) detection to video retrieval. However, defining and labeling video similarity is notoriously difficult and expensive due to the complex spatio-temporal nature. In this paper, we propose a novel self-supervised approach that leverages generative uncertainty from text-to-video (T2V) diffusion models to learn semantic similarity without human annotations. Our method is based on the observation that T2V models produce consistent outputs for familiar concepts but exhibit high variance and uncertainty when prompted with specialized concepts. We utilize this behavior to identify stable semantic features within existing pretrained representations, such as VideoMAE and V-JEPA. Specifically, we learn a mask over these embeddings using purely generated data, encouraging the model to retain features that remain consistent across generations of general concepts while discarding those associated with generative noise or uncertainty. Experimental results across three key tasks demonstrate that our learned feature subspaces consistently outperform original pretrained features and baseline feature selection methods.

1 INTRODUCTION

Learning semantic similarity between videos is important for many tasks, such as out-of-distribution (OOD) detection (Sim et al., 2023), video retrieval (Dwibedi et al., 2019), and evaluating generative models (Liu et al., 2024). Yet, learning such similarity from human annotations is challenging: videos contain rich spatio-temporal information, and judging which aspects are semantically relevant is inherently difficult (Zhang et al., 2018). Collecting similarity annotations at scale is therefore expensive and often infeasible, particularly for open-domain or generated videos. This motivates the question: how can we learn video representations that capture semantic similarity without using labeled data?

Self-supervised video models such as VideoMAEv2 (Wang et al., 2023) and VJEPA 2.1 (Mur-Labadia et al., 2026) provide strong general-purpose representations across many downstream tasks. However, their training objectives are not designed explicitly for measuring semantic similarity, and their feature spaces can contain dimensions that are irrelevant or even detrimental to similarity-based tasks. As we show experimentally, directly comparing these representations can lead to limited alignment with human judgments and unreliable uncertainty estimates for generated videos.

We investigate whether pretrained video representations can instead be adapted for semantic similarity using only synthetic data from text-to-video (T2V) models. Our key observation is that the diversity of a generative model's outputs provides a natural self-supervised signal. When a model is given a prompt describing a general concept, it generates videos that tend to be consistent with each other. In contrast, when the prompt describes a specialized concept to the model, the generated videos are more diverse and less consistent (Fig. 2). We refer to this diversity as generative uncertainty and use it to identify which feature dimensions are most useful for measuring semantic similarity.

To achieve this, we rely entirely on synthetic data generated by a T2V model. We generate videos from two types of prompts: (i) general concepts that the model can generate reliably, and (ii) specialized concepts (i.e., concepts belonging to highly specific or niche domains) that lead to more uncertain, and therefore diverse outputs. Particularly, our method does not require generative variability to be a perfect measure of whether a concept was seen during training. Our hypothesis is weaker: if some representation dimensions remain stable when repeated generations preserve the same semantic content, but become variable when the generated content becomes less consistent, then this difference in variability can reveal dimensions that are useful for semantic similarity. For each prompt, we generate multiple videos, varying only the initial noise, and learn a mask over pretrained video embeddings, encouraging embeddings of videos generated from the same general prompt to be more similar than videos generated from the same specialized prompt. Importantly, all pairs are therefore obtained from videos generated with the same prompt, avoiding human similarity annotations or predefined semantic relations between prompts.

We find that the learned feature subspaces consistently outperform the original features and other subspace methods using different T2V models and across three similarity-based tasks: human alignment, OOD detection for generated samples, and video retrieval. At the same time, the learned masks retain only a fraction of the original feature dimensions, yielding more compact representations. We further evaluate patch-level masking for video object segmentation and observe minimal performance loss despite substantial dimensionality reduction (Appendix C.5).

Overall, our main contributions are as follows:

• We identify generative uncertainty in T2V models as a self-supervised signal for semantic similarity: general concepts produce relatively consistent generations, whereas specialized concepts yield more diverse outputs.

• Using this signal, we introduce a lightweight, model-agnostic method that learns sparse subspaces of pretrained video representations and improves human-similarity alignment, OOD detection, and video retrieval across different feature encoders.

References (88)