Abstract
Context Embedding Networks (CENs) address the challenge of learning meaningful image representations from crowdsourced similarity data, which is inherently subjective and context-dependent. By modeling individual worker biases and the visual context of image sets, CENs disentangle multiple visual attributes into distinct embedding dimensions without explicit labels. Experiments on face, medical, and bird datasets demonstrate that CENs outperform standard Siamese networks and successfully discover interpretable, clinically relevant features.
Introduction
Learning how objects are similar is a cornerstone of computer vision, yet "similarity" is a subjective concept. When tasked with grouping images, human workers often rely on different criteria—one might group by gender, while another focuses on facial expression. Traditional embedding models often fail by assuming a single "average" human metric, requiring pre-defined attribute labels, or ignoring how the set of images (the context) influences perception.
To address these issues, researchers at Caltech introduced Context Embedding Networks (CENs). This framework learns interpretable, low-dimensional representations by explicitly modeling two hidden variables: the innate biases of individual workers and the visual context of the images being compared. This dual-modeling approach allows the system to understand why different people might categorize the same set of images in different ways.
Methodology
The CEN architecture consists of three specialized neural networks that work in tandem to disentangle visual attributes:
- Worker Encoder ($q_\phi$): Models the "prior" bias of a specific worker, learning which attributes an individual tends to favor across different tasks.
- Context Encoder ($p_\theta$): Models the "salience" of attributes within a specific grid of images, identifying features that are most varied or prominent in the current set.
- Image Encoder ($f_\psi$): A Siamese Network that maps images into a $K$-dimensional space where each dimension ideally represents a distinct visual attribute.
The core innovation lies in the "mixing logic." When calculating the distance between two images, the model weights the embedding dimensions using a mixed attribute activation vector: $a^m = a^w + a^g$ (Worker Prior + Grid Context). This acts as a mask, focusing the model on the specific dimensions relevant to a given worker and context. The system is trained using a modified contrastive loss with margins to prevent embedding collapse and a similarity weight ($\gamma$) to handle varying levels of grouping granularity.
Experimental Results
The researchers evaluated CENs across three diverse datasets: CelebA (celebrity faces), RETINA (medical fundus images), and BIRDS (bird head species).
- Predictive Accuracy: On the RETINA dataset—a high-difficulty task for non-experts—the CEN-mixture model achieved 69.4% accuracy in predicting held-out pairwise labels, significantly outperforming standard Siamese Networks (~58%) and Bayesian Crowd Clustering (~67%).
- Attribute Discovery: On CelebA, the model achieved over 85% accuracy in predicting which ground-truth attribute (gender, expression, skin color, or gaze) a worker was using, despite never receiving explicit attribute names during training.
- Interpretability: In the RETINA dataset, the model autonomously discovered clinically relevant features, such as the presence of the optic disc or laser scars. Qualitatively, moving along a single learned dimension corresponds to smooth transitions in specific physical traits while keeping others constant.
Conclusion and Future Work
CENs demonstrate that modeling human subjectivity and context is vital for learning robust, disentangled embeddings from crowdsourced data. While the model currently requires a pre-set number of dimensions ($K$) and individual worker embeddings, future work aims to automate dimension discovery and improve efficiency by clustering similar workers. Nonetheless, CENs represent a significant step toward unsupervised, interpretable attribute discovery in complex visual domains.
Summary updated