hottub.patents
US 12,488,253 B2#3378807 Most CitedActiveUnited States (USPTO)Utility

Neural network comprising matrix multiplication

0Forward Citations (#3378807 Global)
0.0/yrCitation Velocity (#3378807 Global)
0.00Citation PageRank (#3378807 Global)
14Prior Art Cited
8Structured Claims
0Drawings / Sheets

Abstract

A method and data processing system implement a neural network containing at least one matrix multiplication operation. The matrix multiplication operation is mapped to a graph of neural network operations including at least one transformation and at least one convolution. The at least one convolution is implemented in fixed-function hardware of a neural network accelerator.

Interactive Citation Constellation Global Citation Ranking

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

Claims (8)

  1. Claim 1Independent Claim

    A method of implementing, using a neural network accelerator comprising fixed-function hardware, a neural network comprising a plurality of layers, wherein at least one of the layers comprises a matrix multiplication operation defined in two or more dimensions between a first tensor X having dimensions [ . . . , P, . . . , Q, . . . ] and a second tensor Y having dimensions [ . . . , Q, . . . , R, . . . ], the method comprising: mapping the matrix multiplication operation to a graph of neural network operations including at least one transformation and at least one convolution operation; evaluating the graph of neural network operations to thereby evaluate the matrix multiplication operation, wherein the at least one convolution operation is evaluated in the fixed-function hardware; and implementing, in said fixed-function hardware, said neural network to include a matrix multiplication layer configured to perform a matrix multiplication operation in dependence on the evaluation of the

  2. Claim 2Depends on #1

    The method of claim 1, wherein: the first tensor X or a tensor derived from it is treated as input data for the at least one convolution operation, and the second tensor Y or a tensor derived from it is treated as coefficient data for the at least one convolution operation.

  3. Claim 3Depends on #1

    The method of claim 1, wherein the at least one transformation reconfigures the second tensor Y to arrange the dimension with size R in the output channel dimension before the at least one convolution operation is evaluated.

  4. Claim 4Depends on #1

    The method of claim 1, wherein the at least one transformation reconfigures both tensors to arrange the dimension with size Q in the input channel dimension before the at least one convolution operation is evaluated.

  5. Claim 5Depends on #1

    The method of claim 1, wherein the at least one transformation reconfigures the first tensor X to arrange the dimension with size P in a dimension that is traversed by the at least one convolution operation.

  6. Claim 6Depends on #1

    The method of claim 1, wherein the hardware is configured to evaluate the at least one convolution operation by processing in parallel several sets of one or more input data elements selected along a first dimension traversed by the convolution operation, and wherein the at least one transformation reconfigures the first tensor X to arrange the dimension with size P in the first dimension.

  7. Claim 7Depends on #1

    The method of claim 1, wherein: the first tensor X has dimensions [1, 1, P, Q] and the second tensor Y has dimensions [1, 1, Q, R]; the at least one transformation reconfigures the first tensor X to form a reconfigured first tensor having dimensions [1, Q, 1, P]; the at least one transformation reconfigures the second tensor Y to form a reconfigured second tensor having dimensions [R, Q, 1, 1]; and the reconfigured first tensor and reconfigured second tensor are input to the at least one convolution.

  8. Claim 8Depends on #1

    The method of claim 1, wherein: the first tensor X has dimensions [M, N, P, Q] and the second tensor Y has dimensions [M ′, N ′, Q, R], where B=(max (M, M ′) max (N,N ′)) > 1; the at least one transformation splits and/or replicates, and reconfigures, the first tensor X to form B reconfigured first tensors each having dimensions [1, Q, 1, P], wherein if M ′ > M=1 or N ′ > N=1 the at least one transformation comprises replicating the first tensor in the respective dimension, and if M ′ =M > 1 or N ′ =N > 1 the at least one transformation comprises splitting the first tensor in the respective dimension; the at least one transformation splits and/or replicates, and reconfigures, the second tensor Y to form B reconfigured second tensors having dimensions [R, Q, 1, 1], wherein if M > M ′ =1 or N > N ′ =1 the at least one transformation comprises replicating the second tensor in the respective dimension, and if M ′ =M > 1 or N ′ =N > 1 the at least one transformation comprises splitting the

Technical Overview & Description

BACKGROUND Matrix multiplications arise in a number of contexts in neural networks. A single matrix multiplication has the form Z=XY In this equation, X is a matrix having dimensions [P, Q] and Y is a matrix having dimensions [Q, R]. The output Z is a matrix having dimensions [P, R]. Treating the matrices as 4-D tensors, X has dimensions [1, 1, P, Q], Y has dimensions [1, 1, Q, R], and Z has dimensions [1, 1, P, R]. Throughout this document, “ NCHW ” notation is adopted for a data tensor, where N is the number of batches, C is the number of channels, H is the height, and W is the width. Likewise, “ OIHW ” notation is adopted for weights/coefficients, where O is the number of output channels, I is the number of input channels, H is the kernel height and W is the kernel width. The task of matrix multiplication can be generalised to batch matrix multiplication, which involves performing multiple matrix multiplications in the same operation. For batch matrix multiplication, the two leading dimensions of the 4-D tensors defined above are allowed to have sizes greater than one. Thus, the more general form is a tensor X with dimensions [M, N, P, Q], and a tensor Y with dimensions [M ′ , N ′ , Q, R]. This represents (max(M, M ′ ) max(N, N ′ )) respective multiplications, between matrices of size [P, Q] and [Q, R], performed in the same operation. If M and M ′ are both greater than 1, then they are equal to one another. Alternatively one or both of M and M ′ may be equal to 1. Likewise, if N and N ′ are both greater than 1, then they are equal to one another. Alternatively, one or both of N and N ′ may be equal to 1. When M=M ′ and N=N ′ , the matrices being multiplied are all different. When any one (or two or three) of M, N, M ′ and N ′ is equal (or are equal) to 1, broadcasting is performed over the relevant dimension (or dimensions) —

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 (14)

PatentTitleYearCitations

Non-Patent Literature (10)

  • Zhang et al;
  • “
  • Caffeine: Toward Uniformed Representation and Acceleration for Deep Convolutional Neural Networks
  • ”
  • ; IEEE Transactions on Computer Aided Design of Integrated Circuits and Systems; vol. 38; 2019; pp. 1-14.
  • Gibson et al;
  • “
  • Optimizing Grouped Convolutions on Edge Devices
  • ”
  • ; https://www.researchgate.net/figure/Standard-vs-grouped-convolutions-a-In-a-standard-convolution-S-each-filter-is_fig1_342242494; 14 pages.