
How MIQPS uses visual content signals to master URL deduplication at a global scale.
This article explores how Pinterest solves the challenge of URL duplication using the MIQPS algorithm. It details a data-driven approach that identifies essential query parameters by analyzing visual content changes, combined with a robust architecture for safe deployment.
Highly recommended for backend and infrastructure engineers building large-scale data ingestion or crawling systems aimed at optimizing compute and storage resources.
URLs ingested from millions of domains often include redundant tracking parameters like UTM or session tokens, causing identical pages to be independently fetched and rendered, leading to massive computational waste.
Pinterest developed the Minimal Important Query Param Set (MIQPS) algorithm, which learns parameter importance by comparing visual Content IDs of pages with and without specific parameters, integrated into a multi-layer normalization pipeline.
The system achieved dynamic URL normalization across a vast number of domains, significantly reducing redundant processing and ensuring high catalog consistency and search/recommendation quality.
Trade-off
An offline batch processing approach was chosen to minimize latency, resulting in minor staleness of normalization rules, and a conservative default is used to prevent accidental data loss.
Short for Minimal Important Query Param Set, it refers to the smallest collection of query parameters required to uniquely identify content on a specific domain.
A digital fingerprint or hash derived from the rendered visual representation of a web page.
A defense-in-depth strategy that combines multiple layers of logic to normalize URLs.




