Method and apparatus for designing robust optical neural network resistant to incident signal error
By adding random noise to simulate signal loading errors in the training process of the optical neural network, the robustness of the optical neural network chip is improved, and the problems of long calibration time and difficulty caused by signal loading and conversion errors in the existing technology are solved.
Patent Information
- Application Number
- PCT/CN2023/137523
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-29
- Filing Date
- 2023-12-08
- Publication Date
- 2024-10-03
AI Technical Summary
Existing optical neural network chips have errors in the signal loading and conversion process, resulting in long and difficult calibration, and cannot meet the needs of large-scale mass production.
By obtaining the incident signal error, determine the target size range and probability distribution of the random noise, superimpose it on the original optical input signal, generate a training set, and train the optical neural network until a robust optical neural network with resistance to incident signal errors is obtained. , eliminating errors caused by signal conversion and loading.
In the network model design stage, the signal loading error is added to the model training, which reduces the performance impact caused by signal loading and conversion, improves the robustness of the optical neural network chip, and solves the problem of long calibration time and difficulty.
Smart Images

Figure CN2023137523_03102024_PF_FP_ABST
Abstract
Description
Design method and device of robust optical neural network against incident signal errors
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application is based on the Chinese patent application with application number 202310325450.7 and application date of March 29, 2023, and claims the priority of the Chinese patent application. The entire content of the Chinese patent application is hereby introduced into this application as a reference. Technical Field
[0003] The present application relates to the technical field of optical neural networks, and in particular to a method and device for designing a robust optical neural network that is resistant to incident signal errors. Background Art
[0004] Light boasts the fastest propagation speed in physical space and boasts the advantages of multi-dimensionality and multi-scale. By replacing electrons with photons and circuits with optical paths, optical computing chips offer disruptive advantages such as high speed, parallel processing, and low power consumption. With the advancement of artificial intelligence algorithms, the mathematical representation of the physical process of light propagating through a confined medium bears a high degree of similarity to deep neural network algorithms. Using optical chips to implement neural network computing is expected to break through the energy efficiency bottlenecks of traditional electronic chips.
[0005] The input signal of an optical neural network chip usually requires the electrical signal to be loaded into the physical properties of the optical signal, such as amplitude, phase, and polarization, through devices such as modulators and phase shifters. Errors are inevitable during the signal loading and conversion process, and it is impossible to guarantee that the optical neural network chip will obtain the same accuracy during the inference process as during model training.
[0006] Related technologies usually use peripheral optical paths and circuits after chip manufacturing is completed, combined with error calibration algorithms, to compensate for errors such as the phase and amplitude of light. However, calibration is time-consuming and difficult, and the technical route of calibrating each chip one by one cannot meet the needs of future large-scale mass production.
[0007] Summary of the Invention
[0008] The present application provides a method, device, electronic device, and storage medium for designing an optical neural network that is robust against incident signal errors, in order to address the problems of related technologies in which errors such as the phase and amplitude of light are compensated using peripheral optical paths and circuits in combination with error calibration algorithms, resulting in long calibration times and high difficulty.
[0009] The first aspect of the present application provides a method for designing an optical neural network that is robust against incident signal errors, comprising the following steps: obtaining an incident signal error caused by the loading and conversion process of an electrical input signal; determining random noise with a target size range and probability distribution based on the incident signal error, and superimposing the random noise on the original optical input signal to obtain an optical input signal based on random noise; generating a training set using the random noise-based optical input signal, and training an optical neural network using the training set until the training is completed, thereby obtaining an optical neural network that is robust against incident signal errors.
[0010] Optionally, in one embodiment of the present application, the random noise is a combined model of one or more physical properties of light, which is used to eliminate errors caused by signal conversion and loading during the computational reasoning process of the optical neural network chip.
[0011] Optionally, in one embodiment of the present application, after obtaining a robust optical neural network that is resistant to incident signal errors, it also includes: determining network weight parameters based on the robust optical neural network that is resistant to incident signal errors; determining processing parameters of an optical neural network chip based on the network weight parameters, and processing the optical neural network chip using the processing parameters.
[0012] Optionally, in one embodiment of the present application, the optical neural network includes any one of a diffraction neural network, an interference neural network and a scattering neural network.
[0013] The second aspect of the present application provides an optical neural network design device that is robust against incident signal errors, including: an acquisition module for acquiring the incident signal error caused by the loading and conversion process of the electrical input signal; a first determination module for determining random noise with a target size range and probability distribution based on the incident signal error, and superimposing the random noise on the original optical input signal to obtain an optical input signal based on the random noise; a training module for generating a training set based on the random noise-based optical input signal, and using the training set to train the optical neural network until the training is completed, thereby obtaining an optical neural network that is robust against incident signal errors.
[0014] Optionally, in one embodiment of the present application, the random noise is a combined model of one or more physical properties of light, which is used to eliminate errors caused by signal conversion and loading during the computational reasoning process of the optical neural network chip.
[0015] Optionally, in one embodiment of the present application, it also includes: a second determination module, which is used to determine network weight parameters based on the robust optical neural network that is resistant to incident signal errors after obtaining the robust optical neural network that is resistant to incident signal errors; determine processing parameters of the optical neural network chip based on the network weight parameters, and use the processing parameters to process the optical neural network chip.
[0016] Optionally, in one embodiment of the present application, the optical neural network includes any one of a diffraction neural network, an interference neural network and a scattering neural network.
[0017] The third aspect of the present application provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the method for designing a robust optical neural network resistant to incident signal errors as described in the above embodiment.
[0018] The fourth aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, which is executed by a processor to implement the method for designing a robust optical neural network that is resistant to incident signal errors as described in the above embodiments.
[0019] Therefore, this application has at least the following beneficial effects:
[0020] The embodiments of the present application can determine the target size range and probability distribution of random noise by using the incident signal error caused by the electrical input signal loading and conversion process. During the training process of obtaining neural network weight parameters, appropriate random noise is added to the input light field signal in the training set to simulate the errors caused by the signal loading and conversion process. By incorporating the signal loading error into the model training during the network model design phase, the performance impact caused by signal loading and conversion is reduced, and the robustness of the optical neural network chip is improved. This solves the problems of the related art that use peripheral optical paths and circuits combined with error calibration algorithms to compensate for errors such as phase and amplitude of light, which are long and difficult to calibrate.
[0021] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
[0023] FIG1 is a flow chart of a method for designing a robust optical neural network resistant to incident signal errors according to an embodiment of the present application;
[0024] FIG2 is a schematic diagram showing a comparison of training effects between different training methods provided according to an embodiment of the present application;
[0025] FIG3 is a schematic diagram of a calculation and reasoning process of an optical neural network chip provided according to an embodiment of the present application;
[0026] FIG4 is a block diagram of a device for designing a robust optical neural network resistant to incident signal errors according to an embodiment of the present application;
[0027] FIG5 is a schematic structural diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0028] The following describes in detail embodiments of the present application, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.
[0029] The following describes the optical neural network design method, device, electronic device and storage medium that are robust against incident signal errors according to the embodiments of the present application with reference to the accompanying drawings. In response to the problems mentioned in the above background technology, the present application provides a method for designing an optical neural network that is robust against incident signal errors. In this method, the target size range and probability distribution of random noise are determined by the incident signal error caused by the loading and conversion process of the electrical input signal. In the training process of obtaining the neural network weight parameters, appropriate random noise is added to the input light field signal in the training set, which can simulate the errors caused by the signal loading and conversion process. By adding the signal loading error to the model training in the network model design stage, the performance impact caused by signal loading and conversion is reduced, and the robustness of the optical neural network chip is improved. As a result, the problems of long calibration time and great difficulty in the related technology of using peripheral optical paths and circuits in combination with error calibration algorithms to compensate for errors such as phase and amplitude of light are solved.
[0030] Specifically, FIG1 is a flow chart of a method for designing a robust optical neural network resistant to incident signal errors provided in an embodiment of the present application.
[0031] As shown in FIG1 , the optical neural network design method for robustness against incident signal errors includes the following steps:
[0032] In step S101 , an incident signal error caused by the electrical input signal loading and conversion process is obtained.
[0033] It is understandable that there will be errors in the loading and conversion process of the input signal of the optical neural network chip, and it is impossible to guarantee that the optical neural network chip will obtain the same accuracy as during model training during the inference process. The embodiment of the present application obtains the incident signal error caused by the loading and conversion process of the electrical input signal, and adds the signal loading error to the model training during the network model design stage to reduce the performance impact caused by signal loading and conversion.
[0034] In step S102 , random noise with a target size range and probability distribution is determined according to the incident signal error, and the random noise is superimposed on the original optical input signal to obtain an optical input signal based on the random noise.
[0035] In one embodiment of the present application, random noise is a combined model of one or more physical properties of light, which is used to eliminate errors caused by signal conversion and loading during the computational reasoning process of the optical neural network chip. It can be phase, amplitude, etc., without specific limitation.
[0036] It can be understood that the random noise in the embodiment of the present application can simulate the errors caused by signal loading and conversion, thereby eliminating the errors caused by signal conversion and loading during the calculation and reasoning process of the optical neural network chip.
[0037] In step S103, a training set is generated using an optical input signal based on random noise, and the optical neural network is trained using the training set until the training is completed, thereby obtaining an optical neural network that is robust against incident signal errors.
[0038] During the design process, optical neural networks require training to obtain the parameters of the optical network structure. As shown in Figure 2, the traditional training set is trained according to the ideal input light field distribution, resulting in a neural network model that meets the accuracy requirements under this training set. However, in the embodiment of this application, the training set of the optical neural network model is input to the light field and random noise is added. The magnitude and probability distribution of the random noise are determined by the errors introduced by the signal loading and conversion process. Based on this improved training set, a corresponding neural network model that meets the accuracy requirements is obtained.
[0039] In summary, the workflow of the embodiment of the present application for completing chip processing and inference calculation based on the network model is shown in Figure 3. In the embodiment of the present application, random noise is added to the input signal in advance in the network model training stage to train and obtain an optimized optical neural network model, which can eliminate the random errors introduced by the signal conversion and loading parts, and the impact on the accuracy of the optical neural network chip in the inference calculation process. The robustness of the optical neural network is improved through network model design and training.
[0040] It should be noted that the training method for enhancing the robustness of the optical neural network in the embodiment of the present application is applicable to different neural network implementation methods, including but not limited to diffraction neural network, interference neural network, and scattering neural network.
[0041] Optionally, in one embodiment of the present application, after obtaining a robust optical neural network that is resistant to incident signal errors, it also includes: determining network weight parameters based on the robust optical neural network that is resistant to incident signal errors; determining processing parameters of the optical neural network chip based on the network weight parameters, and processing the optical neural network chip using the processing parameters.
[0042] The optical neural network with robustness against incident signal errors in the embodiment of the present application can ensure that the optical neural network chip obtains the same accuracy as that during model training during the inference process. By using the optical neural network with robustness against incident signal errors, the processing parameters of the optical neural network chip are determined to realize the processing of the optical neural network chip, which can greatly improve the robustness of the optical neural network chip during actual calculations.
[0043] According to the method for designing an optical neural network robust against incident signal errors proposed in the embodiments of the present application, the target size range and probability distribution of random noise are determined by the incident signal error caused by the electrical input signal loading and conversion process. During the training process of obtaining the neural network weight parameters, appropriate random noise is added to the input light field signal in the training set to simulate the errors caused by the signal loading and conversion process. By incorporating the signal loading error into the model training during the network model design phase, the performance impact caused by signal loading and conversion is reduced, and the robustness of the optical neural network chip is improved. This solves the problems of the related art that use peripheral optical paths and circuits combined with error calibration algorithms to compensate for errors such as phase and amplitude of light, which are long and difficult to calibrate.
[0044] Next, a robust optical neural network design device resistant to incident signal errors proposed in an embodiment of the present application will be described with reference to the accompanying drawings.
[0045] FIG4 is a block diagram of a device for designing an optical neural network that is robust against incident signal errors according to an embodiment of the present application.
[0046] As shown in FIG4 , the optical neural network design device 10 for robustness against incident signal errors includes: an acquisition module 100 , a first determination module 200 and a training module 300 .
[0047] Among them, the acquisition module 100 is used to obtain the incident signal error caused by the loading and conversion process of the electrical input signal; the first determination module 200 is used to determine the random noise with a target size range and probability distribution based on the incident signal error, and superimpose the random noise on the original optical input signal to obtain an optical input signal based on the random noise; the training module 300 is used to generate a training set using the optical input signal based on the random noise, and train the optical neural network using the training set until the training is completed, so as to obtain an optical neural network that is robust against incident signal errors.
[0048] In one embodiment of the present application, random noise is a combined model of one or more physical properties of light, which is used to eliminate errors caused by signal conversion and loading during the computational reasoning process of the optical neural network chip.
[0049] In one embodiment of the present application, the apparatus 10 of the embodiment of the present application further includes: a second determination module.
[0050] Among them, the second determination module is used to determine the network weight parameters according to the robust optical neural network that is resistant to incident signal errors after obtaining the robust optical neural network that is resistant to incident signal errors; determine the processing parameters of the optical neural network chip based on the network weight parameters, and use the processing parameters to process the optical neural network chip.
[0051] In one embodiment of the present application, the optical neural network includes any one of a diffraction neural network, an interference neural network, and a scattering neural network.
[0052] It should be noted that the explanation of the embodiment of the method for designing a robust optical neural network against incident signal errors is also applicable to the apparatus for designing a robust optical neural network against incident signal errors of this embodiment, and will not be repeated here.
[0053] According to the optical neural network design device for robustness against incident signal errors proposed in the embodiments of the present application, the target size range and probability distribution of random noise are determined by the incident signal error caused by the electrical input signal loading and conversion process. During the training process of obtaining the neural network weight parameters, appropriate random noise is added to the input light field signal in the training set, which can simulate the errors caused by the signal loading and conversion process. By incorporating the signal loading error into the model training during the network model design phase, the performance impact caused by signal loading and conversion is reduced, and the robustness of the optical neural network chip is improved. This solves the problems of the related art that use peripheral optical paths and circuits combined with error calibration algorithms to compensate for errors such as phase and amplitude of light, which are long and difficult to calibrate.
[0054] FIG5 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device may include:
[0055] Memory 501 , processor 502 , and computer programs stored in the memory 501 and executable on the processor 502 .
[0056] When the processor 502 executes the program, the optical neural network design method for robustness against incident signal errors provided in the above embodiment is implemented.
[0057] Furthermore, the electronic device further includes:
[0058] The communication interface 503 is used for communication between the memory 501 and the processor 502 .
[0059] The memory 501 is used to store computer programs that can be run on the processor 502 .
[0060] The memory 501 may include a high-speed RAM (Random Access Memory) memory, and may also include a non-volatile memory, such as at least one disk memory.
[0061] If the memory 501, processor 502, and communication interface 503 are implemented independently, the communication interface 503, memory 501, and processor 502 can be interconnected via a bus and communicate with each other. The bus can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus. Buses can be divided into address buses, data buses, control buses, etc. For ease of illustration, FIG5 shows only one thick line, but this does not mean that there is only one bus or only one type of bus.
[0062] Optionally, in a specific implementation, if the memory 501, the processor 502 and the communication interface 503 are integrated on a chip, the memory 501, the processor 502 and the communication interface 503 can communicate with each other through an internal interface.
[0063] The processor 502 may be a CPU (Central Processing Unit), or an ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present application.
[0064] An embodiment of the present application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-mentioned method for designing an optical neural network that is robust against incident signal errors.
[0065] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art can combine and combine different embodiments or examples described in this specification and features of different embodiments or examples without contradiction.
[0066] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be understood to indicate or imply relative importance or implicitly specify the number of technical features indicated. Thus, a feature specified as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of this application, "N" means at least two, for example, two, three, etc., unless otherwise specifically defined.
[0067] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may be performed out of the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present application belong.
[0068] It should be understood that various parts of the present application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiment, the N steps or methods can be implemented using software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented using hardware, as in another embodiment, any one of the following technologies known in the art or a combination thereof can be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application-specific integrated circuit having a suitable combination of logic gate circuits, a programmable gate array, a field programmable gate array, etc.
[0069] Those skilled in the art will understand that all or part of the steps in the method of the above embodiment can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium. When the program is executed, it includes one or a combination of the steps of the method embodiment.
[0070] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.
Claims
1. A method for designing an optical neural network that is robust against incident signal errors, characterized in that: The following steps are involved: Obtain the incident signal error caused by the electrical input signal loading and conversion process; Determining random noise having a target size range and probability distribution according to the incident signal error, and superimposing the random noise on the original optical input signal to obtain an optical input signal based on the random noise; A training set is generated using the optical input signal based on random noise, and an optical neural network is trained using the training set until the training is completed, thereby obtaining an optical neural network that is robust against incident signal errors.
2. The method for designing a robust optical neural network against incident signal errors according to claim 1, characterized in that: The random noise is a combined model of one or more physical properties of light, which is used to eliminate errors caused by signal conversion and loading during the calculation and reasoning process of the optical neural network chip.
3. The method for designing a robust optical neural network against incident signal errors according to claim 1, characterized in that: After obtaining a robust optical neural network that is resistant to incident signal errors, it also includes: Determining network weight parameters according to the optical neural network having robustness against incident signal errors; The processing parameters of the optical neural network chip are determined based on the network weight parameters, and the optical neural network chip is processed using the processing parameters.
4. The method for designing an optical neural network that is robust against incident signal errors according to any one of claims 1 to 3, characterized in that: The optical neural network includes any one of a diffraction neural network, an interference neural network and a scattering neural network.
5. A robust optical neural network design device resistant to incident signal errors, characterized in that: include: An acquisition module, used to acquire an incident signal error caused by the loading and conversion process of the electrical input signal; A first determination module is used to determine random noise with a target size range and probability distribution according to the incident signal error, and to superimpose the random noise on the original optical input signal to obtain an optical input signal based on the random noise; A training module is used to generate a training set based on the optical input signal based on random noise, and use the training set to train the optical neural network until the training is completed, so as to obtain a robust optical neural network that is resistant to incident signal errors.
6. The optical neural network design device for robustness against incident signal errors according to claim 5, characterized in that: The random noise is a combined model of one or more physical properties of light, which is used to eliminate errors caused by signal conversion and loading during the calculation and reasoning process of the optical neural network chip.
7. The optical neural network design device for robustness against incident signal errors according to claim 5, characterized in that: Also includes: A second determination module is used to determine a network weight parameter according to the optical neural network with robustness against incident signal errors after obtaining the optical neural network with robustness against incident signal errors; The processing parameters of the optical neural network chip are determined based on the network weight parameters, and the optical neural network chip is processed using the processing parameters.
8. The optical neural network design device for robustness against incident signal errors according to any one of claims 5 to 7, characterized in that: The optical neural network includes any one of a diffraction neural network, an interference neural network and a scattering neural network.
9. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the method for designing a robust optical neural network resistant to incident signal errors as described in any one of claims 1 to 4.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: The program is executed by a processor to implement the optical neural network design method that is robust against incident signal errors as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Optical neural network training method and system, storage medium and equipment
CN113869508A
Parameter generation method and manufacturing method of optical neural network chip
CN114418082A
Method for signal trimming by injecting random noise and magnetic encoder
CN115290125A
Robustness optical neural network design method and device capable of resisting incident signal error
CN116542305A
Deep learning based method and device for noise suppression and distortion correction of analog-to-digital converters
US20190319633A1
Cited By
Optical communication signal optimization method and device based on optical neural network
CN119449184A
