# US 2023/0066706 A1 · System and method for machine learning architecture with a memory management module

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

- Number: US 2023/0066706 A1
- Document ID: US20230066706A1
- Status: Published application
- Kind: A1
- Application number: 17/411,666
- Filed: 2021-08-25
- Published: 2023-03-02
- Earliest claimed: 2021-08-25
- Assignees: Royal Bank of Canada
- Applicants: Royal Bank of Canada
- Inventors: Hasham BURHANI; Xiao Qi SHI; Kiarash JAMALI
- Web page: https://patentgrep.com/patent/US20230066706A1

## CPC

- G06Q 30/0201: Market modelling; Market analysis; Collecting market data
- G06F 9/54: Interprogram communication
- G06N 3/006: based on simulated virtual individual or collective life forms, e.g. social simulations or particle swarm optimisation [PSO]
- G06N 3/092: Reinforcement learning
- G06N 5/043: Distributed expert systems; Blackboards
- G06N 20/00: Machine learning
- G06F 2209/541: Client-server
- G06Q: INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Systems, devices, and methods for training an automated agent are disclosed. Multiple automated agents are instantiated, each of the automated agents configured to train over a plurality of training cycles. For each resource, a dedicated portion of a memory device to store state data for the respective resource is allocated. The method includes receiving a request for state data for a particular resource from a subset of the automated agents; for each of the training cycles for the subset of the plurality of automated agents, storing updated state data for the particular resource in the dedicated portion of the memory device allocated to the particular resource; and transmitting an address of the dedicated portion of the memory device for the particular resource to the subset of the automated agents, to facilitate asynchronous reading of the stored state data for the particular resource during each training cycle.

## Claims

### Claim 1

A computer-implemented system for training an automated agent, the system comprising:
a communication interface;
at least one processor;
memory in communication with the at least one processor; and
software code stored in the memory, which when executed at the at least one processor causes the system to:
instantiate a plurality of automated agents for generating resource task requests for a plurality of resources, each of the automated agents configured to train over a plurality of training cycles;
for each resource of the plurality of resources, allocate a dedicated portion of a memory device to store state data for the respective resource;
receive a request for state data for a particular resource from a subset of the plurality of automated agents;
for each of the training cycles for the subset of the plurality of automated agents, store updated state data for the particular resource in the dedicated portion of the memory device allocated to the particular resource; and
transmit an address of the dedicated portion of the memory device for the particular resource to the subset of the automated agents, to facilitate asynchronous reading of the stored state data for the particular resource during each training cycle.

### Claim 2 (depends on 1)

The computer-implemented system of claim 1, wherein the updated state data for the particular resource comprises current state data for the particular resource in an environment in which the resource task requests are made.

### Claim 3 (depends on 2)

The computer-implemented system of claim 2, wherein the updated state data for the particular resource further comprises historical state data for the particular resource in the environment in which the resource task requests are made.

### Claim 4 (depends on 3)

The computer-implemented system of claim 3, wherein the current state data for the particular resource is appended to the historical state data for the particular resource during each training cycle at the dedicated portion of the memory device allocated to the particular resource.

### Claim 5 (depends on 1)

The computer-implemented system of claim 1, wherein the software code, when executed at the at least one processor further causes the system to:
process the updated state data for the particular resource into a specific format for the memory device prior to storing the updated state data in the dedicated portion of the memory device allocated to the particular resource.

### Claim 6 (depends on 1)

The computer-implemented system of claim 1, wherein the software code, when executed at the at least one processor causes the system to:
store updated state data for each of the plurality of resources in the dedicated portion of the memory device to for the respective resource.

### Claim 7 (depends on 2)

The computer-implemented system of claim 2, wherein the current state data for the particular resource includes a market price of the particular resource.

### Claim 8 (depends on 7)

The computer-implemented system of claim 7, wherein the environment includes at least one trading venue.

### Claim 9

A computer-implemented method for training an automated agent, the method comprising:
instantiating a plurality of automated agents for generating resource task requests for a plurality of resources, each of the automated agents configured to train over a plurality of training cycles;
for each resource of the plurality of resources, allocating a dedicated portion of a memory device to store state data for the respective resource;
receiving a request for state data for a particular resource from a subset of the plurality of automated agents;
for each of the training cycles for the subset of the plurality of automated agents, storing updated state data for the particular resource in the dedicated portion of the memory device allocated to the particular resource; and
transmitting an address of the dedicated portion of the memory device for the particular resource to the subset of the automated agents, to facilitate asynchronous reading of the stored state data for the particular resource during each training cycle.

### Claim 10 (depends on 9)

The method of claim 9, wherein the updated state data for the particular resource comprises current state data for the particular resource in an environment in which the resource task requests are made.

### Claim 11 (depends on 10)

The method of claim 10, wherein the updated state data for the particular resource further comprises historical state data for the particular resource in the environment in which the resource task requests are made.

### Claim 12 (depends on 11)

The method of claim 11, wherein storing updated state data for the particular resource in the dedicated portion of the memory device comprises appending the current state data for the particular resource to the historical state data for the particular resource during each training cycle at the dedicated portion of the memory device allocated to the particular resource.

### Claim 13 (depends on 9)

The method of claim 9, further comprising, prior to storing the updated state data in the dedicated portion of the memory device allocated to the particular resource:
processing the updated state data for the particular resource into a specific format for the memory device.

### Claim 14 (depends on 9)

The method of claim 9, comprising:
storing updated state data for each of the plurality of resources in the dedicated portion of the memory device to for the respective resource.

### Claim 15 (depends on 10)

The method of claim 10, wherein the current state data for the particular resource includes a market price of the particular resource.

### Claim 16 (depends on 15)

The method of claim 15, wherein the environment includes at least one trading venue.

### Claim 17

A non-transitory computer-readable storage medium storing instructions which when executed adapt at least one computing device to:
instantiate a plurality of automated agents for generating resource task requests for a plurality of resources, each of the automated agents configured to train over a plurality of training cycles;
for each resource of the plurality of resources, allocate a dedicated portion of a memory device to store state data for the respective resource;
receive a request for state data for a particular resource from a subset of the plurality of automated agents;
for each of the training cycles for the subset of the plurality of automated agents, store updated state data for the particular resource in the dedicated portion of the memory device allocated to the particular resource; and
transmit an address of the dedicated portion of the memory device for the particular resource to the subset of the automated agents, to facilitate asynchronous reading of the stored state data for the particular resource during each training cycle.

### Claim 18 (depends on 17)

The non-transitory computer-readable storage medium of claim 17, wherein the updated state data for the particular resource comprises current state data for the particular resource in an environment in which the resource task requests are made.

### Claim 19 (depends on 18)

The non-transitory computer-readable storage medium of claim 18, wherein the updated state data for the particular resource further comprises historical state data for the particular resource in the environment in which the resource task requests are made.

### Claim 20 (depends on 19)

The non-transitory computer-readable storage medium of claim 19, wherein the current state data for the particular resource is appended to the historical state data for the particular resource during each training cycle at the dedicated portion of the memory device allocated to the particular resource.
