# US 2025/0165816 A1 · Storing and obtaining attribute data of attributes of machine learning models

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

- Number: US 2025/0165816 A1
- Document ID: US20250165816A1
- Status: Published application
- Kind: A1
- Application number: 18/747,429
- Filed: 2024-06-18
- Published: 2025-05-22
- Earliest claimed: 2023-11-16
- Assignees: Microchip Technology Incorporated
- Applicants: Microchip Technology Incorporated
- Inventors: Chris NORRIE; Igor ZIPER; Pitamber SHUKLA
- Web page: https://patentgrep.com/patent/US20250165816A1

## CPC

- G06F 12/128: adapted to multidimensional cache systems, e.g. set-associative, multicache, multiset or multilevel
- G06N 5/04: Inference or reasoning models
- G06N 20/00: Machine learning
- G06N 3/063: using electronic means
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

In some implementations, a controller may receive a request for an inference. The controller may determine, based on the received request for the inference, a first inference model of a plurality of inference models, to generate the inference. The controller may obtain, from a memory associated with an inference cache, first attribute data regarding first attributes of the first inference model. A location of the first attribute data, in the memory, may be determined using the inference cache. The attributes may include weights associated with the first inference model, biases associated with the first inference model, and a structure of the first inference model. The controller may utilize the first attribute data to generate the inference based on the request.

## Claims

### Claim 1

A method comprising:
receiving a request for an inference;
determining, based on the received request for the inference, a first inference model of a plurality of inference models, to generate the inference,
obtaining, from a memory associated with an inference cache, first attribute data regarding first attributes of the first inference model,
wherein a location of the first attribute data, in the memory, is determined using the inference cache, and
wherein the attributes include weights associated with the first inference model, biases associated with the first inference model, and a structure of the first inference model; and
utilizing the first attribute data to generate the inference based on the request.

### Claim 2 (depends on 1)

The method of claim 1, wherein the inference cache includes a tag array for storing addresses of the attribute data and wherein the inference cache is associated with a data array for storing attribute data of inference models.

### Claim 3 (depends on 1)

The method of claim 1, wherein the memory stores second attribute data regarding second attributes of a second inference model,
wherein the request is a first request and the inference is a first inference, and
wherein the method comprises:
receiving a second request for a second inference;
determining that the second inference is to be generated using a third inference model;
determining that third attribute data, for third attributes of the third inference model, is not stored in the memory;
determining that at least one of the first attribute data or the second attribute data is to be evicted from the memory based on determining that the third attribute data is not stored in the memory;
evicting the at least one of the first attribute data or the second attribute data from the memory; and
storing the third attribute data in the memory to replace the at least one of the first attribute data or the second attribute data.

### Claim 4 (depends on 3)

The method of claim 3, wherein determining that the at least one of the first attribute data or the second attribute data is to be evicted from the memory comprises:
determining whether the third attribute data is to be stored in the memory based on a first single cache set or a first plurality of cache sets; and
determining whether the at least one of the first attribute data or the second attribute data are stored in the memory based on a second single cache set or a second plurality of cache sets.

### Claim 5 (depends on 4)

The method of claim 4, comprising:
determining a size of the third attribute data; and
storing addresses of the third attribute data in the second plurality of cache sets based on the size of the third attribute data, wherein the inference cache includes information indicating that a cache set, of the second plurality of cache sets, is a first cache set of the second plurality of cache sets, and wherein the inference cache includes information indicating that one or more other cache sets, of the second plurality of cache sets, are included in the second plurality of cache sets.

### Claim 6 (depends on 4)

The method of claim 4, comprising:
storing, prior to receiving the first request, addresses of the first attribute data and the second attribute data in the second single cache set or the second plurality of cache sets,
wherein the second plurality of cache sets are contiguous cache sets.

### Claim 7 (depends on 3)

The method of claim 3, wherein determining that the at least one of the first attribute data or the second attribute data is to be evicted from the memory comprises:
determining that the at least one of the first attribute data or the second attribute data is to be evicted from the memory using a replacement algorithm,
wherein the replacement algorithm is based on a least-recently-used algorithm.

### Claim 8 (depends on 7)

The method of claim 7, wherein determining that the at least one of the first attribute data or the second attribute data is to be evicted from the inference cache comprises:
determining a cache set, of the inference cache, that is to store addresses of the third attribute data prior to receiving the second request for the second inference, wherein the replacement algorithm is based on the least-recently-used algorithm.

### Claim 9

A system comprising:
an inference cache;
a memory associated with the inference cache; and
a controller, associated with the inference cache, the controller to:
store first attribute data, regarding first attributes of a first machine learning model, in the memory,
wherein the first machine learning model is a first trained machine learning model;
store second attribute data, regarding second attributes of a second machine learning model, in the memory,
wherein the second machine learning model is a second trained machine learning model;
obtain, from the memory, one of the first attribute data or the second attribute data based on a request to generate an inference,
wherein a location of the one of the first attribute data or the second attribute data, in the memory, is determined using the inference cache; and
utilize the one of the first attribute data or the second attribute data to generate the inference.

### Claim 10 (depends on 9)

The system of claim 9, wherein the controller is to:
determine a size of the first attribute data; and
store addresses of the first attribute data in multiple cache sets included in the one or more first cache sets based on the size of the first attribute data,
wherein the one or more first cache sets include contiguous cache sets.

### Claim 11 (depends on 10)

The system of claim 10, wherein the controller is to:
determine that the size of the first attribute data exceeds a size of a range of addresses identified by a single cache set of the inference cache; and
store the addresses of the first attribute data in the multiple cache sets based on determining that the size of the first attribute data exceeds the size of the range of address.

### Claim 12 (depends on 11)

The system of claim 11, wherein the inference cache is included in a random-access memory.

### Claim 13 (depends on 11)

The system of claim 11, wherein the request is a first request and the inference is a first inference, and
wherein the controller is to:
receive a second request for a second inference;
determine that the second inference is to be generated using a third inference model;
determine that third attribute data, for third attributes of the third inference model, is not stored in the memory;
determine that at least one of the first attribute data or the second attribute data is to be evicted from the memory based on determining that the third attribute data is not stored in the memory;
evict the at least one of the first attribute data or the second attribute data from the memory; and
store the third attribute data in the memory to replace the at least one of the first attribute data or the second attribute data.

### Claim 14 (depends on 13)

The system of claim 13, wherein, to determine that the at least one of the first attribute data or the second attribute data is to be evicted from the memory, the controller is to:
determine that the at least one of the first attribute data or the second attribute data is to be evicted from the memory using a least-recently-used algorithm.

### Claim 15 (depends on 13)

The system of claim 13, wherein, to determine that the at least one of the first attribute data or the second attribute data is to be evicted from the inference cache, the controller is to:
prior to receiving the second request, determine a particular cache set, of the inference cache, that is to be evicted.

### Claim 16

A computer program product comprising:
one or more computer readable storage media, and program instructions collectively stored on the one or more computer readable storage media, the program instructions comprising:
program instructions to store addresses of first attribute data, regarding first attributes of a first trained machine learning model, in an inference cache;
program instructions to store addresses of second attribute data, regarding second attributes of a second trained machine learning model, in the inference cache; and
program instructions to obtain, from a memory associated with the inference cache, one of the first attribute data or the second attribute data based on a request to generate an inference,
wherein the one of the first attribute data or the second attribute data is obtained using the addresses of the first attribute data or the addresses of the second attribute data.

### Claim 17 (depends on 16)

The computer program product of claim 16, wherein the program instructions comprise:
program instructions to evict, from the memory, at least one of the first attribute data or the second attribute data based on a least-recently-used algorithm; and
program instructions to store third attribute data, for third attributes of a third trained machine learning model, in the memory to replace the first attribute data.

### Claim 18 (depends on 17)

The computer program product of claim 17, wherein the program instructions comprise:
program instructions to determine one or more cache sets, of the inference cache, to be used to store addresses of the third attribute data in the inference cache; and
program instructions to evict, from the memory, the at least one of the first attribute data or the second attribute data based on the least-recently-used algorithm and based on the one or more cache sets.

### Claim 19 (depends on 18)

The computer program product of claim 18, wherein the program instructions comprise:
program instructions to determine whether the addresses of the third attribute data are to be stored using a first single cache set or a first plurality of cache sets;
program instructions to determine whether addresses of the at least one of the first attribute data or the second attribute data are stored using a second single cache set or a second plurality of cache sets; and
program instructions to evict, from the memory, the at least one of the first attribute data or the second attribute data based on the least-recently-used algorithm, whether the addresses of the third attribute data is to be stored using the first single cache set or the first plurality of cache sets, and whether the addresses of the at least one of the first attribute data or the second attribute data is stored using the second single cache set or the second plurality of cache sets.

### Claim 20 (depends on 17)

The computer program product of claim 17, wherein the program instructions comprise:
program instructions to utilize the one of the first attribute data or the second attribute data to generate the inference.
