CNN File Classification from Truncated Bytes Using KAN Layers

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing malware detection techniques rely on file extensions, which can be unreliable as they do not accurately reflect the file contents, leading to ineffective classification of malicious scripts.

Innovation Solution

A convolutional neural network (CNN) architecture incorporating a Kolmogorov-Arnold Network (KAN) layer is trained using a combined cost function of cross-entropy and contrastive loss to classify files based on reduced-size versions, specifically the first N bytes, to enhance accuracy and efficiency in file type classification.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If file extension is used for classification, then classification speed is fast, but classification accuracy deteriorates because file extensions can be changed regardless of file contents

Engineering Contradiction:
Improveclassification accuracyVSAvoidprocessing complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The patent extracts only the first N bytes (header portion) from each file to create a reduced-size training dataset. This extraction approach enables the CNN to learn from file content characteristics without processing entire files, achieving accurate classification while maintaining efficiency. The reduced-size files contain sufficient discriminatory features for file type identification.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The patent creates reduced-size copies of original files for training purposes. These compressed representations retain the essential characteristics needed for accurate file type classification while being much smaller in size, allowing the model to learn effectively without the computational burden of full-file processing.

Inventive Principle:
Principle #26Copying

2Productivity

If reduced-size files are used for training, then training efficiency is improved, but classification accuracy may deteriorate due to loss of information

Engineering Contradiction:
Improvetraining efficiencyVSAvoidclassification accuracy
Core Design Contradiction:
ProductivityVSMeasurement precision

Solution Approach 1:

The patent optimizes the parameter N (number of bytes to retain) to find the optimal balance between file size reduction and information retention. By adjusting this parameter, the system achieves both training efficiency and high classification accuracy, as the optimal N value preserves sufficient discriminatory features while reducing overall file size for faster processing.

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS20260064628A1Reduced-size file type classification with deep learning
Publication Date: 2026.03.05 PALO ALTO NETWORKS INC
  • US20260064628A1 patent drawing
  • US20260064628A1 patent drawing
  • US20260064628A1 patent drawing

AI summary

Files are classified by file type based on reduced-size representations of the file contents (e.g., truncated versions of files) using a trained convolutional neural network (CNN). The CNN architecture includes a hidden layer comprising a Kolmogorov-Arnold Network (KAN) layer in lieu of a traditional fully connected layer. Training of the CNN employs a cost function that combines cross-entropy loss and contrastive loss for evaluating CNN performance. Training of the CNN is also incremental-when training a CNN for the task of classifying reduced-size files, the CNN is first trained on a training dataset comprising files of their original sizes. Once this initial phase of training is complete, the trained CNN is fine-tuned as a result of one or more additional phases of training, where each additional training phase uses a training dataset comprising reduced-size (e.g., truncated) versions of the files.