Learning Visual-Semantic Subspace Representations

Gabriel Moreira, Manuel Marques, Joao Costeira, Alexander G Hauptmann

Abstract

Learning image representations that capture rich semantic relationships remains a significant challenge. Existing approaches are either contrastive, lacking robust theoretical guarantees, or struggle to effectively represent the partial orders inherent to structured visual-semantic data. In this paper, we introduce a nuclear norm-based loss function, grounded in the same information theoretic principles that have proved effective in self-supervised learning. We present a theoretical characterization of this loss, demonstrating that, in addition to promoting class orthogonality, it encodes the spectral geometry of the data within a subspace lattice. This geometric representation allows us to associate logical propositions with subspaces, ensuring that our learned representations adhere to a predefined symbolic structure.

Introduction

Modern computer vision models excel at mapping images to point embeddings in high-dimensional space. However, these representations often struggle with complex human logic. While a model like CLIP can identify a "dog," it frequently fails on queries involving logical constraints, such as "find a person wearing a hat but not glasses." This failure stems from the reliance on Euclidean embeddings and symmetric cosine similarity, which do not naturally represent partial orders or logical operations.

This paper proposes a shift from point embeddings to a structured geometric lattice where logical operations are inherent to the mathematical framework. By mapping images to a Boolean subspace lattice, we can perform complex reasoning—conjunctions, disjunctions, and negations—directly within the embedding space.

Methodology: The Nuclear Norm Loss

The core innovation is a standalone loss function grounded in information theory, using the nuclear norm (the sum of singular values) as a surrogate for matrix rank. The loss function is defined as:

$$l(X) := \|Z\|_* - \alpha\|X\|_* + \beta\|X\|_2^2$$

where $Z$ is the joint matrix of labels and image embeddings, and $X$ is the embedding matrix. Minimizing $\|Z\|_*$ encourages redundancy between embeddings and labels (maximizing mutual information), while maximizing $\|X\|_*$ prevents representation collapse by ensuring high-rank, informative embeddings. The $\ell_2$ penalty ensures equal singular values, promoting a clean geometric structure.

Geometric representation of logical propositions as subspaces.

Theoretically, minimizing this loss yields a spectral embedding where logical propositions correspond to specific subspaces. In this framework, logical "AND" corresponds to subspace intersection, "OR" to subspace sum, and "NOT" to the orthogonal complement.

Experimental Evaluation

The method was evaluated on standard classification benchmarks (MNIST, CIFAR-10/100) and multi-label retrieval tasks using a subset of the CelebA dataset. The CelebA experiments focused on five attributes (Men, Bald, Eyeglasses, Wearing Hat, Wearing Necktie) to test complex logical queries.

Key Results

The proposed model significantly outperformed Zero-Shot CLIP on logical retrieval tasks. For queries involving negations, the method achieved a Precision@10 of 0.88 and an mAP of 0.79, compared to ZS-CLIP's 0.21 and 0.30. In standard classification, the model remained competitive, achieving 72.8% on CIFAR-100 compared to 70.5% for standard cross-entropy training.

Comparison of learned Gram matrices across different methods, showing the clean block-diagonal structure of the proposed approach.

Visualizations of the Gram matrices (Figure 5) demonstrate that the model successfully learns to represent unique label combinations ("minterms") as perfectly orthogonal directions, achieving superior geometric clarity compared to baselines like OLÉ and MMCR.

Discussion and Conclusion

By treating representation learning as a rank-minimization problem, the model discovers the underlying spectral geometry of data. The resulting subspace lattice mirrors logical entailment ($p \implies q$), and negation becomes a formal geometric projection.

While promising, challenges remain. The nuclear norm is non-smooth, complicating optimization. Furthermore, the behavior of the loss under stochastic gradient descent (batched training) and its scalability to thousands of concepts require further investigation. Nonetheless, this logic-first approach provides a robust foundation for integrating symbolic reasoning into visual embeddings.

Paper Citation: Moreira, G., Marques, M., Costeira, J. P., & Hauptmann, A. (2025). Learning Visual-Semantic Subspace Representations. Proceedings of the 28th International Conference on Artificial Intelligence and Statistics (AISTATS).

Summary updated

BibTeX
@inproceedings{moreira2025learning,
  author = {Gabriel Moreira and Manuel Marques and Joao Costeira and Alexander G Hauptmann},
  title = {{Learning Visual-Semantic Subspace Representations}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2025},
  url = {https://openreview.net/forum?id=R3O1mD9lyZ},
}
Figure