Subword Tokenization for Language Identity Classification

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Natural language processing systems face challenges in language identity classification due to large and sparse vocabularies, leading to inefficiencies and high memory requirements, especially when using lexicalized features that suffer from the long tail problem.

Innovation Solution

A supervised machine learning model using non-lexicalized features derived from subword tokenization, specifically based on natural language-specific summary statistics, which generates a smaller and denser feature space that is independent of surface forms, reducing memory requirements and enabling more efficient classification.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If lexicalized features are used for language identity classification, then the model can capture surface form information, but the vocabulary size becomes large and sparse leading to the long tail problem

Engineering Contradiction:
Improvelanguage classification accuracyVSAvoidvocabulary size
Core Design Contradiction:
Measurement precisionVSQuantity of substance

Solution Approach 1:

The patent segments words into subword units (e.g., characters or n-grams) to create a smaller, denser vocabulary. Instead of treating each whole word as a separate token, the vocabulary is divided into reusable subword components that can compose any word in the language, thereby reducing vocabulary size while maintaining classification accuracy.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent changes the parameter of feature representation from lexicalized (surface form) to non-lexicalized (subword composition). By representing words as compositions of subword units rather than using whole word forms, the system transforms the feature space to be smaller and denser, eliminating the long tail problem while preserving language-specific patterns.

Inventive Principle:
Principle #35Parameter changes

2Measurement precision

If word embedding models are used to represent words, then semantic meaning can be captured, but the model becomes more sophisticated and expensive than needed for language identity classification

Engineering Contradiction:
Improveword representation qualityVSAvoidmodel complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The patent extracts only the necessary linguistic features for language identity classification from the full word representation. Instead of using comprehensive word embeddings that capture general semantic meaning, the system extracts and uses only subword composition patterns that are relevant for identifying language identity, thereby simplifying the model while maintaining effectiveness.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

Instead of using complex word embeddings to represent words and then trying to extract language-specific signals, the patent inverts the approach by directly using subword tokenization to create simple, composable representations that inherently capture language-specific patterns without requiring sophisticated embedding models.

Inventive Principle:
Principle #13The other way round (Inversion)

3Ease of operation

If lexicalized feature spaces are used, then word surface forms are directly represented, but memory requirements increase due to large and sparse vocabularies

Engineering Contradiction:
Improvedirect word representationVSAvoidmemory usage
Core Design Contradiction:
Ease of operationVSWeight of stationary object

Solution Approach 1:

The patent merges multiple whole word representations into a smaller set of shared subword units. Instead of storing separate representations for each unique word in the vocabulary, the system combines common subword components (e.g., prefixes, suffixes, root morphemes) that can be reused across many words, thereby reducing memory requirements while preserving the ability to represent any word.

Inventive Principle:
Principle #5Merging (Combining)

4Quantity of substance

If subword tokenization is used to reduce vocabulary size, then coverage is improved, but the feature space becomes non-lexicalized and less interpretable

Engineering Contradiction:
Improvevocabulary coverageVSAvoidfeature interpretability
Core Design Contradiction:
Quantity of substanceVSDifficulty of detecting and measuring

Solution Approach 1:

The patent introduces subword units as intermediary representations between whole words and model inputs. These subword units serve as a bridge that maintains interpretability by being compositional and linguistically meaningful, while simultaneously reducing vocabulary size. The subwords act as interpretable intermediaries that connect surface forms to abstract representations.

Inventive Principle:
Principle #24Intermediary (Mediator)

Data Source

PatentUS12061872B2Non-lexicalized features for language identity classification using subword tokenization
Publication Date: 2024.08.13 ORACLE INT CORP
  • US12061872B2 patent drawing
  • US12061872B2 patent drawing
  • US12061872B2 patent drawing

AI summary

A natural language identity classifier system is described, which employs a supervised machine learning (ML) model to perform language identity classification on input text. The ML model takes, as input, non-lexicalized features of target text derived from subword tokenization of the text. Specifically, these non-lexicalized features are generated based on statistics determined for tokens identified for the input text. According to an embodiment, at least some of the non-lexicalized features are based on natural language-specific summary statistics that indicate how often tokens were found within a corpus for each natural language. Use of such summary statistics allows for generation of natural language specific conditional probability-based features. Because of the inherent interpretability of a trained non-lexicalized ML model as described herein, it is possible to modify behavior of the trained ML model by adjusting summary statistics maintained for natural language tokens and/or by adjusting data for the subword tokenizers.