Patents
US 12,547,872 B2#156010979 Most CitedActiveUnited States (USPTO)Utility

Machine learning model processing based on perplexity

0Forward Citations (#156010979 Global)
0.0/yrCitation Velocity (#156010979 Global)
0.00Citation PageRank (#156010979 Global)
2Prior Art Cited
18Claims (3 Indep. · 15 Dep.)
11Drawings / Sheets

Abstract

A method for operating a machine learning model is presented. The machine learning model includes a plurality of sequential transformer blocks. The method comprises receiving input data at a transformer block and processing the input data via a mixture of experts layer. At an auxiliary classifier, a measure of perplexity of the processed input data is determined. Based on the determined measure of perplexity, one or more experts in a downstream transformer block that will subsequently process the input data are indicated. Weight matrices are then fetched for the indicated one or more experts.

Interactive Citation Constellation Global Citation Ranking

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

Claims (18 — 3 Independent, 15 Dependent)

  1. Claim 1Independent Claim

    A method for operating a machine learning model including a plurality of sequential transformer blocks, comprising: receiving input data at a transformer block; processing at least a portion of the input data via a mixture of experts layer; at an auxiliary classifier, determining a measure of perplexity of the processed input data; based on the determined measure of perplexity, indicating one or more experts of a group of experts in a downstream transformer block that will subsequently process at least a portion of the processed input data; fetching sparsified weight matrices for the indicated one or more experts of the group of experts to generate one or more sparsified experts, wherein a level of sparsity for the sparsified weight matrices is based on the determined measure of perplexity; and further processing at least a portion of the processed input data via the one or more sparsified experts to generate a prediction.

  2. Claim 2Depends on #1

    The method of claim 1, wherein the downstream transformer block is a next transformer block.

  3. Claim 3Depends on #1

    The method of claim 1, further comprising: indicating that the processed input data is likely to bypass one or more transformer blocks of the plurality of sequential transformer blocks.

  4. Claim 4Depends on #1

    The method of claim 1, further comprising: performing a top k selection to select one of the one or more experts of the group of experts that will subsequently process the input data.

  5. Claim 5Depends on #1

    The method of claim 1, wherein the measure of perplexity is determined for a single input data shard.

  6. Claim 6Depends on #1

    The method of claim 1, wherein the measure of perplexity is determined for a group of input data shards.

  7. Claim 7Depends on #1

    The method of claim 1, wherein the measure of perplexity is a loss function.

  8. Claim 8Depends on #7

    The method of claim 7, wherein the loss function is a cross-entropy loss function.

  9. Claim 9Independent Claim

    A method for operating a machine learning model, comprising: at a mixture of experts layer, receiving input data comprising a plurality of input data shards; sorting the input data shards into batches based on common modalities; fetching sparsified weight matrices for one or more selected neural network experts of a group of neural network experts, to generate one or more sparsified selected neural network experts, the selected neural network experts trained in modalities represented in the batches; scheduling each batch for processing by one or more sparsified selected neural network experts trained in a relevant modality; and processing at least a portion of each batch via respective sparsified selected neural network experts to generate a prediction.

  10. Claim 10Depends on #9

    The method of claim 9, further comprising: maintaining the fetched sparsified weight matrices for each sparsified selected neural network expert at a node based on a relevant batch processing schedule.

  11. Claim 11Depends on #10

    The method of claim 10, further comprising: unloading the fetched sparsified weight matrices from the node following processing of a batch; and fetching sparsified weights for a different selected neural network expert to be loaded onto the node.

  12. Claim 12Depends on #9

    The method of claim 9, wherein scheduling each batch for processing by one or more sparsified selected neural network experts trained in a relevant modality is performed by a reinforcement learning agent.

  13. Claim 13Depends on #12

    The method of claim 12, wherein the reinforcement learning agent is trained in load-balancing.

  14. Claim 14Independent Claim

    A computing system, comprising: one or more processors; and a storage machine having instructions stored thereon executable by the one or more processors to instantiate a machine learning model, comprising: a plurality of sequential transformer blocks configured to receive input data, each transformer block comprising: a mixture of experts layer configured to process the input data; and an auxiliary classifier configured to determining a measure of perplexity of the processed input data; and wherein the one or more processors are configured to: based on the determined measure of perplexity, indicate one or more experts of a group of experts in a downstream transformer block that will subsequently process at least a portion of the processed input data; fetch sparsified weight matrices for the indicated one or more experts of the group of experts to generate one or more sparsified experts, wherein a level of sparsity for the sparsified weight matrices is based on the determined measure of perplexity; and further process at least a portion of the processed input data via the one or more sparsified experts to generate a prediction.

  15. Claim 15Depends on #14

    The computing system of claim 14, wherein the one or more processors are further configured to: indicate that the processed input data is likely to bypass one or more transformer blocks of the plurality of sequential transformer blocks.

  16. Claim 16Depends on #14

    The computing system of claim 14, wherein the measure of perplexity is determined for a group of input data shards.

  17. Claim 17Depends on #14

    The computing system of claim 14, wherein the measure of perplexity is a loss function.

  18. Claim 18Depends on #1

    The method of claim 1, wherein sparsified weight matrices fetched for experts indicated for processing processed input data with a low level of perplexity have a greater level of sparsity as compared to sparsified weight matrices fetched for experts indicated for processing processed input data with a high level of perplexity.

Technical Overview & Description

BACKGROUND Neural networks may be trained as components of machine learning models to perform tasks on input data. Such tasks may include image recognition, speech recognition, natural language processing, and other advanced functions. Mixture of experts techniques divide large tasks into subtasks, assign each subtask to an expert, then use gating models to decide which expert to use to process a given input. SUMMARY This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter. Furthermore, the claimed subject matter is not limited to implementations that solve any or all disadvantages noted in any part of this disclosure. A method for operating a machine learning model is presented. The machine learning model includes a plurality of sequential transformer blocks. The method comprises receiving input data at a transformer block and processing the input data via a mixture of experts layer. At an auxiliary classifier, a measure of perplexity of the processed input data is determined. Based on the determined measure of perplexity, one or more experts in a downstream transformer block that will subsequently process the input data are indicated. Weight matrices are then fetched for the indicated one or more experts. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 schematically shows an example machine learning model including one or more mixture of experts layers. FIG. 2 schematically shows an example of a dense neural network. FIG. 3 schematically shows an example of sparsified neural network. FIG. 4 schematically shows unstructured and balanced sparsity masks. FIG. 5 is a flow diagram for an example method of operating a machine learning model including one or more mixture of experts layers. FIG. 6 schematicall

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.

References Cited — Backward Prior Art (2)

Non-Patent Literature (10)

  • Shazeer et al.
  • “
  • Outrageously Large Neural Networks:The Sparsely-Gated Mixture-Of-Experts Layer
  • ”
  • dated Jan. 23, 2017 and retrieved from arXiv: 1701.06538v1 (Year: 2017).
  • Fedus, et al.,
  • “
  • Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsity
  • ”
  • , In Repository of arXiv:2101.03961v1, Jan. 11, 2021, 31 Pages.