# US 2024/0004912 A1 · Hierarchical topic model with an interpretable topic hierarchy

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

- Number: US 2024/0004912 A1
- Document ID: US20240004912A1
- Status: Published application
- Kind: A1
- Application number: 17/853,141
- Filed: 2022-06-29
- Published: 2024-01-04
- Earliest claimed: 2022-06-29
- Assignees: Adobe Inc.
- Applicants: Adobe Inc.
- Inventors: Tanay Anand; Sumit Bhatia; Simra Shahid; Nikitha Srikanth; Nikaash Puri
- Web page: https://patentgrep.com/patent/US20240004912A1

## CPC

- G06F 16/35: Clustering; Classification
- G06F 16/3347: {using vector based model}
- G06F 16/93: Document management systems
- G06F 18/2133: based on naturality criteria, e.g. with non-negative factorisation or negative correlation
- G06F 18/24147: {Distances to closest patterns, e.g. nearest neighbour classification}
- G06F 40/30: Semantic analysis
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Some techniques described herein relate to generating a hierarchical topic model (HTM), which can be used to generate custom content. In one example, a method includes determining first-level topics in a topic hierarchy related to a corpus of documents. A first-level topic of the first-level topics includes multiple words. The multiple words are grouped into clusters based on word embeddings of the multiple words. The multiple words are then subdivided into second-level topics as subtopics of the first-level topic, such that the number of second-level topics equals the number of clusters. A document of the corpus of documents is assigned to the first-level topic and to a second-level topic of the second-level topics, and an indication is received of access by a user to the document. Custom content is generated for the user based on one or more other documents assigned to the first-level topic and the second-level topic.

## Claims

### Claim 1

A method comprising:
determining first-level topics in a topic hierarchy related to a corpus of documents, wherein a first-level topic of the first-level topics comprises multiple words;
clustering the multiple words into clusters based on word embeddings of the multiple words;
setting a count for the second-level topics equal to a count of the clusters;
subdividing the multiple words into second-level topics comprising subtopics of the first-level topic;
assigning a document of the corpus of documents to the first-level topic and to a second-level topic of the second-level topics;
receiving an indication of access by a user to the document; and
generating custom content for the user based on one or more other documents of the corpus of documents assigned to the first-level topic and the second-level topic.

### Claim 2 (depends on 1)

The method of claim 1, wherein clustering the multiple words into the clusters based on word embeddings of the multiple words comprises clustering the multiple words into clusters based on hyperbolic word embeddings of the multiple words.

### Claim 3 (depends on 2)

The method of claim 2, wherein subdividing the multiple words into second-level topics comprising subtopics of the first-level topic comprises:
computing a first matrix representing hierarchical relations between pairs of document words found in documents assigned to the first-level topic;
computing a second matrix based on statistical relations and semantic relations associated with (i) the document words found in the documents assigned to the first-level topic and (ii) the documents assigned to the first-level topic;
performing matrix factorization on a product of the second matrix and the first matrix; and
extracting the second-level topics from a result of the matrix factorization.

### Claim 4 (depends on 3)

The method of claim 3, wherein computing the first matrix representing hierarchical relations between the pairs of document words found in documents assigned to the first-level topic comprises determining hyperbolic distances between the pairs of document words.

### Claim 5 (depends on 3)

The method of claim 3, wherein extracting the second-level topics from the result of the matrix factorization comprises:
accessing a third matrix resulting from the matrix factorization, wherein the third matrix comprises weights representing relationships between the second-level topics and the multiple words of the first-level topic; and
extracting, from a row corresponding to the second-level topic in the third matrix, additional words representing the second-level topic.

### Claim 6 (depends on 5)

The method of claim 5, wherein the second-level topic comprises a proper subset of the multiple words in the first-level topic.

### Claim 7 (depends on 3)

The method of claim 3, wherein assigning the document to the second-level topic comprises:
accessing a third matrix resulting from the matrix factorization, wherein the third matrix comprises weights representing relationships between the second-level topics and documents that are assigned to the first-level topic;
identifying a row of the third matrix corresponding to the document; and
determining that, in the row, a weight in a column corresponding to the second-level topic is greater than other weights in the row.

### Claim 8

A system comprising:
a memory component; and
a processing device coupled to the memory component, the processing device to perform operations comprising:
determining first-level topics in a topic hierarchy related to a corpus of documents, wherein a first-level topic of the first-level topics comprises multiple words;
clustering the multiple words into clusters based on word embeddings of the multiple words;
setting a count for the second-level topics equal to a count of the clusters;
subdividing the multiple words into second-level topics comprising subtopics of the first-level topic;
assigning a document of the corpus of documents to the first-level topic and to a second-level topic of the second-level topics;
receiving an indication of access by a user to the document; and
generating custom content for the user based on one or more other documents of the corpus of documents assigned to the first-level topic and the second-level topic.

### Claim 9 (depends on 8)

The system of claim 8, wherein clustering the multiple words into the clusters based on word embeddings of the multiple words comprises clustering the multiple words into clusters based on hyperbolic word embeddings of the multiple words.

### Claim 10 (depends on 9)

The system of claim 9, wherein subdividing the multiple words into second-level topics comprising subtopics of the first-level topic comprises:
computing a first matrix representing hierarchical relations between pairs of document words found in documents assigned to the first-level topic;
computing a second matrix based on statistical relations and semantic relations associated with (i) the document words found in the documents assigned to the first-level topic and (ii) the documents assigned to the first-level topic;
performing matrix factorization on a product of the second matrix and the first matrix; and
extracting the second-level topics from a result of the matrix factorization.

### Claim 11 (depends on 10)

The system of claim 10, wherein computing the first matrix representing hierarchical relations between the pairs of document words found in documents assigned to the first-level topic comprises determining hyperbolic distances between the pairs of document words.

### Claim 12 (depends on 10)

The system of claim 10, wherein extracting the second-level topics from the result of the matrix factorization comprises:
accessing a third matrix resulting from the matrix factorization, wherein the third matrix comprises weights representing relationships between the second-level topics and the multiple words of the first-level topic; and
extracting, from a row corresponding to the second-level topic in the third matrix, additional words representing the second-level topic.

### Claim 13 (depends on 12)

The system of claim 12, wherein the second-level topic comprises a proper subset of the multiple words in the first-level topic.

### Claim 14 (depends on 10)

The system of claim 10, wherein assigning the document to the second-level topic comprises:
accessing a third matrix resulting from the matrix factorization, wherein the third matrix comprises weights representing relationships between the second-level topics and documents that are assigned to the first-level topic;
identifying a row of the third matrix corresponding to the document; and
determining that, in the row, a weight in a column corresponding to the second-level topic is greater than other weights in the row.

### Claim 15

A non-transitory computer-readable medium storing executable instructions, which when executed by a processing device, cause the processing device to perform operations comprising:
determining first-level topics in a hierarchical topic model (HTM) related to a corpus of documents;
determining, based on hyperbolic word embeddings of words found in documents assigned to a first-level topic of the first-level topics, hierarchical relations between pairs of the words in the documents assigned to the first-level topic;
determining statistical relations between the words and the documents assigned to the first-level topic;
determining semantic relations between the pairs of the words in the documents assigned to the first-level topic;
defining second-level topics as subtopics of the first-level topic in the HTM, based on the hierarchical relations, the statistical relations, and the semantic relations; and
utilizing the HTM to provide custom content for users based on user access to documents in the corpus.

### Claim 16 (depends on 15)

The non-transitory computer-readable medium of claim 15, wherein the first-level topic comprises multiple topic words, and wherein defining the second-level topic as subtopics of the first-level topic comprises:
clustering the multiple topic words of the first-level topic into clusters based on hyperbolic word embeddings of the multiple topic words;
setting a count of the second-level topics equal to a count of the clusters; and
determining the second-level topics as subtopics of the first-level topic.

### Claim 17 (depends on 16)

The non-transitory computer-readable medium of claim 16, wherein determining the second-level topics as subtopics of the first-level topic comprises:
computing a first matrix as a product of a matrix for the statistical relations and another matrix for the semantic relations;
performing matrix factorization on a product of the first matrix and a second matrix for the hierarchical relations, wherein the matrix factorization is based on the count of the clusters; and
extracting the second-level topics from a result of the matrix factorization.

### Claim 18 (depends on 15)

The non-transitory computer-readable medium of claim 15, wherein determining the hierarchical relations between the pairs of the words in the documents assigned to the first-level topic comprises determining hyperbolic distances between the pairs of the words in the documents assigned to the first-level topic.

### Claim 19 (depends on 17)

The non-transitory computer-readable medium of claim 17, wherein extracting the second-level topics from the result of the matrix factorization comprises:
accessing a third matrix resulting from the matrix factorization, wherein the third matrix comprises weights representing relationships between the second-level topics and the multiple topic words of the first-level topic; and
extracting, from a row corresponding to the second-level topic in the third matrix, additional words representing the second-level topic.

### Claim 20 (depends on 17)

The non-transitory computer-readable medium of claim 17, wherein assigning the document to the second-level topic comprises:
accessing a third matrix resulting from the matrix factorization, wherein the third matrix comprises weights representing relationships between the second-level topics and documents that are assigned to the first-level topic;
identifying a row of the third matrix corresponding to the document; and
determining that, in the row, a weight in a column corresponding to the second-level topic is greater than other weights in the row.
