LLM Distilled URL Content Filter for Enterprise Networks

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current web content filtering techniques are inadequate in effectively categorizing and managing web content to restrict access to potentially harmful or malicious content, particularly in enterprise networks.

Innovation Solution

A large language model is trained to classify URL requests using a domain-to-category database, and then distilled into a student model for inline deployment as a content filter, enabling categorization of web content and application of policies based on identified categories for outbound and inbound requests.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If a large language model is used for web content categorization, then classification accuracy is improved, but computational complexity and processing time increase

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

Solution Approach 1:

The system segments the categorization task into two phases: offline training phase where the LLM processes training data to create a distilled model, and online inference phase where the distilled model performs rapid categorization. This segmentation allows the complex LLM to be used only during offline training, while real-time operations use a simplified model.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The system performs preliminary action by pre-training the LLM offline to generate a distilled categorization model before actual content filtering operations. This pre-processing creates a lightweight model that captures the essential categorization capabilities without requiring the full computational resources of the original LLM during real-time operations.

Inventive Principle:
Principle #10Preliminary action

2Measurement precision

If a large language model is deployed for real-time content filtering, then categorization accuracy is improved, but processing speed decreases

Engineering Contradiction:
Improvecategorization accuracyVSAvoidprocessing speed
Core Design Contradiction:
Measurement precisionVSSpeed

Solution Approach 1:

The system creates a copy or approximation of the LLM's categorization capabilities through distillation. The distilled model replicates the essential classification behavior of the full LLM but with significantly reduced computational requirements, enabling real-time processing speeds while maintaining acceptable accuracy.

Inventive Principle:
Principle #26Copying

Solution Approach 2:

The distillation process changes the parameters of the model by reducing the number of parameters from billions in the LLM to millions or fewer in the distilled model. This parameter reduction dramatically decreases computational complexity and processing time while preserving the core categorization functionality.

Inventive Principle:
Principle #35Parameter changes

3Speed

If traditional content filtering methods are used, then processing speed is maintained, but classification accuracy and ability to identify harmful content is insufficient

Engineering Contradiction:
Improveprocessing speedVSAvoidcontent categorization accuracy
Core Design Contradiction:
SpeedVSMeasurement precision

Solution Approach 1:

The system replaces traditional mechanical filtering methods (keyword matching, signature-based detection) with an AI-based distilled model that uses learned patterns and semantic understanding. This substitution enables more accurate identification of harmful content while maintaining processing speeds suitable for real-time filtering.

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

Data Source

PatentUS20240372830A1Web content filtering
Publication Date: 2024.11.07 SOPHOS LTD
  • US20240372830A1 patent drawing
  • US20240372830A1 patent drawing
  • US20240372830A1 patent drawing

AI summary

A large language model (LLM) is trained to classify Uniform Resource Locator (URL) requests using a data that has been labeled with a domain-to-category database of corresponding, suitable categories for web content. This model can then be distilled using a student model trained to reproduce the behavior of the tuned large language model. The resulting student model can be deployed inline as a content filter for, e.g., content-based filtering of web requests from endpoints behind a firewall or other network device. While this disclosure emphasizes filtering of outbound URL's from network endpoints, it will be understood that the techniques described herein may also or instead be used to create inbound content filters using similarly derived student models that have been trained to identify content based on metadata, text content, image content, and so forth.