A photonic neural network with four-input logic operations
By designing a photonic neural network with four input logic operations, and using a combination of preprocessing and optical components, we solve the problems of energy consumption and signal delay of electronic integrated circuits, simplify the training process of photonic AI chips, and achieve efficient photonic neural network training. and predictions.
Patent Information
- Application Number
- CN202110818425.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-20
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2041-07-20
AI Technical Summary
Existing electronic integrated circuits face huge energy consumption and signal delay problems, which limit their development. Photonic AI chips are also difficult to train at the algorithm level, resulting in limited applications.
A photonic neural network with four input logic operations is designed, including an electro-optical modulation unit, a preprocessing unit, an N-layer photonic neural network unit and a photoelectric conversion unit. It expands the four-dimensional optical signal into a five-dimensional signal and uses programmable waveguide interference. The instrument and nonlinear optical components perform linear and nonlinear operations, and the weight matrix is optimized by combining the on-chip backpropagation algorithm.
It implements high-bandwidth, low-power four-input logic operations, simplifies the training process of neural networks, and improves the training efficiency and prediction accuracy of photonic neural networks.
Smart Images

Figure CN113592069B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of neural network, and in particular relates to a photonic neural network with four-input logic operations. Background Art
[0002] In the past few decades, electronic integrated chips have been continuously improving in terms of integration and computing speed, and their development trend is in line with the famous Moore's Law. Today, the number of transistors integrated in microprocessors can reach tens of billions, the gate length of the transistor is only 35nm, and the clock frequency is 3GHz. According to the International Technology Roadmap for Semiconductors (ITRS), by 2020, in order to meet the growing demand for chip capacity, the gate length of the transistor must be reduced to 4.5nm and the clock frequency must reach 73GHz. At this time, huge energy consumption and significant signal delay have become insurmountable obstacles to the development of integrated circuits, and Moore's Law may end. How to solve this strategic problem has become a major focus of current international research. As an information carrier, light waves have the advantages of high bandwidth, low power consumption, low delay, strong anti-interference and strong load capacity, which is far superior to electrical interconnection. It is estimated that the communication data capacity of optical interconnection is more than 1,000 times higher than that of electrical interconnection, its transmission speed is 5-10 times, and its power consumption is only about 1 / 10. Therefore, the development of optical interconnect technology is expected to solve the bandwidth bottleneck problem between high-speed chips and on chips, laying the foundation for realizing large-capacity, high-speed, and low-power interconnection between chips or on chips.
[0003] Compared with photonic AI chips, photonic AI computing appeared in the last century. It initially used spatial optical structures to simulate neural network architectures and has gone through a development process from loose architectures to photonic integrated networks.
[0004] In addition, peripheral components and tools that support the development of photonic AI chip technology and the expansion of applications are also gradually emerging. In terms of model and algorithm development, some model libraries and development frameworks for photonic neural networks have emerged, including Neuroptica and Neurophox libraries written in Python. In terms of circuits, the optical modulator driver chips, transimpedance amplifier chips, high-speed AD / DA, DSP and other units required for photonic AI chips have already had certain technical reserves and accumulation.
[0005] Finally, for the completed photonic AI chips, direct training at the algorithm level faces great challenges. Some photonic computing architectures cannot even be trained at all, which greatly limits their application. As a compromise, the current method is mainly to train the simulation model of the photonic computing network on an electronic computer, and then load the trained model parameters onto the photonic chip.
[0006] At present, the application scenarios of photon AI chips mainly include image recognition, speech recognition, and optimized decision-making. The application of image understanding, semantic understanding and other application scenarios still requires the development of photon AI chip technology required by the corresponding algorithms. Despite this, photon AI technology has made many breakthroughs at all levels in the field of AI. Summary of the invention
[0007] In order to overcome the huge energy consumption and significant signal delay of integrated electronic circuits, the present invention utilizes the advantages of high bandwidth and low power consumption of photonic devices to propose a photonic neural network with four-input logic operations, which can perform four-input logic operations at high speed and low energy consumption.
[0008] A four-input logical operation photonic neural network of the present invention comprises an electro-optical modulation unit, a preprocessing unit, an N-layer photonic neural network unit and a first photoelectric conversion unit connected in sequence.
[0009] The electro-optical modulation unit is used to convert the input electrical signal into a four-dimensional optical signal and output it to the preprocessing unit. The preprocessing unit is used to preprocess the received four-dimensional optical signal, specifically, adding a fifth-dimensional signal on the basis of the four-dimensional optical signal to convert the four-dimensional optical signal into a five-dimensional optical signal. The L2 norm of the five-dimensional optical signal vector is a constant. The five-dimensional optical signal is then calculated by N layers of photonic neural network units and the feature results are output to the first photoelectric conversion unit to be converted into an electrical signal to obtain the final output.
[0010] With the addition of the fifth dimension, the L2 norm of all input signals can be made a constant value, thus meeting the input requirements of the photonic neural network. Its actual physical meaning is that the signal power of the input photonic neural network is constant. And expanding the four-dimensional signal to a five-dimensional signal can make the characteristic quantity of the data easier to show, which is convenient for the subsequent training of the neural network.
[0011] The photonic neural network unit includes a programmable waveguide interferometer and a nonlinear optical element; when a five-dimensional optical signal passes through N layers of photonic neural network units, in each layer of photonic neural network units, the programmable waveguide interferometer acts as a linear photonic element to first perform linear operations on the input optical signal, and then the nonlinear optical element performs nonlinear operations on the signal, and then outputs the operation results to the next layer of photonic neural network units.
[0012] Furthermore, the weight matrix parameters of the programmable waveguide interferometer are optimized using an on-chip back-propagation algorithm.
[0013] The beneficial effects brought by adopting the above technical solution are:
[0014] (1) The photonic neural network of the present invention is trained using an on-chip back-propagation algorithm and can replace the traditional electronic neural network, thereby realizing an electro-optical hybrid on-chip neural network with advantages such as high bandwidth and low loss.
[0015] (2) The preprocessing method for input signals proposed in the present invention is easy to implement and can greatly facilitate the training process of the neural network.
[0016] (3) The programmable waveguide interferometer used in the present invention performs linear operations on optical signals, with low power consumption and high operation speed. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 is a schematic diagram of the photonic neural network of the present invention;
[0018] Figure 2 is a schematic structural diagram of a programmable waveguide interferometer of the present invention;
[0019] Figure 3 It is a schematic diagram of the principle of the nonlinear optical element of the present invention;
[0020] Figure 4 It is a schematic diagram of the logical function mapping relationship preset in the present invention;
[0021] Figure 5 It is a comparison diagram of the actual prediction result of the present invention and the preset logic function mapping relationship. DETAILED DESCRIPTION
[0022] The technical solution of the present invention will be described in detail below with reference to the accompanying drawings.
[0023] like Figure 1 As shown, a photonic neural network for four-input logic operations of the present invention includes an electro-optical modulation unit, a preprocessing unit, N layers of photonic neural network units and a first photoelectric conversion unit connected in sequence, wherein the photonic neural network unit includes a programmable waveguide interferometer and a nonlinear optical element; the size of N is determined by the complexity of the input signal.
[0024] The digital electrical signal is used as the input of the on-chip photonic neural network of the present invention. The electro-optical modulation unit is used to convert the input electrical signal into a four-dimensional optical signal and output it to the preprocessing unit. The preprocessing unit is used to preprocess the received four-dimensional optical signal, specifically, adding a fifth-dimensional signal on the basis of the four-dimensional optical signal to convert the four-dimensional optical signal into a five-dimensional optical signal. The L2 norm of the five-dimensional optical signal vector is a constant. The five-dimensional optical signal is then calculated by N layers of photonic neural network units and the characteristic results are output to the first photoelectric conversion unit to be converted into an electrical signal to obtain the final output. The first photoelectric conversion unit is a photodetector.
[0025] When a five-dimensional optical signal passes through N layers of photonic neural network units, in each layer of photonic neural network units, the programmable waveguide interferometer acts as a linear photonic element to first perform linear operations on the input optical signal, and then the nonlinear optical element performs nonlinear operations on the signal, and then outputs the operation results to the next layer of photonic neural network units.
[0026] Preprocessing is performed in the preprocessing unit, and the fifth-dimensional signal is added to the four-dimensional optical signal to convert the four-dimensional optical signal into a five-dimensional optical signal. The specific process is as follows:
[0027] Assume that the input four-dimensional optical signal is (x1, x2, x3, x4), and the preprocessed optical signal is (x′1, x′2, x′3, x′4, x′5), where:
[0028] x′1=x1
[0029] x′2=x2
[0030] x′3=x3
[0031] x′4=x4
[0032]
[0033] Wherein P is an arbitrary fixed value, and in this embodiment, P=10 is used;
[0034] As a linear photonic element, the programmable waveguide interferometer first inputs a five-dimensional optical signal for linear operations, specifically:
[0035] like Figure 2 As shown, the characteristic quantity of the programmable waveguide interferometer is the weight matrix For the input optical signal vector x i Perform the following operations:
[0036]
[0037] Where i represents the i-th layer, i∈N, z i+1 is the computational output of the i-th layer programmable waveguide interferometer.
[0038] like Figure 3 As shown, the nonlinear optical element includes a directional coupler, a second photoelectric conversion unit, an optical signal delay unit and a Mach-Zehnder interferometer. The optical signal output from the programmable waveguide interferometer is divided into two optical signals after passing through the directional coupler. One optical signal is converted into an electrical signal by the second photoelectric conversion unit and then reaches the Mach-Zehnder interferometer, which is used to control the phase shift of the optical signal in the Mach-Zehnder interferometer.
[0039] Another optical signal is delayed by an optical signal delay unit and then reaches the Mach-Zehnder interferometer, which modulates the intensity of the optical signal to achieve nonlinear response.
[0040] Nonlinear optical elements perform nonlinear operations on signals, specifically:
[0041] x i+1 =f(z i+1 )
[0042] Among them, x i+1 is the computational output of the i-th layer of nonlinear optical elements and the output of the i-th layer of photonic neural network units; the expression of the nonlinear function is:
[0043]
[0044] In the expression, α and g φ ,φ b is an adjustable parameter. α∈(0,1), g φ is a number greater than 0, φ b ∈(-π, π); this embodiment adopts α=0.1, g φ =1.75π,φ b =0.5π.
[0045] So the i-th layer of photonic neural network unit responds to the input signal vector x i It can be written as follows: The output x of the i-th layer photonic neural network unit is obtained by calculation according to the following formula: i+1 ; and the output x of the i-th layer photonic neural network unit i+1 Passed to the next layer of photon neural network unit.
[0046]
[0047] For the photonic neural network unit, the weight matrix parameters of the programmable waveguide interferometer can be optimized using the on-chip back-propagation algorithm to obtain a photonic neural network unit structure with higher input response accuracy.
[0048] The photonic neural network of the present invention is trained based on training samples so that the prediction error is minimized, and its prediction accuracy increases with the increase in the number of training times. Assuming that the mapping relationship of the logic function is as follows Figure 4 As shown in the figure, the number of photonic neural network unit layers is N = 2. After 3000 trainings, the prediction error rate of the photonic neural network reaches 0. The prediction results are as follows: Figure 5 As shown in the figure, it can be seen that the predicted result is completely consistent with the set mapping relationship, and it can be considered that the photonic neural network structure can realize the operation relationship of the four-input logic function.
Claims
1. A photonic neural network with four-input logic operation, characterized in that: It includes an electro-optical modulation unit, a pre-processing unit, an N-layer photonic neural network unit and a first photoelectric conversion unit connected in sequence; The electro-optical modulation unit is used to convert the input electrical signal into a four-dimensional optical signal and output it to the preprocessing unit. The preprocessing unit is used to preprocess the received four-dimensional optical signal, specifically, adding a fifth-dimensional signal on the basis of the four-dimensional optical signal to convert the four-dimensional optical signal into a five-dimensional optical signal. The L2 norm of the five-dimensional optical signal vector is a constant. The five-dimensional optical signal is then calculated by the N-layer photonic neural network unit and the feature result is output to the first photoelectric conversion unit to be converted into an electrical signal to obtain the final output; The photonic neural network unit includes a programmable waveguide interferometer and a nonlinear optical element; When the five-dimensional optical signal passes through N layers of photonic neural network units, in each layer of photonic neural network units, the programmable waveguide interferometer as a linear photonic element first performs linear operations on the input optical signal, and the nonlinear optical element then performs nonlinear operations on the signal, and then outputs the operation results to the next layer of photonic neural network units; The programmable waveguide interferometer acts as a linear photonic element to perform linear operations on the input optical signal, specifically: The characteristic quantity of programmable waveguide interferometer is weight matrix For the input optical signal vector x i Perform the following operations: Where i represents the i-th layer, i∈N; z i+1 is the computational output of the i-th layer programmable waveguide interferometer; Nonlinear optical elements perform nonlinear operations on signals, specifically: x i+1 =f(z i+1 ) Among them, x i+1 is the operation output of the i-th layer of nonlinear optical elements, and the expression of the nonlinear function is: In the expression, α and g φ ,φ b is an adjustable parameter, α∈(0,1), g φ is a number greater than 0, φ b ∈(-π,π); The nonlinear optical element includes a directional coupler, a second photoelectric conversion unit, an optical signal delay unit and a Mach-Zehnder interferometer. The optical signal is divided into two optical signals after passing through the directional coupler. One optical signal is converted into an electrical signal by the second photoelectric conversion unit and then reaches the Mach-Zehnder interferometer, which is used to control the phase shift of the optical signal in the Mach-Zehnder interferometer. Another optical signal is delayed by an optical signal delay unit and then reaches the Mach-Zehnder interferometer, which modulates the intensity of the optical signal to achieve nonlinear response.
2. According to the photonic neural network of claim 1, characterized in that: Adding a fifth-dimensional signal to the four-dimensional optical signal converts the four-dimensional optical signal into a five-dimensional optical signal. The specific process is as follows: Assume that the input four-dimensional optical signal is (x1, x2, x3, x4), and the preprocessed optical signal is (x′1, x′2, x′3, x′4, x′5), where: x′1=x1 x′2=x2 x′3=x3 x′4=x4 Where P is an arbitrary fixed value.
3. According to the photonic neural network of claim 1, characterized in that: The weight matrix parameters of the programmable waveguide interferometer are optimized using an on-chip back-propagation algorithm.
