Method and apparatus for training optical neural network having robustness with respect to process error, and device

By randomly superimposing noise and mapping weight parameters during the training process of the optical neural network chip, the problem of chip processing deviation and calibration difficulty is solved, and the chip's robustness and mass production adaptability are improved.

WO2024198502A1PCT designated stage expired Publication Date: 2024-10-03TSINGHUA UNIVERSITY

Patent Information

Application Number
PCT/CN2023/137519
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-24
Filing Date
2023-12-08
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

There are deviations in the processing of optical neural network chips, and it is impossible to guarantee perfect mapping between the theoretical model and chip processing. Moreover, by compensating for the phase and amplitude errors of light, calibration takes a long time and is difficult, making it unable to meet the needs of large-scale mass production.

Method used

By obtaining the processing error distribution of neuron weight parameters in the optical neural network, a weight error model is established, and noise is randomly superimposed on the neuron weight parameters during the training process. Until the end of the training, the trained weight parameters are mapped to the optical neural network. Processing parameters of the chip to reduce the impact of errors.

Benefits of technology

It improves the robustness of the optical neural network chip, reduces the performance impact caused by errors, simplifies the calibration process, and meets the needs of large-scale mass production.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023137519_03102024_PF_FP_ABST
    Figure CN2023137519_03102024_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of optical neural networks, and particularly relates to a method and apparatus for training an optical neural network having robustness with respect to a process error, and a device. The method comprises: acquiring the processing error distribution of a neuron weight parameter in an optical neural network, so as to obtain a weight error model; during the training of the optical neural network, randomly superimposing noise to the neuron weight parameter according to the weight error model until the training is over, so as to obtain a trained neuron weight parameter; and performing mapping on the trained neuron weight parameter to obtain a processing parameter for an optical neural network chip. Thus, the problems in the prior art of it being impossible to ensure perfect mapping between a theoretical model and chip processing due to a deviation being present during the manufacturing of an optical neural network chip, and the manner in which the phase and amplitude errors of light are compensated for requiring a long calibration time and facing a great difficulty are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Optical neural network training method, device and equipment robust to process errors

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application is based on the Chinese patent application with application number 202310300927.6 and application date of March 24, 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 field of optical neural network technology, and in particular to an optical neural network training method, device and equipment that are robust to process 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] In related technologies, optical neural network chips typically require pre-training on a computer to obtain the parameters of the neurons in the network, which are then mapped to the design parameters of the chip structure. However, chip processing has certain deviations, and perfect mapping between theoretical models and chip processing cannot be guaranteed. Currently, most methods use peripheral optical paths and circuits after chip manufacturing, combined with error calibration algorithms, to compensate for phase and amplitude errors 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.

[0006] Summary of the Invention

[0007] The present application provides an optical neural network training method, device, electronic device and storage medium that are robust to process errors, in order to solve the problems in the related art of optical neural network chip processing, such as deviations, inability to ensure perfect mapping between theoretical models and chip processing, and long calibration time and difficulty in compensating for phase and amplitude errors of light.

[0008] The first aspect of the present application provides an optical neural network training method that is robust to process errors, including the following steps: obtaining the processing error distribution of neuron weight parameters in the optical neural network to obtain a weight error model; during the training of the optical neural network, randomly superimposing noise on the neuron weight parameters according to the weight error model until the training is completed, thereby obtaining trained neuron weight parameters; and mapping the trained neuron weight parameters to processing parameters of an optical neural network chip.

[0009] Optionally, in one embodiment of the present application, the processing error distribution of the neuron weight parameters in the optical neural network is obtained to obtain a weight error model, including: obtaining the error probability distribution and size range between the actual processing size and the design size of the optical neural network chip physical device, establishing a model correspondence between the intermediate layer neuron weight parameters and the processing physical device size, and obtaining the intermediate layer neuron weight parameter error model.

[0010] Optionally, in one embodiment of the present application, the architecture of the optical neural network includes multiple intermediate layers, each intermediate layer includes multiple neurons, and the physical structure size of the neurons corresponds to the neuron weight parameters, and a model correspondence between the intermediate layer neuron weight parameters and the processing size is established, including: establishing a modulation relationship function between the physical size of the neurons and the physical properties of light based on physical simulation, and using the relationship function to determine the model correspondence.

[0011] 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.

[0012] The second aspect of the present application provides an optical neural network training device that is robust to process errors, including: an acquisition module, used to obtain the processing error distribution of neuron weight parameters in the optical neural network to obtain a weight error model; a determination module, during the training process of the optical neural network, randomly superimposes noise on the neuron weight parameters according to the weight error model until the training is completed, thereby obtaining the trained neuron weight parameters; a mapping module, used to map the trained neuron weight parameters into processing parameters of an optical neural network chip.

[0013] Optionally, in one embodiment of the present application, the acquisition module is further used to obtain the error probability distribution and size range between the actual processing size and the design size of the physical device of the optical neural network chip, establish a model correspondence between the weight parameters of the neurons in the intermediate layer of the optical neural network and the size of the physical device, and obtain the error model of the weight parameters of the neurons in the intermediate layer.

[0014] Optionally, in one embodiment of the present application, the architecture of the optical neural network includes multiple intermediate layers, each intermediate layer includes multiple neurons, and the physical structure size of the neurons corresponds to the neuron weight parameters. The acquisition module is further used to establish a modulation relationship function between the physical size of the neurons and the physical properties of light based on physical simulation, and use the relationship function to determine the model correspondence.

[0015] 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.

[0016] A third aspect of the present application provides an electronic device, comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the program to implement an optical neural network training method that is robust to process errors as described in the above embodiments.

[0017] A 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 an optical neural network training method that is robust to process errors as described in the above embodiments.

[0018] Therefore, this application has at least the following beneficial effects:

[0019] The present invention addresses the problems of optical neural network chip processing errors, such as the inability to perfectly map theoretical models to chip processing, and the long and difficult calibration time associated with compensating for phase and amplitude errors in light, by determining the random error in optical neural network weights and adding the corresponding random error to the weight parameters of intermediate-layer neurons during neural network weight parameter training. This allows different input training sets to meet output accuracy requirements, reducing the performance impact of errors in optical neural network chip processing and improving the robustness of the optical neural network chip. This solves the problems of optical neural network chip processing errors in related technologies, such as the inability to perfectly map theoretical models to chip processing, and the long and difficult calibration time associated with compensating for phase and amplitude errors in light.

[0020] 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

[0021] 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:

[0022] FIG1 is a flow chart of an optical neural network training method that is robust to process errors according to an embodiment of the present application;

[0023] FIG2 is a schematic diagram of diffraction groove processing errors according to one embodiment of the present application;

[0024] FIG3 is a schematic diagram of an optical neural network architecture and network training error back propagation according to an embodiment of the present application;

[0025] FIG4 is a schematic diagram of the physical layout of a diffractive neural network chip provided according to one embodiment of the present application;

[0026] FIG5 is a block diagram of an optical neural network training device that is robust to process errors according to an embodiment of the present application;

[0027] FIG6 is a schematic structural diagram of an electronic device provided 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 training method, device, electronic device and storage medium that are robust to process 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 an optical neural network training method that is robust to process errors. In this method, by determining the random error of the weight of the optical neural network, the corresponding random error of the weight is added to the weight parameters of the intermediate layer neurons during the training of the neural network weight parameters, so that different input training sets can meet the output accuracy requirements, reduce the performance impact caused by the errors in the processing of the optical neural network chip, and improve the robustness of the optical neural network chip. As a result, the problems of deviation in the processing of optical neural network chips in the related art are solved, and the perfect mapping between the theoretical model and the chip processing cannot be guaranteed. In addition, there are problems such as long calibration time and difficulty by compensating for the phase and amplitude errors of light.

[0030] Specifically, FIG1 is a flow chart of an optical neural network training method that is robust to process errors provided in an embodiment of the present application.

[0031] As shown in FIG1 , the optical neural network training method that is robust to process errors includes the following steps:

[0032] In step S101, the processing error distribution of neuron weight parameters in the optical neural network is obtained to obtain a weight error model.

[0033] Among them, the optical neural network is not limited to a specific optical neural network, and includes but is not limited to diffraction neural network, interference neural network, and scattering neural network.

[0034] In one embodiment of the present application, the processing error distribution of the neuron weight parameters in the optical neural network is obtained to obtain a weight error model, including: obtaining the error probability distribution and size range between the actual processing size and the design size of the optical neural network chip physical device, establishing a model correspondence between the intermediate layer neuron weight parameters and the processing physical device size, and obtaining the intermediate layer neuron weight parameter error model.

[0035] For ease of explanation, the embodiment of the present application uses the diffraction groove processing schematic diagram shown in Figure 2 as an example to determine the random error distribution of the neuron weight parameters. Specifically, as shown in Figure 2, the dotted box represents the designed physical parameters. However, due to non-ideal factors such as exposure and etching processes, the actual diffraction groove size obtained by processing deviates from the designed value. The parameter characterization of large-area processing in the embodiment of the present application can obtain the probability distribution and size range of the processing error through parameter fitting, and combine the model correspondence between the weight parameters of the intermediate layer neurons in the neural network and the chip processing size to obtain the corresponding deviation of the weight value.

[0036] In one embodiment of the present application, a model correspondence between the weight parameters of the intermediate layer neurons and the processing dimensions is established, including: establishing a relationship function between the physical dimensions of the diffraction groove and the phase modulation of light based on physical simulation, and determining the model correspondence using the relationship function.

[0037] In the embodiment of the present application, the architecture of the optical neural network generally includes an input layer, an intermediate layer, and an output layer. Each intermediate layer includes multiple neurons, and the physical structure size of the neurons corresponds to the neuron weight parameters, as shown in Figure 3. The design of the optical neural network chip is usually to update the weight parameters of each neuron in the intermediate layer through the error back propagation algorithm on the computer, as shown in h1-h in Figure 3. n . For the weight parameters in a specific optical neural network, they can be mapped to physical parameters for optical chip processing through a certain model. Taking the diffraction neural network chip in Figure 4 as an example, it corresponds one-to-one to the optical neural network architecture in Figure 3. There are three intermediate layers, each of which is composed of multiple diffraction grooves. Each or multiple diffraction grooves can be regarded as a neuron. Based on physical simulation, a function can be established between the physical size of the diffraction groove and other parameters and the phase modulation relationship of light. Among them, the phase change value of light is the weight parameter of the neuron in the neural network.

[0038] In step S102, during the training of the optical neural network, noise is randomly superimposed on the neuron weight parameters according to the weight error model until the training is completed, thereby obtaining the trained neuron weight parameters.

[0039] It is understood that in the embodiments of the present application, during the training process of the optical neural network chip, an appropriate amount of random error can be added to the weight parameters of the intermediate neurons to obtain the trained neuron weight parameters, ensuring that different input training sets can meet the output accuracy requirements, thereby improving the robustness of the optical neural network chip. In actual implementation, the magnitude range and probability distribution of the random error in the embodiments of the present application can be determined by combining the distribution of chip processing parameters with the mapping relationship between the chip physical parameters and the neuron weights.

[0040] In step S103, the trained neuron weight parameters are mapped to processing parameters of the optical neural network chip.

[0041] The embodiment of the present application can map the neuron weight parameters of the network model obtained through training to the processing parameters of the optical neural network chip, thereby reducing the impact of the optical neural network chip processing on the performance of the neural network.

[0042] The optical neural network training method, robust to process errors, proposed in the embodiments of this application, determines the random error in the optical neural network's weights and adds the corresponding random error to the weight parameters of the intermediate layer neurons during the training of the neural network weight parameters. This ensures that different input training sets can meet the output accuracy requirements, reducing the performance impact caused by errors in optical neural network chip processing and improving the robustness of the optical neural network chip. This solves the problems of optical neural network chip processing deviations in related technologies, which cannot guarantee a perfect mapping between theoretical models and chip processing, and the long and difficult calibration time required to compensate for phase and amplitude errors of light.

[0043] Next, an optical neural network training device that is robust to process errors proposed in an embodiment of the present application is described with reference to the accompanying drawings.

[0044] FIG5 is a block diagram of an optical neural network training device that is robust to process errors according to an embodiment of the present application.

[0045] As shown in FIG. 5 , the optical neural network training device 10 that is robust to process errors includes: an acquisition module 100 , a determination module 200 and a mapping module 300 .

[0046] Among them, the acquisition module 100 is used to obtain the processing error distribution of the neuron weight parameters in the optical neural network to obtain the weight error model; the determination module 200 randomly superimposes noise on the neuron weight parameters according to the weight error model during the training of the optical neural network until the training is completed, and obtains the trained neuron weight parameters; the mapping module 300 is used to map the trained neuron weight parameters into the processing parameters of the optical neural network chip.

[0047] In one embodiment of the present application, the acquisition module 100 is further used to obtain the error probability distribution and size range between the actual processing size and the design size of the physical device of the optical neural network chip, establish a model correspondence between the weight parameters of the neurons in the intermediate layer of the optical neural network and the size of the physical device, and obtain the error model of the weight parameters of the neurons in the intermediate layer.

[0048] In one embodiment of the present application, the architecture of the optical neural network includes multiple intermediate layers, each intermediate layer includes multiple neurons, and the physical structure size of the neurons corresponds to the neuron weight parameters. The acquisition module is further used to establish a modulation relationship function between the physical size of the neurons and the physical properties of light based on physical simulation, and use the relationship function to determine the model correspondence.

[0049] 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.

[0050] It should be noted that the aforementioned explanation of the embodiment of the optical neural network training method robust to process errors is also applicable to the optical neural network training device robust to process errors in this embodiment, and will not be repeated here.

[0051] The optical neural network training device, robust to process errors, proposed in an embodiment of the present application, determines the random error in the optical neural network's weights and adds the corresponding random error to the weight parameters of the intermediate layer neurons during the training of the neural network weight parameters. This ensures that different input training sets can meet output accuracy requirements, reducing the performance impact of errors in optical neural network chip processing and improving the robustness of the optical neural network chip. This solves the problems of optical neural network chip processing deviations in related technologies, which cannot guarantee a perfect mapping between theoretical models and chip processing, and the long and difficult calibration time required to compensate for phase and amplitude errors of light.

[0052] FIG6 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device may include:

[0053] A memory 601 , a processor 602 , and a computer program stored in the memory 601 and executable on the processor 602 .

[0054] When the processor 602 executes the program, the optical neural network training method that is robust to process errors provided in the above embodiment is implemented.

[0055] Furthermore, the electronic device further includes:

[0056] The communication interface 603 is used for communication between the memory 601 and the processor 602 .

[0057] The memory 601 is used to store computer programs that can be run on the processor 602 .

[0058] The memory 601 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.

[0059] If the memory 601, processor 602, and communication interface 603 are implemented independently, the communication interface 603, memory 601, and processor 602 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, FIG6 shows only one thick line, but this does not mean that there is only one bus or only one type of bus.

[0060] Optionally, in a specific implementation, if the memory 601, the processor 602 and the communication interface 603 are integrated on a chip, the memory 601, the processor 602 and the communication interface 603 can communicate with each other through an internal interface.

[0061] The processor 602 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.

[0062] 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 optical neural network training method that is robust to process errors.

[0063] 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.

[0064] 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.

[0065] 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.

[0066] 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.

[0067] 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.

[0068] 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. An optical neural network training method that is robust to process errors, It is characterized in that The following steps are involved: Obtaining the processing error distribution of the neuron weight parameters in the optical neural network to obtain a weight error model; During the training of the optical neural network, randomly superimposing noise onto the neuron weight parameters according to the weight error model until the training is completed, thereby obtaining the trained neuron weight parameters; The trained neuron weight parameters are mapped to processing parameters of the optical neural network chip.

2. The optical neural network training method that is robust to process errors according to claim 1, It is characterized in that The method of obtaining the processing error distribution of the neuron weight parameters in the optical neural network to obtain the weight error model includes: Obtain the error probability distribution and size range between the actual processing size and the design size of the physical device of the optical neural network chip, establish a model correspondence between the weight parameters of the neurons in the middle layer of the optical neural network and the size of the physical device, and obtain the error model of the weight parameters of the neurons in the middle layer.

3. The optical neural network training method that is robust to process errors according to claim 2, It is characterized in that The architecture of the optical neural network includes a plurality of intermediate layers, each intermediate layer includes a plurality of neurons, and the physical structure size of the neurons corresponds to the neuron weight parameters, and a model correspondence relationship between the intermediate layer neuron weight parameters and the processing size is established, including: A modulation relationship function between the physical size of the neuron and the physical property of light is established according to physical simulation, and the model correspondence is determined using the relationship function.

4. The optical neural network training method that is robust to process errors according to any one of claims 1 to 3, It is 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. An optical neural network training device that is robust to process errors, It is characterized in that include: An acquisition module is used to acquire the processing error distribution of the neuron weight parameters in the optical neural network to obtain a weight error model; A determination module, during the training of the optical neural network, randomly superimposes noise onto the neuron weight parameters according to the weight error model until the training is completed, thereby obtaining the trained neuron weight parameters; A mapping module is used to map the trained neuron weight parameters into processing parameters of the optical neural network chip.

6. The optical neural network training device that is robust to process errors according to claim 5, It is characterized in that The acquisition module is further used for: Obtain the error probability distribution and size range between the actual processing size and the designed size of the physical device of the optical neural network chip, establish the model correspondence between the neuron weight parameters of the intermediate layer of the optical neural network and the size of the physical device, and obtain The intermediate layer neuron weight parameter error model.

7. The optical neural network training device that is robust to process errors according to claim 6, It is characterized in that The architecture of the optical neural network includes a plurality of intermediate layers, each intermediate layer includes a plurality of neurons, and the physical structure size of the neurons corresponds to the neuron weight parameters, and the acquisition module is further used for: A modulation relationship function between the physical size of the neuron and the physical property of light is established according to physical simulation, and the model correspondence is determined using the relationship function.

8. The optical neural network training device that is robust to process errors according to any one of claims 5 to 7, It is 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, It is 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 optical neural network training method that is robust to process errors as described in any one of claims 1 to 4.

10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that The program is executed by a processor to implement an optical neural network training method that is robust to process errors as described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Optical chip and manufacturing method thereof

    CN111458777A

  • NOx online prediction method and system based on intelligent method

    CN112488145A

  • All-optical diffraction neural network system based on metasurface

    CN113822424A

  • Parameter generation method and manufacturing method of optical neural network chip

    CN114418082A

  • Co-phase error correction method based on all-optical diffraction neural network

    CN115471428A

Cited By

  • Optical device modeling method and device based on sparse grid space mapping

    CN119538748A