# US 2022/0291964 A1 · Workflow memoization

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

- Number: US 2022/0291964 A1
- Document ID: US20220291964A1
- Status: Published application
- Kind: A1
- Application number: 17/199,608
- Filed: 2021-03-12
- Published: 2022-09-15
- Earliest claimed: 2021-03-12
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Vasileios Vasileiadis; Michael Johnston
- Web page: https://patentgrep.com/patent/US20220291964A1

## CPC

- G06F 9/5027: {the resource being a machine, e.g. CPUs, Servers, Terminals}
- G06N 5/048: Fuzzy inferencing
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Workflow memoization can include generating an embedding associated with a node in a workflow. The embedding can be generated by encoding at least the node's executable and input data to the node. A matching embedding can be retrieved from a database of embeddings, which matches the generated embedding according to a match criterion. The database of embeddings can store embeddings associated with previously run nodes. Output data associated with the matching embedding can be retrieved. The output data can be used as the node's output without having to run the node in the workflow.

## Claims

### Claim 1

A computer-implemented method comprising:
generating an embedding associated with a node in a workflow, the embedding generated by encoding at least the node's executable and input data to the node;
retrieving from a database of embeddings, a matching embedding that matches the generated embedding according to a match criterion, the database of embeddings storing embeddings associated with previously run nodes; and
retrieving output data associated with the matching embedding, the output data for use as the node's output without having to run the node in the workflow.

### Claim 2 (depends on 1)

The method of claim 1, wherein the output data is retrieved from a storage storing output files and data associated with the embeddings in the database.

### Claim 3 (depends on 1)

The method of claim 1, wherein the match criterion includes identical matching.

### Claim 4 (depends on 1)

The method of claim 1, wherein the match criterion includes fuzzy matching based on a configurable similarity threshold.

### Claim 5 (depends on 1)

The method of claim 1, wherein the embedding is generated recursively.

### Claim 6 (depends on 1)

The method of claim 1, wherein the embedding includes encoding of the node's metadata with the node's executable and the node's input.

### Claim 7 (depends on 6)

The method of claim 6, wherein the node's metadata includes at least one of container image name, container image hash and environment variables.

### Claim 8 (depends on 1)

The method of claim 1, wherein the output data is retrieved from a remote storage.

### Claim 9 (depends on 1)

The method of claim 1, wherein the output data is retrieved from a local storage.

### Claim 10 (depends on 1)

The method of claim 1, further including authenticating a process that is retrieving the output data for security.

### Claim 11 (depends on 1)

The method of claim 1, wherein outputs of multiple cached tasks with matching embeddings are retrieved and filtered based on a filter criterion.

### Claim 12 (depends on 1)

The method of claim 1, wherein the output data is further post-processed before using the output data in lieu of running the node.

### Claim 13 (depends on 1)

The method of claim 1, wherein the output data is associated with a node from a different workflow different from the workflow.

### Claim 14 (depends on 1)

The method of claim 1, wherein the output data includes intermediary files and output files, which the node would create if the node were to be run on a processor.

### Claim 15

A system comprising:
a hardware processor;
a storage device coupled with the processor;
the hardware processor configured to at least:
generate an embedding associated with a node in a workflow, the embedding generated by encoding at least the node's executable and an input to the node;
retrieve from a database of embeddings stored in the storage device, a matching embedding that matches the generated embedding according to a match criterion, the database of embeddings storing embeddings associated with previously run nodes; and
retrieve output data associated with the matching embedding, the output data for use as the node's output without having to run the node in the workflow.

### Claim 16 (depends on 15)

The system of claim 15, wherein the match criterion includes identical matching.

### Claim 17 (depends on 15)

The system of claim 15, wherein the match criterion includes fuzzy matching based on a configurable similarity threshold.

### Claim 18 (depends on 15)

The system of claim 15, wherein the embedding is generated recursively.

### Claim 19 (depends on 15)

The system of claim 15, wherein the embedding includes encoding of the node's metadata with the node's executable and the node's input.

### Claim 20 (depends on 19)

The system of claim 19, wherein the node's metadata includes at least one of container image name, container image hash and environment variables.

### Claim 21 (depends on 15)

The system of claim 15, further including authenticating a process that is retrieving the output data for security.

### Claim 22 (depends on 15)

The system of claim 15, wherein multiple matching embeddings are retrieved and filtered based on a filter criterion.

### Claim 23 (depends on 15)

The system of claim 15, wherein outputs of multiple cached tasks with matching embeddings are retrieved and outputs associated with the multiple matching embeddings are post-processed to generate the output data before using the output data in lieu of running the node.

### Claim 24

A computer program product comprising a computer readable storage medium having program instructions embodied therewith, the program instructions readable by a device to cause the device to:
generate an embedding associated with a node in a workflow, the embedding generated by encoding at least the node's executable and an input to the node;
retrieve from a database of embeddings stored in the storage device, a matching embedding that matches the generated embedding according to a match criterion, the database of embeddings storing embeddings associated with previously run nodes; and
retrieve output data associated with the matching embedding, the output data for use as the node's output without having to run the node in the workflow.

### Claim 25

A computer-implemented method comprising:
generating a memoization embedding associated with a node in a workflow;
retrieving from a database of embeddings, a matching embedding that matches the generated embedding according to a match criterion, the database of embeddings storing embeddings associated with previously run nodes; and
retrieving output data associated with the matching embedding, the output data for use as the node's output without having to run the node in the workflow.
