A photonic computing array and method for on-chip all-optical reasoning
Through the combination of pre-modulated phase change material layer and electro-optical modulator, the problem of complex structure and high cost of photonic computing chips in AI reasoning is solved, and a computing array with high accuracy and low power consumption is realized, which is suitable for large-scale deployment and Ultra-large-scale computing power requirements.
Patent Information
- Application Number
- CN202410834877.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-06-26
AI Technical Summary
Existing photonic computing chips require a large number of optical devices in complex AI inference calculations, resulting in complex structures, large sizes, high production costs, and difficulty in achieving high integration and stability.
A photon computing array using a pre-modulated phase change material layer is pre-modulated through the phase change material layer deposited on the optical waveguide. Combined with the electro-optical modulator and phase change material monitoring module, matrix multiplication and difference value calculation are implemented to reduce calculation accuracy. needs and reduce the pressure of real-time adjustment.
Significantly reduces cost and production complexity, improves calculation accuracy, and is suitable for ultra-low power consumption scenarios, especially in applications where the weight matrix does not change. It can ensure calculation accuracy through local fine-tuning, and is suitable for large-scale deployment and ultra-large Scale computing power requirements.
Smart Images

Figure CN118394171B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of photon computing technology, and in particular to a photon computing array and method for on-chip all-optical reasoning. Background Art
[0002] Photonic computing structures have the characteristics of high speed and parallelism, and have outstanding advantages in processing linear calculations, becoming a hot topic in current international research. People use new optical materials such as optical waveguide micro-nano structures and microlens arrays to build photonic computing chips and apply them to different scenarios.
[0003] For example, patent application CN117148496A discloses a large-scale photon computing chip with interconnected photon computing arrays of different layers, which includes a substrate and an integrated photon computing array, wherein the input side of each input row waveguide of each different layer of the photon computing array is connected to an optical beam splitter through a pattern spot converter, and the output side of each output column waveguide of each different layer is connected to an optical beam combiner through a pattern spot converter.
[0004] For another example, patent application CN117234276A discloses a hybrid photonic computing unit, a computing method, and a computing array for on-chip large-scale matrix multiplication operations. An electro-optic modulator based on carrier light absorption effect and an electro-optic modulator based on phase change material are integrated into the same photonic computing unit to form a hybrid photonic computing unit to be compatible with different application scenarios.
[0005] Among them, compared with electronic chips, photonic chips have unique advantages, such as ultra-high transmission speed, ultra-high parallelism, ultra-high bandwidth and ultra-low transmission power consumption.
[0006] However, with the advent of the era of artificial intelligence and big data, the demand for high computing performance and small size of photonic chips is increasing. For example, due to the need for complex AI reasoning calculations, the number of optical devices in the computing array will increase exponentially. To achieve good performance, at least tens of thousands of optical devices are required, which will also lead to more complex structures and larger sizes. In order to achieve programmability, this will require chips with higher integration.
[0007] However, the above requirements will also bring extremely high challenges to the chip production process, the overall stability of the process and the production yield, and will also lead to very high production costs.
[0008] Therefore, there is an urgent need for a computing array with a simpler structure and smaller size. Summary of the invention
[0009] The object of the present invention is to provide a photonic computing array for on-chip all-optical reasoning, which partially solves or alleviates the above-mentioned deficiencies in the prior art and can reduce the size of the computing unit for reasoning.
[0010] In order to solve the above-mentioned technical problems, the present invention specifically adopts the following technical solutions:
[0011] A first aspect of the present invention is to provide a photonic computing array for on-chip all-optical reasoning, comprising:
[0012] N rows of input row waveguides, and M columns of output column lines respectively intersecting with the N rows of input waveguides, wherein N×M computing units are formed at the intersections of the N rows of input row waveguides and the M columns of output column lines, and the computing units include: an optical waveguide, and a phase change material layer deposited on the optical waveguide, wherein the phase change material layer has a specific state of pre-modulation, wherein in the specific state, the ratio of the phase change material in the crystalline state to the phase change material in the amorphous state in the phase change material layer is Y; a protective layer is also deposited on the phase change material layer; wherein the input end of the optical waveguide is connected to the input row waveguide through a first optical power distribution device, and the output end of the optical waveguide is connected to the output column line through a second optical power distribution device or a photoelectric conversion device;
[0013] and an electro-optic modulator, wherein the electro-optic modulator is used to load an input electrical signal into the corresponding optical signal of the input traveling waveguide.
[0014] In some embodiments, the invention further comprises: a phase change material monitoring module connected to the photon computing array, wherein the phase change material monitoring module comprises:
[0015] A budget unit, configured to perform at least one calculation using the N×M computing units by using a preset specific matrix multiplication within a second working time;
[0016] a first output matrix unit, used to respectively obtain a plurality of first current values output by the plurality of phase change material layers when executing the current specific matrix multiplication, and determine a first output matrix corresponding to the specific matrix multiplication according to the plurality of first current values;
[0017] a first difference value calculation unit, configured to respectively calculate at least one first difference value between at least one second output matrix and the first output matrix by using a loss function; wherein, within a first working time after the phase change material layer completes pre-modulation, the specific matrix multiplication is used to complete at least one calculation in the N×M calculation units, and the second output matrix corresponding to the specific matrix multiplication is determined according to the multiple second current values currently outputted;
[0018] The decision unit is used to send a corresponding first prompt signal to the user when at least one first difference value is greater than a preset first threshold.
[0019] In some embodiments, when the number of the first difference values greater than the first threshold is less than or equal to a preset first number, a correction signal is sent to the computing array.
[0020] In some embodiments, the phase change material monitoring module further includes:
[0021] A correction unit is used to calculate a parameter matrix W for correction according to the first output matrix C and the second output matrix G using a first rule, wherein the first rule requires: the second output matrix G = the first output matrix C × the parameter matrix W; a correction signal is formed according to the parameter matrix W, and the correction signal includes: a correction value for correcting the output current of at least one of the calculation units.
[0022] In some embodiments, the phase change material monitoring module includes:
[0023] A verification unit, configured to perform at least one calculation using the N×M calculation units by adopting the specific matrix multiplication within a third working time;
[0024] a third output matrix unit, used to respectively obtain a plurality of third current values output by the plurality of phase change material layers when executing the current specific matrix multiplication, and determine a third output matrix according to the plurality of third current values;
[0025] A second difference value calculation unit, used to respectively calculate at least one second difference value between the second output matrix and the third output matrix using a loss function;
[0026] The verification unit is used to send a corresponding second prompt signal to the user when at least one second difference value is greater than a preset second threshold.
[0027] In some embodiments, when the number of the first difference values greater than the first threshold is greater than a preset first number, a stop suggestion signal is sent to the computing array.
[0028] In some embodiments, the loss function includes one or more of the following:
[0029] Absolute error loss function, squared loss function, cross entropy loss function, and loss functions composed of rational functions and / or elementary functions.
[0030] In some embodiments, the protective layer has a thickness of 1 to 2 μm;
[0031] In some embodiments, the protective layer is a silicon oxide layer.
[0032] In some embodiments, it also includes: a premodulation module, the premodulation module includes multiple premodulation units, and the multiple premodulation units are respectively connected to each of the computing units; the premodulation unit is configured to send a fifth optical pulse signal P5 having a fifth optical pulse power and a fifth pulse width to the computing unit, thereby premodulating the phase change material layer to a specific state.
[0033] A photon computing array computing method for on-chip all-optical reasoning comprises the steps of:
[0034] S100 provides a photon computing array, wherein the photon computing array comprises: N×M computing units, wherein the computing unit comprises: an optical waveguide, and a phase change material layer deposited on the optical waveguide, wherein the phase change material layer has a pre-modulated specific state, wherein in the specific state, a ratio of a crystalline phase change material to an amorphous phase change material in the phase change material layer is Y;
[0035] S101, within a second working time, using a preset specific matrix multiplication to perform at least one calculation using the N×M computing units;
[0036] S102 respectively obtains a plurality of first current values output by the plurality of phase change material layers when executing the current specific matrix multiplication, and determines a first output matrix corresponding to the specific matrix multiplication according to the plurality of first current values;
[0037] S103 uses a loss function to respectively calculate at least one first difference value between at least one second output matrix and the first output matrix; wherein, within a first working time after the phase change material layer completes pre-modulation, the specific matrix multiplication is used to complete at least one calculation in the N×M computing units, and the second output matrix corresponding to the specific matrix multiplication is determined according to the multiple second current values currently output;
[0038] S104: When at least one first difference value is greater than a preset first threshold, a corresponding prompt signal is sent to the user.
[0039] Beneficial technical effects:
[0040] Compared with the traditional computing array that uses electro-optical modulators to adjust weights in real time, the present invention proposes a completely opposite technical route, that is, using phase change materials in conjunction with pre-modulation concepts to propose a computing method that limits the state of phase change materials. Therefore, especially for applications with ultra-low power consumption and no change in the weight matrix, the pre-modulation scheme adopted by the present invention can significantly reduce costs (simple structure, simple preparation process) and improve the accuracy of calculations.
[0041] Moreover, by combining the non-volatile characteristics of phase change materials with the concept of pre-modulation, in this special application scenario with low power consumption and fixed weights, when the computing array is running, only local fine-tuning (i.e., adjusting a limited number of phase change material layers) is required to ensure the accuracy of the computing array. This technical solution that only requires micro-adjustments can effectively alleviate the pressure of real-time adjustment, making the solution easier to implement.
[0042] Among them, the pre-modulation scheme can be applied to ultra-low power consumption and application scenarios where the weight matrix will never change during the inference process. When the model is stable and needs to be deployed on a large scale for inference, the phase change material monitoring module can be used, such as ultra-low power consumption devices such as headphones and embedded systems or ultra-large-scale computing demand scenarios such as inference server clusters. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. In all the drawings, similar elements or parts are generally identified by similar reference numerals. In the drawings, each element or part is not necessarily drawn according to the actual scale. Obviously, the drawings described below are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without paying creative labor.
[0044] Figure 1 is a schematic structural diagram of a photon computing array that can be pre-modulated in a first exemplary embodiment of the present invention;
[0045] Figure 2 is a schematic structural diagram of a photon computing array that can be pre-modulated in a second exemplary embodiment of the present invention;
[0046] Figure 3 A schematic diagram of the structure of a photon computing array including a laser in a third exemplary embodiment of the present invention;
[0047] Figure 4 FIG. 4 is a schematic diagram of the structure of a photon computing array including a laser in a fourth exemplary embodiment of the present invention.
[0048] Summary of reference numerals:
[0049] 1 is a first optical power distribution device, 2 is a calculation unit, 3 is a second optical power distribution device, 4 is a first photoelectric conversion device, 5 is a grating coupler, 6 is a second photoelectric conversion device, 7 is an input row waveguide, 8 is an output column line, and 9 is a third optical power distribution device. DETAILED DESCRIPTION
[0050] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0051] Herein, suffixes such as "module", "component" or "unit" used to represent elements are only used to facilitate the description of the present invention, and have no specific meanings by themselves. Therefore, "module", "component" or "unit" can be used mixedly.
[0052] In this document, the terms "upper", "lower", "inner", "outer", "front", "back", "one end", "the other end" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the devices or elements referred to must have a specific orientation, be constructed and operate in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance.
[0053] In this document, unless otherwise clearly specified and limited, the terms "installed", "provided with", "connected", etc. should be understood in a broad sense. For example, "connected" can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection, a direct connection, or an indirect connection through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0054] Herein "and / or" includes any and all combinations of one or more of the associated listed items.
[0055] Herein, "plurality" means two or more than two, ie, it includes two, three, four, five, etc.
[0056] 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.
[0057] As used in this specification, the term "about" typically means + / - 5% of the stated value, more typically + / - 4% of the stated value, more typically + / - 3% of the stated value, more typically + / - 2% of the stated value, even more typically + / - 1% of the stated value, and even more typically + / - 0.5% of the stated value.
[0058] In this specification, some embodiments may be disclosed in a format of being in a range. It should be understood that this description of "being in a range" is only for convenience and brevity, and should not be interpreted as a rigid limitation on the disclosed range. Therefore, the description of the range should be considered to have specifically disclosed all possible sub-ranges and independent numerical values within this range. For example, the description of the range 1-6 should be considered to have specifically disclosed sub-ranges such as from 1 to 3, from 1 to 4, from 1 to 5, from 2 to 4, from 2 to 6, from 3 to 6, etc., as well as individual numbers within this range, such as 1, 2, 3, 4, 5 and 6. Regardless of the breadth of the range, the above rules apply.
[0059] In this article, "Electro-Optic Modulators" (EOM) are used to control the power, phase and polarization of laser beams through electronic control signals. Electro-optic modulators are modulators made using the electro-optic effect of certain electro-optic crystals, such as lithium niobate crystals (LiNb03), gallium arsenide crystals (GaAs) and lithium tantalate crystals (LiTa03); or modulators made on doped silicon crystals using the effect of the electric field on the carrier distribution to change the refractive index of the silicon crystal. The electro-optic effect means that when a voltage is applied to an electro-optic crystal, the refractive index of the electro-optic crystal will change, resulting in changes in the characteristics of the light wave passing through the crystal, thereby modulating the phase, amplitude, intensity and polarization state of the optical signal.
[0060] In this article, "splitter" can use optical waveguides, optical couplers, heaters, phase shifters and other components with specific structures to achieve the distribution of optical signals inside the chip in an active or passive manner. In this article, the splitter is also called an optical power distribution device.
[0061] In this article, the process of modulating at least one phase change material layer in the photon computing array to put it in a specific state before running the matrix multiplication is called "pre-modulation". The specific state refers to the ratio of the phase change material in the crystalline state to the phase change material in the amorphous state in the phase change material layer being a fixed value (such as the Y value). At this time, when the photon computing array is calculating, each phase change material layer (or its corresponding computing unit) will have a specific weight value; specifically, the Y value is determined by the matrix multiplication to be run.
[0062] Embodiment 1
[0063] Different from the photon computing chip or computing array in the prior art (which requires a modulator for modulating the state of the phase change material to be arranged in the computing unit), the present invention provides a pre-modulated photon computing array (the structural arrangement of the computing array can be seen in Figure 1-Figure 2 As shown in the figure, the pre-modulated photonic computing array gets rid of the dependence on the modulator and can effectively reduce the size of the computing unit.
[0064] In this embodiment, a photonic computing array for on-chip all-optical reasoning includes:
[0065] N rows of input row waveguides 7, and M columns of output column lines 8 respectively intersecting with the N rows of input row waveguides 7, wherein N×M computing units 2 are formed at the intersection of the N rows of input row waveguides 7 and the M columns of output column lines 8, wherein the computing unit 2 comprises: an optical waveguide, and a phase change material layer deposited on the optical waveguide, wherein the phase change material layer has a pre-modulated specific state, wherein in the specific state, the ratio of the phase change material in the crystalline state to the phase change material in the amorphous state in the phase change material layer is Y (wherein Y is a preset value); wherein the input end of the optical waveguide is connected to the input row waveguide through a first optical power distribution device 1, and the output end of the optical waveguide is connected to the output column line through a second optical power distribution device 3 or a first photoelectric conversion device 4;
[0066] and an electro-optic modulator, wherein the electro-optic modulator is used to load an input electrical signal into the corresponding optical signal of the input traveling waveguide.
[0067] The first optical power distribution device is used to perform optical splitting processing on the optical signal entering the input traveling waveguide 7. The second optical power distribution device and the first photoelectric conversion device are used to integrate the signal (ie, the calculation result) output by the optical waveguide.
[0068] Preferably, in some embodiments, a protective layer is also deposited on the phase change material layer.
[0069] For example, in some embodiments, the pre-modulation of the computing array may be completed by a laser (the modulation process may refer to the real-time modulation method in Embodiment 3).
[0070] It should be noted that in the prior art (such as CN117234276A), at least one modulator needs to be selected to modulate the input signal; and a modulator needs to be set inside the computing unit to modulate the phase change material. In contrast, this embodiment proposes a photon computing array capable of pre-modulation, which only needs to set at least one modulator to complete the loading of the electrical signal (for example, an electro-optical modulator can be set at the input end of each row of input waveguides), thereby avoiding the need to further set up modulators inside the computing unit, and effectively reducing the size of the computing unit.
[0071] In some embodiments, the invention further comprises: a phase change material monitoring module connected to the photon computing array, wherein the phase change material monitoring module comprises:
[0072] A budget unit, configured to perform at least one calculation using the N×M computing units by using a preset specific matrix multiplication;
[0073] a first output matrix unit, used to respectively obtain a plurality of first current values output by the plurality of phase change material layers when executing the current specific matrix multiplication, and determine a first output matrix C corresponding to the specific matrix multiplication according to the plurality of first current values;
[0074] For example, in some embodiments, the real-time first output matrix C can be compared with the factory data during the second working time to verify the current working state of the phase change material layer.
[0075] A first difference value calculation unit, used to respectively calculate at least one first difference value between at least one second output matrix and the first output matrix by using a loss function; wherein, within a first working time (such as a factory time) after the phase change material layer completes pre-modulation, the specific matrix multiplication is used to complete at least one calculation in the N×M calculation units, and the second output matrix corresponding to the specific matrix multiplication is determined according to the multiple second current values currently output;
[0076] The decision unit is used to send a corresponding prompt signal to the user when at least one first difference value is greater than a preset first threshold.
[0077] In some embodiments, after premodulation is completed, a specific matrix multiplication can be used to perform n calculations to obtain output matrix G1, output matrix G2...output matrix Gn respectively, and then the corresponding difference value is calculated based on the average value of n differences between the n corresponding output matrices and the first output matrix.
[0078] In some embodiments, according to different computing tasks corresponding to the pre-modulated computing array, different matrix multiplications (equivalent to specific matrix multiplications) can be selected to run on the computing array to obtain a second output matrix G (ie, factory data) before delivery.
[0079] In some embodiments, the specific matrix multiplication is the matrix multiplication performed when the photonic computing array is working.
[0080] Specifically, before the photonic computing array leaves the factory, the expected output current of the phase change material on the optical chip is calculated through the theoretical data of the phase change material, and the corresponding modulation is performed before leaving the factory. After the modulation is completed, a specific matrix multiplication is run on the computing array, and the current output result - the second output matrix G - is recorded.
[0081] The pre-modulation scheme in this embodiment can be applied to ultra-low power consumption and application scenarios where the weight matrix never changes during the inference process. When the model is stable and needs to be deployed on a large scale for inference, a phase change material monitoring module can be used, such as ultra-low power consumption devices such as headphones and embedded systems or ultra-large-scale computing power demand scenarios such as inference server clusters.
[0082] Moreover, this photon computing array with matrix verification function has a smaller size on the one hand, and can maintain computing accuracy and reliability during long-term operation on the other hand.
[0083] From another perspective, compared with the traditional computing array that uses electro-optical modulators to adjust weights in real time, the present invention proposes a completely opposite technical route, that is, using phase change materials in conjunction with pre-modulation concepts to propose a computing method that limits the state of phase change materials. Therefore, especially for applications with ultra-low power consumption and no change in the weight matrix, the pre-modulation scheme adopted by the present invention can significantly reduce costs (simple structure, simple preparation process) and improve the accuracy of calculations.
[0084] Moreover, by combining the non-volatile characteristics of phase change materials with the concept of pre-modulation, in this special application scenario with low power consumption and fixed weights, when the computing array is running, only local fine-tuning (i.e., adjusting a limited number of phase change material layers) is required to ensure the accuracy of the computing array. This technical solution that only requires micro-adjustments can effectively alleviate the pressure of real-time adjustment, making the solution easier to implement.
[0085] In some embodiments, when the number of the first difference values greater than the first threshold is less than or equal to a preset first number, a correction signal is sent to the computing array.
[0086] In some embodiments, the phase change material monitoring module further includes:
[0087] A correction unit is used to calculate a parameter matrix W for correction according to the first output matrix C and the second output matrix G using a first rule, wherein the first rule requires that: the second output matrix G = the first output matrix C × the parameter matrix W; a correction signal is formed according to the parameter matrix W, and the correction signal includes: a correction value corresponding to the output current of at least one of the calculation units.
[0088] Among them, the first output matrix C is the verification result in the actual working scenario, and the second output matrix G is the factory test result.
[0089] In some embodiments, when the number of the first difference values greater than the first threshold is greater than a preset first number, a stop suggestion signal is sent to the computing array.
[0090] For example, in some embodiments, when the number of the first difference values is large, it may be suggested that the computing array suspend the current work to avoid invalid calculations.
[0091] Furthermore, in some embodiments, the phase change material monitoring module includes:
[0092] A verification unit, configured to perform at least one calculation using the N×M computing units by using the specific matrix multiplication within a third working time (for example, one day, one week, or one month after the second working time);
[0093] a third output matrix unit, used to respectively obtain a plurality of third current values output by the plurality of phase change material layers when executing the current specific matrix multiplication, and determine a third output matrix according to the plurality of third current values;
[0094] A second difference value calculation unit, used to respectively calculate at least one second difference value between the first output matrix and the third output matrix using a loss function;
[0095] The verification unit is used to send a corresponding second prompt signal to the user or the computing array when at least one second difference value is greater than a preset second threshold value.
[0096] In this embodiment, when the two verification values (i.e., the first output matrix and the third output matrix) fluctuate too much, a corresponding second prompt signal will be sent to the user or the computing array again to suggest that the computing array suspend work to avoid invalid calculations. In other words, this embodiment performs comprehensive verification through different dimensions such as the deviation between historical data and real-time data and the fluctuation deviation of real-time data.
[0097] The multiple verification mechanism in this embodiment can reliably identify calculation errors caused by process failures or material life, and flexibly select response strategies (such as real-time correction or suspension of calculation) according to different error levels, thereby improving the effectiveness and accuracy of the calculation; and reducing the amount of invalid calculations while ensuring the accuracy of the calculation.
[0098] In some embodiments, the loss function includes one or more of the following: an absolute error loss function, a square loss function, a cross entropy loss function, and a loss function composed of rational functions and / or elementary functions.
[0099] In some embodiments, the thickness of the protective layer is 1 to 2 μm. In this embodiment, the thickness of the protective layer can provide protection without causing wear and tear or damage.
[0100] In some embodiments, the protective layer is a silicon oxide layer.
[0101] In some embodiments, it also includes: a first premodulation module, the first premodulation module includes multiple premodulation units, and the multiple premodulation units are respectively connected to each of the computing units; the premodulation unit is configured to send a fifth optical pulse signal P5 having a fifth optical pulse power and a fifth pulse width to the computing unit, thereby premodulating the phase change material layer to a specific state.
[0102] For example, in some embodiments, the fifth pulse light signal is used to modulate the crystalline state to the amorphous state. Preferably, the power of the light pulse signal is between 0.1 mW and 50 mW, and the width of the light pulse signal is between 1 ns and 300 ns.
[0103] Alternatively, in some embodiments, a second conversion unit (equivalent to a second premodulation module) may also be used, and the second conversion unit is configured to send a third optical pulse signal P3 having a third optical pulse power and a third pulse width, and at least one fourth optical pulse signal P4 having a fourth optical pulse power and a fourth pulse width to the corresponding computing unit, so that a specific portion of the phase change material in a crystalline state is converted into an amorphous state; wherein the third optical pulse power is greater than the fourth optical pulse power; and the third pulse width is less than the fourth pulse width.
[0104] For example, in some embodiments, the third photoelectric pulse signal P3 is approximately between 0.1mW and 30mW, the pulse width of the third photoelectric pulse signal P3 is between 1ns and 100ns, the optical pulse power of the fourth optical pulse signal P4 is between 0.1mW and 20mW, and the pulse width of the fourth optical pulse signal P4 is between 1ns and 200ns.
[0105] Preferably, the phase change material layer (or phase change material) can be formed by a chalcogenide containing antimony or selenium or contain the chalcogenide, such as antimony selenide (Sb2Se3 or SbSe), antimony sulfide (Sb2S3 or SbS), Ge2Sb2Se4Te (GSST); the phase change material may include or be composed of a compound or alloy of an element combination selected from GeSbTe, VOx; NbOx, GeTe, GeSb, GaSb, AgInSbTe, InSb, InSbTe, InSe, SbTe, TeGeSbS, AgSbSe, SbSe, GeSbMnSn, AgSbTe, AuSbTe and AlSb, and the phase change material may include a mixture of the above compounds; the phase change material may be a superlattice material.
[0106] Embodiment 2
[0107] Correspondingly, the present invention also provides a calculation method of a photon computing array for on-chip all-optical reasoning, comprising the steps of:
[0108] S100 provides a photon computing array, wherein the photon computing array comprises: N×M computing units, wherein the computing unit comprises: an optical waveguide, and a phase change material layer deposited on the optical waveguide, wherein the phase change material layer has a pre-modulated specific state, wherein in the specific state, a ratio of a crystalline phase change material to an amorphous phase change material in the phase change material layer is Y;
[0109] S101, within a second working time, using a preset specific matrix multiplication to perform at least one calculation using the N×M computing units;
[0110] For example, in some embodiments, after the photonic computing array has been operating for a period of time (such as a week or a month), its operating stability may be verified using a specific matrix multiplication.
[0111] S102 respectively obtains a plurality of first current values output by the plurality of phase change material layers when executing the current specific matrix multiplication, and determines a first output matrix corresponding to the specific matrix multiplication according to the plurality of first current values;
[0112] S103 uses a loss function to respectively calculate at least one first difference value between at least one second output matrix and the first output matrix; wherein, within a first working time (for example, the first working time refers to the factory time, or refers to the time when the modulation is just completed) after the phase change material layer completes pre-modulation, the specific matrix multiplication is used to complete at least one calculation in the N×M computing units, and the second output matrix corresponding to the specific matrix multiplication is determined according to the multiple second current values currently output;
[0113] S104: When at least one first difference value is greater than a preset first threshold, a corresponding prompt signal is sent to the user.
[0114] In some embodiments, when the number of the first difference values greater than the first threshold is less than or equal to a preset first number, a correction signal is sent to the computing array.
[0115] In some embodiments, the step of acquiring the correction signal includes:
[0116] A parameter matrix W for correction is calculated according to the first output matrix C and the second output matrix G using a first rule, wherein the first rule requires that: the second output matrix G = the first output matrix C×the parameter matrix W;
[0117] A correction signal is formed according to the parameter matrix W, wherein the correction signal comprises: a correction value for correcting an output current of at least one of the calculation units.
[0118] It can be understood that the method in this embodiment can implement the steps performed by any module or unit in the above-mentioned embodiment 1, which will not be repeated here.
[0119] Embodiment 3
[0120] Different from the first embodiment, the computing array provided in this embodiment can be switched in different reasoning scenarios (see Figure 3-Figure 4 as shown).
[0121] It is worth noting that the computing array of this embodiment can also remove the modulator part, the light splitting part device and the input traveling waveguide in the original computing unit at the same time, thereby further simplifying the structure of the computing unit and reducing the size of the computing unit.
[0122] In some embodiments, a photonic computing array utilizing an array laser includes:
[0123] M columns of output column lines, each of which is provided with N computing units to form N×M computing units, wherein the computing unit comprises: an optical waveguide, and a phase change material layer deposited on the optical waveguide, and a protective layer is further provided on the phase change material layer;
[0124] N×M lasers, and the N×M lasers are respectively connected to the corresponding computing units; wherein the lasers are arranged at the input end of the optical waveguide;
[0125] An independent conversion module connected to the laser, the independent conversion module comprising: a first conversion unit, the first conversion unit being configured to send a first optical pulse signal P1 having a first optical pulse power and a first pulse width, and at least one second optical pulse signal P2 having a second optical pulse power and a second pulse width to the corresponding computing unit, so as to convert a specific portion of the phase change material in an amorphous state into a crystalline state; wherein the first optical pulse power is greater than the second optical pulse power, and the first pulse width is less than the second pulse width.
[0126] For example, in some embodiments, the power of the first optical pulse signal is approximately between 0.1 mW and 20 mW, and the pulse width is approximately between 1 ns and 100 ns, and the power of the lower optical pulse signal is approximately between 0.1 mW and 10 mW, and the pulse width is approximately between 1 ns and 200 ns.
[0127] In this embodiment, the first and second optical pulse signals can be used to modulate the amorphous state to the crystalline state.
[0128] In some embodiments, the independent conversion module further includes:
[0129] A second conversion unit, wherein the second conversion unit is configured to send a third optical pulse signal P3 having a third optical pulse power and a third pulse width, and at least one fourth optical pulse signal P4 having a fourth optical pulse power and a fourth pulse width to the corresponding computing unit, so that a specific portion of the phase change material in a crystalline state is converted into an amorphous state; wherein the third optical pulse power is greater than the fourth optical pulse power; and the third pulse width is less than the fourth pulse width.
[0130] For example, in some embodiments, the third photoelectric pulse signal P3 is approximately between 0.1mW and 30mW, the pulse width of the third photoelectric pulse signal P3 is between 1ns and 100ns, the optical pulse power of the fourth optical pulse signal P4 is between 0.1mW and 20mW, and the pulse width of the fourth optical pulse signal P4 is between 1ns and 200ns.
[0131] In this embodiment, the third and fourth optical pulse signals can be used to modulate the static state of the phase change material into an amorphous state.
[0132] Preferably, in this embodiment, the computing array can utilize the first and second conversion units to repeatedly adjust the weights (ie, the state of the comparison material) to be suitable for different reasoning scenarios.
[0133] In some embodiments, the computing unit is further provided with a grating coupler 5 between the laser and the computing unit, and the grating coupler is used to effectively couple the optical signal output by the laser into the optical waveguide.
[0134] In this embodiment, the grating coupler is used without the need to perform optical power distribution.
[0135] Specifically, an array laser is used to directly input light to each photon computing unit. Different from the previous solution using waveguide coupling devices (photon computing units in each row share the same laser input), it can achieve optical power distribution by controlling the output optical power of each laser in the array laser. From the perspective of optical power distribution, compared with the light splitting device, which also needs to consider the impact of process errors, the photon computing unit in this embodiment uses a grating coupler and an array laser to cooperate with each other, which has higher working reliability.
[0136] In some embodiments, the output end of the optical waveguide is connected to the output column line 8 through the third optical power distribution device 9 or the second photoelectric conversion device 6 .
[0137] Preferably, in some embodiments, an array laser is used to perform real-time modulation on the phase change material layer, that is, an independent conversion module is arranged in the laser.
[0138] In some embodiments, it also includes:
[0139] A budget unit, configured to (at the second working time) perform at least one calculation using the N×M computing units by using a preset specific matrix multiplication;
[0140] A first output matrix unit, used to respectively obtain a plurality of first current values output by a plurality of the phase change material layers when running the current specific matrix multiplication, and determine a first output matrix (i.e., test data in an actual working process) corresponding to the specific matrix multiplication according to the plurality of first current values;
[0141] a first difference value calculation unit, configured to respectively calculate at least one first difference value between at least one second output matrix and the first output matrix by using a loss function; wherein, within a first working time after the phase change material layer completes pre-modulation, the specific matrix multiplication is used to complete at least one calculation in the N×M calculation units, and the second output matrix corresponding to the specific matrix multiplication is determined according to the multiple second current values currently outputted;
[0142] The decision unit is used to send a corresponding prompt signal to the user when at least one first difference value is greater than a preset first threshold.
[0143] For example, the pre-modulation in this embodiment may refer to the test modulation before the factory.
[0144] In some embodiments, when the number of the first difference values greater than the first threshold is less than or equal to a preset first number, a correction signal is sent to the computing array.
[0145] In some embodiments, the phase change material monitoring module further includes:
[0146] A correction unit is used to calculate a parameter matrix W for correction according to the first output matrix C and the second output matrix G using a first rule, wherein the first rule requires: the second output matrix G = the first output matrix C × the parameter matrix W; a correction signal is formed according to the parameter matrix W, and the correction signal includes: a correction value for correcting the output current of at least one of the calculation units.
[0147] For example, in some embodiments, the correction unit is further used to calculate the fourth output matrix C' according to the second rule, and the second rule is: the fourth output matrix C'=the first output matrix C×W -1 ; Calculate the difference between each element of the fourth output matrix C' and the first output matrix C; and determine the correction value (such as the correction proportional coefficient) corresponding to each of the calculation units according to the difference.
[0148] For computing scenarios with low power consumption (i.e., the computing power consumption of a single computing unit is relatively small) and the need for large-scale deployment for AI reasoning, this embodiment proposes a multi-level verification process that can accurately modulate and correct the weights of phase change materials during repeated switching, so as to improve the reliability of calculation results through simple signal correction (such as local correction of the output current or output signal of one or more phase change material layers).
[0149] It is worth noting that, by utilizing the non-volatile characteristics of phase change materials in combination with a local adjustment and correction scheme, this embodiment can effectively adapt to application scenarios that require low power consumption and large-scale deployment of AI reasoning.
[0150] In some embodiments, when the number of the first difference values greater than the first threshold is greater than a preset first number, a stop suggestion signal is sent to the computing array.
[0151] Furthermore, in some embodiments, the phase change material monitoring module includes:
[0152] A verification unit, configured to perform at least one calculation using the N×M computing units by using the specific matrix multiplication within a third working time (for example, one day, one week, or one month after the second working time);
[0153] a third output matrix unit, used to respectively obtain a plurality of third current values output by the plurality of phase change material layers when executing the current specific matrix multiplication, and determine a third output matrix according to the plurality of third current values;
[0154] A second difference value calculation unit, used to respectively calculate at least one second difference value between the first output matrix and the third output matrix using a loss function;
[0155] The verification unit is used to send a corresponding second prompt signal to the user or the computing array when at least one second difference value is greater than a preset second threshold value.
[0156] For example, when at least one second difference value is greater than a preset second threshold, the correction process is preferably stopped to remind manual borrowing for maintenance.
[0157] Alternatively, in some other embodiments, when the number of the second difference values is greater than the second number, the correction process and the calculation process are stopped. When the number of the second difference values is less than or equal to the first number, the signal correction is continued using the above method.
[0158] This embodiment further ensures the calculation accuracy of the phase change material layer under frequent switching through multiple verification and correction mechanisms, so as to enable reliable frequent switching in different reasoning scenarios.
[0159] The correction mechanism based on multiple verification proposed in this embodiment can avoid the influence of material defects (such as material defects caused by early process preparation problems or material service life) on the calculation process as much as possible. In addition, the correction mechanism adopted in this embodiment can improve the tolerance of material defects, thereby reducing the requirements for process preparation to a certain extent, and reducing the difficulty and cost of process preparation.
[0160] It is worth mentioning that the advantages of the present invention also lie in that it does not require a spectroscopic device, and it is not necessary to use an optical power distribution device in the computing array to complete the two processes of calculation and weight change in the calculation process. In addition, by utilizing the characteristics of phase change materials (which do not require the state of the phase change materials to change during the calculation process) and using them in conjunction with lasers, the intensity of the optical signal required to be emitted by the laser during a single operation is also relatively limited, so there will be no large heat generation that affects the use of the laser. Especially in the process of weight change, due to the non-volatile characteristics of phase change materials, the state of the phase change materials can be changed one by one without working at the same time, and the instantaneous high power of a single-channel laser will not cause continuous heating, which will not affect the use of the laser.
[0161] In some embodiments, the loss function includes one or more of the following: an absolute error loss function, a square loss function, a cross entropy loss function, and a loss function composed of rational functions and / or elementary functions.
[0162] Preferably, in some embodiments, the weight of at least one of the computing units may be switched using an interval weight switching mode, wherein the interval weight switching mode means that when the photon computing array switches the weight of the computing unit, the N×M lasers may be operated separately in a certain order.
[0163] For example, a large-scale computing array may be divided into regions to obtain multiple sub-computing arrays (which may include one or more computing units). Correspondingly, at the same time, preferably only several sub-computing arrays that are far apart are allowed to perform weight switching synchronously.
[0164] For example, in some embodiments, the method further includes: a weight switching supervision module, which is used to perform the following steps:
[0165] When at least one current laser is running or about to run (i.e., switching the weight of the computing unit), power consumption data of the at least one current laser is obtained; wherein the power consumption data may be the signal strength required for the laser to complete the weight switching task, or the power consumption data may also be the amount of heat that may be generated by the laser to complete the weight switching task.
[0166] When the power consumption data of at least one current laser is greater than the set power consumption threshold (the specific value can be set by the user), it is recommended that the adjacent lasers suspend operation to avoid excessive power consumption in local areas (such as local overheating) and affect the working stability of the computing unit.
[0167] The adjacent laser refers to a laser whose distance from the current laser is smaller than the first distance. In particular, the adjacent laser may be a laser adjacent to the current laser.
[0168] In this embodiment, for the weight switching scenario of a large-scale computing array, a spaced weight switching mode is used in space to perform weight switching processing, which can effectively prevent the overheating of the laser from affecting the working stability of the computing array.
[0169] Embodiment 4
[0170] The present invention also provides a corresponding method for calculating a photon calculation array using an array laser, comprising the steps of:
[0171] S200 provides a photon computing array, the photon computing array comprising: N×M computing units, the computing units comprising: an optical waveguide, and a phase change material layer deposited on the optical waveguide, wherein a protective layer is further disposed on the phase change material layer; N×M lasers, wherein the N×M lasers are respectively connected to corresponding computing units;
[0172] S201 uses a preset specific matrix multiplication to perform at least one calculation using the N×M computing units;
[0173] S202 respectively obtains a plurality of first current values output by the plurality of phase change material layers when executing the current specific matrix multiplication, and determines a first output matrix corresponding to the specific matrix multiplication according to the plurality of first current values;
[0174] S203 uses a loss function to respectively calculate at least one first difference value between at least one second output matrix and the first output matrix; wherein, within a first working time after the phase change material layer completes pre-modulation, the specific matrix multiplication is used to complete at least one calculation in the N×M computing units, and the second output matrix corresponding to the specific matrix multiplication is determined according to the multiple second current values currently output;
[0175] S204: When at least one first difference value is greater than a preset first threshold, a corresponding prompt signal is sent to the user.
[0176] It can be understood that the method in this embodiment can execute the functional steps of any of the above modules or units, or include the steps in any of the above methods, which will not be repeated here.
[0177] In some embodiments, the lines in the output column lines can be arranged as waveguides, such as Figure 1 , Figure 3 shown.
[0178] Alternatively, in some other embodiments, the circuit may also be configured as an output circuit, such as Figure 2 , Figure 4 shown.
[0179] 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.
[0180] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a computer terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0181] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.
Claims
1. A photonic computing array for on-chip all-optical reasoning, characterized in that: include: N rows of input row waveguides, and M columns of output column lines respectively intersecting with the N rows of input row waveguides, wherein N×M computing units are formed at the intersection of the N rows of input row waveguides and the M columns of output column lines, and the computing units include: an optical waveguide, and a phase change material layer deposited on the optical waveguide, wherein the phase change material layer has a specific state of pre-modulation, wherein in the specific state, the ratio of the phase change material in the crystalline state to the phase change material in the amorphous state in the phase change material layer is Y; a protective layer is also deposited on the phase change material layer; wherein the input end of the optical waveguide is connected to the input row waveguide through a first optical power distribution device, and the output end of the optical waveguide is connected to the output column line through a second optical power distribution device or a photoelectric conversion device; and an electro-optic modulator, the electro-optic modulator being used to load an input electrical signal into a corresponding optical signal of the input traveling waveguide; A phase change material monitoring module connected to the photon computing array, the phase change material monitoring module comprising: A budget unit, configured to perform at least one calculation using the N×M computing units by using a preset specific matrix multiplication within a second working time; a first output matrix unit, used to respectively obtain a plurality of first current values output by the plurality of phase change material layers when executing the current specific matrix multiplication, and determine a first output matrix C corresponding to the specific matrix multiplication according to the plurality of first current values; a first difference value calculation unit, configured to respectively calculate at least one first difference value between at least one second output matrix G and the first output matrix C by using a loss function; wherein, within a first working time after the phase change material layer completes pre-modulation, the specific matrix multiplication is used to complete at least one calculation in the N×M calculation units, and the second output matrix G corresponding to the specific matrix multiplication is determined according to the multiple second current values currently output; a decision unit, configured to send a corresponding first prompt signal to a user when at least one of the first difference values is greater than a preset first threshold; Wherein, the phase change material monitoring module also includes: A correction unit is used to calculate a parameter matrix W for correction according to the first output matrix C and the second output matrix G using a first rule, wherein the first rule requires: the second output matrix G = the first output matrix C × the parameter matrix W; a correction signal is formed according to the parameter matrix W, and the correction signal includes: a correction value for correcting the output current of at least one of the calculation units.
2. A photonic computing array for on-chip all-optical reasoning according to claim 1, characterized in that: When the number of the first difference values greater than the first threshold is less than or equal to a preset first number, a correction signal is sent to the photon computing array.
3. The photonic computing array for on-chip all-optical reasoning according to claim 1, characterized in that: The phase change material monitoring module also includes: A verification unit, configured to perform at least one calculation using the N×M calculation units by adopting the specific matrix multiplication within a third working time; a third output matrix unit, used to respectively obtain a plurality of third current values output by the plurality of phase change material layers when executing the current specific matrix multiplication, and determine a third output matrix according to the plurality of third current values; A second difference value calculation unit, used to respectively calculate at least one second difference value between the first output matrix C and the third output matrix using a loss function; The verification unit is used to send a corresponding second prompt signal to the user when at least one of the second difference values is greater than a preset second threshold.
4. The photonic computing array for on-chip all-optical reasoning according to claim 1, characterized in that: When the number of the first difference values greater than the first threshold is greater than a preset first number, a stop suggestion signal is sent to the photon computing array.
5. The photonic computing array for on-chip all-optical reasoning according to claim 1, characterized in that: The loss function includes one or more of the following: Absolute error loss function, squared loss function, cross entropy loss function, and loss functions composed of rational functions and / or elementary functions.
6. The photonic computing array for on-chip all-optical reasoning according to claim 1, characterized in that: The protective layer has a thickness of 1 to 2 μm.
7. The photonic computing array for on-chip all-optical reasoning according to claim 1, characterized in that: The protective layer is a silicon oxide layer.
8. The photonic computing array for on-chip all-optical reasoning according to claim 1, characterized in that: Also includes: A premodulation module, wherein the premodulation module comprises a plurality of premodulation units, and the plurality of premodulation units are respectively connected to each of the calculation units; The premodulation unit is configured to send a fifth optical pulse signal P5 having a fifth optical pulse power and a fifth pulse width to the calculation unit, so as to premodulate the phase change material layer to a specific state.
9. A computing method for a photonic computing array for on-chip all-optical reasoning, characterized in that: Includes steps: S100 provides a photon computing array, wherein the photon computing array comprises: N×M computing units, wherein the computing unit comprises: an optical waveguide, and a phase change material layer deposited on the optical waveguide, wherein the phase change material layer has a pre-modulated specific state, wherein in the specific state, a ratio of a crystalline phase change material to an amorphous phase change material in the phase change material layer is Y; S101, within a second working time, using a preset specific matrix multiplication to perform at least one calculation using the N×M computing units; S102 respectively obtains a plurality of first current values output by the plurality of phase change material layers when executing the current specific matrix multiplication, and determines a first output matrix C corresponding to the specific matrix multiplication according to the plurality of first current values; S103 uses a loss function to respectively calculate at least one first difference value between at least one second output matrix G and the first output matrix C; wherein, within a first working time after the phase change material layer completes pre-modulation, the specific matrix multiplication is used to complete at least one calculation in the N×M computing units, and the second output matrix G corresponding to the specific matrix multiplication is determined according to the multiple second current values currently output; S104: when at least one of the first difference values is greater than a preset first threshold, a corresponding prompt signal is sent to the user; The method further comprises the step of sending a correction signal to the computing array, wherein the step of obtaining the correction signal comprises: A parameter matrix W for correction is calculated according to the first output matrix C and the second output matrix G using a first rule, wherein the first rule requires that: the second output matrix G = the first output matrix C×the parameter matrix W; A correction signal is formed according to the parameter matrix W, wherein the correction signal comprises: a correction value for correcting an output current of at least one of the calculation units.
Citation Information
Patent Citations
Photon computing chip with interconnected large-scale different-layer photon computing arrays
CN117148496A
Photon calculation solver for solving linear equation set
CN115543012A
Hybrid photon calculation unit, calculation method and calculation array for on-chip large-scale matrix multiplication
CN117234276A
Cited By
Optical calculation module and optical calculation array
CN120065431A
Optical computing module and optical computing array
CN120065431B
Optical calculation module and optical calculation array based on germanium absorption layer
CN120908946A
Optical computing module and optical computing array based on germanium absorption layer
CN120908946B
