Gender Diversity in Image Search Results

Reported in interviews at Canva

Problem statement

How would you make image search results more balanced by gender? For occupation queries such as “bodybuilder,” the library is heavily skewed, and manual boosts for individual queries do not scale. Each image has a female, male or unknown label, and the library also feeds a recommender. Describe a general interleaving algorithm and diversity metrics.

Show hint

Ask where the skew comes from before deciding where to fix it.

Relevant roles: ML Engineer, Applied Scientist, Data Scientist and AI Architect.

Related free problems