# US 2026/0099727 A1 · Language models having a reduced size while maintaining performance and reducing hallucinations

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2026/0099727 A1
- Document ID: US20260099727A1
- Status: Published application
- Kind: A1
- Application number: 19/041,065
- Filed: 2025-01-30
- Published: 2026-04-09
- Earliest claimed: 2024-10-04
- Assignees: Lenovo Global Technology (UnitedStates) Inc.
- Applicants: Lenovo Global Technology (UnitedStates) Inc.
- Inventors: Jeffrey Daniel Esposito; Henry Svendsgaard; Aishwarya Dharani Arul; Tabor Scott
- Web page: https://patentgrep.com/patent/US20260099727A1

## CPC

- G06N 3/0985: Hyperparameter optimisation; Meta-learning; Learning-to-learn
- G06N 3/044: Recurrent networks, e.g. Hopfield networks
- G06N 3/045: Combinations of networks
- G06N 3/08: Learning methods
- G06N 3/09: Supervised learning
- G06N 20/00: Machine learning
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A computer program product causes a processor to perform various operations. The operations include training a language model (LM) with a selected architecture using a training dataset focused on a specific content domain using pre-trained, supervised word embeddings and current values for a plurality of hyperparameters, such as a number of layers, hidden units, and/or parameters. The operations further include testing the trained LM on a validation dataset to obtain a performance of the trained LM, and, in response to the performance measurement being greater than the predetermined performance threshold, reducing the values of one or more of the hyperparameters and repeating the training. In addition, the operations include, in response to the performance not being greater than the threshold, selecting one of the previously trained LM that was trained using the smallest set of hyperparameter values and had a performance greater than the threshold and deploying the selected LM.

## Claims

### Claim 1

A computer program product comprising a non-transitory computer readable medium and program instructions embodied therein, the program instructions being configured to be executable by a processor to cause the processor to perform operations comprising:
obtaining a training dataset focused on a specific content domain and a set of pre-trained, supervised word embeddings;
selecting a language model architecture, an initial set of values of a plurality of hyperparameters for a language model to be trained on the training dataset, and a predetermined performance threshold, wherein the plurality of hyperparameters includes a number of layers, a number of hidden units, and/or an overall number of parameters;
performing a set of operations including:
training the language model on the training dataset using the pre-trained, supervised word embeddings and current values for each of the hyperparameters;
testing the trained language model on a validation dataset to obtain a performance measurement of the trained language model; and
in response to the performance measurement being greater than the predetermined performance threshold, reducing the values of one or more of the hyperparameters and repeating the set of operations;
in response to the performance measurement not being greater than the predetermined performance threshold, selecting the trained language model from a previous instance of the set of the operations that was trained using the smallest set of values of the hyperparameters and had a performance measurement greater than the predetermined threshold; and
deploying the selected language model.

### Claim 2 (depends on 1)

The computer program product of claim 1, wherein training the language model on the training dataset using the reduced values of the one or more of the hyperparameters causes the language model to have a smaller size than the language model trained on the training dataset using the initial set of values of the plurality of hyperparameters.

### Claim 3 (depends on 1)

The computer program product of claim 1, wherein the language model has a recurrent neural network architecture or a basic transformer architecture.

### Claim 4 (depends on 1)

The computer program product of claim 1, wherein the training dataset is curated.

### Claim 5 (depends on 1)

The computer program product of claim 1, wherein the training dataset is unsupervised or self-supervised.

### Claim 6 (depends on 1)

The computer program product of claim 1, the operations further comprising:
generating and deploying the language model on-the-fly in response to receiving a user prompt regarding the specific content domain; and
causing the language model that was generated and deployed on-the-fly to generate a response to the user prompt.

### Claim 7 (depends on 6)

The computer program product of claim 6, wherein the training dataset includes data that is specific to a user submitting the query.

### Claim 8 (depends on 7)

The computer program product of claim 7, wherein the data that is specific to the user submitting the query includes data describing a computing system associated with the user.

### Claim 9 (depends on 1)

The computer program product of claim 1, the operations further comprising:
adding a content hive layer to the selected language model, wherein the content hive layer includes a plurality of content keys, wherein each content key links to another language model.

### Claim 10 (depends on 1)

The computer program product of claim 1, the operations further comprising:
adding an automation layer to the selected language model, wherein the automation layer includes a plurality of automation aliases, wherein each automation alias maps output from a previous layer of the selected language model to an executable command.

### Claim 11 (depends on 10)

The computer program product of claim 10, wherein the specific content domain is directed to server management protocols, and wherein each executable command causes a change in a configuration management tool, package manager, infrastructure as code tool, or software build automation tool.

### Claim 12 (depends on 1)

The computer program product of claim 1, the operations further comprising:
adding a creativity layer to the selected language model, wherein the creativity layer adjusts a creativity setting used by the selected language model to drive a level of performance of the selected language model.

### Claim 13 (depends on 1)

The computer program product of claim 1, the operations further comprising:
establishing a sequential search cascade to address a user prompt submitted to the deployed language model, wherein the sequential search cascade comprises a first level including a knowledge base, a second level including a content hive having a plurality of language models, a third level including a LLM, and a fourth level including a notification to a subject-matter expert, wherein the user prompt is submitted sequentially to the levels of the sequential search cascade until obtaining a response matching the user prompt.

### Claim 14 (depends on 13)

The computer program product of claim 13, the operations further comprising:
adding a creativity layer to the selected language model, wherein the creativity layer adjusts a creativity setting used by the selected language model to drive a level of performance of the selected language model as a function of query complexity, wherein the query complexity is calculated as the sum of a length of the user prompt plus a number of levels in the search cascade required to obtain a response matching the user prompt, then dividing the sum by the elapsed search time from receiving the user prompt to obtaining the response.

### Claim 15

A computer program product comprising a non-transitory computer readable medium and program instructions embodied therein, the program instructions being configured to be executable by a processor to cause the processor to perform operations comprising:
obtaining a collection of content within a specific content domain;
identifying a plurality of specific topics within the specific content domain;
separating the collection of content into a plurality of content subgroups, wherein each content subgroup contains the content directed to one of the specific topics;
training, for each of the content subgroups, a separate language model on the content subgroup directed to the specific topic; and
providing a user interface for receiving a user prompt directed to the specific content domain, identifying one of the specific topics that is mostly closely related to subject matter of the user prompt, and directing the user prompt to one of the separate language models that is trained on the content subgroup directed to the specific topic.

### Claim 16 (depends on 15)

The computer program product of claim 15, the operations further comprising:
limiting each content subgroup to a predetermined maximum amount of content.

### Claim 17 (depends on 16)

The computer program product of claim 16, wherein limiting each content subgroup to a predetermined amount of content includes:
determining the amount of content in each content subgroup;
identifying one of the content subgroups in which the amount of content exceeds the predetermined amount of content; and
dividing the identified content subgroup into first and second content subgroups prior to training.

### Claim 18 (depends on 15)

The computer program product of claim 15, the operations further comprising:
measuring the size of each language model after training;
identifying one of the language models having a size that is greater than a predetermined maximum language model size;
replacing the identified language model with a first language model trained on a first portion of the content subgroup that was used to train the identified language model and a second language model trained on a second portion of the content subgroup that was used to train the identified language model.

### Claim 19 (depends on 15)

The computer program product of claim 15, wherein training, for each of the content subgroups, the separate language model on the content subgroup directed to the specific topic further comprises:
selecting a language model architecture for the language model, an initial set of values of a plurality of hyperparameters for the language model to be trained on one of the content subgroups, and a predetermined performance threshold for the language model, wherein the plurality of hyperparameters includes a number of layers, a number of hidden units, and/or an overall number of parameters;
performing a set of operations including:
training the language model on a different one of the content subgroups using the pre-trained, supervised word embeddings and current values for each of the hyperparameters;
testing the trained language model on a validation dataset to obtain a performance measurement of the trained language model; and
in response to the performance measurement being greater than the predetermined performance threshold, reducing the values of one or more of the hyperparameters and repeating the set of operations;
in response to the performance measurement not being greater than the predetermined performance threshold, selecting the trained language model from a previous instance of the set of the operations that was trained using the smallest set of values of the hyperparameters and had a performance measurement greater than the predetermined threshold; and
deploying the selected language model.

### Claim 20 (depends on 15)

The computer program product of claim 15, the operations further comprising:
a first one of the separate language models redirecting the user prompt to a second one of the separate language models if the user prompt is not within the scope of the first one of the separate language models.
