Neural Network Sanitization via Parameter Zeroing and Retraining

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Neural network models can be compromised by malicious actors embedding malware code within their parameters, which can go undetected and execute on user computers, compromising the system.

Innovation Solution

A security platform that sanitizes neural network models by retraining them using a process that updates model parameters based on error values and loss functions, sets insignificant weights to zero, and iteratively modifies non-zero weights to ensure the removal of malicious code without affecting the network's functionality.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Speed

If neural network parameters are directly used from external sources, then model deployment speed is improved, but security reliability deteriorates due to potential malware embedding

Engineering Contradiction:
Improvemodel deployment speedVSAvoidsecurity reliability
Core Design Contradiction:
SpeedVSReliability

Solution Approach 1:

The patent applies preliminary action by performing sanitization checks on neural network parameters before deployment. The system detects and removes malicious code from model parameters prior to use, ensuring security concerns are addressed in advance rather than during or after deployment, thus maintaining both speed and reliability

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent introduces an intermediary sanitization layer between parameter acquisition and model deployment. This intermediary process validates and cleans parameters through techniques like gradient checking and anomaly detection, acting as a mediator that ensures security without blocking the deployment workflow

Inventive Principle:
Principle #24Intermediary (Mediator)

2Reliability

If retraining process is performed to sanitize neural network, then security reliability is improved, but training time increases

Engineering Contradiction:
Improvesecurity reliabilityVSAvoidtraining time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent applies partial action by performing targeted sanitization on specific parameters or subsets of the neural network rather than complete retraining. Techniques like selective parameter validation and localized gradient checking allow the system to address security concerns in only the necessary portions of the model, reducing overall training time while maintaining security

Inventive Principle:
Principle #16Partial or excessive action

Solution Approach 2:

The patent changes parameters related to the sanitization process itself, such as adjusting tolerance thresholds, selecting which parameters to validate, and controlling the depth of gradient checking. These parameter adjustments allow the system to balance security requirements with time constraints by making the sanitization process more or less stringent based on specific needs

Inventive Principle:
Principle #35Parameter changes

3Object-generated harmful factors

If sanitization process modifies model parameters, then malicious code removal is improved, but model accuracy may deteriorate

Engineering Contradiction:
Improvemalicious code removalVSAvoidmodel accuracy
Core Design Contradiction:
Object-generated harmful factorsVSManufacturing precision

Solution Approach 1:

The patent applies local quality by selectively modifying only those parameters that contain malicious code or anomalies, while leaving the majority of clean parameters unchanged. This localized approach ensures that sanitization actions are concentrated where needed, minimizing the impact on overall model accuracy while effectively removing harmful elements

Inventive Principle:
Principle #3Local quality

Solution Approach 2:

The patent implements feedback mechanisms that continuously monitor model performance during and after sanitization. By measuring accuracy changes and comparing against baseline performance, the system can detect when sanitization begins to degrade model quality and adjust its actions accordingly, ensuring malicious code is removed while preserving essential model functionality

Inventive Principle:
Principle #23Feedback

Data Source

PatentUS20240028726A1Methods, Devices, and Systems for Sanitizing a Neural Network to Remove Potential Malicious Data
Publication Date: 2024.01.25 BANK OF AMERICA CORP
  • US20240028726A1 patent drawing
  • US20240028726A1 patent drawing
  • US20240028726A1 patent drawing

AI summary

Systems, devices, and methods for protecting a user computer devices/network from malicious code embedded in a neural network is described. A security platform may selectively modify a downloaded neural network model and/or architecture to remove neural network parameters that may be used to reconstruct the malicious code at an end user of the neural network model. For example, the security platform may remove specific branches of the neural network and/or set specific parameters of the neural network model to zero, such that the malicious code may not be reconstructed at an end-user device.