Optical convolution accelerator and control method thereof
Through the time division multiplexing technology of the optical convolution accelerator, the micro-ring structure is used to realize the optical convolution operation, which solves the problem of insufficient scalability and flexibility of the existing optical matrix operation scheme, reduces the power consumption and complexity, and realizes Efficient matrix multiplication and convolution operations.
Patent Information
- Application Number
- CN202410481479.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-22
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-04-22
AI Technical Summary
Existing optical matrix computing solutions have a linear or square relationship between device size and computing matrix size, resulting in poor scalability, high power consumption, and the inability to quickly and flexibly implement matrices of any size, form, or value. operation, lack of flexibility, and the time division multiplexing scheme makes the design and manufacture of the integrator difficult.
An optical convolution accelerator is used, including a light source, an intensity modulator, a micro-ring modulator and a photodetector. The linear sequence of convolution kernel elements is modulated through time division multiplexing. The micro-ring structure is used to achieve the superposition of different symbol periods to complete the convolution. Product operation, realize vector dot multiplication operation of arbitrary length and extend to matrix multiplication, reducing the number of devices and power consumption.
It achieves high scalability and flexibility, reduces system complexity and power consumption, and can realize matrix multiplication and convolution operations of different scales through modulation rates and mapping methods without changing the device structure, significantly reducing the system cost. Latency and power consumption.
Smart Images

Figure CN118607604A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of optical computing technology, and in particular to an optical convolution accelerator and a control method thereof. Background Art
[0002] With the emergence of increasingly complex AI service scenarios such as autonomous driving, chatGPT, edge computing, or image processing, the demand for the computing power of neuromorphic hardware is also growing. However, as Moore's Law gradually fails, the expansion of computing power of electronic integrated circuits faces practical challenges due to the limitation of transistor density, the increase in energy consumption of data storage and movement, and the intensification of non-ideal effects such as transistor device leakage. In contrast, photonic devices and systems have unique advantages in the field of neuromorphic hardware that requires parallel computing and transmission of large amounts of data due to their simple structure, higher transmission rate, larger transmission bandwidth and parallelism. Under the same level of computing power, existing optical computing devices have orders of magnitude advantages in energy consumption and latency compared to AI chips in the digital field such as NVIDIA GPU. These advantages are sufficient to promote the development of photonic computing accelerators to meet the ever-increasing data needs at the hardware level. On this basis, by utilizing the optical chip manufacturing technology in integrated photonics and its compatibility with electronic circuits, we can obtain an optoelectronic hybrid computing architecture with high programmability and integrability. This is more conducive to realizing the integration of real-time computing in the optical domain in AI operations and traditional integrated circuits, thereby applying the advantages of optical computing to the current device manufacturing process and optimizing and innovating the existing architecture.
[0003] Since light is relatively poor at storage, nonlinearity and other functions, researchers mainly use light to accelerate logical operations, especially matrix operations of neural networks in neuromorphic hardware. In order to apply the advantages of light's high bandwidth and high reusability, researchers have proposed three optical matrix operations based on space division multiplexing, wavelength division multiplexing and time division multiplexing. Existing optical matrix operation schemes have the following problems: (1) The scale of the device required by the system is linear or even quadratic with the scale of the matrix to be operated, and the scalability is poor; in addition, the increase in the number of system devices increases the area occupied by the entire chip and greatly increases power consumption; (2) Different on-chip architectures are usually required for different types of matrices. Many schemes can only implement operations between a matrix of a fixed value and other matrices, and cannot quickly and flexibly implement any type of operations between matrices of any size, any form, and any value, lacking flexibility; (3) Many time division multiplexing schemes require various types of integrators (such as photodetectors) to integrate high-frequency signals in the time domain with high precision, which places high demands on the responsiveness and bandwidth of the integrator, greatly increasing the difficulty of its design and manufacturing. Summary of the invention
[0004] In view of this, in order to solve one of the above problems, an embodiment of the present invention aims to provide an optical convolution accelerator and a control method thereof, which can improve scalability and flexibility and reduce complexity and power consumption.
[0005] On the one hand, an embodiment of the present invention provides an optical convolution accelerator, including a light source, an intensity modulator, a micro-ring modulator and a photodetector; wherein:
[0006] The light source is used to generate an optical carrier signal;
[0007] The intensity modulator is used to modulate the optical carrier signal according to a first linear sequence in the time domain to obtain an optical intensity signal; the first linear sequence carries information to be processed;
[0008] The micro-ring modulator is used to modulate the light intensity signal by using the second linear sequence of convolution kernel elements in a time division multiplexing manner to obtain a modulated sub-signal, and to superimpose the modulated sub-signals of different code element periods by delay to obtain an output signal; the output signal carries the convolution operation result of the first linear sequence and the second linear sequence;
[0009] The photoelectric detector is used to detect the output signal.
[0010] Optionally, the micro-ring modulator includes a first 2×2 multimode interferometer, a first Mach-Zehnder electro-optic intensity modulator, a second 2×2 multimode interferometer and a micro-ring structure, wherein the first input end of the first 2×2 multimode interferometer is connected to the output end of the intensity modulator, the two output ends of the first 2×2 multimode interferometer are respectively connected to the two input ends of the first Mach-Zehnder electro-optic intensity modulator, the two output ends of the first Mach-Zehnder electro-optic intensity modulator are respectively connected to the two input ends of the second 2×2 multimode interferometer, the first output end of the second 2×2 multimode interferometer is connected to the photodetector, and the second output end of the second 2×2 multimode interferometer is connected to the second input end of the first 2×2 multimode interferometer through the micro-ring structure.
[0011] Optionally, the intensity modulator comprises a second Mach-Zehnder electro-optic intensity modulator.
[0012] On the other hand, an embodiment of the present invention provides a control method for an optical convolution accelerator, comprising:
[0013] Arranging the information to be processed into a first linear sequence in the time domain according to a processing order, and modulating an intensity modulator using the first linear sequence to obtain a light intensity signal;
[0014] Arrange the convolution kernel elements into a second linear sequence according to the execution order, modulate the micro-ring modulator in a time-division multiplexing manner to obtain a modulated sub-signal, and superimpose the modulated sub-signals of different symbol periods by delay control; when the modulation of the first linear sequence is completed, control the output of the superimposed modulated sub-signal, and control the photodetector to detect the output signal;
[0015] A convolution operation result is determined according to the output signal.
[0016] Optionally, the information to be processed includes image information, and arranging the information to be processed into a first linear sequence in the time domain according to a processing order specifically includes:
[0017] Convert image information into input matrix;
[0018] The input matrix is divided into blocks according to the size of the convolution kernel elements, and the elements in each block are arranged into a first linear sequence in the time domain according to the processing order.
[0019] Optionally, the delay is controlled by a micro-ring structure, and when the first linear sequence includes a type of information to be processed, the delay period of the micro-ring structure is the same as a symbol period.
[0020] Optionally, the delay is controlled by a micro-ring structure. When the first linear sequence includes N types of information to be processed, the delay period of the micro-ring structure includes N identical symbol periods, where N is a natural number greater than 1.
[0021] On the other hand, an embodiment of the present invention provides a control system of an optical convolution accelerator, including:
[0022] The first module is used to arrange the information to be processed into a first linear sequence in the time domain according to the processing order, and use the first linear sequence to modulate the intensity modulator to obtain a light intensity signal;
[0023] The second module is used to arrange the convolution kernel elements into a second linear sequence according to the execution order, and modulate the micro-ring modulator in a time-division multiplexing manner to obtain a modulated sub-signal, and superimpose the modulated sub-signals of different code element periods by delay control; when the modulation of the first linear sequence is completed, control the output of the superimposed modulated sub-signal, and control the photoelectric detector to detect the output signal;
[0024] The third module is used to determine the convolution operation result according to the output signal.
[0025] On the other hand, an embodiment of the present invention provides a control device for an optical convolution accelerator, comprising:
[0026] at least one processor;
[0027] at least one memory for storing at least one program;
[0028] When the at least one program is executed by the at least one processor, the at least one processor implements the above method.
[0029] On the other hand, an embodiment of the present invention provides a computer-readable storage medium, in which a program executable by a processor is stored. When the program executable by the processor is executed by the processor, it is used to perform the above method.
[0030] The implementation of the embodiments of the present invention includes the following beneficial effects:
[0031] (1) Since large-scale matrix operations can be completed with only a single device, and vector point multiplication operations of arbitrary lengths can be realized by adjusting the sequence length and the microring coupling rate, and can be extended to matrix multiplication, this device has higher scalability than the space-division multiplexing device array solution, where the number of devices increases quadratically with the scale of matrix operations.
[0032] (2) The device can implement matrix multiplication and convolution operations of different scales without changing the device structure and peripheral devices, only by changing the modulation rate of the data sequence and its mapping method. Its configuration flexibility is far better than other solutions.
[0033] (3) This scheme only uses time-division multiplexed data sequence input into the Mach-Zehnder modulator and micro-ring to implement matrix operations. It does not require the use of wavelength or spatial dimensions, which reduces the complexity of system equipment design and manufacturing, and also greatly reduces the power consumption and delay of the entire system. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 is a schematic diagram of the structure of an optical convolution accelerator provided by an embodiment of the present invention;
[0035] Figure 2 is a structural schematic diagram of a micro-ring modulator provided by an embodiment of the present invention;
[0036] Figure 3 It is a schematic flow chart of the steps of a control method of an optical convolution accelerator provided by an embodiment of the present invention;
[0037] Figure 4 is a calculation flow chart of an optical convolution accelerator provided by an embodiment of the present invention;
[0038] Figure 5 This is a graph of experimental results of extracting image edges using an optical convolution accelerator provided by an embodiment of the present invention;
[0039] Figure 6 is a flowchart of another operation of an optical convolution accelerator provided by an embodiment of the present invention;
[0040] Figure 7 is a structural block diagram of a control system of an optical convolution accelerator provided by an embodiment of the present invention;
[0041] Figure 8 It is a structural block diagram of a control device for an optical convolution accelerator provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0042] The present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. The step numbers in the following embodiments are only provided for the convenience of explanation and description, and the order between the steps is not limited in any way. The execution order of each step in the embodiment can be adaptively adjusted according to the understanding of those skilled in the art.
[0043] like Figure 1 As shown, an embodiment of the present invention provides an optical convolution accelerator, including a light source 1-1, an intensity modulator 1-2, a micro-ring modulator 1-3 and a photodetector 1-4; wherein,
[0044] Light source 1-1, used for generating an optical carrier signal;
[0045] Intensity modulator 1-2, used for modulating the optical carrier signal according to a first linear sequence in the time domain to obtain an optical intensity signal; the first linear sequence carries information to be processed;
[0046] The micro-ring modulator 1-3 is used to modulate the light intensity signal by the second linear sequence of the convolution kernel elements in a time-division multiplexing manner to obtain a modulated sub-signal, and to superimpose the modulated sub-signals of different code element periods by delay to obtain an output signal; the output signal carries the convolution operation result of the first linear sequence and the second linear sequence;
[0047] Photodetectors 1-4 are used to detect output signals.
[0048] Specifically, the light source 1 - 1 may be a distributed feedback laser, and the photodetector 1 - 4 may be a photodiode.
[0049] Optionally, see Figure 2The micro-ring modulator 1-3 includes a first 2×2 multimode interferometer 1-3-1, a first Mach-Zehnder electro-optic intensity modulator 1-3-2, a second 2×2 multimode interferometer 1-3-3 and a micro-ring structure 1-3-4. The first input terminal A of the first 2×2 multimode interferometer 1-3-1 is connected to the output terminal of the intensity modulator. The two output terminals of the first 2×2 multimode interferometer 1-3-1 are respectively connected to the two input terminals of the first Mach-Zehnder electro-optic intensity modulator 1-3-2. The two output terminals of the first Mach-Zehnder electro-optic intensity modulator 1-3-2 are respectively connected to the two input terminals of the second 2×2 multimode interferometer 1-3-3. The first output terminal C of the second 2×2 multimode interferometer 1-3-3 is connected to a photodetector. The second output terminal D of the second 2×2 multimode interferometer 1-3-3 is connected to the second input terminal B of the first 2×2 multimode interferometer through the micro-ring structure 1-3-4.
[0050] It should be noted that the micro-ring modulator can be integrated on a thin-film lithium niobate substrate.
[0051] Time-division multiplexed optical amplitude modulated input vector signal E in Input from input port A and input from port B are stored in the loop. r ′ Interleaving superposition is performed by the first 2×2 multimode interferometer:
[0052]
[0053] Among them, after the interleaving and superposition of the first 2×2 multimode interferometer, the light output of the upper arm output end E of the first 2×2 multimode interferometer is E up , the light output at the lower arm light output terminal F is E down , T represents the light intensity splitting ratio of the upper and lower arms of the first 2×2 multimode interferometer, i represents the complex imaginary part, and t represents time.
[0054] The other input vector (i.e., the second linear sequence, the vector weight signal in the weighted superposition) is input from the internal electrical signal input terminal of the structure in a push-pull mode in a manner that is aligned with the input vector signal timing and has the same symbol rate, and changes the optical path Δl of the two arms of the first Mach-Zehnder electro-optic intensity modulator by changing the refractive index of the lithium niobate film waveguide in opposite trends from two arms of unequal length. x , where l m is the length of the optical waveguide of the upper arm of the first Mach-Zehnder electro-optic intensity modulator, l m +Δl m is the length of the optical waveguide of the lower arm of the first Mach-Zehnder electro-optic intensity modulator, α is the attenuation rate of the light intensity with the waveguide length (m -1 ), n gis the refractive index of lithium niobate material, and λ is the current wavelength of light, thereby changing the phase of the optical signal in the two arms:
[0055]
[0056] The light output of the upper arm output terminal H after modulation by the 2×2 first Mach-Zehnder electro-optic intensity modulator is E ′ up , the light output at the lower arm output terminal M is E ′ down , the second 2×2 multimode interferometer interweaves and integrates the optical signals on the two arms of the first Mach-Zehnder electro-optic intensity modulator, so that the phase change of the optical signal can be converted into the change of light intensity by superimposing the opposite phases:
[0057]
[0058] Among them, after the interleaving and superposition of the second 2×2 multimode interferometer, the optical output signal of the output port C is E out , and the optical signal coupled into the microring from port D is E r .
[0059] After the input vector signal is modulated by the weight signal, a multiplication operation is completed. Then, the result is transmitted from the D port to the B port after the delay of the micro-ring structure, and is aligned in timing with the vector signal input from the A port in the next code element period for accumulation operation:
[0060]
[0061] The length is l r After the delay and attenuation of the micro-ring, the optical signal E representing the current calculation result r ′ In the next symbol period, it is output from port B. In order to achieve strict timing alignment, the symbol period T of the input signal B The micro-ring delay T s Must be strictly matched, from which the input signal symbol rate can be deduced (Note: the speed of light in vacuum is c at this time) as:
[0062]
[0063] Finally, when all input vector data are input into the micro-ring modulator structure, the energy stored in the micro-ring is the result of this vector dot multiplication operation. r With B port E r ′It keeps circulating in the loop, so after getting the calculation result, it is necessary to import the amplitude-encoded signal in the micro-loop into the output port, and use the photodiode to read the result of this calculation from the output port C for subsequent data processing.
[0064] Optionally, see Figure 1 , the intensity modulator includes a second Mach-Zehnder electro-optic intensity modulator.
[0065] Specifically, the second Mach-Zehnder electro-optic intensity modulator may be a commercially available Mach-Zehnder intensity modulator.
[0066] In a specific embodiment, after the optical signal is emitted from the distributed feedback laser, it is first modulated by the Mach-Zehnder intensity modulator to modulate the input vector data, and then modulated by the micro-ring modulator chip to modulate the weight vector data and the multiplication results of the two are superimposed. The final calculation result is output from the port and converted into an electrical signal by a photodiode, and then enters a digital computer for subsequent data processing.
[0067] See also Figure 3 , an embodiment of the present invention provides a control method for an optical convolution accelerator, comprising:
[0068] S100, arranging the information to be processed into a first linear sequence in the time domain according to a processing order, and modulating an intensity modulator using the first linear sequence to obtain a light intensity signal;
[0069] S200, arranging the convolution kernel elements into a second linear sequence according to the execution order, modulating the micro-ring modulator in a time-division multiplexing manner to obtain modulated sub-signals, and superimposing the modulated sub-signals of different symbol periods by delay control; when the modulation of the first linear sequence is completed, controlling the output of the superimposed modulated sub-signals, and controlling the photodetector to detect the output signal;
[0070] S300: Determine a convolution operation result according to an output signal.
[0071] Specifically, see Figure 4, the information to be processed that needs to be convolved is rearranged into a linear sequence in the time domain in a certain order. Subsequently, the linear sequence of electrical signals in the time domain is modulated onto an optical carrier through a Mach-Zehnder electro-optical intensity modulator to generate an optical intensity signal that encodes the matrix element information into optical amplitude information, and the optical intensity signal is input into the first input port in the micro-ring modulator structure. By loading the linear sequence of convolution kernel elements into the electrical signal input port of the micro-ring modulator structure in a time-division multiplexing manner, the values of the weight vector elements at the corresponding positions are modulated into the optical input signal in sequence within the same code element period through the Mach-Zehnder intensity modulator in the micro-ring modulator structure, thereby realizing the multiplication operation of the time series of the injected optical signal. Then, by using the internal modulator to adjust the micro-ring coupling rate in the micro-ring modulator, the feedback loop optical amplitude of the feedback port of the micro-ring in the micro-ring modulator structure is adjusted. After the multiplication operation is realized through the micro-ring delay, the optical signals of different code element periods are overlapped in time sequence, thereby realizing the accumulation operation in the micro-ring modulator structure in the optical domain. After completing the multiplication and addition operations of all elements of the input vector and the weight vector, the dot product result of the two vectors will be output from the output port.
[0072] In a specific embodiment, using Figure 1 After the structure in realizes matrix multiplication, it can be seen from formula (1) that, taking the 2×2 convolution kernel as an example, any two-dimensional convolution operation can be transformed into a multiplication operation between a matrix and a vector by rearranging the elements. Figure 4 In the example, the data is first converted into matrix multiplication by convolution operation according to the formula (1), and then input in the form of time-series linear sequence Figure 1 In the micro-ring modulator device, the convolution operation is realized, see formula (6).
[0073]
[0074] Optionally, the information to be processed includes image information, and arranging the information to be processed into a first linear sequence in the time domain according to a processing order specifically includes:
[0075] S110, converting image information into an input matrix;
[0076] S120, dividing the input matrix into blocks according to the size of the convolution kernel elements, and arranging the elements in each block into a first linear sequence in the time domain according to the processing order.
[0077] It should be noted that the size of the convolution kernel element is determined according to the actual application, and this embodiment does not make any specific restrictions. The processing order is determined according to the actual application, and this embodiment does not make any specific restrictions, such as from top to bottom, from left to right, etc.
[0078] Optionally, the delay is controlled by a micro-ring structure, and when the first linear sequence includes a type of information to be processed, the delay period of the micro-ring structure is the same as a symbol period.
[0079] In a specific embodiment, see Figure 5 , an image edge extraction experiment was conducted using a single on-chip thin-film lithium niobate micro-ring modulator to verify the convolution processing capability of the proposed scheme and to achieve the edge extraction operation of a black-and-white pixel image. The thin-film lithium niobate micro-ring modulator used in the experiment has a device area of 3.4mm×0.7mm and a bandwidth of more than 67GHz. In order to synchronize with the delay of the feedback loop in the micro-ring modulator, a data sequence with a bit rate of 18.35Gb / s was selected for demonstration. The experimental demonstration results are shown in Figure 2. Figure 5 As shown, the famous Lenna picture is taken and turned into a picture like Figure 5 The 33×33 pixel black and white image shown in (a) is used as the input matrix, and its grayscale is represented by integers from 0 to 255 after normalization. Figure 5 The 2×2 matrix in the central image is used as the convolution kernel. Since the photodiode at the receiving end of the experimental system only detects light intensity, the convolution kernel consisting of negative numbers is usually obtained by subtracting two convolution kernels containing only positive numbers. After convolution of the two, the 101 pixels with the highest absolute grayscale value in the convolution result in the experiment are extracted to represent the edge of the image. Figure 5 As shown in (c), the white pixels are the edge parts of the image extracted after calculation by the experimental system. Figure 5 (b) shows the white image edge portion extracted by a digital computer after the same operation as the experimental system. Figure 5 (d) shows the confusion matrix comparing the digital convolution results with the experimental convolution results. It can be seen that although the edge pixels only account for about 10% of all the pixels in the entire image, the experimental system can still accurately extract them. The coincidence rate between the edge pixels extracted by the experimental system and the digital computer is as high as 89%, proving the feasibility and accuracy of this optical convolution processing accelerator based on a monolithic thin-film lithium niobate microring modulator in image edge extraction.
[0080] Optionally, the delay is controlled by a micro-ring structure. When the first linear sequence includes N types of information to be processed, the delay period of the micro-ring structure includes N identical symbol periods, where N is a natural number greater than 1.
[0081] In a specific embodiment, the present invention also proposes a multi-bit parallel modulation scheme within the ring based on the convolution operation model of the micro-ring modulator. When only the modulation rate is increased and the number of devices and chip peripherals are not changed, the matrix operation module can be used to perform multiplication / convolution operations on multiple matrices at the same time, thereby increasing the calculation density and parallelism of the system. Taking the 2-bit parallel scheme within the ring as an example, using Figure 5 The flowchart of the parallel convolution operation of the 33*33 Lenna black and white pixel image in (a) is as follows Figure 6 As shown. Figure 4 The difference from the flowchart in is that the multi-bit parallel scheme in the ring no longer regards the entire micro-ring delay period as a symbol period, but instead adds multiple symbol periods to the micro-ring delay period, so that k different symbols are transmitted in the ring at the same time. Since in the micro-ring modulator structure, the micro-ring and the internal modulator will modulate once every k symbols, these k symbols are unrelated to each other, thus realizing parallel modulation. Figure 6 The blue and orange parts represent two sets of data in parallel in the ring. Since the modulation rate is twice the original 18.35Gb / s, they can be parallelized in the micro-ring without interfering with each other. Therefore, two convolution kernels can be used to extract the features of the Lenna image at the same time. The multi-bit parallel solution does not require the addition of additional peripheral devices, so Figure 6 System structure diagram of matrix operation module Figure 4 However, since this scheme requires the parallel storage and calculation of k code elements in the microloop, the modulation rate becomes k times the original, and the modulation data also needs to be Figure 6 The medium blue one is interleaved like the orange module, and the convolution results of the two convolution kernels appear alternately at the output port.
[0082] The embodiment of the present invention uses only a single device to accelerate the convolution operation in the optical domain. The processing time and processing error of a 33×33 Lenna black and white pixel image are compared with the standard convolution operation result calculated by a digital computer, as shown in Table 1. First, Table 1 uses the RMSE of the effective part (since negative pixels are invalid when drawing and extracting features, the effective part is the non-negative part of the result) of the convolution operation results obtained by the experimental system and the digital computer after the convolution kernel to represent the calculation error. The error of the convolution operation result of the optical matrix module is only 0.126, which shows that the optical matrix operation module in the embodiment of the present invention has good accuracy in the convolution operation. In addition, the processing time of the two for the Lenna image is compared. For the optical matrix operation module, it is necessary to complete (33-1)×(33-1)=1024 four-dimensional vector dot multiplication operations to complete the feature extraction of the Lenna image, where at least 4+1=5 code element cycles are required to complete each dot multiplication operation (the extra cycle is used to read the result and clear it). Since the convolution kernel has negative numbers, it is necessary to subtract the convolution results of two positive convolution kernels to obtain the final convolution result. Therefore, the processing time of the optical convolution layer with two convolution kernels for handwritten digital images is That is, it only takes 0.56μs to complete the feature extraction operation of the Lenna image. When the multi-bit parallel scheme is applied, the overall calculation time will be reduced exponentially with the number of parallel bits. Taking the 2-bit parallel scheme as an example, since two multiplication and addition operations can be performed at the same time, the processing time for the Lenna image is reduced to 1 / 2 of the original, that is, 0.28μs. The convolution operation in the digital computer is completed by the MATLAB program, and its processor is the Intel Core i9-10980 CPU. In order to reduce accidental errors, the same convolution kernel is used to perform a hundred convolution operations on the 33×33 pixel Lenna grayscale image, and the average processing time is taken, and the result is 51.575μs. It can be seen that the calculation speed of the convolution operation of the pixel image based on the optical matrix operation module in the embodiment of the present invention is nearly 100 times higher than that of the traditional digital computer. The advantages of high bandwidth and low latency of this optical convolution accelerator give it a wide range of application scenarios.
[0083] Table 1
[0084] Evaluation Criteria RMSE Processing time (μs) Digital Computer / 51.575 Optical matrix operation module 0.126 0.56 2-bit optical matrix operation module / 0.28
[0085] The implementation of the embodiments of the present invention includes the following beneficial effects:
[0086] (1) Since large-scale matrix operations can be completed with only a single device, and vector point multiplication operations of arbitrary lengths can be realized by adjusting the sequence length and the microring coupling rate, and can be extended to matrix multiplication, this device has higher scalability than the space-division multiplexing device array solution, where the number of devices increases quadratically with the scale of matrix operations.
[0087] (2) The device can implement matrix multiplication and convolution operations of different scales without changing the device structure and peripheral devices, only by changing the modulation rate of the data sequence and its mapping method. Its configuration flexibility is far better than other solutions.
[0088] (3) This scheme only uses time-division multiplexed data sequence input into the Mach-Zehnder modulator and micro-ring to implement matrix operations. It does not require the use of wavelength or spatial dimensions, which reduces the complexity of system equipment design and manufacturing, and also greatly reduces the power consumption and delay of the entire system.
[0089] See also Figure 7 , an embodiment of the present invention provides a control system of an optical convolution accelerator, including:
[0090] The first module is used to arrange the information to be processed into a first linear sequence in the time domain according to the processing order, and use the first linear sequence to modulate the intensity modulator to obtain a light intensity signal;
[0091] The second module is used to arrange the convolution kernel elements into a second linear sequence according to the execution order, and modulate the micro-ring modulator in a time-division multiplexing manner to obtain a modulated sub-signal, and superimpose the modulated sub-signals of different code element periods by delay control; when the modulation of the first linear sequence is completed, the output of the superimposed modulated sub-signal is controlled, and the photoelectric detector is controlled to detect the output signal;
[0092] The third module is used to determine the convolution operation result according to the output signal.
[0093] It can be seen that the contents of the above method embodiments are all applicable to the present system embodiments, the functions specifically implemented by the present system embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0094] See also Figure 8 , an embodiment of the present invention provides a control device for an optical convolution accelerator, comprising:
[0095] at least one processor;
[0096] at least one memory for storing at least one program;
[0097] When at least one program is executed by at least one processor, the at least one processor implements the above method.
[0098] Among them, the memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. The memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a remote memory remotely arranged relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0099] It can be seen that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0100] In addition, the embodiment of the present application also discloses a computer program product or a computer program, and the computer program product or the computer program is stored in a computer-readable storage medium. The processor of the computer device can read the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the computer device performs the above method. Similarly, the contents in the above method embodiment are all applicable to the storage medium embodiment, and the functions specifically implemented by the storage medium embodiment are the same as those in the above method embodiment, and the beneficial effects achieved are also the same as those achieved by the above method embodiment.
[0101] An embodiment of the present invention further provides a computer-readable storage medium, which stores a program executable by a processor. The program executable by the processor is used to implement the above method when executed by the processor.
[0102] It is understood that all or some steps and systems in the disclosed method above can be implemented as software, firmware, hardware and appropriate combinations thereof. Some physical components or all physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, and the computer-readable medium can include a computer storage medium (or a non-transitory medium) and a communication medium (or a temporary medium). As known to those of ordinary skill in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassette, magnetic tape, disk storage or other magnetic storage device, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0103] The above is a specific description of the preferred implementation of the present invention, but the invention is not limited to the embodiments. Those skilled in the art may make various equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of this application.
Claims
1. An optical convolution accelerator, characterized in that: It includes a light source, an intensity modulator, a micro-ring modulator and a photodetector; wherein, The light source is used to generate an optical carrier signal; The intensity modulator is used to modulate the optical carrier signal according to a first linear sequence in the time domain to obtain an optical intensity signal; the first linear sequence carries information to be processed; The micro-ring modulator is used to modulate the light intensity signal by using the second linear sequence of convolution kernel elements in a time division multiplexing manner to obtain a modulated sub-signal, and to superimpose the modulated sub-signals of different code element periods by delay to obtain an output signal; the output signal carries the convolution operation result of the first linear sequence and the second linear sequence; The photoelectric detector is used to detect the output signal.
2. The optical convolution accelerator according to claim 1, characterized in that: The micro-ring modulator comprises a first 2×2 multi-mode interferometer, a first Mach-Zehnder electro-optic intensity modulator, a second 2×2 multi-mode interferometer and a micro-ring structure, wherein a first input end of the first 2×2 multi-mode interferometer is connected to an output end of the intensity modulator, two output ends of the first 2×2 multi-mode interferometer are respectively connected to two input ends of the first Mach-Zehnder electro-optic intensity modulator, two output ends of the first Mach-Zehnder electro-optic intensity modulator are respectively connected to two input ends of the second 2×2 multi-mode interferometer, a first output end of the second 2×2 multi-mode interferometer is connected to the photodetector, and a second output end of the second 2×2 multi-mode interferometer is connected to a second input end of the first 2×2 multi-mode interferometer through the micro-ring structure.
3. The optical convolution accelerator according to claim 1, characterized in that: The intensity modulator comprises a second Mach-Zehnder electro-optic intensity modulator.
4. A control method for an optical convolution accelerator, characterized in that: include: Arranging the information to be processed into a first linear sequence in the time domain according to a processing order, and modulating an intensity modulator using the first linear sequence to obtain a light intensity signal; Arrange the convolution kernel elements into a second linear sequence according to the execution order, modulate the micro-ring modulator in a time-division multiplexing manner to obtain a modulated sub-signal, and superimpose the modulated sub-signals of different symbol periods by delay control; when the modulation of the first linear sequence is completed, control the output of the superimposed modulated sub-signal, and control the photodetector to detect the output signal; A convolution operation result is determined according to the output signal.
5. The control method according to claim 4, characterized in that: The information to be processed includes image information, and arranging the information to be processed into a first linear sequence in the time domain according to a processing order specifically includes: Convert image information into input matrix; The input matrix is divided into blocks according to the size of the convolution kernel elements, and the elements in each block are arranged into a first linear sequence in the time domain according to the processing order.
6. The control method according to claim 4, characterized in that: The delay is controlled by the micro-ring structure. When the first linear sequence includes a type of information to be processed, the delay period of the micro-ring structure is the same as a symbol period.
7. The control method according to claim 4, characterized in that: The delay is controlled by a micro-ring structure. When the first linear sequence includes N types of information to be processed, the delay period of the micro-ring structure includes N identical symbol periods, where N is a natural number greater than 1.
8. A control system for an optical convolution accelerator, characterized in that: include: The first module is used to arrange the information to be processed into a first linear sequence in the time domain according to the processing order, and use the first linear sequence to modulate the intensity modulator to obtain a light intensity signal; The second module is used to arrange the convolution kernel elements into a second linear sequence according to the execution order, and modulate the micro-ring modulator in a time-division multiplexing manner to obtain a modulated sub-signal, and superimpose the modulated sub-signals of different code element periods by delay control; when the modulation of the first linear sequence is completed, control the output of the superimposed modulated sub-signal, and control the photoelectric detector to detect the output signal; The third module is used to determine the convolution operation result according to the output signal.
9. A control device for an optical convolution accelerator, characterized in that: include: at least one processor; at least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements the method according to any one of claims 4 to 7.
10. A computer-readable storage medium storing a program executable by a processor, characterized in that: The processor-executable program is used to perform the method according to any one of claims 4 to 7 when executed by the processor.
Citation Information
Patent Citations
Photon matrix multiplication device and method for neural network
CN116484931A
High-performance multi-delay photoelectric feedback reserve pool parallel computing method and system
CN117829235A
Time-multiplexed photonic computer
US20240061316A1
Cited By
Multi-dimensional expandable matrix operation system and control method thereof
CN119882923A
