Sub topic 7
Filtering for Integrity and Quality
Assume you understand that a feed ranker assigns scores to candidate posts. This chapter focuses on the checks that happen before and around ranking. These checks remove unsafe or ineligible content, reduce low-quality results, and prevent engagement predictions from deciding everything.
Why filtering is separate from ranking
A ranking model answers a question such as, “How likely is this person to comment on the post?” That is different from asking whether the post should be shown at all.
A post can receive high predicted engagement because it is shocking, misleading, copied, or abusive. If the system only maximizes engagement, such posts can rise quickly. Integrity filters add constraints that engagement scores cannot provide.
Filtering can have several outcomes:
- Remove a post from the candidate pool.
- Reduce its visibility by applying a penalty.
- Add a warning or require an extra action before viewing it.
- Limit how often it appears.
- Allow it only in certain contexts, regions, or age groups.
A hard filter is a rule that excludes a post. A soft filter changes its score or eligibility without removing it completely. Hard filters are appropriate for severe violations. Soft filters are useful when a classifier is uncertain or when the content is allowed but less suitable for a particular feed.
What the checks examine
Integrity systems commonly use classifiers, user reports, trusted-source signals, and account history. A classifier is a model that assigns a category or probability, such as the probability that a post contains harassment. Account history can provide context, but it should not become an automatic judgment of every future post.
Quality checks target problems that may not violate a safety policy:
- Duplicate or near-duplicate posts.
- Very old content when the user expects current updates.
- Broken links or unavailable media.
- Spam-like repetition.
- Low-resolution or incomplete media.
- Content from accounts the user has muted or blocked.
- Posts outside the user's language, location, or selected topic.
The same post can pass one check and fail another. For example, a political article may be allowed under integrity rules but receive a lower score when it is a duplicate of an article already shown.
| Check | Typical action | Main risk |
|---|---|---|
| Safety policy | Exclude, limit, or warn | False positives can hide allowed speech |
| Spam and automation | Limit reach or require review | New legitimate accounts may look suspicious |
| Duplicate detection | Keep one version or reduce repeats | Important updates may be incorrectly grouped |
| User preferences | Exclude or reduce score | Preferences may be incomplete or stale |
Avoiding false positives
A false positive occurs when a system flags acceptable content. A false negative occurs when it misses content that should have been restricted. The costs differ by category. A missed severe safety violation may cause immediate harm, while an incorrect spam label may prevent a new creator from reaching an audience.
Systems therefore need:
- Confidence thresholds that match the severity of the policy.
- Human review for ambiguous or high-impact cases.
- Appeals and correction paths.
- Separate evaluation for languages, regions, and creator groups.
- Logs that explain which rule affected delivery.
- Monitoring for sudden changes in reach after a model update.
Filtering should also be tested on borderline examples, not only obvious violations. A model that performs well on clear cases may still fail on slang, satire, reclaimed language, or rapidly changing events.
How filtering interacts with ranking
Filtering changes the candidates available to the ranker. If a filter removes too much content, the ranker may repeatedly show a small set of safe but repetitive posts. If it removes too little, harmful material can win because it attracts attention.
A practical design records both the final score and the reason for each restriction. That makes debugging possible. Engineers can ask whether a post disappeared because it was ineligible, received a quality penalty, lost to other candidates, or was removed by a diversity rule.
Exercise
A post has a high predicted comment probability but is classified as likely spam with moderate confidence. Should the system always show it because its engagement score is high?
Show answer
No. The spam signal should trigger a policy-dependent action, such as a penalty, frequency limit, or review. The system should also record the reason so the decision can be audited.