Patents
US 12,468,632 B2#156085801 Most CitedActiveUnited States (USPTO)Utility

Method for embedding rows prefetching in recommendation models

0Forward Citations (#156085801 Global)
0.0/yrCitation Velocity (#156085801 Global)
0.00Citation PageRank (#156085801 Global)
5Prior Art Cited
20Claims (3 Indep. · 17 Dep.)
7Drawings / Sheets

Abstract

A system and method for efficiently accessing sparse data for a workload are described. In various implementations, a computing system includes an integrated circuit and a memory for storing tasks of a workload that includes sparse accesses of data items stored in one or more tables. The integrated circuit receives a user query, and generates a result based on multiple data items targeted by the user query. To reduce the latency of processing the workload even with sparse lookup operations performed on the one or more tables, a prefetch engine of the integrated circuit stores a subset of data items in prefetch data storage. The prefetch engine also determines which data items to store in the prefetch data storage based on one or more of a frequency of reuse, a distance or latency of access of a corresponding table of the one more tables, or other.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 5 · Forward citations: 0.

Claims (20 — 3 Independent, 17 Dependent)

  1. Claim 1Independent Claim

    An integrated circuit comprising: a prefetch engine comprising circuitry, wherein responsive to receipt of a user query that targets two or more data items, the circuitry is configured to: retrieve, from a prefetch data storage, a first group of one or more data items of the two or more data items, identified as being stored in the prefetch data storage; send the first group of data items to a data processing stage comprising processing circuitry, prior to sending remaining data items of the two or more data items; retrieve, from a data storage different from the prefetch data storage, a second group of one or more data items of the two or more data items, identified as not being stored in the prefetch data storage; and send the second group of data items to the data processing stage.

  2. Claim 2Depends on #1

    The integrated circuit as recited in claim 1, wherein each of the first group of data items is stored in a non-contiguous manner.

  3. Claim 3Depends on #1

    The integrated circuit as recited in claim 1, wherein the prefetch engine is further configured to reorder a priority of data processing of a list of a plurality of data item identifiers specifying data items targeted by a given user query, wherein reordering is based on access statistics of data items currently stored in the prefetch data storage.

  4. Claim 4Depends on #1

    The integrated circuit as recited in claim 1, wherein the prefetch engine is further configured to replace a first data item currently stored in the prefetch data storage with a second data item not stored in the prefetch data storage based on determining that a priority of the second data item is greater than a priority of the first data item.

  5. Claim 5Depends on #4

    The integrated circuit as recited in claim 4, wherein a priority of a given data item is based on a frequency of reuse of the given data item by a plurality of user queries.

  6. Claim 6Depends on #4

    The integrated circuit as recited in claim 4, wherein a priority of a given data item is based on an access latency of a corresponding one of a data storage area that stores the given data item.

  7. Claim 7Depends on #1

    The integrated circuit as recited in claim 1, wherein: data storage areas targeted by the user query are embedding tables configured to store embedding vectors used by a data model implementing a neural network; and each data item is an embedding vector.

  8. Claim 8Independent Claim

    A method comprising: responsive to receiving a user query that targets two or more data items: retrieving, from a prefetch data storage, a first group of one or more data items of the two or more data items, identified as being stored in the prefetch data storage; sending the first group of data items to a data processing stage comprising processing circuitry, prior to sending remaining data items of the two or more data items; retrieving, from a data storage different than the prefetch data storage, a second group of one or more data items of the two or more data items, identified as not being stored in the prefetch data storage; and sending the second group of data items to the data processing stage.

  9. Claim 9Depends on #8

    The method as recited in claim 8, wherein each of the first group of data items is stored in a non-contiguous manner.

  10. Claim 10Depends on #8

    The method as recited in claim 8, further comprising reordering a priority of data processing of a list of a plurality of data item identifiers specifying data items targeted by a given user query, wherein reordering is based on access statistics of data items currently stored in the prefetch data storage.

  11. Claim 11Depends on #8

    The method as recited in claim 8, further comprising replacing a first data item currently stored in the prefetch data storage with a second data item not stored in the prefetch data storage based on determining that a priority of the second data item is greater than a priority of the first data item.

  12. Claim 12Depends on #11

    The method as recited in claim 11, further comprising assigning a priority of a given data item based on a frequency of reuse of the given data item by a plurality of user queries.

  13. Claim 13Depends on #11

    The method as recited in claim 11, further comprising assigning a priority of a given data item based on an access latency of a data storage area that stores the given data item.

  14. Claim 14Depends on #8

    The method as recited in claim 8, wherein: data storage areas targeted by the user query are embedding tables configured to store embedding vectors used by a data model implementing a neural network; and each data item is an embedding vector.

  15. Claim 15Independent Claim

    A computing system comprising: a memory configured to store instructions of one or more tasks and source data to be processed by the one or more tasks; an integrated circuit configured to execute the instructions using the source data, wherein the integrated circuit comprises: a prefetch engine comprising circuitry, wherein responsive to receipt of a user query that targets two or more data items, the circuitry is configured to: retrieve, from a prefetch data storage, a first group of one or more data items of the two or more data items, identified as being stored in the prefetch data storage; send the first group of data items to a data processing stage comprising processing circuitry, prior to sending remaining data items of the two or more data items; retrieve, from a data storage different than the prefetch data storage, a second group of one or more data items of the two or more data items, identified as not being stored in the prefetch data storage; and send the second group of data items to the data processing stage.

  16. Claim 16Depends on #15

    The computing system as recited in claim 15, wherein each of the first group of data items is stored in a non-contiguous manner.

  17. Claim 17Depends on #15

    The computing system as recited in claim 15, wherein the prefetch engine is further configured to reorder a priority of data processing of a list of a plurality of data item identifiers specifying data items targeted by a given user query, wherein reordering is based on access statistics of data items currently stored in the prefetch data storage.

  18. Claim 18Depends on #15

    The computing system as recited in claim 15, wherein the prefetch engine is further configured to replace a first data item currently stored in the prefetch data storage with a second data item not stored in the prefetch data storage based on determining that a priority of the second data item is greater than a priority of the first data item.

  19. Claim 19Depends on #18

    The computing system as recited in claim 18, wherein a priority of a given data item is based on an access latency of a data storage area that stores the given data item.

  20. Claim 20Depends on #15

    The computing system as recited in claim 15, wherein: data storage areas targeted by the user query are embedding tables configured to store embedding vectors used by a data model implementing a neural network; and each data item is an embedding vector.

Technical Overview & Description

BACKGROUND Description of the Relevant Art Multilayer networks are used in a variety of applications in a variety of fields such as physics, chemistry, biology, engineering, social media, finance, and so on. Some of the applications that use multilayer networks are text recognition, image recognition, speech recognition, and recommendation systems. Multilayer networks classify data in order to provide an output value representing a prediction when given a set of inputs. The multilayer network uses multiple hidden layers of nodes (or neurons) between an input layer and an output layer of nodes. Each node has a specified activation function and a specified weight that is determined during training of the multilayer network. The nodes of the hidden layers, other than a last hidden layer, are not directly connected to the output layer. Typically, a set of inputs for the multilayer network is represented as an encoded vector or batch of encoded vectors. This set of inputs is then combined with weights of a first hidden layer. The combination can use matrix multiplication. However, in various applications, the encoded vector is very sparse with only a few bits of the vector indicating an asserted value versus a vast majority of the bits indicating a negated value. In one example, a binary digit (bit) value of 1 indicates an asserted value, and a bit value of 0 indicates a negated value. A text recognition application receives a phrase or a sentence that includes only a few words of a text vocabulary list of tens of thousands of words or hundreds of thousands of words. A single word is represented by a single entry of a logical table that includes tens or hundreds of thousands of entries, each entry representing a word of the vocabulary. For example, the word “ have ” can be encoded to be the 1,016 th word of a 200,000-word vocabulary. The encoded vector is large. Additionally, the resulting output of a matrix multiplication or other combining operation for the first hidde

Cited By — Indexed Forward Citations (0 of 0 total)

No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.

Non-Patent Literature (10)

  • Gupta et al.,
  • “
  • The Architectural Implications of Facebook's DNN-based Personalized Recommendation
  • ”
  • , International Symposium on High-Performance Computer Architecture, Feb. 15, 2020, 14 pages, https://arxiv.org/pdf/1906.03109.pdf. [Retrieved Jun. 2, 2022].
  • Hwang et al.,
  • “
  • Centaur: A Chiplet-based, Hybrid Sparse-Dense Accelerator for Personalized Recommendations
  • ”
  • , Proceedings of the 47th IEEE/ACM International Symposium on Computer Architecture, May 12, 2020, 14 pages, https://arxiv.org/pdf/2005.05968.pdf. [Retrieved Jun. 2, 2022].