TL;DR
Pinterest presents its comprehensive visual discovery engine, detailing how it powers features like Flashlight and Lens. The paper highlights the crucial role of object detection and interactive interfaces in significantly boosting user engagement for both search and recommendation tasks on the platform.
What Problem Does This Paper Address?
The paper tackles the challenge of enabling users to discover and interact with visual content at scale, specifically within the context of Pinterest's massive image collection. Traditional visual search often focuses on exact object matching or entire image similarity. However, Pinterest users frequently browse for inspiration rather than specific items. The problem is to build a system that allows for more nuanced visual discovery, enabling users to find visually similar items, discover objects within images, and receive relevant recommendations based on visual cues, all while operating efficiently across billions of images.
Methods
The core of Pinterest's visual discovery engine relies on several key components:
- Feature Representation: The paper explores using features extracted from popular Convolutional Neural Networks (CNNs) like AlexNet, GoogLeNet, VGG, and ResNet. They investigate using both raw and binarized features, noting that binarization significantly reduces memory footprint while maintaining competitive retrieval performance, especially after fine-tuning on Pinterest's own data.
- Object Detection: To enable interaction with specific objects within images, Pinterest employs object detection models. They detail their progression from deformable parts models to Faster R-CNN and Single Shot Detection (SSD). Faster R-CNN is highlighted for its state-of-the-art performance, while SSD is favored for its speed and scalability, crucial for processing billions of images.
- Interactive User Interfaces: The paper emphasizes the importance of user experience. Features like "Flashlight" allow users to tap on objects within an image to initiate a visual search. "Lens" extends this by using a mobile camera to capture images and provide a diverse set of visually and semantically relevant results.
- Recommendation Systems: Visual features are integrated into recommendation systems like "Related Pins." This involves using CNN features for re-ranking candidates generated by collaborative filtering, leading to improved engagement metrics.
Datasets
- Pinterest Training and Evaluation Datasets: The authors created custom datasets for training and evaluating their models. These datasets consist of millions of images distributed across roughly 20,000 classes, derived from Pinterest's vast collection and annotated through user search queries. The evaluation dataset contains 100,000 images.
- PASCAL VOC 2011: This dataset is used for an independent evaluation of the binarization transformation on VGG16 features, demonstrating its effectiveness in improving precision.
Key Insights and Ideas
- Binarization is Key for Scale: Compressing high-dimensional CNN features through binarization is essential for building large-scale visual search systems. It drastically reduces memory requirements without a prohibitive loss in performance, especially when models are fine-tuned on domain-specific data.
- Object Detection is More Than Just Finding Objects: Beyond simply identifying objects, the presence of detected objects (like shoes or bags) can serve as a strong signal to increase the weight of visual similarity in recommendation systems, leading to significant engagement gains.
- Interactive Interfaces Drive Engagement: Allowing users to directly interact with objects in images (e.g., via tapping or cropping) makes visual discovery more intuitive and engaging than relying solely on whole-image search.
- Fine-tuning Matters: While pre-trained ImageNet models are a good starting point, fine-tuning CNNs on Pinterest's specific image distribution and user-generated annotations is crucial for achieving optimal performance in their visual discovery tasks.
- Category Conformity as a Quality Signal: When using object detection for recommendations, simply detecting an object isn't enough. A "category conformity" signal, which measures how well the detected object's category aligns with the visual search results, is vital for suppressing irrelevant detections and improving user engagement.
Key Results
- Related Pins Engagement: Incorporating fine-tuned VGG features into the Related Pins recommendation system led to a 4.0% increase in engagement (click and repin) across 100 million query Pins.
- Flashlight Object Detection: Using object detection in Flashlight, particularly with the "category conformity" signal, resulted in a 4.9% increase in user engagement.
- Binarized Features: Binarized VGG16 fc6 features achieved competitive precision@k scores while being 16x smaller than raw pool5 features.
- SSD Performance: The SSD object detection model achieved a latency of 59 ms compared to 272 ms for Faster R-CNN on a Pinterest detection evaluation dataset, making it more suitable for large-scale production.
Limitations and Future Work
- Object Detection False Positives: The paper acknowledges issues with object detection false positives and irrelevant retrieval results, particularly in the early stages of Flashlight's object detection integration. They propose solutions like category conformity to mitigate these.
- Contextual Object Detection: While they demonstrate matching query objects to whole images (scenes), the paper hints at future work in more sophisticated contextual understanding.
- Lens Metrics: The paper mentions that Pinterest Lens was a very recent launch at the time of writing, and detailed metrics would be reported in future publications.
- Fine-grained Recognition: The paper briefly mentions ongoing work in fine-grained recognition using bilinear features, suggesting future directions for more nuanced visual understanding.
Summary updated