Measuring the Prevalence of Policy Violating Content with ML Assisted Sampling and LLM Labeling
This paper presents a design-based measurement system that combines ML-assisted probability sampling with LLM labeling to efficiently and accurately estimate the prevalence of policy-violating content across various user segments while maintaining statistical unbiasedness and cost-effectiveness.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
On the vast digital landscapes where billions of people share photos, ideas, and stories every day, a quiet but critical challenge persists: how do you know what your users are actually seeing? For years, platforms have relied on user reports to flag harmful content, but this method is like trying to measure the depth of a river by counting only the people who shout for help. Many dangers go unreported because users do not notice them, do not know how to report them, or simply do not want to engage with the system. To truly understand the safety of a platform, teams need to measure prevalence—the actual fraction of times a user encounters content that breaks the rules. This requires looking at the entire stream of content, not just the parts that have already been flagged. The problem is that harmful content is often rare, and checking every single item by hand is too slow and expensive to do every day.
A team of researchers at Pinterest has developed a new way to solve this, creating a system that combines smart sampling with advanced artificial intelligence to measure safety with unprecedented speed and accuracy. Instead of waiting for complaints, they take a daily, representative snapshot of everything shown to users. They use a statistical method that focuses their limited checking budget on the most likely candidates for violation, ensuring they find enough examples to be sure of their numbers without checking everything. Then, they use a large language model—an AI trained to understand text and images—to label these samples, acting as a tireless, consistent reviewer. By combining these techniques, they can produce a daily report on how often users see harmful content, complete with a measure of how precise that number is. This allows safety teams to spot emerging problems immediately, test whether their fixes are working, and understand exactly where and when risks appear, all without waiting weeks for human reviewers to catch up.
The core of this system is a clever way of choosing which pieces of content to examine. In a sea of billions of daily views, finding a rare violation is like looking for a specific type of leaf in a forest. If you pick leaves at random, you might walk for miles and find nothing. The researchers instead use a "weighted" approach. They look at two main clues: how many times a piece of content has been shown to people, and a risk score generated by the platform's existing safety models. They combine these clues to create a list where items that are both popular and risky are more likely to be picked for review. This does not mean they only check risky items; they still pick from the whole population, but they tilt the odds slightly to ensure they get enough examples of violations to make a solid statistical estimate. This method allows them to use a fixed number of checks each day and still get a clear picture of the whole platform, even when violations are extremely rare.
Once the system has selected its daily sample, it moves to the labeling phase. Here, the researchers replaced the traditional human review process with a multimodal large language model. This AI can look at an image, read the text, and understand the context, just like a human moderator. However, the researchers did not simply let the AI decide; they built a rigorous quality control system around it. Before the AI is allowed to label the daily samples, it is tested against a "gold set" of content that has been carefully reviewed by human experts. The AI must match the human experts' decisions within a very tight margin of error before it is turned on. Once live, the system continues to check the AI's work by sending a random selection of its daily labels back to human experts for verification. This ensures that the AI does not drift or make systematic mistakes over time. The result is a labeling process that is roughly fifteen times faster than human-only review and costs more than ten times less, while maintaining a similar level of accuracy.
The power of this approach lies in its ability to provide a single, unified view of the platform that can be sliced and diced in many different ways. Because the researchers draw one global sample each day, they can immediately answer questions about how safety varies by region, by the type of content surface, or by how old the content is, without needing to run a new study for each question. They can see if a new policy update is working by comparing the numbers before and after, or if a specific type of harmful content is spiking in a particular country. The system also calculates a confidence interval for every number it produces, which tells the safety team how much trust to place in the result. If the number is based on very few examples of a rare violation, the confidence interval will be wide, signaling that the team should wait for more data before making a major decision.
The researchers tested this system extensively, both in simulations and in their actual production environment at Pinterest, where it has been running daily for over a year. They found that by using their ML-assisted sampling method, they could find six to eleven times more violations in their daily sample compared to a standard random sampling method. This efficiency meant they could achieve the same level of statistical precision with far fewer checks, or get much tighter, more reliable numbers with the same amount of work. They also demonstrated that even when the underlying risk scores used to guide the sampling changed or became less accurate over time, the system's final estimates remained unbiased. The errors showed up as wider confidence intervals rather than wrong answers, which is a crucial distinction for decision-makers who need to know when a trend is real and when it is just noise.
One of the most significant findings was how the system handles the inevitable errors that come with automated labeling. The researchers discovered that for very rare violations, the biggest risk is not missing a violation, but falsely flagging safe content as harmful. A single false positive in a sea of safe content can make it look like a problem is ten times worse than it actually is. To manage this, the system constantly monitors the AI's false positive rate. If the rate gets too high, the system can apply a mathematical correction to the final numbers to account for the error, or it can trigger a human review of the specific items causing the spike. This ensures that the daily reports reflect reality rather than the quirks of the AI model. The team also found that day-to-day fluctuations in the numbers were often driven by changes in the types of content being posted or subtle shifts in how the AI interpreted the rules, rather than actual changes in safety levels. By smoothing out these short-term variations and focusing on weekly trends, they could distinguish between normal noise and genuine emerging threats.
This work represents a shift in how digital platforms monitor safety, moving from a reactive model based on user complaints to a proactive, data-driven approach. By treating safety measurement as a statistical science rather than just an enforcement task, the researchers have created a tool that can detect problems the moment they start to appear. The system is designed to be flexible, allowing teams to quickly add new policies or adjust parameters as the landscape of online content changes. It relies on a continuous loop of sampling, AI labeling, human verification, and statistical analysis, creating a feedback loop that is fast enough to keep up with the speed of the internet. The researchers emphasize that this system is not a replacement for human judgment or policy enforcement, but a complementary tool that provides the clarity needed to make those decisions effectively. It turns the invisible into the visible, giving safety teams the eyes they need to understand the true state of their platforms and protect their users with greater precision and speed.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.