Page MenuHomePhabricator

Determine thresholds and terminology for revert risk scores across wikis
Closed, ResolvedPublic

Description

Goals:
This work is to support hypothesis WE4.2.11a which will also affect hypothesis WE4.2.11b: Add RevertRisk filters into Special:RecentChanges.

Hypothesis: If we define a terminology and thresholds for revert risk scores across wikis, we will make it possible to use revert risk scores in a wider range of user facing anti-abuse tools. This hypothesis impacts the WE4.2 KR by doing the background work necessary to build upon revert risk scores.

We want to better understand the distribution of revert risk scores and how they correspond to real-world activities (was the edit actually reverted) so that we can provide buckets for the scores, e.g. “Very likely to be reverted”, “Likely to be reverted”, “Not likely to be reverted”, “Very unlikely to be reverted”. We want to be able to define these buckets across wikis.

Background:
The revert risk models (https://meta.wikimedia.org/wiki/Machine_learning_models/Production/Language-agnostic_revert_risk) provide a raw score of the revert risk probability, e.g. 0.6868777275085449. The use case for this is e.g. in Special:RecentChanges, if there is a filter for “Very likely to be reverted”, does it show scores of 0.9 and above? It would also be helpful to come up with some supporting documentation so that users who encounter the score in Special:RecentChanges (WE4.2.11b) or AbuseFilter (WE4.2.11c) will know how to interpret it, and how to take action based on the score.

Project Requirements:

  • Focus on Indonesian Wikipedia to start
  • Gather data to review sample of edits including revert risk score (focus on language agnostic scores to start), revert status, revert timeline, whether automoderator would revert it, and other user metadata.
  • Review the distribution of these scores and how they correspond to real-world activities
  • Coordinate with stakeholders to define a terminology and thresholds for revert risk scores across wikis
  • Provide supporting documentation so that users who encounter the score will know how to interpret it.

[Note: Project description copied and pasted from Asana task. Please update as needed]

Event Timeline

MNeisler triaged this task as Medium priority.Jan 29 2025, 8:45 PM
MNeisler updated the task description. (Show Details)

Progress update for week of 10 February:

  • Completed processing initial data sample from Indonesian Wikipedia for analysis.
  • Reviewed the distribution of revert risk scores across the following data points (revert status, revert time, reverts by automoderator, namespace of the edit, and user's blocked status).
  • Scheduled meeting with @Kgraessle for early next week to review data gathered so far and walk through some of the initial distribution analysis.
  • Began to review possible approaches to identify revert risk thresholds based on the distribution of data.

Hello! @MNeisler just checking in to see if there is there anything in particular you would like me to highlight for the progress update this week.

Hi @Kgraessle - Yes, thanks for for the ping. Here are my progress updates for the week of 17 February:

  • Finalized the analysis reviewing the distribution of revert risk scores across various data points. Shared link to repo with results. Some highlights below:
    • The median revert risk score for edits that are reverted on Indonesian Wikipedia is 0.885. For edits reverted within 12 hours, the median revert risk score increases to 0.904.
    • High revert scores were also observed for newer accounts, unregistered users, and users with fewer edits.
    • No strong correlations were observed between a high revert risk score and a user being blocked.
  • Meeting to review the initial distribution analysis results and discuss next steps.
  • Identified possible approaches to bucket the revert risk scores. For each bucket, began analysis to identify the percentage of false positives vs false negatives at different proposed thresholds.
  • Next week: Propose some initial buckets and thresholds for review, with documentation highlighting how to interpret the scores and expected false positive or negative rates.

Progress update for week of 24 February:

  • Continued analysis to define initial buckets and thresholds for review.
    • Completed calculating false positive and false negative rates for different proposed revert risk thresholds, including threshold needed to achieve a 15% false positive rate target.
    • Assessed possible methods to bucket revert risk scores.
    • Identified likely outcomes and tradeoffs for each threshold and bucket.
  • Began compiling report documenting possible revert risk thresholds and buckets for review.
  • Next week: Will share the initial buckets and threshold proposals for review and comment early next week.

cc @Kgraessle

Progress update for the week of 3 March:

  • Finalized and shared initial report with possible revert risk score thresholds and 5 distinct bucket proposals for review and comment.
    • These proposals are based on the distribution of revert risk scores at a sample of edits from Indonesian Wikipedia with a few proposals aimed at achieving a 15% false positive rate for the upper threshold, high risk bucket.
    • Each proposal includes the associated model performance metrics at the specified score range, including precision, recall, false positive and false negative rates.
  • Responded to questions and comments as needed.

Additional details on data collection and processing can be found in the code repo.