This was the whole assignment in one shot.
Start by clarifying the problem scope and data modalities, then outline the model architecture with separate image and text encoders and a projection head to a shared embedding space. Explain the contrastive training objective (InfoNCE) and how you would evaluate retrieval performance using Recall@k and MRR, while discussing trade-offs and potential challenges.
Pro tip: Emphasize the importance of hard negative mining and large batch sizes for contrastive learning, and mention how you would handle modality gap and alignment issues in practice.
Ask about the specific use case (e.g., product search at eBay), data availability (paired image-text data), and scale (number of items, query volume).
Propose using pre-trained encoders (e.g., ResNet/ViT for images, BERT for text) and adding projection heads (MLP) to map to a shared embedding space of dimension d.
Explain InfoNCE loss: for each positive pair, contrast against in-batch negatives, and discuss temperature parameter and symmetric loss.
Describe retrieval evaluation: Recall@k (e.g., R@1, R@5, R@10) and MRR, and how to construct validation sets with ground-truth pairs.
Address challenges like batch size, hard negatives, modality gap, and potential enhancements (e.g., using momentum encoders, distillation).
AI-generated suggestions, not part of the candidate's original notes. May be inaccurate — verify before relying on them.