Transformer Text Moderation via Token Manipulation

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current automated text processing systems face challenges in ensuring the quality of online content due to the difficulty in detecting and moderating socially unacceptable language, as users often employ countermeasures to evade detection by using alternative or obfuscated words.

Innovation Solution

A framework for text moderation using pre-trained transformers that generates context-rich training data, allowing for simultaneous actions and manipulations of tokens to normalize text, enabling context-sensitive moderation by learning which tokens to modify and how to modify them based on contextual information.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If traditional word-based text processing systems are used, then the system complexity is low, but the ability to detect and moderate socially unacceptable language is insufficient

Engineering Contradiction:
Improvetext moderation accuracyVSAvoidsystem complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent replaces traditional mechanical word-based processing systems with transformer-based neural network models that use self-attention mechanisms and contextual embedding to understand and moderate text content, significantly improving detection accuracy while managing complexity through pre-trained models

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

Solution Approach 2:

The patent changes the fundamental parameters of text processing by transitioning from discrete word tokenization to subword tokenization (Byte Pair Encoding), and from flat feature representations to high-dimensional contextual embeddings, enabling more nuanced language understanding

Inventive Principle:
Principle #35Parameter changes

2Reliability

If users employ alternative or obfuscated words to evade detection, then the ease of operation for users increases, but the reliability of text moderation decreases

Engineering Contradiction:
Improvedetection accuracyVSAvoiduser ability to evade detection
Core Design Contradiction:
ReliabilityVSEase of operation

Solution Approach 1:

The patent applies preliminary anti-action by pre-training transformer models on diverse text corpora that include obfuscated and alternative forms of unacceptable language, enabling the model to recognize and moderate such content before it can effectively evade detection

Inventive Principle:
Principle #9Preliminary anti-action

Solution Approach 2:

The patent implements dynamic text moderation by using contextual embeddings that adaptively interpret words based on their surrounding context, allowing the system to dynamically distinguish between legitimate alternative expressions and obfuscated unacceptable language

Inventive Principle:
Principle #15Dynamics

3Measurement precision

If context-sensitive text moderation is implemented, then the measurement precision of inappropriate content detection is improved, but the device complexity increases

Engineering Contradiction:
Improvedetection precisionVSAvoidmodel complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The patent applies preliminary action by pre-training transformer models on large-scale text corpora before deployment, allowing the models to learn contextual patterns and nuances offline, thereby achieving high detection precision without increasing the complexity of the deployed system

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent uses copying by creating multiple token representations (original tokens, subword tokens, and contextual embeddings) that capture different aspects of text meaning, enabling precise detection while managing complexity through hierarchical representation

Inventive Principle:
Principle #26Copying

Data Source

PatentUS12039255B2System and method for text moderation via pretrained transformers
Publication Date: 2024.07.16 VERIZON PATENT & LICENSING INC
  • US12039255B2 patent drawing
  • US12039255B2 patent drawing
  • US12039255B2 patent drawing

AI summary

The present teaching relates to method, system, medium, and implementations for text processing. Upon receiving input data including an original token and a ground truth token label for the original token, a manipulation is applied to the original token to generate a manipulated token based on which to generate manipulated input data. Training data is generated based on the manipulated input data, the ground truth token label, and a ground truth action that, when applied to the manipulated token, yields the original token with the ground truth token label. A text moderation model is trained based on the training data.