Optical neural network device, chip and optical implementation method of neural network calculation

By using technologies such as modulation and dispersion modules in optical neural network devices, time domain separation and superposition of optical signals of different wavelengths are achieved, which solves the problems of low computing efficiency and high design complexity of traditional chips, and reduces the cost and functionality of optical chips. consumption, improving the computational efficiency of neural networks.

CN114565091BActive Publication Date: 2024-10-08WUHAN OPTICAL VALLEY INFORMATION OPTOELECTRONICS INNOVATION CENT CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210140961.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-16
Publication Date
2024-10-08
Estimated Expiration
2042-02-16

AI Technical Summary

Technical Problem

Traditional electrical chips have limited computational efficiency in neural network calculations, and optical chip design is highly complex, with high power consumption and cost, which limits the improvement of optical neural network calculation efficiency.

Method used

Using an optical neural network device including a first modulation module, a dispersion module, a splitting module, a second modulation module, an anti-dispersion module and a processing module, time domain separation and superposition of optical signals based on different wavelengths are performed to reduce the impact on fiber delay lines, The need for combiners and demultiplexers reduces design complexity and power consumption.

Benefits of technology

It effectively reduces the design complexity and power consumption of the optical neural network device, improves the computing efficiency, and reduces the cost of the optical chip.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114565091B_ABST
    Figure CN114565091B_ABST
Patent Text Reader

Abstract

The embodiments of the present application disclose an optical neural network device, a chip, and an optical implementation method of neural network calculation, wherein the device includes: a first modulation module, used to modulate an initial optical signal based on a first voltage to obtain a first optical signal; a dispersion module, used to separate N optical signals of different wavelengths in the first optical signal in the time domain based on a first delay to obtain a second optical signal; a light splitting module, used to separate the second optical signal into N third optical signals with equal power; a second modulation module, used to modulate the intensity of the N third optical signals respectively based on N first voltage sets to obtain N fourth optical signals; an anti-dispersion module, used to superimpose the fourth optical signals of different wavelengths in the time domain based on a second delay to obtain N fifth optical signals; and a processing module, used to adjust the N first voltages and the N first voltage sets based on the N fifth optical signals.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the fields of photonic integration and high-performance computing, and relate to but are not limited to an optical neural network device, a chip, and an optical implementation method of neural network computing. Background Art

[0002] Neural network computing is one of the main functions of artificial intelligence chips. Neural network computing requires a series of complex matrix multiplication operations to be completed quickly. Neural network computing can be implemented using electrical chips. However, traditional electrical chips have limited computing efficiency due to the influence of process nodes and material properties. Photonic integrated devices, especially silicon-based photonic integrated devices, have developed rapidly in recent years. Silicon-based photonic integrated devices have the advantages of high speed, strong anti-interference ability, high integration, and semiconductor process compatibility. By using the modulation, filtering, and beam splitting functions of optical integrated devices, high-efficiency photonic computing chips can be formed, which is expected to greatly improve the efficiency of neural network computing. In other words, the efficiency of neural network computing has been greatly improved when it is implemented using optical chips.

[0003] Optical chips mainly rely on fiber delay lines, combiners and splitters to separate and add signals of different wavelengths in the time domain. However, the installation of fiber delay lines, combiners and splitters will make the optical chip design more complex, power consumption and costly. Summary of the invention

[0004] In view of this, embodiments of the present application provide an optical neural network device, a chip, and an optical implementation method of neural network computing.

[0005] The technical solution of the embodiment of the present application is implemented as follows:

[0006] In a first aspect, an embodiment of the present application provides an optical neural network device, the device comprising:

[0007] a first modulation module, configured to modulate an initial optical signal based on a first voltage to obtain a first optical signal, wherein the first optical signal includes N parallel optical signals of different wavelengths, and an intensity of the first optical signal is obtained by adding different intensities corresponding to the optical signals of different wavelengths, where N is an integer greater than 1;

[0008] A dispersion module, configured to separate N optical signals of different wavelengths in the first optical signal in a time domain based on setting different first delays corresponding to optical signals of different wavelengths, to obtain a second optical signal, wherein the second optical signal is a serial optical signal including N different wavelengths;

[0009] An optical splitting module, used for splitting the second optical signal into N third optical signals with equal power;

[0010] A second modulation module, configured to modulate the intensity of the N third optical signals based on the input N first voltage sets, respectively, to obtain N fourth optical signals;

[0011] an anti-dispersion module, configured to superimpose the fourth optical signals of different wavelengths in the time domain based on setting different second delays corresponding to optical signals of different wavelengths, so as to obtain N fifth optical signals, wherein the first delay is different from the second delay;

[0012] A processing module is used to adjust N first voltages and N first voltage sets based on the N fifth optical signals.

[0013] In a second aspect, an embodiment of the present application provides an optical neural network chip, comprising the optical neural network device as claimed above.

[0014] In a third aspect, an embodiment of the present application provides an optical implementation method of neural network calculation, the method comprising:

[0015] The first modulation module of the optical neural network device modulates the initial optical signal based on the first voltage to obtain a first optical signal, wherein the first optical signal includes N parallel optical signals of different wavelengths, and the intensity of the first optical signal is obtained by adding different intensities corresponding to the optical signals of different wavelengths, where N is an integer greater than 1;

[0016] The dispersion module of the optical neural network device separates N optical signals of different wavelengths in the first optical signal in the time domain based on setting different first delays corresponding to optical signals of different wavelengths to obtain a second optical signal, wherein the second optical signal is a serial optical signal including N different wavelengths;

[0017] The optical splitting module of the optical neural network device splits the second optical signal into N third optical signals with equal power;

[0018] The second modulation module of the optical neural network device modulates the intensity of the N third optical signals based on the input N first voltage sets to obtain N fourth optical signals;

[0019] The anti-dispersion module of the optical neural network device superimposes the fourth optical signals of different wavelengths in the time domain based on setting different second delays corresponding to optical signals of different wavelengths to obtain N fifth optical signals, wherein the first delay is different from the second delay;

[0020] The processing module of the optical neural network device adjusts the N first voltages and the N first voltage sets based on the N fifth optical signals.

[0021] In the embodiment of the present application, the dispersion module is used to separate N optical signals of different wavelengths in the first optical signal in the time domain based on setting different first delays corresponding to optical signals of different wavelengths, so as to obtain a second optical signal, wherein the second optical signal is a serial optical signal including N different wavelengths; the anti-dispersion module is used to superimpose the fourth optical signals of different wavelengths in the time domain based on setting different second delays corresponding to optical signals of different wavelengths, so as to obtain N fifth optical signals, wherein the first delay is different from the second delay. In this way, the separation of signals of different wavelengths in the time domain can be achieved based on the dispersion module, and the addition of signals of different wavelengths in the time domain can be achieved based on the anti-dispersion module, thereby effectively reducing the design complexity, power consumption and cost of the optical neural network device. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 A structural diagram of an optical neural network device provided in an embodiment of the present application;

[0023] Figure 2A A structural diagram of a first modulation module provided in an embodiment of the present application;

[0024] Figure 2B A structural diagram of a processing module provided in an embodiment of the present application;

[0025] Figure 3 A structural diagram of an optical neural network device provided in an embodiment of the present application;

[0026] Figure 4 A schematic diagram of the implementation flow of an optical implementation method of neural network computing provided in an embodiment of the present application. DETAILED DESCRIPTION

[0027] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the specific technical solution of the embodiments of the present application will be further described in detail below in conjunction with the drawings in the embodiments of the present application. The following embodiments are used to illustrate the present application, but are not used to limit the scope of the present application.

[0028] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0029] In the following description, the terms "first\second\third" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.

[0030] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0031] Before further describing the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are explained. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations.

[0032] Wavelength Division Multiplexing (WDM): A technology that combines two or more optical carrier signals of different wavelengths (carrying various information) at the transmitting end through a multiplexer (MUX) and couples them to the same optical fiber of the optical line for transmission; at the receiving end, the optical carriers of various wavelengths are separated by a demultiplexer (DMUX), and then further processed by the optical receiver to restore the original signal. This technology of simultaneously transmitting two or more optical signals of different wavelengths in the same optical fiber is called wavelength division multiplexing.

[0033] Photodetector (PD) is used to convert light signals into electrical signals.

[0034] In various embodiments of the present application, the input values ​​of each neural network layer in the neural network are adjusted by adjusting the N first voltages, and the weight values ​​in the neural network are adjusted by adjusting the N first voltage sets. Since the optical signals of different wavelengths are separated in the time domain by using the dispersion module in the present application, and the optical signals of different wavelengths are superimposed in the time domain by using the anti-dispersion module, the optical neural network device provided by the present application effectively reduces the required optical fiber delay lines, combiners and demultiplexers, and thus when the optical neural network device provided by the present application is used to form an optical chip, the design complexity, power consumption and cost of the optical chip can be reduced.

[0035] Figure 1 The structure diagram of the optical neural network device of the embodiment of the present application is shown. The optical neural network device 100 of the embodiment of the present application includes: a first modulation module 110, a dispersion module 120, a light splitting module 130, a second modulation module 140, an anti-dispersion module 150 and a processing module 160; wherein,

[0036] A first modulation module 110 is configured to modulate an initial optical signal based on a first voltage to obtain a first optical signal, wherein the first optical signal includes N parallel optical signals of different wavelengths, and an intensity of the first optical signal is obtained by adding different intensities corresponding to the optical signals of different wavelengths, where N is an integer greater than 1;

[0037] A dispersion module 120, configured to separate N optical signals of different wavelengths in the first optical signal in a time domain based on setting different first delays corresponding to optical signals of different wavelengths, to obtain a second optical signal, wherein the second optical signal is a serial optical signal including N different wavelengths;

[0038] In some embodiments, the dispersion module includes a dispersion fiber and / or a dispersion grating.

[0039] Here, dispersion is the phenomenon that complex light is decomposed into monochromatic light to form a spectrum. Dispersion can be achieved by using instruments such as prisms or gratings that act as dispersion systems. For example, after complex light enters a prism, since the prism has different refractive indices for light of different frequencies, the propagation directions of various colored lights are deflected to different degrees, and thus they are dispersed when leaving the prism to form a spectrum.

[0040] Optical fiber is short for optical fiber, which is a fiber made of glass or plastic that can be used as a light transmission tool. The generation of optical fiber dispersion is based on two factors. One is that the optical signal entering the optical fiber is not monochromatic (the light emitted by the light source is not monochromatic or the modulated signal has a certain bandwidth); the other is the dispersion effect of the optical fiber on the optical signal. In the embodiment of the present application, the initial light source is a light source including different wavelengths, and optical fiber dispersion can be used to separate the light sources of different wavelengths in the time domain.

[0041] During implementation, the parameters of the dispersive optical fiber may be determined according to actual needs, so as to separate the N optical signals of different wavelengths in the first optical signal in the time domain by using the dispersive optical fiber.

[0042] A grating is an optical device composed of a large number of parallel slits of equal width and spacing, also known as a diffraction grating. It is an optical element that can use the principle of multi-slit diffraction to disperse light (decompose it into a spectrum).

[0043] During implementation, the parameters of the dispersion grating may be determined according to actual needs, so as to separate the N optical signals of different wavelengths in the first optical signal in the time domain by using the dispersion optical fiber.

[0044] For example, a dispersive optical fiber and / or a dispersive grating may be used to make the first delays generated by optical signals of different wavelengths 0, Δt, ..., (N-1)Δt, respectively, to generate a serial pulse optical signal. The implementation method may include: setting the delay of the first optical signal of the first optical signal as an initial value (such as 0), and based on the initial value, sequentially increasing the first delays of the other first optical signals of the N first optical signals according to a preset delay interval (Δt) (until the delay of the Nth first optical signal is (N-1)Δt), so that the delay interval of each optical signal of the N first optical signals is Δt.

[0045] An optical splitting module 130, configured to split the second optical signal into N third optical signals of equal power;

[0046] In the implementation process, the light splitting module 130 is a passive device and can be composed of an incident and an exit slit, a reflector, a multimode interferometer and a dispersion element.

[0047] The second modulation module 140 is used to modulate the intensity of the N third optical signals based on the input N first voltage sets, so as to obtain N fourth optical signals;

[0048] During the implementation, the input end of the second modulator module 140 is connected to the output end of the optical splitter module. Since the optical splitter divides the second optical signal into N third optical signals of equal power, each third optical signal needs to be input into the corresponding second modulation module, so there are N second modulation modules; the output end of each second modulator module 140 is connected to the corresponding anti-dispersion module 150. The second modulation module 140 is used to modulate the intensity of the N third optical signals output by the optical splitter module 130 according to the input N first voltage sets, so as to obtain N fourth optical signals. The N fourth optical signals here are serial pulse optical signals after intensity modulation.

[0049] During implementation, the second modulator module 140 may include an array formed by N modulators, and the N modulators can modulate the intensity of N third optical signals respectively; the second modulator module 140 may also include an integrated device that can directly modulate the intensity of N third optical signals.

[0050] In the implementation process, each modulator of the N modulators may specifically include: a lithium niobate electro-optic modulator, a polymer electro-optic modulator, a silicon-based electro-optic modulator, an electro-absorption modulator, an integrated electro-optic modulator or a spatial light modulator.

[0051] Here, the second modulator module 140 includes N voltage input ports, which are connected to the processing module 160, and the processing module 160 provides N dynamically changing first voltage sets to be applied to the N modulators of the second modulator module 140. It can be understood that by adjusting the voltage values ​​of the N first voltage sets, the weight values ​​in the neural network can be adjusted.

[0052] It can be understood that since the N-channel third optical signals can be regarded as a sequence of N-channel optical signals, it is necessary to apply a voltage sequence (i.e., a first voltage set) to each modulator included in the second modulation module. And under the action of the voltage sequence, modulation of multiple weight values ​​is achieved, so that when the number of weights is constant, the optical neural network device provided in the embodiment of the present application can reduce the number of required optical modulators. Here, the application interval of each voltage in the voltage sequence is related to the delay interval between each optical signal in the aforementioned N-channel first optical signals.

[0053] The anti-dispersion module 150 is used to superimpose the fourth optical signals of different wavelengths in the time domain to obtain N fifth optical signals based on setting different second delays corresponding to optical signals of different wavelengths, wherein the first delay is different from the second delay;

[0054] In some embodiments, the anti-dispersion module includes an anti-dispersion optical fiber and / or an anti-dispersion grating.

[0055] Here, the anti-dispersion fiber and the dispersion fiber are fibers with different parameters; the anti-dispersion grating and the dispersion grating are also gratings with different parameters.

[0056] During implementation, the parameters of the anti-dispersion optical fiber can be determined according to actual needs, so as to use the anti-dispersion optical fiber to superimpose each fourth optical signal in the time domain to obtain N fifth optical signals.

[0057] During implementation, the parameters of the anti-dispersion grating can be determined according to actual needs, so as to use the anti-dispersion optical fiber to superimpose each of the fourth optical signals in the time domain to obtain N fifth optical signals.

[0058] For example, the parameters of the anti-dispersion optical fiber and / or the anti-dispersion grating can be adjusted so that the second delays generated by the optical signals of different wavelengths in each fourth optical signal are (N-1)Δt, (N-2)Δt, ..., 0. Combined with the delay difference generated by the dispersion module, the optical signals of different wavelengths in each fourth optical signal can be superimposed in the time domain to obtain N fifth optical signals. Here, since the delays generated by different wavelengths are opposite to those of the dispersion module, it is possible to superimpose serial signals of different wavelengths in the time domain.

[0059] The processing module 160 is configured to adjust the N first voltages and the N first voltage sets based on the N fifth optical signals.

[0060] In the embodiment of the present application, the dispersion module is used to separate N optical signals of different wavelengths in the first optical signal in the time domain based on setting different first delays corresponding to optical signals of different wavelengths, so as to obtain a second optical signal, wherein the second optical signal is a serial optical signal including N different wavelengths; the anti-dispersion module is used to superimpose the fourth optical signals of different wavelengths in the time domain based on setting different second delays corresponding to optical signals of different wavelengths, so as to obtain N fifth optical signals, wherein the first delay is different from the second delay. In this way, the separation of signals of different wavelengths in the time domain can be achieved based on the dispersion module, and the addition of signals of different wavelengths in the time domain can be achieved based on the anti-dispersion module, thereby effectively reducing the design complexity, power consumption and cost of the optical neural network device.

[0061] In some embodiments, Figure 2A As shown, the first modulation module 110 includes:

[0062] The optical generation submodule 111 is used to generate N parallel initial optical signals of different wavelengths;

[0063] During implementation, the output end of the light generating submodule is connected to the input end of the first modulating submodule.

[0064] The optical generation submodule 111 can generate N optical signals of different wavelengths. Optical signals of different wavelengths can be used to carry information of the set to be tested.

[0065] In practical applications, the light generating submodule 111 may include an array formed by N lasers, which can generate and output single-frequency continuous light of N different wavelengths; the light generating submodule 111 may also include an integrated device that can directly generate and output N optical signals of different wavelengths.

[0066] In some embodiments, the optical generation submodule 111 includes: an optical frequency comb for generating an initial optical signal including N wavelengths; and a wavelength splitter for splitting the initial optical signal including N wavelengths into N parallel initial optical signals with different wavelengths.

[0067] Here, optical frequency comb is referred to as optical frequency comb for short. It consists of a series of discrete, equally spaced regular optical pulse sequences, which can provide several to dozens of different frequency components in a frequency band at the same time. Its advantages are that it has a large number of comb lines, a wide frequency range, and a fixed frequency interval. It can replace multiple lasers and is an ideal multi-carrier light source.

[0068] During the implementation process, the output end of the optical frequency comb is connected to the input end of the splitter, and an initial optical signal including N wavelengths can be generated based on the optical frequency comb, and then N parallel initial optical signals with different wavelengths can be effectively obtained through the splitter.

[0069] A first modulation submodule 112 is used to modulate the intensity of each of the parallel initial optical signals based on the input N first voltages to obtain N initial optical signals with different intensities;

[0070] The input end of the first modulation submodule 112 is connected to the output end of the optical generation submodule, and the output end of the first modulation submodule is connected to the combining submodule. The first modulation submodule 112 can be used to modulate the intensity of the N optical signals of different wavelengths output by the optical generation submodule according to the input N first voltages, so as to obtain N initial optical signals of different intensities. The N initial optical signals here are parallel optical signals.

[0071] In some embodiments, the first modulation submodule 112 may include an array formed by N modulators, and the N modulators can modulate the intensity of N optical signals of different wavelengths respectively; the first modulation submodule may also include an integrated device that can directly modulate the intensity of N optical signals of different wavelengths. In the implementation process, each of the N modulators may specifically include: a lithium niobate electro-optic modulator, a polymer electro-optic modulator, a silicon-based electro-optic modulator, an electro-absorption modulator, an integrated electro-optic modulator, or a spatial light modulator.

[0072] In the implementation process, the first modulation submodule 112 includes N voltage input ports, which are connected to the processing module, and the processing module provides N dynamically changing first voltages, which are applied to the N modulators of the first modulation submodule respectively. It can be understood that by adjusting the values ​​of the N first voltages, the input values ​​of each neural network layer in the neural network can be adjusted.

[0073] The combining submodule 113 is configured to combine the N initial optical signals of different intensities into the first optical signal.

[0074] Here, the input end of the combiner module 113 is connected to the output end of the first modulation module, and the output end of the combiner module is connected to the input end of the dispersion module. The combiner module 113 can be used to combine N initial optical signals of different intensities into a parallel first optical signal including N different wavelengths.

[0075] In the embodiment of the present application, the first modulation module includes: an optical generation submodule, which is used to generate N parallel initial optical signals of different wavelengths; a first modulation submodule, which is used to modulate the intensity of each of the parallel initial optical signals based on the input N first voltages, to obtain N initial optical signals of different intensities; a combining submodule, which is used to combine the N initial optical signals of different intensities into the first optical signal. Based on the first modulation submodule, the intensity of each parallel initial optical signal can be adjusted; using the combining submodule, the first optical signal can be effectively obtained.

[0076] In the embodiment of the present application, the optical generation submodule includes: an optical frequency comb, which is used to generate an initial optical signal including N wavelengths; and a wavelength splitter, which is used to split the initial optical signal including N wavelengths into N parallel initial optical signals of different wavelengths. In this way, N parallel initial optical signals of different wavelengths can be effectively obtained.

[0077] In some embodiments, Figure 2B As shown, the processing module 160 includes:

[0078] The nonlinear submodule 161 is used to perform nonlinear processing on each of the N fifth optical signals to obtain N fifth optical signals that have undergone nonlinear processing;

[0079] The photoelectric detection submodule 162 is used to convert the N channels of fifth optical signals that have completed the nonlinear processing into N channels of electrical signals;

[0080] In the implementation process, the input end of the photodetection submodule 162 is connected to the output end of the nonlinear submodule 161, and is used to convert the N nonlinearly processed fifth optical signals into N electrical signals; and the output end of the photodetection submodule 162 is connected to the input end of the normalization submodule 163. The photodetection submodule 162 may include N photodetectors, and the N photodetectors are used to measure the intensity of each of the N fifth optical signals.

[0081] In some embodiments, the photodetection module 162 can detect the light power incident on its surface and convert the change of the light power into a corresponding current, that is, the photodetection module 162 sends N electrical signals carrying the light intensity of the light signal to the normalization submodule 163. In practical applications, the photodetection module may include a PIN tube or an APD tube.

[0082] The normalization submodule 163 is used to perform normalization processing on the N electrical signals, and use the normalized N results as the values ​​of the N first voltages; generate N first voltages, and apply them to the modulation submodule;

[0083] During implementation, the input end of the normalization submodule 163 is connected to the output end of the photoelectric detection module 162, and the output end of the normalization submodule 163 is connected to the input end of the processing submodule 164. The normalization module 163 is used to normalize the N electrical signals, and use the N results of the normalization as the values ​​of the N first voltages; generate N first voltages, and apply them to the first modulation submodule 112. It can be understood that there is a difference between the voltage value corresponding to the light intensity measured by the photoelectric detection module and the relationship between the voltage and the light intensity in the first modulation submodule 112, so the intervention of the normalization module is required. Here, the value of the first voltage is connected to the first modulation submodule 112 in a feedback manner, which can be understood by analogy as the output port of the previous convolution layer in the neural network is connected to the input port of the next convolution layer.

[0084] The processing submodule 164 is used to determine the value of each voltage in the N first voltage sets based on the N results of the normalization processing; generate N first voltage sets, and apply them to the modulation module.

[0085] The input end of the processing submodule 164 is connected to the output end of the normalization module 163, and the output end of the processing submodule 164 is connected to the second modulation module 150. The processing submodule 164 is used to determine the value of each voltage in the N first voltage sets based on the N-way results of the normalization processing; generate N first voltage sets, and apply them to the second modulation module 150. Here, the value of each voltage in the first voltage set is connected to the second modulation module 150 in a feedback manner, and the cyclic adjustment of the value of each voltage in the first voltage set can be understood by analogy as the cyclic adjustment of the weight value of each data to be convolutionally calculated in the neural network.

[0086] In some embodiments, the processor submodule 164 is used to compare the N-channel results of the normalization processing with a first data set; the first data set represents the training set corresponding to the information carried by the N-channel optical signals of different wavelengths; according to the comparison result, and in combination with the gradient descent algorithm, the value of each voltage in the N first voltage sets is adjusted. Here, the information carried by the N-channel optical signals of different wavelengths can correspond to the test set of the neural network, and the training set corresponding to the test set is stored in the storage unit of the processing submodule 164. In practical applications, the N-channel results of the normalization processing are compared with the first data set, and in combination with algorithms such as gradient descent, the value of each voltage in the N first voltage sets is continuously adjusted until the optimal solution for the weight value is obtained. Here, the idea of ​​the gradient descent method is to solve the minimum value along the direction of gradient descent.

[0087] In the implementation process, the processing submodule 164 includes a specific integrated circuit application (ASIC).

[0088] In an embodiment of the present application, the input values ​​of each neural network layer in the neural network are adjusted by adjusting N first voltages, and the weight values ​​in the neural network are adjusted by adjusting N first voltage sets.

[0089] The following will describe the embodiment of the present application in more detail in conjunction with specific application scenarios. Figure 3 As shown, the optical neural network device 100 includes a first modulation module 110, a dispersion module 120, a light splitting module 130, a second modulation module 140, an anti-dispersion module 150 and a processing module 160, wherein:

[0090] The first modulation module 110 includes an optical generation submodule 111 (optical frequency comb, wavelength splitter), a first modulation submodule 112, namely n modulators (modulator 1, modulator 2, ..., modulator n) and a combining submodule 113 (wave combiner);

[0091] The light splitting module 130 is a light splitter;

[0092] The second modulation module 140, namely n modulators (modulator W1, modulator W2, ..., modulator Wn);

[0093] The processing module 160 includes: a nonlinear submodule 161, i.e., n nonlinear units (nonlinear unit 1, nonlinear unit 2, ..., nonlinear unit n); a photoelectric detection submodule 162, i.e., n photodetectors (photoelectric detector 1, photoelectric detector 2, ..., photoelectric detector n); n normalization submodules 163, i.e., n conversion chips (conversion chip 1, conversion chip 2, ..., conversion chip n); and a processing submodule 162, i.e., a dedicated processor chip ASIC.

[0094] The dispersion module (dispersion element) 120 can be used to separate different inputs in the time domain;

[0095] The anti-dispersion module (anti-dispersion element) 160 can be used to implement the addition of different inputs in the time domain.

[0096] The specific implementation principle of the optical neural network device is as follows:

[0097] The optical frequency comb is used to generate a multi-wavelength light source with n wavelengths in the frequency domain, and the wavelengths are λ1, λ2, ..., λ n, the multi-wavelength light source is connected to a wavelength divider (DMUX0) to divide the input signal into λ1, λ2, ..., λ n Each optical signal is connected to a first modulation submodule 112, that is, the n parallel optical signals are connected to n modulators (modulator 1, modulator 2, ..., modulator n) respectively, and the n parallel optical signals are modulated to generate parallel pulse optical signals X1, X2, ..., X3 with different intensities. n .

[0098] Finally, the light is combined by the combiner (MUX0) 113 to generate a pulse light signal with an intensity of (X1+X2+...+Xn).

[0099] The pulse optical signal sequence passes through the dispersion element 120, and different delays are generated due to different wavelengths, and λ1, λ2, ..., λ n The multi-wavelength pulse signals are separated in the time domain to generate a serial pulse optical signal sequence (X1, X2, ..., X n ). Then, the optical splitter 130 divides the optical signal into n channels with equal power, and each channel is connected to a second modulation module 140, that is, n channels are connected to n modulators (modulator W1, modulator W2, ..., modulator Wn) in turn, and each modulator modulates the serial pulse optical signal (X1, X2, ..., Xn) in turn. n ) / n for intensity modulation, and the modulation weights are (W11, W12, …, W1n), (W21, W22, …, W2n), …, (Wn1, Wn2, …, Wnn), and so on.

[0100] The W1 modulator generates (W11·X1, W12·X2, ..., W1n·X n ) / n serial pulse optical signal, generated by Wn modulator (Wn1·X1, Wn2·X2, ..., Wnn·X n ) / n serial pulse optical signal, and so on.

[0101] Each of the n modulators (modulator W1, modulator W2, ..., modulator Wn) is connected to an anti-dispersion element 150, and the delay caused by the different wavelengths is opposite to that of the dispersion element, so that the serial signals of different wavelengths are added again, and the output intensities are respectively (W11·X1+W12·X2+...W1n·X n ) / n,…, (Wn1·X1+Wn2·X2+…Wnn·X n ) / n pulse optical signals to generate a total of n parallel optical signals.

[0102] The signal output by each anti-dispersion unit is connected to a nonlinear submodule 161, that is, n parallel optical signals are connected to n nonlinear units (nonlinear unit 1, nonlinear unit 2, ..., nonlinear unit n) to generate F ((W11·X1+W12·X2+ ... W1n·X n ) / n),...,F((Wn1·X1+Wn2·X2+...Wnn·X n ) / n), where F is the nonlinear transformation function required by the neural network. The n-way parallel optical signals are converted into parallel electrical signals through the photoelectric detection submodule 162, i.e., n photodetectors (photodetector 1, photodetector 2, ..., photodetector n). The parallel electrical signals enter the n normalization submodules 163, i.e., n conversion chips (conversion chip 1, conversion chip 2, ..., conversion chip n). After normalization, the control voltage is sent to each of the n modulators (modulator W1, modulator W2, ..., modulator Wn) to generate new X1, X2, ..., X n Parallel optical signal. At the same time, the processing submodule 162, i.e., the dedicated processor chip (ASIC), adjusts the voltages loaded on the n modulators (modulator W1, modulator W2, ..., modulator Wn) according to the comparison results of the input parallel electrical signals and the learning data, and updates the modulation weights (W11, W12, ..., W1n), (W21, W22, ..., W2n), ..., (Wn1, Wn2, ..., Wnn).

[0103] The above process is repeated until the comparison result between the parallel electrical signal input into the processor chip and the learning data meets the application requirements.

[0104] The embodiment of the present application also provides an optical neural network chip, and the optical neural network chip includes: the optical neural network device 100 provided in the embodiment of the present application.

[0105] The optical neural network structure used in the optical neural network chip provided in the above embodiment belongs to the same concept as the optical neural network device embodiment. The specific implementation process is detailed in the device embodiment and will not be repeated here.

[0106] The embodiment of the present application provides an optical implementation method of neural network calculation. Figure 4 Schematic diagram of the implementation process of the optical implementation method of the neural network calculation in the embodiment of the present application. Figure 4 As shown, the method comprises the following steps:

[0107] Step S410: The first modulation module of the optical neural network device modulates the initial optical signal based on the first voltage to obtain a first optical signal, wherein the first optical signal includes N parallel optical signals of different wavelengths, and the intensity of the first optical signal is obtained by adding different intensities corresponding to the optical signals of different wavelengths, where N is an integer greater than 1.

[0108] Step S420: the dispersion module of the optical neural network device separates N optical signals of different wavelengths in the first optical signal in the time domain based on setting different first delays corresponding to optical signals of different wavelengths, to obtain a second optical signal, where the second optical signal is a serial optical signal including N different wavelengths;

[0109] Step S430: the optical splitting module of the optical neural network device splits the second optical signal into N third optical signals with equal power;

[0110] Step S440: The second modulation module of the optical neural network device modulates the intensity of the N third optical signals based on the input N first voltage sets to obtain N fourth optical signals;

[0111] Step S450: the anti-dispersion module of the optical neural network device superimposes the fourth optical signals of different wavelengths in the time domain based on setting different second delays corresponding to optical signals of different wavelengths to obtain N fifth optical signals, wherein the first delay is different from the second delay;

[0112] Step S460: The processing module of the optical neural network device adjusts the N first voltages and the N first voltage sets based on the N fifth optical signals.

[0113] In some embodiments, the dispersion module includes a dispersion optical fiber and / or a dispersion grating; and the anti-dispersion module includes an anti-dispersion optical fiber and an anti-dispersion grating.

[0114] In the embodiment of the present application, the dispersion module separates N optical signals of different wavelengths in the first optical signal in the time domain based on setting different first delays corresponding to optical signals of different wavelengths, and obtains a second optical signal, wherein the second optical signal is a serial optical signal including N different wavelengths; the anti-dispersion module superimposes each fourth optical signal in the time domain based on setting different second delays corresponding to optical signals of different wavelengths, and obtains N fifth optical signals, wherein the first delay is different from the second delay. In this way, the separation of signals of different wavelengths in the time domain can be achieved based on the dispersion module, and the addition of signals of different wavelengths in the time domain can be achieved based on the anti-dispersion module, thereby effectively reducing the design complexity, power consumption and cost of the optical neural network device.

[0115] In some embodiments, the above step S410 “the first modulation module of the optical neural network device modulates the initial optical signal based on the first voltage to obtain the first optical signal” includes the following steps:

[0116] Step 411: The optical generation submodule of the first modulation module generates N parallel initial optical signals of different wavelengths;

[0117] Step 412: The first modulation submodule of the first modulation module modulates the intensity of each of the parallel initial optical signals based on the input N first voltages to obtain N initial optical signals with different intensities.

[0118] Step 413: The combining submodule of the first modulation module combines the N initial optical signals of different intensities into the first optical signal.

[0119] In the embodiment of the present application, the first modulation module includes: an optical generation submodule generates N parallel initial optical signals of different wavelengths; the first modulation submodule modulates the intensity of each of the parallel initial optical signals based on the input N first voltages to obtain N initial optical signals of different intensities; and a combining submodule combines the N initial optical signals of different intensities into the first optical signal. Based on the first modulation submodule, the intensity of each parallel initial optical signal can be adjusted; using the combining submodule, the first optical signal can be effectively obtained.

[0120] In some embodiments, the above step 411 "the optical generation submodule generates N parallel initial optical signals with different wavelengths" includes the following steps:

[0121] Step A, the optical frequency comb of the optical generating submodule generates an initial optical signal including N wavelengths;

[0122] Step B: The wavelength splitter of the optical generating submodule splits the initial optical signal including N wavelengths into N parallel initial optical signals with different wavelengths.

[0123] In the embodiment of the present application, the optical frequency comb generates an initial optical signal including N wavelengths; the wavelength splitter divides the initial optical signal including N wavelengths into N parallel initial optical signals of different wavelengths. In this way, N parallel initial optical signals of different wavelengths can be effectively obtained.

[0124] The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.

[0125] It should be noted that in the embodiment of the present application, if the above method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable an electronic device (which can be a mobile phone, a tablet computer, a laptop computer, a desktop computer, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.

[0126] Correspondingly, an embodiment of the present application provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in the optical implementation method of the neural network calculation provided in the above embodiment are implemented.

[0127] It should be noted here that the description of the above storage medium embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the storage medium embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.

[0128] It should be understood that "one embodiment" or "an embodiment" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. The above-mentioned sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments.

[0129] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0130] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0131] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0132] In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be a separate unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0133] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.

[0134] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can be essentially or partly reflected in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including several instructions to enable an electronic device (which can be a mobile phone, a tablet computer, a laptop computer, a desktop computer, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.

[0135] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0136] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0137] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0138] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. An optical neural network device, characterized in that: The device comprises: a first modulation module, configured to modulate an initial optical signal based on a first voltage to obtain a first optical signal, wherein the first optical signal includes N parallel optical signals of different wavelengths, and an intensity of the first optical signal is obtained by adding different intensities corresponding to the optical signals of different wavelengths, where N is an integer greater than 1; A dispersion module, configured to separate N optical signals of different wavelengths in the first optical signal in a time domain based on setting different first delays corresponding to optical signals of different wavelengths, to obtain a second optical signal, wherein the second optical signal is a serial optical signal including N different wavelengths; An optical splitting module, used for splitting the second optical signal into N third optical signals with equal power; A second modulation module, configured to modulate the intensity of the N third optical signals based on the input N first voltage sets, respectively, to obtain N fourth optical signals; an anti-dispersion module, configured to superimpose the fourth optical signals of different wavelengths in the time domain based on setting different second delays corresponding to optical signals of different wavelengths, so as to obtain N fifth optical signals, wherein the first delay is different from the second delay; A processing module is used to adjust N first voltages and N first voltage sets based on the N fifth optical signals.

2. The device according to claim 1, characterized in that The first modulation module comprises: An optical generation submodule, used for generating N parallel initial optical signals of different wavelengths; A first modulation submodule, configured to modulate the intensity of each of the parallel initial optical signals based on the input N first voltages, to obtain N initial optical signals of different intensities; The combining submodule is used to combine the N initial optical signals of different intensities into the first optical signal.

3. The device according to claim 2, characterized in that The light generating submodule comprises: An optical frequency comb, used to generate an initial optical signal including N wavelengths; The wavelength splitter is used to split the initial optical signal including N wavelengths into N parallel initial optical signals with different wavelengths.

4. The device according to claim 1, characterized in that The dispersion module includes a dispersion optical fiber and / or a dispersion grating; the anti-dispersion module includes an anti-dispersion optical fiber and an anti-dispersion grating.

5. The device according to claim 2, characterized in that The processing module comprises: A nonlinear submodule, used to perform nonlinear processing on each of the N fifth optical signals to obtain N fifth optical signals that have completed the nonlinear processing; A photoelectric detection submodule, used for converting the N-channel fifth optical signals which have completed the nonlinear processing into N-channel electrical signals; A normalization submodule, used to normalize the N electrical signals, and use the normalized N results as the values ​​of the N first voltages; generate N first voltages, and apply them to the modulation submodule; The processing submodule is used to determine the value of each voltage in the N first voltage sets based on the N-way results of the normalization processing; generate N first voltage sets and apply them to the modulation module.

6. An optical neural network chip, characterized in that: An optical neural network device comprising any one of claims 1 to 5.

7. A method for optically implementing neural network calculation, characterized in that: The method comprises: The first modulation module of the optical neural network device modulates the initial optical signal based on the first voltage to obtain a first optical signal, wherein the first optical signal includes N parallel optical signals of different wavelengths, and the intensity of the first optical signal is obtained by adding different intensities corresponding to the optical signals of different wavelengths, where N is an integer greater than 1; The dispersion module of the optical neural network device separates N optical signals of different wavelengths in the first optical signal in the time domain based on setting different first delays corresponding to optical signals of different wavelengths to obtain a second optical signal, wherein the second optical signal is a serial optical signal including N different wavelengths; The optical splitting module of the optical neural network device splits the second optical signal into N third optical signals with equal power; The second modulation module of the optical neural network device modulates the intensity of the N third optical signals based on the input N first voltage sets to obtain N fourth optical signals; The anti-dispersion module of the optical neural network device superimposes the fourth optical signals of different wavelengths in the time domain based on setting different second delays corresponding to optical signals of different wavelengths to obtain N fifth optical signals, wherein the first delay is different from the second delay; The processing module of the optical neural network device adjusts the N first voltages and the N first voltage sets based on the N fifth optical signals.

8. The method according to claim 7, characterized in that The first modulation module of the optical neural network device modulates the initial optical signal based on the first voltage to obtain the first optical signal, including: The optical generation submodule of the first modulation module generates N parallel initial optical signals of different wavelengths; The first modulation submodule of the first modulation module modulates the intensity of each of the parallel initial optical signals based on the input N first voltages to obtain N initial optical signals of different intensities; The combining submodule of the first modulation module combines the N initial optical signals of different intensities into the first optical signal.

9. The method according to claim 8, characterized in that The optical generation submodule generates N parallel initial optical signals of different wavelengths, including: The optical frequency comb of the optical generation submodule generates an initial optical signal including N wavelengths; The wavelength splitter of the optical generating submodule divides the initial optical signal including N wavelengths into N parallel initial optical signals with different wavelengths.

10. The method according to claim 7, characterized in that The dispersion module includes a dispersion optical fiber and / or a dispersion grating; the anti-dispersion module includes an anti-dispersion optical fiber and an anti-dispersion grating.