Multi-Task Neural Network for Contextual Toxicity Detection

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing toxicity detection systems in interactive platforms suffer from high false positives and negatives, particularly in detecting covert toxicity, due to reliance on keyword-based approaches that disregard context and simplistic machine-learning methods that learn spurious correlations.

Innovation Solution

A multi-task neural network is trained to perform toxicity detection and attribute prediction using a combination of task-specific and task-common feature extractors, with adversarial losses to disentangle task-specific information and mitigate biases, enabling more accurate and interpretable toxicity detection.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Ease of manufacture

If keyword-based approaches are used for toxicity detection, then the system is simple to implement, but it produces high false positives and negatives due to lack of context understanding

Engineering Contradiction:
Improveease of implementationVSAvoiddetection accuracy
Core Design Contradiction:
Ease of manufactureVSReliability

Solution Approach 1:

The patent replaces simple keyword-matching mechanisms with a neural network-based system that uses transformers and attention mechanisms to understand contextual relationships between words, enabling accurate detection of covert toxicity while maintaining implementation feasibility through standardized deep learning frameworks

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

2Ease of manufacture

If simplistic machine-learning methods are used, then the system is easier to train, but it learns spurious correlations and fails to detect nuanced toxicity

Engineering Contradiction:
Improveease of trainingVSAvoidtoxicity detection precision
Core Design Contradiction:
Ease of manufactureVSMeasurement precision

Solution Approach 1:

The patent changes the model architecture parameters by using transformer-based models with attention mechanisms instead of simple machine learning algorithms, enabling the system to capture nuanced contextual patterns and spurious correlations while maintaining trainability through standard deep learning optimization techniques

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The patent segments the toxicity detection task into multiple sub-tasks by training separate models for different toxicity types (e.g., hate speech, harassment, threats) and using multi-label classification, allowing the system to learn nuanced patterns for each type while maintaining overall system simplicity

Inventive Principle:
Principle #1Segmentation

3Reliability

If a multi-task neural network with task-specific and task-common feature extractors is used, then detection accuracy and interpretability are improved, but device complexity increases

Engineering Contradiction:
Improvedetection accuracyVSAvoidsystem complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent implements a multi-task neural network where a single model architecture performs multiple functions: toxicity detection, attribute prediction (sentiment, topic, intent), and context understanding through shared task-common feature extractors, reducing overall system complexity compared to separate specialized models while maintaining high detection accuracy

Inventive Principle:
Principle #6Universality (Multi-functionality)

Solution Approach 2:

The patent adds a task dimension to the feature extraction architecture by introducing task-specific feature extractors that operate on top of shared task-common features, enabling the system to handle multiple toxicity types and attributes simultaneously without proportionally increasing computational complexity

Inventive Principle:
Principle #17Another dimension (Dimensionality change)

4Object-affected harmful factors

If comprehensive toxicity detection is implemented, then user safety is improved, but storage and computational resources are consumed

Engineering Contradiction:
Improveuser safetyVSAvoidstorage needs
Core Design Contradiction:
Object-affected harmful factorsVSQuantity of substance

Solution Approach 1:

The patent performs preliminary toxicity screening using the multi-task neural network to identify and flag only the most suspicious content for human moderator review, rather than storing all user-generated content, thereby reducing storage requirements while maintaining comprehensive safety coverage through prioritized intervention

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS12361290B2Multi-task neural network for toxicity detection
Publication Date: 2025.07.15 CONTEXAI LTD
  • US12361290B2 patent drawing
  • US12361290B2 patent drawing
  • US12361290B2 patent drawing

AI summary

This specification provides a computer-implemented method for detecting toxic user-generated textual content. The method comprises obtaining input data comprising a representation of user-generated textual content. A toxicity prediction and a prediction for each of one or more attributes for the user-generated textual content are generated by processing the input data using a multi-task neural network.