Large Neural Network Training to Limit Memorization and Toxicity

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Training large-scale neural networks is challenging due to their immense model size and high computation cost, leading to issues like verbatim memorization of training data and toxic content generation during inference.

Innovation Solution

A two-stage training process involving pre-training with a diverse unlabeled dataset and adaptation using labeled data, combined with techniques like inserting 'canary' tokens to test for memorization and toxicity, and employing a mixture of pre-training tasks to enhance efficiency and efficacy.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If large-scale neural networks are trained to improve performance, then model accuracy and capability increase, but computation cost and training difficulty increase significantly

Engineering Contradiction:
Improvemodel performanceVSAvoidcomputation cost
Core Design Contradiction:
ReliabilityVSPower

Solution Approach 1:

The training process is segmented into two distinct stages: pre-training on large unlabeled datasets to establish general knowledge, and adaptation training on smaller labeled datasets for specific tasks. This segmentation allows the model to achieve high performance on diverse tasks while reducing overall computation cost by avoiding the need to retrain from scratch for each task.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The system performs preliminary pre-training on a large diverse unlabeled dataset before adaptation to specific tasks. This preliminary action establishes a robust foundation of general knowledge and patterns, enabling the model to achieve high performance on downstream tasks with significantly reduced computation cost compared to training from scratch.

Inventive Principle:
Principle #10Preliminary action

2Reliability

If model size increases to improve capability, then processing power and accuracy increase, but verbatim memorization of training data increases leading to data leakage

Engineering Contradiction:
Improvemodel capabilityVSAvoidverbatim memorization
Core Design Contradiction:
ReliabilityVSObject-generated harmful factors

Solution Approach 1:

The system extracts and removes specific training data samples containing canary tokens from the training corpus. By identifying and removing these memorized samples, the system prevents verbatim memorization and data leakage while maintaining the model's capability to learn from the remaining diverse training data.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

Canary tokens serve as intermediary markers inserted into training data to detect memorization. These special tokens act as mediators that enable the system to identify when a model has memorized specific training samples, allowing for targeted mitigation while preserving overall model capability.

Inventive Principle:
Principle #24Intermediary (Mediator)

3Reliability

If model size increases to improve capability, then processing power and accuracy increase, but toxic content generation during inference increases

Engineering Contradiction:
Improvemodel capabilityVSAvoidtoxic content generation
Core Design Contradiction:
ReliabilityVSObject-generated harmful factors

Solution Approach 1:

The system incorporates feedback mechanisms during adaptation training that monitor and penalize toxic content generation. By providing feedback signals that discourage harmful outputs, the system maintains high model capability while reducing toxic content generation during inference.

Inventive Principle:
Principle #23Feedback

4Reliability

If traditional training methods are used to train large neural networks, then model performance can be achieved, but training time and computing resources consume excessive amounts

Engineering Contradiction:
Improvemodel performanceVSAvoidtraining time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The training process is segmented into pre-training and adaptation stages, allowing the model to learn general patterns efficiently first, then specialize in specific tasks with much reduced time and computational resources compared to traditional single-stage training methods.

Inventive Principle:
Principle #1Segmentation

Data Source

PatentUS20260004112A1Training of large neural networks
Publication Date: 2026.01.01 GOOGLE LLC
  • US20260004112A1 patent drawing
  • US20260004112A1 patent drawing
  • US20260004112A1 patent drawing

AI summary

Methods, systems, and apparatus, including computer programs encoded on computer storage media, for training a neural network to perform any one or more of a variety of machine learning tasks. For example, the neural network can be configured as a generative neural network, e.g., an autoregressive generative neural network.