# US 2024/0202280 A1 · Linear-programming-based recommender with personalized diversity constraints

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

- Number: US 2024/0202280 A1
- Document ID: US20240202280A1
- Status: Published application
- Kind: A1
- Application number: 18/076,699
- Filed: 2022-12-07
- Published: 2024-06-20
- Earliest claimed: 2022-12-07
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC
- Inventors: Miao CHENG; Kinjal Basu; Aman Gupta; Sathiya K. Selvaraj; Rahul Mazumder; Haichao Wei; Haoyue Wang
- Web page: https://patentgrep.com/patent/US20240202280A1

## CPC

- G06F 18/2113: by ranking or filtering the set of features, e.g. using a measure of variance or of feature cross-correlation
- G06F 18/22: Matching criteria, e.g. proximity measures
- G06N 3/02: Neural networks
- G06N 20/00: Machine learning
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

In an example embodiment, a structured linear program is provided that is usable in recommender models. This structured linear program is able to produce real-time results for a structured recommendation problem with diversity constraints, even for large data sets. The structured linear program operates by first reducing a two-sided diversity constraint to a one-sided diversity constraint, and then introducing a dual variable for a constraint, in order to define a dual objective function. The dual objective function is then solved using a bisection method. A primal solution is then recovered using the solved dual objective function. The resultant primal solution reflects a set of recommended content items that satisfy the diversity constraint, as computed in real-time.

## Claims

### Claim 1

A system comprising:
a processor; and
a computer-readable medium having instructions stored thereon, which, when executed by the processor, cause the system to perform operations comprising:
accessing a first set comprising pieces of content;
executing a machine learning relevance model to provide a score for each piece of content in the first set;
ranking pieces of content in the first set based on the scores;
accessing a two-sided diversity constraint, the two-sided diversity constraint having an upper bound and a lower bound for a first attribute of the pieces of content;
reducing the two-sided diversity constraint to a one-sided diversity constraint by eliminating either the upper bound or the lower bound;
adding a dual variable to the one-sided diversity constraint;
defining a dual objective function using the one-sided diversity constraint;
producing a solution to the dual objective function using a bisection method;
recovering a primal solution from the solution; and
re-ranking the pieces of content in the first set based on the primal solution;
causing display of one or more pieces of content in the first set based on the re-ranking.

### Claim 2 (depends on 1)

The system of claim 1, wherein the bisection method iterates a plurality of times maintaining and updating an interval between a minimum value of the dual variable and a maximum value of the dual variable and shrinking the interval by half in each iteration.

### Claim 3 (depends on 2)

The system of claim 2, wherein the solution is selected from the interval after at least 3 iterations.

### Claim 4 (depends on 3)

The system of claim 3, wherein the operations further comprise screening out one or more pieces of content from the first set of pieces of content that would not be contained in a top n coordinates of a vector containing the solution, based on the scores.

### Claim 5 (depends on 1)

The system of claim 1, wherein the machine learning relevance model is trained by passing training data through a machine learning algorithm.

### Claim 6 (depends on 5)

The system of claim 5, wherein the machine learning algorithm is a neural network.

### Claim 7 (depends on 1)

The system of claim 1, wherein the machine learning relevance model is retrained based on feedback from a viewer.

### Claim 8 (depends on 1)

The system of claim 1, wherein the pieces of content are user profiles.

### Claim 9 (depends on 1)

The system of claim 1, wherein the system is contained in a recommender, and the operations further comprise:
causing display of the re-ranked pieces of content in an electronic display as recommendations to a user operating a device containing or connected to the electronic display.

### Claim 10

A computerized method comprising:
accessing a first set comprising pieces of content;
executing a machine learning relevance model to provide a score for each piece of content in the first set;
ranking pieces of content in the first set based on the scores;
accessing a two-sided diversity constraint, the two-sided diversity constraint having an upper bound and a lower bound for a first attribute of the pieces of content;
reducing the two-sided diversity constraint to a one-sided diversity constraint by eliminating either the upper bound or the lower bound;
adding a dual variable to the one-sided diversity constraint;
defining a dual objective function using the one-sided diversity constraint;
producing a solution to the dual objective function using a bisection method;
recovering a primal solution from the solution; and
re-ranking the pieces of content in the first set based on the primal solution;
causing display of one or more pieces of content in the first set based on the re-ranking.

### Claim 11 (depends on 10)

The method of claim 10, wherein the bisection method iterates a plurality of time, maintaining and updating an interval between a minimum value of the dual variable and a maximum value of the dual variable, shrinking the interval by half in each iteration.

### Claim 12 (depends on 11)

The method of claim 11, wherein the solution is selected from the interval after at least 3 iterations.

### Claim 13 (depends on 12)

The method of claim 12, further comprising screening out one or more pieces of content from the first set of pieces of content that would not be contained in a top n coordinates of a vector containing the solution, based on the scores.

### Claim 14 (depends on 10)

The method of claim 10, wherein the machine learning relevance model is trained by passing training data through a machine learning algorithm.

### Claim 15 (depends on 14)

The method of claim 14, wherein the machine learning algorithm is a neural network.

### Claim 16 (depends on 10)

The method of claim 10, wherein the machine learning relevance model is retrained based on feedback from a viewer.

### Claim 17 (depends on 10)

The method of claim 10, wherein the pieces of content are user profiles.

### Claim 18 (depends on 10)

The method of claim 10, wherein the method is run in a recommender, and the method further comprises:
causing display of the re-ranked pieces of content in an electronic display as recommendations to a user operating a device containing or connected to the electronic display.

### Claim 19

A system comprising:
means for accessing a first set comprising pieces of content;
means for executing a machine learning relevance model to provide a score for each piece of content in the first set;
means for ranking pieces of content in the first set based on the scores;
means for accessing a two-sided diversity constraint, the two-sided diversity constraint having an upper bound and a lower bound for a first attribute of the pieces of content;
means for reducing the two-sided diversity constraint to a one-sided diversity constraint by eliminating either the upper bound or the lower bound;
means for adding a dual variable to the one-sided diversity constraint;
means for defining a dual objective function using the one-sided diversity constraint;
means for producing a solution to the dual objective function using a bisection method;
means for recovering a primal solution from the solution; and
means for re-ranking the pieces of content in the first set based on the primal solution;
means for causing display of one or more pieces of content in the first set based on the re-ranking.

### Claim 20 (depends on 19)

The system of claim 19, wherein the bisection method iterates a plurality of time, maintaining and updating an interval between a minimum value of the dual variable and a maximum value of the dual variable, shrinking the interval by half in each iteration.
