# US 10,956,521 B1 · Computer process for diversified random walk of a directed graph

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

- Number: US 10,956,521 B1
- Document ID: US10956521B1
- Status: Granted
- Kind: B1
- Application number: 15/978,938
- Filed: 2018-05-14
- Granted: 2021-03-23
- Earliest claimed: 2018-05-14
- Assignees: Amazon Technologies, Inc.
- Applicants: Amazon Technologies, Inc.
- Inventors: Hsiang-Fu Yu; Ishwar Ramani
- Web page: https://patentgrep.com/patent/US10956521B1

## CPC

- G06F 16/9535: Search customisation based on user profiles and personalisation
- G06F 16/24578: {using ranking}
- G06F 16/9024: {Graphs; Linked lists (G06F16/9027 takes precedence)}
- G06Q 30/0631: {Recommending goods or services}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- 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

## Abstract

Systems and methods presented herein create a graph of data within a data set, such as items within an electronic catalog. The nodes of the graph may represent data items, such as items within the electronic catalog. Links or edges can be created between nodes of the graph representative of a data-metric of interest. For example, links or edges can be created between nodes of the graph representative of co-access of items. A diversified page rank process can be performed with respect to a particular node in the graph. This process can use positive or negative bias toward specific attributes to dynamically re-weight edges before and/or during the walk.

## Claims

### Claim 1

A computer-implemented method comprising:
as implemented by one or more computing devices configured with specific computer-executable instructions,
accessing a computer representation of a directed graph, the directed graph representing a set of items available in an electronic catalog, wherein the directed graph includes a node for each item from the set of items, and wherein the directed graph includes edges between each pair of nodes that corresponds to a pair of items from the set of items that has been co-accessed by a threshold number of users within a threshold time period;
identifying a source item of the set of items, the source item represented by a source node of the directed graph;
calculating, based on a history of interactions between a user and at least some items of the set of items, a bias of the user with respect to an attribute of the at least some items;
performing a diversified random walk of the directed graph by at least:
calculating a weight for an edge leading out of the source node to a second node associated with a second item of the set of items, the weight calculated based at least in part on the bias and on a measure of how frequently the source item and second item are co-accessed by users; and
taking a step from the source node to the second node based at least partly on the weight;
generating a distribution of nodes visited during the diversified random walk; and
generating a recommendation for the user based at least partly on the distribution of nodes.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein the measure of how frequently the source item and second item are co-accessed by users corresponds to a conditional probability that a user who accesses the source item accesses the second item.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, further comprising updating the bias based on attributes associated with the second node.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, further comprising calculating the bias based on a clickstream of pages visited by the user, wherein the history of interactions between the user and the at least some items comprises the clickstream.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, further comprising:
calculating the bias as a positive bias; and
selecting a monotone function from among a set of diversified random walk functions based on the bias being a positive bias, wherein the monotone function configures the one or more computing devices to exploit the attribute during the diversified random walk.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, further comprising:
calculating the bias as a negative bias; and
selecting a submodular function from among a set of diversified random walk functions based on the bias being a negative bias, wherein the submodular function configures the one or more computing devices to explore the attribute during the diversified random walk.

### Claim 7

A non-transitory computer-readable medium storing instructions that, when executed, cause a computing system to perform operations comprising:
accessing data representing a graph, wherein the graph includes a node for each item from a set of items, and wherein the graph includes edges between pairs of nodes corresponding to pairs of items from the set of items that have been co-accessed by a threshold number of users;
identifying a source item of the set of items, the source item represented by a source node of the graph;
identifying a bias of a user with respect to an attribute of the at least some items;
performing a diversified random walk of the graph by at least:
calculating a weight for an edge leading out of the source node to a second node associated with a second item of the set of items, the weight calculated based at least in part on the bias and on a measure of how frequently the source item and second item are co-accessed by users; and
taking a step from the source node to the second node based at least partly on the weight;
generating a distribution of nodes visited during the diversified random walk; and
generating a recommendation for the user based at least partly on the distribution of nodes.

### Claim 8 (depends on 7)

The non-transitory computer-readable medium of claim 7, the operations further comprising, at each step of the diversified random walk, iteratively updating the bias based on a histogram of attributes of nodes visited up until that step.

### Claim 9 (depends on 7)

The non-transitory computer-readable medium of claim 7, the operations further comprising identifying the bias based on occurrence of the attribute in a purchase history of the user.

### Claim 10 (depends on 7)

The non-transitory computer-readable medium of claim 7, the operations further comprising identifying the bias based on a clickstream of the user, the clickstream including a page associated with the source item.

### Claim 11 (depends on 10)

The non-transitory computer-readable medium of claim 10, wherein the clickstream also includes another page associated with another item of the set of items, wherein the another page includes a navigational link that, when selected by the user, directed to the user to the page of the source item.

### Claim 12 (depends on 7)

The non-transitory computer-readable medium of claim 7, further comprising calculating the weight based additionally on a conditional probability that a user who accesses the source item accesses the second item.

### Claim 13 (depends on 12)

The non-transitory computer-readable medium of claim 12, wherein the data representing the graph stores the conditional probability as a weight for the edge, and wherein performing the diversified random walk comprises reweighting the edge based on the conditional probability and the bias.

### Claim 14

A computing system, comprising:
a memory storing a computer representation of a directed graph, the directed graph representing a set of items available in an electronic catalog, wherein the directed graph includes a node for each item from the set of items, and wherein the directed graph includes edges between each pair of nodes that corresponds to a pair of items from the set of items that has been co-accessed by a threshold number of users within a threshold time period;
one or more processors programmed with executable instructions to at least:
identify a source item of the set of items, the source item represented by a source node of the directed graph;
calculate, based on a history of interactions between a user and at least some items of the set of items, a bias of the user with respect to an attribute of the at least some items;
perform a diversified random walk of the directed graph by at least:
calculating a weight for an edge leading out of the source node to a second node associated with a second item of the set of items, the weight calculated based at least in part on the bias and on a measure of how frequently the source item and second item are co-accessed by users; and
taking a step from the source node to the second node based at least partly on the weight;
generate a distribution of nodes visited during the diversified random walk; and
generate a recommendation for the user based at least partly on the distribution of nodes.

### Claim 15 (depends on 14)

The computing system of claim 14, wherein the measure of how frequently the source item and second item are co-accessed by users corresponds to a conditional probability that a user who accesses the source item accesses the second item.

### Claim 16 (depends on 14)

The computing system of claim 14, wherein the one or more processors are further programmed to update the bias based on attributes associated with the second node.

### Claim 17 (depends on 14)

The computing system of claim 14, wherein the one or more processors are programmed to calculate the bias based on a clickstream of pages visited by the user, wherein the history of interactions between the user and the at least some items comprises the clickstream.

### Claim 18 (depends on 14)

The computing system of claim 14, wherein the one or more processors are further programmed to:
calculate the bias as a positive bias; and
select a monotone function from among a set of diversified random walk functions based on the bias being a positive bias, wherein the monotone function configures the one or more processors to exploit the attribute during the diversified random walk.

### Claim 19 (depends on 14)

The computing system of claim 14, wherein the one or more processors are further programmed to:
calculate the bias as a negative bias; and
select a submodular function from among a set of diversified random walk functions based on the bias being a negative bias, wherein the submodular function configures the one or more processors to explore the attribute during the diversified random walk.
