Efficiently Learning Relative Similarity Embeddings with Crowdsourcing

Scott Sievert, Robert D Nowak, Timothy T. RogersJ. Open Source Softw 2023 · DBLP

Introduction

Understanding human perception often requires mapping how individuals categorize and relate different stimuli. Similarity embeddings—spatial representations where the distance between points reflects perceived similarity—are a cornerstone of psychological and social science research. However, generating these embeddings typically relies on "relative similarity judgments" (e.g., "Is item A or B more similar to item H?"), a process that is notoriously data-intensive. Salmon is an open-source software package designed to address this bottleneck by integrating active machine learning into the crowdsourcing workflow.

The Challenge of Similarity Embeddings

While triplet queries are intuitive for human participants, the number of queries required to build an accurate high-dimensional map grows rapidly with the number of items. For instance, creating a 3D embedding for just 100 items can require upwards of 35,000 human responses. Traditional random sampling methods are inefficient, yet previous attempts to implement "active learning"—where the system selects the most informative queries in real-time—have often struggled with latency and architectural rigidity in live crowdsourcing environments.

The Salmon Framework

Salmon bridges the gap between theoretical active learning and practical deployment through a robust, decoupled architecture.

Decoupled Architecture

To maintain high responsiveness, Salmon separates the frontend and backend operations. A frontend server serves queries to participants instantly, while a backend server performs the computationally heavy tasks of updating the embedding and searching for the next optimal queries. This ensures that participants never experience "latency kills," which is critical for maintaining engagement on platforms like Amazon Mechanical Turk.

Active Query Selection and Integration

Salmon utilizes adaptive sampling algorithms to identify queries that most effectively reduce uncertainty in the current embedding model. Built on top of PyTorch, the system allows researchers to customize optimization methods and noise models. This flexibility enables the tool to handle diverse stimuli, including text, images, video, and HTML strings, making it a versatile asset for various research domains.

Experimental Validation and Results

The efficacy of Salmon was validated through extensive simulations and real-world crowdsourcing experiments. Key findings include:

  • Efficiency Gains: Salmon consistently requires 2 to 3 times fewer responses than random sampling to achieve comparable embedding accuracy.
  • Operational Cost: The system is designed for accessibility, capable of running on modest cloud instances (e.g., AWS t3.xlarge) for approximately $3.98 per day.
  • Real-world Application: The software has already seen adoption by research groups at the University of Wisconsin–Madison and Louisiana State University, proving its utility in active academic environments.

Discussion and Impact

A significant contribution of Salmon is its refutation of the "no gain" myth in active learning for crowdsourcing. By optimizing query search algorithms and removing experimental bottlenecks, Salmon demonstrates that active learning can provide substantial real-world benefits. Furthermore, by providing an Amazon Machine Image (AMI) and a Docker-based installation, the authors have democratized access to sophisticated machine learning tools for experimental psychologists and social scientists who may not have extensive engineering backgrounds.

Limitations and Future Work

While Salmon significantly lowers the barrier to entry, it still requires a dedicated server, which may pose a challenge for researchers with no budget. Additionally, the efficiency of the active learning loop is sensitive to the underlying noise model; if human response patterns deviate significantly from the model's expectations, the gains may be reduced. Future work involves further refining these noise models and expanding the customization options for specific perceptual tasks.

Summary updated

BibTeX
@article{sievert2023efficiently,
  author = {Scott Sievert and Robert D Nowak and Timothy T. Rogers},
  title = {{Efficiently Learning Relative Similarity Embeddings with Crowdsourcing}},
  journal = {J. Open Source Softw.},
  year = {2023},
  doi = {10.21105/joss.04517},
}
Figure