# US 2026/0300423 A1 · Generative semantic caching and model distillation in natural language processing

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

- Number: US 2026/0300423 A1
- Document ID: US20260300423A1
- Status: Published application
- Kind: A1
- Application number: 19/091,171
- Filed: 2025-03-26
- Published: 2026-10-01
- Earliest claimed: 2025-03-26
- Assignees: Cisco Technology, Inc.
- Applicants: Cisco Technology, Inc.
- Inventors: Ali Payani; Advit Deepak; Jayanth Srinivasa; Mahesh Viswanathan; Ramana Rao V.R. Kompella; Gaowen Liu
- Web page: https://patentgrep.com/patent/US20260300423A1

## CPC

- G06F 16/957: Browsing optimisation, e.g. caching or content distillation
- G06F 40/30: Semantic analysis
- G06N 5/022: Knowledge engineering; Knowledge acquisition
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

In one implementation, a device may obtain a prompt to a query service from a client. The device may determine whether a cache containing previously stored prompt-response pairs includes a match for the prompt based on a similarity metric. The device may generate a response to the prompt using a student language model trained on prompt-response data from the cache. The device may determine, based on an assessment of the response generated by the student language model, whether to return the response generated by the student language model to the client or to escalate the prompt to a main language model for response generation.

## Claims

### Claim 1

A method, comprising:
obtaining, by a device, a prompt to a query service from a client;
determining, by the device, whether a cache containing previously stored prompt-response pairs includes a match for the prompt based on a similarity metric;
generating, by the device, a response to the prompt using a student language model trained on prompt-response data from the cache; and
determining, by the device and based on an assessment of the response generated by the student language model, whether to return the response generated by the student language model to the client or to escalate the prompt to a main language model for response generation.

### Claim 2 (depends on 1)

The method as in claim 1, further comprising:
identifying a stored prompt-response as a match for the prompt based on a comparison of a semantic similarity metric between the prompt and the stored prompt-response to a similarity threshold.

### Claim 3 (depends on 1)

The method as in claim 1, wherein the student language model is a smaller language model than the main language model.

### Claim 4 (depends on 1)

The method as in claim 1, further comprising:
identifying a stored prompt-response as a match for the prompt by:
extracting knowledge graphs for the prompt and stored prompt-response match candidates; and
filtering the stored prompt-response match candidates based on graph coverage scores associated with each of the knowledge graphs.

### Claim 5 (depends on 4)

The method as in claim 4, further comprising:
identifying corresponding facts between the prompt and each of the stored prompt-response match candidates;
evaluating each pair of corresponding facts for one or more of entailment, contradiction, or neutrality using a trained model; and
generating the graph coverage scores for each of the stored prompt-response match candidates based on evaluation of the corresponding facts.

### Claim 6 (depends on 5)

The method of claim 5, further comprising:
applying a parameter to amplify an impact of contradictions in a calculation of the graph coverage scores such that candidate responses containing contradictory facts are weighted negatively.

### Claim 7 (depends on 4)

The method as in claim 4, further comprising:
filtering the stored prompt-response match candidates based on a comparison of the graph coverage scores associated with each of the knowledge graphs to a threshold calculated based on one or more of a user defined threshold or a mean plus one standard deviation of graph coverage scores.

### Claim 8 (depends on 7)

The method as in claim 7, further comprising:
providing stored prompt-response match candidates remaining after filtering as an input to the student language model along with the prompt.

### Claim 9 (depends on 1)

The method as in claim 1, wherein the student language model is used to generate the response only when coverage scores associated with knowledge graphs for the prompt and stored prompt-response matches meet a threshold, and wherein, if the threshold is not met, the prompt is directed to the main language model for response generation.

### Claim 10 (depends on 1)

The method as in claim 1, further comprising:
adding the response generated by the student language model to the cache.

### Claim 11

An apparatus, comprising:
one or more network interfaces;
a processor coupled to the one or more network interfaces and configured to execute one or more processes; and
a memory configured to store a process that is executable by the processor, the process when executed configured to:
obtain a prompt to a query service from a client;
determine whether a cache containing previously stored prompt-response pairs includes a match for the prompt based on a similarity metric;
generate a response to the prompt using a student language model trained on prompt-response data from the cache; and
determine, based on an assessment of the response generated by the student language model, whether to return the response generated by the student language model to the client or to escalate the prompt to a main language model for response generation.

### Claim 12 (depends on 11)

The apparatus as in claim 11, the process further executable to:
identify a stored prompt-response as a match for the prompt based on a comparison of a semantic similarity metric between the prompt and the stored prompt-response to a similarity threshold.

### Claim 13 (depends on 11)

The apparatus as in claim 11, wherein the student language model is a smaller language model than the main language model.

### Claim 14 (depends on 11)

The apparatus as in claim 11, the process further executable to identify a stored prompt-response as a match for the prompt by:
extracting knowledge graphs for the prompt and stored prompt-response match candidates; and
filtering the stored prompt-response match candidates based on graph coverage scores associated with each of the knowledge graphs.

### Claim 15 (depends on 14)

The apparatus as in claim 14, the process further executable to:
identify corresponding facts between the prompt and each of the stored prompt-response match candidates;
evaluate each pair of corresponding facts for one or more of entailment, contradiction, or neutrality using a trained model; and
generate the graph coverage scores for each of the stored prompt-response match candidates based on evaluation of the corresponding facts.

### Claim 16 (depends on 15)

The apparatus as in claim 15, the process further executable to:
apply a parameter to amplify an impact of contradictions in a calculation of the graph coverage scores such that candidate responses containing contradictory facts are weighted negatively.

### Claim 17 (depends on 14)

The apparatus as in claim 14, the process further executable to:
filter the stored prompt-response match candidates based on a comparison of the graph coverage scores associated with each of the knowledge graphs to a threshold calculated based on one or more of a user defined threshold or a mean plus one standard deviation of graph coverage scores.

### Claim 18 (depends on 17)

The apparatus as in claim 17, the process further executable to:
provide stored prompt-response match candidates remaining after filtering as an input to the student language model along with the prompt.

### Claim 19 (depends on 11)

The apparatus as in claim 11, wherein the student language model is used to generate the response only when coverage scores associated with knowledge graphs for the prompt and stored prompt-response matches meet a threshold, and where, if the threshold is not met, the prompt is directed to the main language model for response generation.

### Claim 20

A tangible, non-transitory, computer-readable medium storing program instructions that cause a device to execute a process comprising:
obtaining a prompt to a query service from a client;
determining whether a cache containing previously stored prompt-response pairs includes a match for the prompt based on a similarity metric;
generating a response to the prompt using a student language model trained on prompt-response data from the cache; and
determining, based on an assessment of the response generated by the student language model, whether to return the response generated by the student language model to the client or to escalate the prompt to a main language model for response generation.
