Jump to content

管理工具/Automoderator

From mediawiki.org
This page is a translated version of the page Moderator Tools/Automoderator and the translation is 37% complete.

Automoderator是由Moderator Tools 團隊開發的自動反破壞工具。 該功能基於機器學習模型對編輯評分,並根據評分自動回退該筆編輯。管理員可啟用及調整其配置。 Automoderator與現有的反破壞機械人類似,如ClueBot NGSeroBOTDexbot,但在所有語言社區都可以使用。 本擴展的技術細節請見Extension:AutoModerator

社群已可申請 將Automoderator部署到維基百科站點。

更新

  • 2024年10月 – A dashboard is now available to track metrics about Automoderator's behaviour on the projects on which it is deployed.
  • 2024年10月 – We have made new datasets available to test the Multilingual Revert Risk model. We anticipate that this model should have better performance than the Language Agnostic model which is currently in use, but need your feedback to make an informed decision.
  • 2024年9月 – 印度尼西亞語和烏克蘭語維基百科開始使用AutoModerator (AutomoderatorАвтомодератор)。
  • 2024年6月 – 土耳其語維基百科開始使用Automoderator (Otomoderatör)。
  • 2024年2月 – Designs have been posted for the initial version of the landing and configuration pages. 歡迎提出思考和建議!
  • 2024年2月 – 我們已經發布了測試階段的初步成果
  • 2023年10月 – 我們正在收集對測量計劃的反饋,以決定我們應使用哪些數據來評估該項目,並已提供測試數據以收集對Automadator決策過程的意見。
  • 2023年8月 – 我們近期在維基媒體國際會議演示了本計劃和其他用於站點管理的計劃。 您可以在此處找到演示記錄。

計劃動機

維基媒體國際會議發表(13:50)

A substantial number of edits are made to Wikimedia projects which should unambiguously be undone, reverting a page back to its previous state. Patrollers and administrators have to spend a lot of time manually reviewing and reverting these edits, which contributes to a feeling on many larger wikis that there is an overwhelming amount of work requiring attention compared to the number of active moderators. We would like to reduce these burdens, freeing up moderator time to work on other tasks.

Indonesian Wikipedia community call (11:50)

Many online community websites, including Reddit, Twitch, and Discord, provide 'automoderation' functionality, whereby community moderators can set up a mix of specific and algorithmic automated moderation actions. On Wikipedia, AbuseFilter provides specific, rules-based, functionality, but can be frustrating when moderators have to, for example, painstakingly define a regular expression for every spelling variation of a swear word. It is also complicated and easy to break, causing many communities to avoid using it. At least a dozen communities have anti-vandalism bots, but these are community maintained, requiring local technical expertise and usually having opaque configurations. These bots are also largely based on the ORES damaging model, which has not been trained in a long time and has limited language support.

目標

  • Reduce moderation backlogs by preventing bad edits from entering patroller queues.
  • Give moderators confidence that automoderation is reliable and is not producing significant false positives.
  • Ensure that editors caught in a false positive have clear avenues to flag the error / have their edit reinstated.

設計研究

To learn about the research and design process we went through to define Automoderator's behaviour and interfaces, see /Design .

模型

Automoderator uses the 'revert risk' machine learning models developed by the Wikimedia Foundation Research team. There are two versions of this model:

  1. 一個支援47種語言的多語言模型
  2. A language-agnostic model. This is the model which Automoderator currently uses, while we test the Multilingual model to better understand its performance.

These models can calculate a score for every revision denoting the likelihood that the edit should be reverted. Each community can set their own threshold for this score, above which edits are reverted (see below).

The models currently only support Wikipedia, but could be trained on other Wikimedia projects in the future. Additionally they are currently only trained on the main (article) namespace. We would like to investigate re-training the model on an ongoing basis as false positives are reported by the community. (T337501)

Before we moved forward with this project we provided opportunities for testing out the language-agnostic model against recent edits, so that patrollers could understand how accurate the model is and whether they felt confident using it in the way we proposed. 本次測試的細節及結果可參閱Moderator Tools/Automoderator/Testing

We are also testing the Multilingual model to understand if it is preferable to use it instead of the Language Agnostic model. See Moderator Tools/Automoderator/Multilingual testing to help us review the model's scores.

用戶腳本

We have also created a simple user script to allow testing of the Revert Risk models on Special:RecentChanges, which you can install by following these steps:

We have also created a simple user script to retrieve the Language-Agnostic Revert Risk score for an individual edit. Simply import User:JSherman (WMF)/revertrisk.js into your commons.js with mw.loader.load( 'https://en.wikipedia.org/wiki/User:JSherman_(WMF)/revertrisk.js?action=raw&ctype=text/javascript' );.

You should then find a Get revert risk score in the Tools menu in your sidebar.

Note that both of these scripts will only display model scores, and do not take into account Automoderator's internal configurations (e.g. ignoring self-reverts) as detailed below.

工作原理

WikipediaPodden interview, containing information on how Automoderator works.
Diagram demonstrating the Automoderator software decision process.

Automoderator scores every main namespace edit on a Wikimedia project, fetches a score for that edit based on how likely it is to be reverted, and reverts any edits which score above a threshold which can be configured by local administrators. When reverting, Automoderator performs a rollback , also undoing prior sequential edits made by the same user. The revert is carried out by a system account, so it looks and behaves like other accounts – it has a Contributions page, User page, shows up in page histories, etc.

To reduce false positives and other undesirable behaviour, Automoderator will never revert the following kinds of edits:

  • 編者回退自己的其中一筆編輯
  • Reverts of one of Automoderator's actions
  • Those made by administrators (including global sysops and stewards) or bots
  • 新頁面創建

配置

Automoderator的配置頁面(2024年9月)

Automoderator is configured via a Community Configuration form located at Special:CommunityConfiguration/AutoModerator, which edits the page MediaWiki:AutoModeratorConfig.json (the latter can be watchlisted so that updates show up in your Watchlist). After deployment, Automoderator will not begin running until a local administrator turns it on via the configuration page. In addition to turning Automoderator on or off, there are a range of configurations which can be customised to fit your community's needs, including the revert threshold, minor and bot edit flags, and whether Automoderator sends a talk page message after reverting (see below).

Certain configuration, such as Automoderator's username, can only be performed by MediaWiki developers. To request such a change, or to request other kinds of customisation, please file a task on Phabricator.

Localisation of Automoderator should primarily be carried out via TranslateWiki, but local overrides can also be made by editing the relevant 系統訊息 (Automoderator's strings all begin with automoderator-).

警告級別

One of the most important configurations to set is the 'Caution level' or 'threshold' - this determines the trade-off Automoderator will make between coverage (how many bad edits are reverted) and accuracy (how frequently it will make mistakes). The higher the caution level, the fewer edits will be reverted, but the higher the accuracy; the lower the caution level, the more edit will be reverted, but the lower the accuracy. We recommend starting at a high caution level and gradually decreasing over time as your community becomes comfortable with how Automoderator is behaving.

討論頁消息

To ensure that reverted editors who were making a good faith change are well equipped to understand why they were reverted, and to report false positives, Automoderator has an optional feature to send every reverted user a talk page message. This message can be translated in TranslateWiki and customised locally via the Automoderator-wiki-revert-message system message. 默認(英文)文本如下:

Hello! I am AutoModerator, an automated system which uses a machine learning model to identify and revert potentially bad edits to ensure Wikipedia remains reliable and trustworthy. Unfortunately, I reverted one of your recent edits to Article title.

If the same user receives another revert soon after the first, they are sent a shorter message under the same section heading. 默認(英文)文本:

I also reverted one of your recent edits to Article title because it seemed unconstructive. Automoderator (talk) 01:23, 1 January 2024 (UTC)

錯誤報告

Automoderator's 'report false positive' link.

Because no machine learning model is perfect, Automoderator will sometimes accidentally revert good edits. When this happens we want to reduce friction for the user who was reverted, and give them clear next steps. As such, an important step in configuring Automoderator is creating a false positive reporting page. This is a normal wiki page, which will be linked to by Automoderator in the talk page message, and in page histories and user contributions, as an additional possible action for an edit, alongside Undo and/or Thank.

Metrics

You can track data about how Automoderator is behaving on Wikimedia projects at the Activity Dashboard.

For data on the expected number of reverts that Automoderator would make per day on your project, see the testing subpage . Similar data for the multilingual model (not currently in use) can be found at /Multilingual testing .

使用

Automoderator現已在以下維基媒體項目部署:

項目 部署請求 用戶名 配置 Dashboard
印尼語維基百科 T365792 Automoderator CommunityConfiguration Dashboard
土耳其語維基百科 T362622 Otomoderatör CommunityConfiguration Dashboard
烏克蘭語維基百科 T373823 Автомодератор CommunityConfiguration Dashboard
越南語維基百科 T378343 Kiểm tra tự động CommunityConfiguration Dashboard
阿非利卡語維基百科 T376597 OutoModerator CommunityConfiguration Dashboard
孟加拉語維基百科 T381000 স্বয়ংক্রিয় টহলদার CommunityConfiguration Dashboard
阿塞拜疆語維基百科 T382286 Avtomoderator CommunityConfiguration Dashboard
中文維基百科 T367306 AutoModerator CommunityConfiguration Dashboard
西班牙語維基百科 T391248 Automoderador CommunityConfiguration Dashboard
意大利語維基百科 T405152 Moderatore Automatico CommunityConfiguration Dashboard
荷蘭語維基百科 T425509 BijdragenScanner CommunityConfiguration Dashboard
阿爾巴尼亞語維基百科 T420450 Automoderatori CommunityConfiguration Dashboard