HTML Tokenization With Large Language Models for Granular Filtering

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing web filtering methods face challenges in blocking specific content types without affecting access to other essential resources, and allowlist filtering requires constant updates due to evolving online content, which is time-consuming and inconvenient.

Innovation Solution

Utilize HTML tokenization and a large language model to analyze webpage content, segmenting HTML into tokens, and determine content descriptions for granular filtering and categorization, enabling real-time and proactive content management.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Object-affected harmful factors

If denylist filtering is used to block specific content, then access to harmful content is restricted, but access to essential resources on the same domain is also blocked

Engineering Contradiction:
Improveaccess to harmful contentVSAvoidaccess to essential resources
Core Design Contradiction:
Object-affected harmful factorsVSAdaptability or versatility

Solution Approach 1:

The patent segments the webpage into multiple HTML tokens representing different content elements (e.g., videos, images, text sections). The web filter then selectively blocks or allows individual tokens rather than entire domains, enabling granular control that prevents harmful content while preserving access to essential resources on the same page.

Inventive Principle:
Principle #1Segmentation

2Adaptability or versatility

If allowlist filtering is used to control content access, then access to approved content is ensured, but constant updates are required to accommodate new content

Engineering Contradiction:
Improvecontrol over content accessVSAvoidtime for updating allowlist
Core Design Contradiction:
Adaptability or versatilityVSLoss of time

Solution Approach 1:

The patent performs preliminary analysis of webpage content by tokenizing HTML and using AI models to categorize content before the user accesses it. This proactive classification enables the system to automatically make filtering decisions without requiring manual allowlist updates, as new content is evaluated and categorized in real-time.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The web filtering system uses AI-based content analysis to automatically categorize and filter content without human intervention. The system self-manages the filtering process by analyzing webpage tokens, determining their categories, and applying appropriate filters, eliminating the need for manual allowlist maintenance.

Inventive Principle:
Principle #25Self-service

3Measurement precision

If granular content filtering is implemented, then filtering accuracy is improved, but system complexity increases

Engineering Contradiction:
Improvefiltering accuracyVSAvoidsystem complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The patent introduces HTML tokenization as an intermediary step between webpage retrieval and content filtering. By breaking down webpages into standardized tokens and using AI models to categorize them, the system achieves granular filtering accuracy while managing complexity through a structured, modular approach to content analysis.

Inventive Principle:
Principle #24Intermediary (Mediator)

Data Source

PatentUS20250298977A1Method to categorize a webpage or website via HTML tokenization and analysis with a large language model
Publication Date: 2025.09.25 LENOVO ENTERPRISE SOLUTIONS (SINGAPORE) PTE LTD
  • US20250298977A1 patent drawing
  • US20250298977A1 patent drawing
  • US20250298977A1 patent drawing

AI summary

A computer program product and method include operations including accessing HTML code from one or more webpages, tokenizing the HTML code to form one or more HTML tokens, submitting each HTML token to a large language model, and obtaining a token content description for each HTML token from the large language model. The operations further include determining, for each of the one or more webpages, whether to rendered the HTML code on the web browser based on the token content descriptions of the HTML tokens formed for the HTML code from the one or more webpages.