A method for realizing optical matrix operation module based on mathematical decomposition theory

Through the optical matrix operation method based on mathematical decomposition theory, the matrix is ​​decomposed into the form of basic units and diagonal matrix multiplication, and the matrix network is constructed using optical multi-port interferometers and Mach-Zehnder interferometers to solve large-size matrix matrix multiplication operations. difficult problem, realizing efficient matrix operation processing.

CN113761468BInactive Publication Date: 2024-10-01SHENZHEN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110807090.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-16
Publication Date
2024-10-01
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

When implementing large-size matrix-matrix multiplication operations, the existing technology is difficult to effectively deal with the harmful light distribution problem caused by the increase in matrix order, and the optical matrix-matrix multiplication technology is progressing slowly, and there is a lack of effective methods for direct matrix-to-matrix operations.

Method used

A method based on mathematical decomposition theory is used to decompose the real-valued matrix into the form of basic units and diagonal matrix multiplication, construct a matrix network through optical multi-port interferometers and Mach-Zehnder interferometers, and use singular value decomposition and optical amplifiers to implement matrix operations , design a network structure with minimum optical depth, combine the transmission characteristics of 3dB coupler, and construct a unitary matrix to implement matrix multiplication operation.

Benefits of technology

It realizes direct and effective matrix operation processing, avoids the essence of decomposing the matrix into multiplication and addition for calculation, simplifies the matrix operation process, and improves the efficiency of matrix operation and the parallelism of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113761468B_ABST
    Figure CN113761468B_ABST
Patent Text Reader

Abstract

The present invention is applicable to the field of improvement of neural network processing technology, and provides an optical matrix operation module implementation method based on mathematical decomposition theory, including: S1, decomposing a real-valued matrix into a form of multiplication of a series of basic units and a diagonal matrix, wherein the structural mathematical form of the basic unit is #imgabs0# S2, making any target element in the row m or n of the matrix zero or making any target element in the column m or n of the matrix zero according to the mathematical structural form of the basic unit; S3, until all non-diagonal elements are all zero, constructing a physically corresponding multi-port interferometer, and making T in the equation m,n The values ​​of θ and #imgabs1# in the matrix determine the values ​​of the beam splitter and phase shift that must be programmed to implement U; where m = n-1 and I is the identity matrix. This method can effectively and directly implement matrix operations through the designed network structure, connecting a series of network structures constructed by matrix decomposition to enable a series of matrices to be multiplied.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of optical matrix computing, and in particular to a method for realizing an optical matrix computing module based on mathematical decomposition theory. Background Art

[0002] In the field of modern science, many scientific problems can be converted into matrix operations for processing. Matrix operations can be used to solve Fourier transforms, linear equations, etc., and play an important role in image processing, radar detection, signal processing and other fields. After years of development and exploration, the current matrix operation method has roughly gone through the following stages:

[0003] The concept of optical matrix multiplication was first proposed by RA Heinz, JO Artman and AA Lee of Carnegie Mellon University in 1970, and the feasibility of using coherent optical correlation technology to implement matrix multiplication technology was mathematically proved. DP Jablonowski, RA Heinz and JO Artman conducted experimental simulation verification of this method in 1972. By using the Fourier transform characteristics of the lens and spatial filtering technology, the elements in the matrix are treated as a series of point arrays, and an output array can be obtained, whose amplitude is proportional to the required product matrix elements, thereby realizing matrix multiplication operations. However, as the matrix order increases, the number of harmful circular light distributions appearing at the detector position begins to increase rapidly, thereby reducing the light available at those positions corresponding to the product matrix element information. This shows that it is difficult to achieve large-scale matrix multiplication operations through coherent spatial filtering methods. [1]-[3] .

[0004] In 1978, JW Goodman of Stanford University in the United States first proposed the theoretical model of optical vector matrix multiplier, which uses light-emitting diodes to load input vectors, realizes the function of input matrix through a mask filter, and calculates the result of vector and matrix multiplication by recording the information obtained by photodetectors. [4] In 1987, Pochi Yeh and Arthur ETChiou proposed a new method for optical matrix-vector multiplication using four-wave mixing in a photorefractive medium. Using BaTiO3 crystals, this new method of matrix-vector multiplication was verified. [5] Based on this method, Zhu Weiwei, Zhang Lei and others eliminated the crosstalk between vector matrix multipliers (OVMM) optical modules by converting the wavefront shape of the light beam in 2013, and realized the multiplication operation between a vector of size 16 and a 16×16 matrix. However, this method is only a vector-matrix operation, and does not realize the function of matrix-matrix operation.

[0005] In 1889, Bell Labs proposed an optical interconnection pipeline structure[7] This structure can make full use of the inherent parallelism of light and greatly improve the parallel efficiency of the system. The system is composed of several logic gate arrays, which are interconnected by free space light beams. This structure is also the prototype of OVMM. In the same year, Eugene P. Mosca and others invented the acousto-optic vector matrix multiplier. [8] , capable of performing operations between 128×128 matrices and 128×1 vectors, with an operation speed of 8×105 times / second. However, this device can only perform discrete Fourier transforms, and the device size is relatively large, reaching tens of centimeters. [9] .

[0006] In 2004, Israel's Lenslet launched the first commercial vector light digital signal processor EnLight256TM

[10] -

[13] , which can realize 256-bit vector-matrix multiplication, is also a turning point in OVMM research. In fact, this invention did not have many breakthroughs in theory. It was only due to the improvement of the technological level at that time that it made the leap from theory to practice and brought optical computing into real life for the first time.

[0007] However, the main achievements so far are still limited to optical vector-matrix multiplication, and matrix operations are only processed by decomposing the matrix into vectors, or by decomposing the matrix operation into multiplication and addition.

[14] -

[16] Optical matrix-matrix multiplication technology has always been a difficult problem, with slow progress and few breakthroughs in this research at home and abroad.

[0008] Matrix operations involve a large number of scalar multiplication and addition operations. Although the parallelism of light can be used to handle matrix operations well, this method does not deviate from the essence of decomposing matrix operations into multiplication and addition to calculate matrix operations.

[0009] [1].R,A,Heinz,et al.Matrix Multiplication by Optical Methods[J].Applied Optics,1970.

[0010] [2].DP,Jablonowski,RA,et al.Matrix multiplication by opticalmethods:experimental verification.[J].Applied optics,1972.

[0011] [3]. Yin-Zhong Liang and HKLiu, "Optical matrix–matrix multiplicationmethod demonstrated by the use of a multifocus hololens," Optics Letters.9, 322-324, 1984.

[0012] [4].Fully parallel, high-speed incoherent optical method forperforming discrete Fourier transforms.[J].Optics Letters, 1978.

[0013] [5]. Yeh P, Chiou A. Optical matrix–vector multiplication through four-wave mixing in photorefractive media[J]. Optics Letters, 12(2):373,1987.

[0014] [6].Zhu W, Zhang L, Lu Y, et al. Design and experimental verification for optical module of optical vector-matrix multiplier[J]. Applied Optics, 2013, 52(18).

[0015] [7]. Yu Rongjin. Integrated optics and photonics[J]. Optoelectronics·Laser(Issue 2):162-165.

[0016] [8].Mosca EP, Griffin RD, Pursel FP, et al. Acoustooptical matrix-vector product processor: implementation issues [J]. Applied Optics, 1989, 28(18): 3843.

[0017] [9]. Zhang Rui, Yang Jiankun, Li Xiujian, et al. Progress in optical vector matrix multipliers[J]. Chinese Journal of Scientific Instruments, 2006, 27(0z1):960-962.

[0018]

[10] . Zhang Rui. Experimental study on optical vector-matrix multiplier[D]. National University of Defense Technology, 2006.

[0019]

[11] . Zhang Rui, Guo Wei, Li Miao, et al. An optical computing system for binary vector-matrix multiplication operations[J]. Computer Technology and Development, 2007, 017(010): 141-143.

[0020]

[12] .Caulfield HJ,Dolev S.Why future supercomputing requires optics[J].Nature Photonics,2010,4(5):261-263.

[0021]

[13] .Poustie A.Hybrid Integrated SOA-Based Devices for Optical SignalProcessing[C] / / International Conference on Photonics in Switching.IEEE,2006.

[0022]

[14] .Nakano H,Hotate K.Optical system for real-time processing of multiple matrix product[J].Electronics Letters,1985,21(10):435-437.

[0023]

[15] .Chen, Yansong.4f-type optical system for matrix multiplication[J].Optical Engineering, 1993, 32(1):77-79.

[0024]

[16] . Zhang Rui, Li Xiujian, Yang Jiankun, et al. A hybrid negative binary coded optical matrix multiplication system[J]. Optics and Optoelectronics, 2007, 5(3): 66-66.

[0025]

[17] .Clements WR,Humphreys PC,Metcalf BJ,et al.An Optimal Design for Universal Multiport Interferometers[J].Optica,2016,3(12). Summary of the invention

[0026] The purpose of the present invention is to provide an optical matrix operation module implementation method based on mathematical decomposition theory, aiming to solve the above-mentioned technical problems.

[0027] The present invention is implemented as follows: a method for realizing an optical matrix operation module based on mathematical decomposition theory, the method for realizing an optical matrix operation module based on mathematical decomposition theory comprises the following steps:

[0028] S1. Decompose the real-valued matrix into a series of basic units and diagonal matrix multiplications, where the structural mathematical form of the basic unit is

[0029] S2. Make any target element in the row m or n of the matrix zero or make any target element in the column m or n of the matrix zero according to the mathematical structure form of the basic unit;

[0030] S3, until all off-diagonal elements are zero, construct a physically corresponding multi-port interferometer, and make T in the equation m,n The matrix θ and The value determines the values ​​of the beam splitter and phase shift that must be programmed to achieve U;

[0031] Wherein, m=n-1, and I is the unit matrix.

[0032] A further technical solution of the present invention is: the step S1 further includes the following steps:

[0033] S1, the real-valued matrix is ​​decomposed into Where U is an m×m unitary matrix, is the complex conjugate of the unitary matrix V, ∑ is an m×n diagonal real-valued matrix, and is implemented by an optical amplifier.

[0034] A further technical solution of the present invention is: the optical matrix operation module implementation method based on mathematical decomposition theory constructs a matrix network through an optical phase shifter, a Mach-Zehnder interferometer and an optical amplifier to implement a matrix.

[0035] A further technical solution of the present invention is: the matrix network has the minimum optical depth by adopting William's network structure design, combined with the transmission characteristic matrix of the 3dB coupler, the transmission matrix form of the symmetrical structure Mach-Zehnder interferometer is: Where E′1, E′2 are the output light fields, E1, E2 are the input light fields, and θ1, θ2 are the changes in the light phase when the light passes through the two interference arms.

[0036] A further technical solution of the present invention is that the unitary matrix is ​​constructed by a series of basic U(2) matrix modules, each of which is a Mach-Zehnder interferometer, and the U(2) matrix is ​​expressed as Where e is the natural base, θ is the angle of the phase shifter in the module, is the angle of the phase shifter at the input port, and i is an imaginary unit.

[0037] A further technical solution of the present invention is: in the spatial mode, the U(2) matrix is ​​realized by a Mach-Zehnder interferometer, Among them, the mathematical representation of the Mach-Zehnder interferometer is The coupling coefficient of the coupler is 0.5, respectively, and is the phase shift of the Mach-Zehnder interferometer.

[0038] The beneficial effects of the present invention are as follows: the method is simple, and can effectively and directly implement matrix operation processing through the designed network structure, and a series of network structures constructed by decomposing the matrix are connected to enable a series of matrices to perform multiplication operations. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 It is a flow chart of a method for implementing an optical matrix operation module based on mathematical decomposition theory provided by an embodiment of the present invention.

[0040] Figure 2 is a schematic diagram of a 5×5 unitary matrix provided by an embodiment of the present invention.

[0041] Figure 3 It is a schematic diagram of a 3×4 real-valued matrix provided by an embodiment of the present invention.

[0042] Figure 4 It is a schematic diagram of a basic unit of a matrix provided by an embodiment of the present invention.

[0043] Figure 5 It is a schematic diagram of N matrix units directly connected according to an embodiment of the present invention.

[0044] Figure 6 It is a schematic diagram of N diagonally connected matrix units provided in an embodiment of the present invention.

[0045] Figure 7 It is a schematic diagram of N matrix units arranged in parallel provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0046] The universal multi-port interferometer is an optical network that performs arbitrary transformations on the input vector of the coherent light mode. The most important part of the device is the connection of the basic structural units and the setting of the parameters. In William's article, the author provides an idea of ​​decomposing the matrix. By using a mathematical decomposition method similar to Gaussian elimination, the elements in the matrix are empty. After the unitary matrix elimination is completed, the network construction is completed. However, there is no mathematical explanation and analysis of the connection of the structure. This section will provide a mathematical analysis of the connection of this structure.

[0047] The connection of the structure representing the two-dimensional matrix is ​​crucial to the structure of the multi-port interferometer proposed by William. In this section, we will derive the connection and placement of the basic units from mathematical theory. This provides a mathematical basis for the connection of matrix modules in the future, and then construct a module that can perform matrix operations based on this structure. From its simplified structure diagram, it can be seen that its network is a huge network composed of a series of two-dimensional matrices connected in series, diagonally, and in parallel. The structure of a two-dimensional matrix, such as Figure 4 As shown, the mathematical relationship between input and output is:

[0048]

[0049] The matrix operation represented by this structure is Figure 5 The structure,

[0050]

[0051] Among them, U1U2…U n By a series of 2*2 unitary matrices. Figure 6 The structure shown in FIG. 1 shows that each two-dimensional matrix module in the structure plays a role between n inputs and n outputs, as shown in the matrix operation expressed in the following formula:

[0052]

[0053] for Figure 7 The matrix structure placed in parallel in the network can perform corresponding matrix operations on a single 2×2 matrix. However, if such multiple parallel two-dimensional matrix modules are calculated according to the 2×2 matrix in a large network, the calculation results expressed are too complicated. Therefore, this paper focuses on Figure 4 A new representation method is proposed for the placement of the structure, as shown in formula (4):

[0054]

[0055] Based on this conclusion, the William network can be analyzed to clearly understand its network structure. And the output after any basic matrix unit can be calculated, and then verified with the measured output of the basic unit structure. Through this theoretical analysis, a certain structural arrangement and connection of two-dimensional matrix structure units can form a high-dimensional matrix structure.

[0056] An ideal, lossless multi-port interferometer between N channels for optical transformation can be described as E in the form of an N×N unitary matrix U acting on the electric field: out =UE in . High-dimensional U matrices can be realized by interconnecting networks of MZI interferometers. It has long been known that such networks can perform useful operations such as matrix multiplication, givens rotation, etc. The most popular approach to constructing a programmable mode matrix transformation from N inputs to N output modes decomposes the problem into a grid of 2×2 mode transformers consisting of SU(2) matrices. The U(2) matrix to which the SU(2) transformation is applied is expressed as

[0057]

[0058] The unitary matrix structure is constructed by a series of basic U(2) matrix modules, each of which is an MZI. We know that an N*N interferometer requires at least N(N-1) / 2 basic units. By adopting William's network structure design, it has the minimum optical depth. Combined with the transmission characteristic matrix of the 3dB coupler, the transmission matrix form of the symmetrical structure MZI is

[0059]

[0060] Where E′1, E′2 are the output light fields, E1, E2 are the input light fields, θ1, θ2 are the changes in the light phase when the light passes through the two interferometer arms. In the spatial mode, the U(2) matrix can be realized by MZI.

[0061]

[0062] The mathematical representation of MZI is is a coupler with a coupling coefficient of 0.5, and is the phase shift of MZI respectively. Based on this basic unit, through the theoretical derivation in the previous part of this article, each basic unit is connected to each other to construct a large-scale matrix operation network. We already know how to decompose a unitary matrix into a series of 2D matrix products. However, the existing articles do not explain the correspondence between the decomposed matrix module and the actual optical path. Here, this article represents a large-scale optical path by connecting the decomposed matrix with the actual optical path.

[0063] The real-valued matrix can be decomposed into Where U is an m×m unitary matrix, is the complex conjugate of the unitary matrix V. And ∑ is a diagonal real-valued matrix of m×n, which can be realized by an optical amplifier. Therefore, through singular value decomposition, any real-valued matrix can be decomposed into the form of multiplication of a unitary matrix and a diagonal matrix. It is theoretically proved that any unitary transformation can be realized by a spectrometer and a phase shifter. σ can be realized by an optical attenuator, or by using optical amplification materials such as semiconductors and dyes.

[0064] The basic unit in the matrix realization network is represented in the mathematical form of its structure:

[0065]

[0066] Where m = n-1, I is the unit matrix. m,n Corresponding to the lossless beam splitter between channels m and n, it can be realized by MZI in the matrix network.

[17] A decomposition method is proposed for analysis to calculate the value of the beam splitter element Tmn in the design. In order to realize a matrix network, the matrix is ​​first decomposed into a series of basic units and a diagonal matrix product, where T m,n U is to make any target element in row m or n of the matrix zero, or Make any target element in the matrix column m or n zero. After this operation, the modified matrix is ​​still called U until all non-diagonal elements are zero. Therefore, for any unitary matrix, it can be decomposed into the form of multiplication of the above formula. For the 5×5 unitary matrix U, at the end of the decomposition process, an expression is obtained:

[0067]

[0068] Where D is a diagonal matrix and the unitary matrix U can be expressed as:

[0069] U=D′T 3,4 T 4,5 T 1,2 T 2,3 T 3,4 T 4,5 T 1,2 T 2,3 T 3,4 T 1,2

[0070] By construction, the above formula physically corresponds to Figure 2 The multi-port interferometer shown in FIG. 1 and T in the equation m,n The matrix θ and The value determines the values ​​of the beam splitter and phase shift that must be programmed to achieve U.

[0071] This method is to construct a matrix network through optical phase shifters, Mach Zehnder interferometers (MZI), and optical amplifiers to realize a matrix. The figure below shows a 5×5 matrix.

[0072] pass Figure 3 The structure can avoid the method of decomposing the matrix into multiplication and addition for processing. Instead, the matrix network is set in advance according to the required matrix, and then the signal is input and the optical signal is measured to obtain the result of the matrix operation processing.

[0073] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for realizing an optical matrix operation module based on mathematical decomposition theory, characterized in that: The optical matrix operation module implementation method based on mathematical decomposition theory comprises the following steps: S1. Decompose the real-valued matrix into a series of basic units and diagonal matrix multiplications, where the structural mathematical form of the basic unit is S2. Make any target element in the matrix row m or n zero or make any target element in the matrix column m or n zero according to the mathematical structure form of the basic unit; S3, until all off-diagonal elements are zero, construct a physically corresponding multi-port interferometer, and make T in the equation m,n The matrix θ and The value determines the values ​​of the beam splitter and phase shift that must be programmed to achieve U; Where, m=n-1, I is the unit matrix; The step S1 also includes the following steps: S11, the real-valued matrix is ​​decomposed into Where U is an m×m unitary matrix, is the complex conjugate of the unitary matrix V, ∑ is an m×n diagonal real-valued matrix, which is realized by an optical amplifier; The optical matrix operation module realization method based on mathematical decomposition theory constructs a matrix network through an optical phase shifter, a Mach-Zehnder interferometer and an optical amplifier to realize a matrix; The matrix network has the minimum optical depth by adopting William's network structure design. Combined with the transmission characteristic matrix of the 3dB coupler, the transmission matrix form of the symmetrical Mach-Zehnder interferometer is: Among them, E′1 and E′2 are the output light fields, E1 and E2 are the input light fields, and θ1 and θ2 are the changes in the phase of light when the light passes through the two interference arms; The unitary matrix is ​​constructed from a series of basic U(2) matrix modules, each of which is a Mach-Zehnder interferometer. The U(2) matrix is ​​expressed as Where e is the natural base, θ is the angle of the phase shifter in the module, is the angle of the phase shifter at the input port, and i is an imaginary unit.

2. The method for realizing an optical matrix operation module based on mathematical decomposition theory according to claim 1, characterized in that: In the spatial mode, the U(2) matrix is ​​realized by a Mach-Zehnder interferometer, Among them, the mathematical matrix form represents a coupler with a coupling coefficient of 0.5 in the Mach-Zehnder interferometer, θ and represent the phase shift inside and outside the Mach-Zehnder interferometer, respectively.