CN118410844B - An optical fully connected neural network device and its working method - Google Patents
An optical fully connected neural network device and its working method Download PDFInfo
- Publication number
- CN118410844B CN118410844B CN202410852141.XA CN202410852141A CN118410844B CN 118410844 B CN118410844 B CN 118410844B CN 202410852141 A CN202410852141 A CN 202410852141A CN 118410844 B CN118410844 B CN 118410844B
- Authority
- CN
- China
- Prior art keywords
- module
- optical
- neural network
- zth
- layer
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/06—Physical realisation, i.e. hardware implementation of neural networks, neurons or parts of neurons
- G06N3/067—Physical realisation, i.e. hardware implementation of neural networks, neurons or parts of neurons using optical means
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/0464—Convolutional networks [CNN, ConvNet]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/06—Physical realisation, i.e. hardware implementation of neural networks, neurons or parts of neurons
- G06N3/061—Physical realisation, i.e. hardware implementation of neural networks, neurons or parts of neurons using biological neurons, e.g. biological neurons connected to an integrated circuit
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Theoretical Computer Science (AREA)
- Biomedical Technology (AREA)
- Biophysics (AREA)
- Molecular Biology (AREA)
- General Health & Medical Sciences (AREA)
- Evolutionary Computation (AREA)
- Data Mining & Analysis (AREA)
- Computational Linguistics (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mathematical Physics (AREA)
- Software Systems (AREA)
- Artificial Intelligence (AREA)
- Neurology (AREA)
- Microelectronics & Electronic Packaging (AREA)
- Devices For Indicating Variable Information By Combining Individual Elements (AREA)
Abstract
Description
技术领域Technical Field
本发明属于人工智能领域,具体涉及一种用于进行深度卷积神经网络机器学习的光学全连接神经网络装置及其工作方法。The present invention belongs to the field of artificial intelligence, and specifically relates to an optical fully connected neural network device for performing deep convolutional neural network machine learning and a working method thereof.
背景技术Background Art
深度学习是机器学习和人工智能研究的最新趋势之一。它也是当今最流行的科学研究趋势之一。深度学习方法为计算机视觉和机器学习带来了革命性的进步。新的深度学习技术正在不断诞生,超越最先进的机器学习甚至是现有的深度学习技术。近年来,全世界在这一领域取得了许多重大突破。深度学习是从机器学习和人工神经网络的中衍生出来的一个主要方法,而人工神经网络是深度学习最常用的形式。卷积神经网络是一种深度学习模型或类似于人工神经网络的多层感知器,常用来分析视觉图像。一个卷积神经网络主要由以下5层组成:数据输入层、卷积计算层、激励层、池化层和全连接层。其中全连接层是卷积神经网络最后的一步,经过卷积计算后得到的所有特征在全连接层与所有输出建立神经网络连接。Deep learning is one of the latest trends in machine learning and artificial intelligence research. It is also one of the most popular scientific research trends today. Deep learning methods have brought revolutionary advances to computer vision and machine learning. New deep learning techniques are constantly being born, surpassing the most advanced machine learning and even existing deep learning techniques. In recent years, many major breakthroughs have been made in this field around the world. Deep learning is a major method derived from machine learning and artificial neural networks, and artificial neural networks are the most commonly used form of deep learning. Convolutional neural networks are a deep learning model or a multi-layer perceptron similar to artificial neural networks, which are often used to analyze visual images. A convolutional neural network mainly consists of the following 5 layers: data input layer, convolution calculation layer, excitation layer, pooling layer and fully connected layer. Among them, the fully connected layer is the last step of the convolutional neural network. All the features obtained after the convolution calculation establish a neural network connection with all the outputs in the fully connected layer.
基于中央计算器(CPU)的全连接神经网络运算,每次只能进行一条指令,因此神经网络参数载入、依次做乘法、存储后再加法求和,整个计算过程需要大量的重复指令,消耗计算能源和时间。因此为了提高速度,可以在硬件上采用基于图形处理器(GPU)的并行计算方法,利用其大存储容量和多核提高速度。The fully connected neural network operation based on the central computing unit (CPU) can only perform one instruction at a time, so the neural network parameters are loaded, multiplied, stored, and then added and summed. The entire calculation process requires a large number of repeated instructions, which consumes computing energy and time. Therefore, in order to increase the speed, a parallel computing method based on a graphics processing unit (GPU) can be used in hardware to increase the speed by using its large storage capacity and multi-core.
虽然GPU计算可以大幅提高卷积计算速度,但是仍然需要将大量待计算的数据通过CPU进行整理并传输到GPU,同样计算结果还需传输回CPU进行下一轮计算准备。因此现有的计算依然是基于CPU+GPU方式,需要大吞吐量计算通道,计算速度受限,能耗巨大。Although GPU computing can greatly improve the speed of convolution calculation, a large amount of data to be calculated still needs to be sorted and transmitted to the GPU through the CPU, and the calculation results also need to be transmitted back to the CPU for the next round of calculation preparation. Therefore, the existing calculation is still based on the CPU+GPU method, which requires a large throughput calculation channel, limited calculation speed, and huge energy consumption.
发明内容Summary of the invention
技术问题:鉴于现有技术中的上述缺陷或不足,本发明旨在提供一种用于进行深度卷积神经网络机器学习的光学全连接神经网络装置及其工作方法,利用光学原理进行全连接神经网络计算,提高计算速度的同时降低计算所需功耗。Technical problem: In view of the above-mentioned defects or deficiencies in the prior art, the present invention aims to provide an optical fully connected neural network device and a working method thereof for deep convolutional neural network machine learning, which utilizes optical principles to perform fully connected neural network calculations, thereby increasing the calculation speed while reducing the power consumption required for calculations.
技术方案: 为实现上述功能,本发明的一种光学全连接神经网络装置如下:Technical solution: To achieve the above functions, an optical fully connected neural network device of the present invention is as follows:
该装置具体包括顺序排列的显示模块、全连接模块、权重模块、积分模块;所述显示模块为单色显示模块,显示容量为r×c,r为单色显示模块的行,c为单色显示模块的列;全连接模块包括m×n个复眼透镜阵列的光学平板或多块平板组合;权重模块为光学掩膜板,包括若干个m×n图案阵列,每个图案包括r×c个子像素;积分模块由均光板阵列构成,均光板对应图案的相邻单元有光隔离装置。The device specifically includes a display module, a fully connected module, a weight module, and an integration module arranged in sequence; the display module is a monochrome display module with a display capacity of r×c, r is the row of the monochrome display module, and c is the column of the monochrome display module; the fully connected module includes an optical flat plate or a combination of multiple flat plates with an m×n compound eye lens array; the weight module is an optical mask plate, including a plurality of m×n pattern arrays, each pattern including r×c sub-pixels; the integration module is composed of an array of light averaging plates, and adjacent units of the light averaging plates corresponding to the pattern are provided with optical isolation devices.
采用多个光学全连接神经网络装置并行组合,每个装置的显示模块分别显示待处理信号的不同通道,并行处理光学神经网络连接。Multiple optical fully connected neural network devices are combined in parallel, and the display modules of each device respectively display different channels of the signal to be processed, and the optical neural network connections are processed in parallel.
所述显示模块为液晶显示器、微发光二极管显示器、有机发光二极管显示器、数字微镜显示器、硅基液晶显示器或投影显示器。The display module is a liquid crystal display, a micro light emitting diode display, an organic light emitting diode display, a digital micromirror display, a silicon-based liquid crystal display or a projection display.
所述全连接模块、权重模块和积分模块的材料为玻璃、石英无机材料,或聚甲基丙烯酸甲酯、聚碳酸酯、 聚对苯二甲酸乙二醇脂、 聚丙烯、聚苯乙烯、 聚氯乙烯、丙烯腈/丁二烯/苯乙烯共聚物、热塑性聚氨酯弹性体橡胶、聚酰亚胺、聚苯乙烯、 聚砜、聚二酸二胺有机材料,或以上述两种有机材料的复合材料,复合的形式为单层或多层层合。The materials of the fully connected module, weight module and integral module are glass, quartz inorganic materials, or polymethyl methacrylate, polycarbonate, polyethylene terephthalate, polypropylene, polystyrene, polyvinyl chloride, acrylonitrile/butadiene/styrene copolymer, thermoplastic polyurethane elastomer rubber, polyimide, polystyrene, polysulfone, polydiacid diamide organic materials, or a composite material of the above two organic materials, and the composite form is a single layer or a multi-layer laminate.
显示模块为前序光学系统的输出。The display module is the output of the preceding optical system.
该装置基于2层全连接神经网络,包括输入层、隐藏层构成的第一层和隐藏层、输出层构成的第二层,其中输入层包括输入量X(x1,x2,…xj)、隐藏层包括h个的神经元,输出层包括由k个神经元组成的输出量O(o1,o2,…ok),隐藏层的每个神经元都与输入量X和输出量O中的神经元相连,建立了2层全连接神经网络,通过每个神经元的权重和偏置建立输入、输出之间的内在联系;为了方便光学处理,将输入量、隐藏层和输出量转成二维矩阵形式,其尺寸分别为r×c≥j、m×n≥h、p×q≥k;其中,r为输入层的行,c为输入层的列,j为输入量的个数,m 为隐藏层的行,n为隐藏层的列,h 为隐藏层神经元数,p 为输出层的行,q为输出层的列,k为输出量的个数。The device is based on a two-layer fully connected neural network, including a first layer consisting of an input layer and a hidden layer and a second layer consisting of a hidden layer and an output layer, wherein the input layer includes an input quantity X (x1, x2, ... xj), the hidden layer includes h neurons, the output layer includes an output quantity O (o1, o2, ... ok) composed of k neurons, each neuron in the hidden layer is connected to the neurons in the input quantity X and the output quantity O, a two-layer fully connected neural network is established, and the intrinsic connection between the input and the output is established through the weight and bias of each neuron; in order to facilitate optical processing, the input quantity, the hidden layer and the output quantity are converted into a two-dimensional matrix form, and the sizes thereof are r×c≥j, m×n≥h, and p×q≥k respectively; wherein r is the row of the input layer, c is the column of the input layer, j is the number of input quantities, m is the row of the hidden layer, n is the column of the hidden layer, h is the number of neurons in the hidden layer, p is the row of the output layer, q is the column of the output layer, and k is the number of output quantities.
采用多个光学全连接神经网络装置串行组合,每个光学全连接神经网络装置的第z个积分模块经过第z个非线性处理模块处理后同时作为后续装置的第z个显示模块串行多次处理光学全连接神经网络。A plurality of optical fully-connected neural network devices are serially combined, and the zth integration module of each optical fully-connected neural network device is processed by the zth nonlinear processing module and simultaneously serves as the zth display module of the subsequent device to serially process the optical fully-connected neural network multiple times.
本发明的一种光学全连接神经网络装置的工作方法具体如下:The working method of an optical fully connected neural network device of the present invention is specifically as follows:
步骤一:显示模块显示待处理信号的r×c图像;Step 1: The display module displays the r×c image of the signal to be processed;
步骤二:根据复眼透镜的焦距,通过调整显示模块、全连接模块和权重模块之间的距离,使显示模块显示的r×c图像通过全连接模块复制m×n个r×c实像至权重模块对应的m×n个r×c权重图案的位置上,复制移像的尺寸与位置与每一个权重图案对应重合;Step 2: According to the focal length of the compound eye lens, by adjusting the distance between the display module, the fully connected module and the weight module, the r×c image displayed by the display module is copied to the positions of the m×n r×c weight patterns corresponding to the weight module through the fully connected module, and the size and position of the copied shifted image coincide with each weight pattern;
步骤三:复制移像后的图像块经过权重图案后,投射到积分模块表面进行光学积分并显示光学全连接神经网络积分结果。Step 3: After the copied image block passes through the weight pattern, it is projected onto the surface of the integration module for optical integration and the optical fully connected neural network integration result is displayed.
本发明的一种光学全连接神经网络装置及其工作方法法具体如下,取z大于等于1:An optical fully connected neural network device and a working method thereof of the present invention are specifically as follows, where z is greater than or equal to 1:
步骤一:第z个显示模块显示待处理信号的r×c图像;Step 1: The zth display module displays the r×c image of the signal to be processed;
步骤二:根据第z个复眼透镜的焦距,通过调整第z个显示模块、第z个全连接模块和第z个权重模块之间的距离,使第z个显示模块显示的r×c图像通过第z个全连接模块复制m×n个r×c实像至第z个权重模块对应的m×n个r×c第z个权重图案的位置上,复制移像的尺寸与位置与每一个第z个权重图案对应重合;Step 2: According to the focal length of the zth compound eye lens, by adjusting the distance between the zth display module, the zth fully connected module and the zth weight module, the r×c image displayed by the zth display module is copied to the positions of the m×n r×c zth weight patterns corresponding to the zth weight module through the zth fully connected module, and the size and position of the copied shifted image coincide with each zth weight pattern;
步骤三:复制移像后的图像块经过第z个权重图案后,投射到第z个积分模块表面进行光学积分并显示第z个积分结果;Step 3: After the copied image block passes through the zth weight pattern, it is projected onto the surface of the zth integration module for optical integration and the zth integration result is displayed;
步骤四:根据第z个复眼透镜的焦距,通过调整第z个非线性处理模块、第z+1个全连接模块和第z+1个权重模块之间的距离,使第z个积分结果经过第z个非线性处理模块后,显示的m×n图像通过第z+1个全连接模块复制p×q个m×n实像至第z+1个权重模块对应的p×q个m×n第z+1个权重图案的位置上,复制移像的尺寸与位置与每一个第z+1个权重图案对应重合;Step 4: According to the focal length of the zth compound eye lens, by adjusting the distance between the zth nonlinear processing module, the z+1th fully connected module and the z+1th weight module, after the zth integral result passes through the zth nonlinear processing module, the displayed m×n image is copied through the z+1th fully connected module to the position of the p×q m×n z+1th weight pattern corresponding to the z+1th weight module, and the size and position of the copied shifted image coincide with each z+1th weight pattern;
步骤五:复制移像后的图像块经过第z+1个权重图案后,投射到第z+1个积分模块表面进行光学积分并显示第z+1个积分结果;Step 5: After the copied image block passes through the z+1th weight pattern, it is projected onto the surface of the z+1th integration module for optical integration and the z+1th integration result is displayed;
步骤六:第z+1个积分结果经过第z+1个非线性处理模块后显示第z+1层全连接神经网络结果。Step 6: The z+1th integral result passes through the z+1th nonlinear processing module and displays the z+1th layer fully connected neural network result.
有益效果: 相对于现有技术,本发明的优点如下:Beneficial effects: Compared with the prior art, the advantages of the present invention are as follows:
1、复眼透镜阵列替代传统卷积计算中的窗口滑动,利用制作了卷积核阵列的光学掩模版和均光板实现光学卷积,大幅提高计算速度。1. The compound eye lens array replaces the window sliding in the traditional convolution calculation, and uses the optical mask and homogenizer made of the convolution kernel array to realize optical convolution, which greatly improves the calculation speed.
2、卷积计算过程没有数据的高速传输,更加节能。2. The convolution calculation process does not involve high-speed data transmission, which is more energy-efficient.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
参照以下附图描述本发明公开的非限制性和非穷尽性实施例,其中除非另有说明,相同的附图标记表示各个附图中的相同部分。Non-limiting and non-exhaustive embodiments of the present disclosure are described with reference to the following figures, wherein like reference numerals refer to like parts throughout the various figures unless otherwise specified.
图1是两层全连接神经网络示意图,Figure 1 is a schematic diagram of a two-layer fully connected neural network.
图2是描绘根据本发明公开的装置示意图,FIG. 2 is a schematic diagram of a device according to the present invention.
图3是描绘根据本发明公开的装置串联工作方法示意图;FIG3 is a schematic diagram illustrating a method for serial operation of devices according to the present invention;
图中有:显示模块1、全连接模块2、权重模块3、积分模块4;复眼透镜20、权重图案30、子像素300、均光板40、光隔离装置41。The figure includes: a display module 1, a fully connected module 2, a weight module 3, an integration module 4; a compound eye lens 20, a weight pattern 30, a sub-pixel 300, a light averaging plate 40, and a light isolation device 41.
具体实施方式DETAILED DESCRIPTION
下面结合附图说明和具体实施方式。通过举例说明的方式描述了可以实施本发明的具体示例性实施例。对这些实施例进行足够详细的描述,以使本领域技术人员能够实践本文公开的概念,并且应当理解的是,在不脱离本公开的范围的情况下,可以对各种公开的实施例进行修改,并且可以利用其它实施例。因此,下面的详细描述不被认为是限制性的。The following is a description of the specific embodiments in conjunction with the accompanying drawings. Specific exemplary embodiments in which the present invention may be implemented are described by way of example. These embodiments are described in sufficient detail to enable those skilled in the art to practice the concepts disclosed herein, and it should be understood that the various disclosed embodiments may be modified and other embodiments may be utilized without departing from the scope of the present disclosure. Therefore, the following detailed description is not to be considered restrictive.
本发明旨在提供一种光学全连接神经网络装置及其工作方法,利用光学原理进行卷积计算,提高了计算速度的同时降低了计算所需功耗。为实现上述功能,本发明采用如下示例:The present invention aims to provide an optical fully connected neural network device and a working method thereof, which uses optical principles to perform convolution calculations, thereby increasing the calculation speed and reducing the power consumption required for calculations. To achieve the above functions, the present invention adopts the following examples:
实施例1:如图1所示的2层全连接神经网络,包括输入层、隐藏层和输出层,其中输入层包括输入量X(x1,x2,…xj)、隐藏层包括h个的神经元,输出层包括输出量O(o1,o2,…ok)。隐藏层的每个神经元都与输入量X和输出量O相连,建立了两层全连接神经网络,通过每个神经元的权重和偏置建立输入、输出之间的内在联系。为了方便光学处理,通常可以将输入量、隐藏层和输出量转成二维矩阵形式,其尺寸分别为r×c=j、m×n=h、p×q=k。Embodiment 1: A two-layer fully connected neural network as shown in FIG1 includes an input layer, a hidden layer and an output layer, wherein the input layer includes an input quantity X (x 1 , x 2 , ... x j ), the hidden layer includes h neurons, and the output layer includes an output quantity O (o 1 , o 2 , ... ok ). Each neuron in the hidden layer is connected to the input quantity X and the output quantity O, and a two-layer fully connected neural network is established, and the intrinsic connection between the input and the output is established through the weight and bias of each neuron. In order to facilitate optical processing, the input quantity, the hidden layer and the output quantity can usually be converted into a two-dimensional matrix form, and the dimensions thereof are r×c=j, m×n=h, and p×q=k, respectively.
结合图1所示的2层全连接神经网络,如图2所示,本发明公开了一种单层光学全连接神经网络装置,包括显示模块1、全连接模块2、权重模块3、积分模块4,所述显示模块1为显示容量为r×c的单色显示模块,可以是液晶显示器、微发光二极管显示器、有机发光二极管显示器、数字微镜显示器、硅基液晶显示器或投影显示器;全连接模块2为包括m×n个复眼透镜20阵列的光学平板或多块平板组合,复眼中的每个透镜可以是单面的也可以是双面的,复眼透镜20为柱面透镜、球面透镜、单凸透镜、凹透镜或多个透镜组合的复合透镜;权重模块3为光学掩膜板,包括若干个m×n图案30阵列,每个图案30包括r×c个子像素300,其透过率代表神经元的权重系数;积分模块4为多个均光板阵列,为了防止光串扰,均光板对应图案30的相邻单元有光隔离装置41,每个单元的透过率代表神经元的偏置系数。全连接模块2、权重模块3和积分模块4的材料为玻璃无机材料,或聚甲基丙烯酸甲酯 、 聚碳酸酯、聚对苯二甲酸乙二醇脂、 聚丙烯、聚苯乙烯、 聚氯乙烯、丙烯腈/丁二烯/苯乙烯共聚物、热塑性聚氨酯弹性体橡胶、聚酰亚胺、聚苯乙烯、 聚砜、聚二酸二胺等有机材料,或以上述两种有机材料的复合材料,复合的形式为单层或多层层合。In combination with the 2-layer fully connected neural network shown in FIG1 , as shown in FIG2 , the present invention discloses a single-layer optical fully connected neural network device, including a display module 1, a fully connected module 2, a weight module 3, and an integration module 4, wherein the display module 1 is a monochrome display module with a display capacity of r×c, and may be a liquid crystal display, a micro-light emitting diode display, an organic light emitting diode display, a digital micromirror display, a silicon-based liquid crystal display, or a projection display; the fully connected module 2 is an optical flat plate or a combination of multiple flat plates including an array of m×n compound eye lenses 20, each lens in the compound eye may be single-sided or double-sided, and the compound eye lens 20 is a cylindrical lens, a spherical lens, a single convex lens, a concave lens, or a composite lens composed of a combination of multiple lenses; the weight module 3 is an optical mask plate, including an array of several m×n patterns 30, each pattern 30 including r×c sub-pixels 300, whose transmittance represents the weight coefficient of the neuron; the integration module 4 is an array of multiple light averaging plates, and in order to prevent light crosstalk, the light averaging plates have optical isolation devices 41 for adjacent units corresponding to the pattern 30, and the transmittance of each unit represents the bias coefficient of the neuron. The materials of the fully connected module 2, the weight module 3 and the integral module 4 are glass inorganic materials, or organic materials such as polymethyl methacrylate, polycarbonate, polyethylene terephthalate, polypropylene, polystyrene, polyvinyl chloride, acrylonitrile/butadiene/styrene copolymer, thermoplastic polyurethane elastomer rubber, polyimide, polystyrene, polysulfone, polydiacid diamine, etc., or composite materials of the above two organic materials, and the composite form is a single layer or a multi-layer laminate.
所述的一种光学全连接神经网络装置工作方法如下:The working method of the optical fully connected neural network device is as follows:
步骤一:显示模块1显示待处理信号的图像;Step 1: the display module 1 displays the image of the signal to be processed;
步骤二:根据复眼透镜20的焦距,通过调整显示模块1、全连接模块2和权重模块3之间的距离,使显示模块1显示的图像成实像至权重模块3对应的图案30的位置上,移像成像的尺寸与位置与图案30对应重合;Step 2: According to the focal length of the compound eye lens 20, by adjusting the distances between the display module 1, the fully connected module 2 and the weight module 3, the image displayed by the display module 1 is formed into a real image at the position of the pattern 30 corresponding to the weight module 3, and the size and position of the image shifting coincide with the pattern 30;
步骤三:移像后的图像块经过图案30滤波后,投射到积分模块4表面进行光学积分并显示光学全连接神经网络结果在均光板40上。Step 3: The image block after image shifting is filtered by the pattern 30 and then projected onto the surface of the integration module 4 for optical integration and the result of the optical fully connected neural network is displayed on the homogenizer 40 .
实施例2:Embodiment 2:
根据实施例1所述的一种光学全连接神经网络装置,多个光学全连接神经网络装置并行组合,每个装置的显示模块1分别显示待处理信号的不同通道,并行处理光学卷积。According to an optical fully-connected neural network device described in Example 1, multiple optical fully-connected neural network devices are combined in parallel, and the display module 1 of each device displays different channels of the signal to be processed respectively, and optical convolution is processed in parallel.
该工作方法具体如下:The working method is as follows:
步骤一:显示模块1显示待处理信号的r×c图像;Step 1: the display module 1 displays the r×c image of the signal to be processed;
步骤二:根据复眼透镜20的焦距,通过调整显示模块1、全连接模块2和权重模块3之间的距离,使显示模块1显示的r×c图像通过全连接模块2复制m×n个r×c实像至权重模块3对应的m×n个r×c权重图案30的位置上,复制移像的尺寸与位置与每一个权重图案30对应重合;Step 2: According to the focal length of the compound eye lens 20, by adjusting the distances between the display module 1, the fully connected module 2 and the weight module 3, the r×c image displayed by the display module 1 is copied to the positions of the m×n r×c weight patterns 30 corresponding to the weight module 3 through the fully connected module 2, and the size and position of the copied shifted image coincide with each weight pattern 30;
步骤三:复制移像后的图像块经过权重图案30后,投射到积分模块4表面进行光学积分并显示光学全连接神经网络积分结果。Step 3: After the copied image block passes through the weight pattern 30, it is projected onto the surface of the integration module 4 for optical integration and displays the optical fully connected neural network integration result.
实施例3:Embodiment 3:
根据实施例1所述的一种光学全连接神经网络装置,多个光学全连接神经网络装置串行组合,每个光学卷积装置的第z个积分模块4z经过第z个非线性处理模块5 z后作为后续装置的第z+1个显示输入模块1z+1串行多次处理光学全连接神经网络。According to an optical fully-connected neural network device described in Example 1, multiple optical fully-connected neural network devices are serially combined, and the zth integration module 4 z of each optical convolution device passes through the zth nonlinear processing module 5 z and serves as the z+1th display input module 1 z+1 of the subsequent device to serially process the optical fully-connected neural network multiple times.
该工作方法具体如下,取z大于等于1:The working method is as follows, taking z greater than or equal to 1:
步骤一:第z个显示模块1 z 显示待处理信号的r×c图像;Step 1: The zth display module 1 z displays the r×c image of the signal to be processed;
步骤二:根据第z个复眼透镜20z的焦距,通过调整第z个显示模块1 z 、第z个全连接模块2z和第z个权重模块3z之间的距离,使第z个显示模块1 z 显示的r×c图像通过第z个全连接模块2z复制m×n个r×c实像至第z个权重模块3z对应的m×n个r×c第z个权重图案30z的位置上,复制移像的尺寸与位置与每一个第z个权重图案30z对应重合;Step 2: According to the focal length of the zth compound eye lens 20z , by adjusting the distances between the zth display module 1z , the zth fully connected module 2z and the zth weight module 3z , the r×c image displayed by the zth display module 1z is copied to the positions of the m×n r×c zth weight patterns 30z corresponding to the zth weight module 3z through the zth fully connected module 2z , and the size and position of the copied shifted image coincide with each zth weight pattern 30z ;
步骤三:复制移像后的图像块经过第z个权重图案30z后,投射到第z个积分模块4z表面进行光学积分并显示第z个积分结果40z;Step 3: After the copied image block passes through the zth weight pattern 30 z , it is projected onto the surface of the zth integration module 4 z for optical integration and the zth integration result is displayed 40 z ;
步骤四:根据第z个复眼透镜20z的焦距,通过调整第z个非线性处理模块5z、第z+1个全连接模块2z+1和第z+1个权重模块3z+1之间的距离,使第z个积分结果40z经过第z个非线性处理模块5z后,显示的m×n图像通过第z+1个全连接模块2z+1复制p×q个m×n实像至第z+1个权重模块3z+1对应的p×q个m×n第z+1个权重图案30z+1的位置上,复制移像的尺寸与位置与每一个第z+1个权重图案30z+1对应重合; 第z+1个复眼透镜20z+1,位于第z+1个全连接模块2z+1前;Step 4: According to the focal length of the zth compound eye lens 20z , by adjusting the distance between the zth nonlinear processing module 5z , the z+1th fully connected module 2z +1 and the z+1th weight module 3z +1 , after the zth integral result 40z passes through the zth nonlinear processing module 5z , the displayed m×n image is copied to the position of the p×q m×n z+1th weight pattern 30z+1 corresponding to the z+1th weight module 3z +1 through the z+1th fully connected module 2z +1 , and the size and position of the copied shifted image coincide with each z+1th weight pattern 30z +1 ; The z+1th compound eye lens 20z +1 is located in front of the z+1th fully connected module 2z +1 ;
步骤五:复制移像后的图像块经过第z+1个权重图案30z+1后,投射到第z+1个积分模块4z+1表面进行光学积分并显示第z+1个积分结果40z+1;Step 5: After the copied image block passes through the z+1th weight pattern 30 z+1 , it is projected onto the surface of the z+1th integration module 4 z+1 for optical integration and the z+1th integration result 40 z+1 is displayed;
步骤六:第z+1个积分结果40z+1经过第z+1个非线性处理模块5z+1后显示第z+1层全连接神经网络结果。Step 6: The z+1th integral result 40 z+1 passes through the z+1th nonlinear processing module 5 z+1 and then displays the z+1th layer fully connected neural network result.
实施例4:根据实施例1所述的一种光学卷积装置及其工作方法,积分模块4也可以通过控制均光板厚度减少平均效果或采用非线性光学选择模块实现光学最大值池化。Embodiment 4: According to an optical convolution device and a working method thereof described in Embodiment 1, the integration module 4 can also reduce the averaging effect by controlling the thickness of the light averaging plate or implement optical maximum pooling by using a nonlinear optical selection module.
实施例5:根据实施例1所述的一种光学全连接神经网络装置,多个光学全连接神经网络装置串行、并行组合。Embodiment 5: According to the optical fully-connected neural network device described in Embodiment 1, multiple optical fully-connected neural network devices are combined in series or in parallel.
实施例6:根据实施例1所述的一种光学全连接神经网络装置,显示模块1为前序光学系统的输出。Embodiment 6: According to the optical fully-connected neural network device described in Embodiment 1, the display module 1 is the output of the preceding optical system.
实施例7:根据实施例1~6所述的一种光学卷积装置及其工作方法,所述权重模块3和积分模块4集成为一个组件,滤波模块的图形直接附着在积分模块的一个平面上。Embodiment 7: According to an optical convolution device and a working method thereof described in embodiments 1 to 6, the weight module 3 and the integration module 4 are integrated into one component, and the graphic of the filter module is directly attached to a plane of the integration module.
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410852141.XA CN118410844B (en) | 2024-06-28 | 2024-06-28 | An optical fully connected neural network device and its working method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410852141.XA CN118410844B (en) | 2024-06-28 | 2024-06-28 | An optical fully connected neural network device and its working method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN118410844A CN118410844A (en) | 2024-07-30 |
CN118410844B true CN118410844B (en) | 2024-09-17 |
Family
ID=92032500
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410852141.XA Active CN118410844B (en) | 2024-06-28 | 2024-06-28 | An optical fully connected neural network device and its working method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118410844B (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113627605A (en) * | 2021-06-28 | 2021-11-09 | 浪潮电子信息产业股份有限公司 | Optical interference unit configuration method and device of photonic neural network and storage medium |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117236400A (en) * | 2017-09-20 | 2023-12-15 | 视觉动力公司 | Data processing array |
CN116258624A (en) * | 2023-01-17 | 2023-06-13 | 中国科学院上海光学精密机械研究所 | Optical tensor convolution computing system and method based on multi-imaging projection architecture |
CN116957031B (en) * | 2023-07-24 | 2024-05-24 | 浙江大学 | Photoelectric computer based on optical multi-neuron activation function module |
CN117436486A (en) * | 2023-10-31 | 2024-01-23 | 华中科技大学 | An optical convolutional neural network based on thin film lithium niobate and silicon hybrid |
-
2024
- 2024-06-28 CN CN202410852141.XA patent/CN118410844B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113627605A (en) * | 2021-06-28 | 2021-11-09 | 浪潮电子信息产业股份有限公司 | Optical interference unit configuration method and device of photonic neural network and storage medium |
Non-Patent Citations (1)
Title |
---|
基于光电器件的衍射型光学神经网络系统研究;龙勇机;中国博士学位论文全文数据库信息科技辑;20240215;1-120 * |
Also Published As
Publication number | Publication date |
---|---|
CN118410844A (en) | 2024-07-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Zhao et al. | Rethinking ReLU to train better CNNs | |
CN110321957B (en) | Multi-label image retrieval method fusing triple loss and generating countermeasure network | |
WO2019227518A1 (en) | Convolutional neural network system based on memory | |
CN112926641B (en) | Three-stage feature fusion method for fault diagnosis of rotating machinery based on multimodal data | |
CN110197253A (en) | The arithmetical unit accelerated for deep learning | |
Cai et al. | Softer pruning, incremental regularization | |
CN112348191B (en) | A Knowledge Base Completion Method Based on Multimodal Representation Learning | |
JP2021510219A (en) | Multicast Network On-Chip Convolutional Neural Network Hardware Accelerator and Its Behavior | |
Xu et al. | A main/subsidiary network framework for simplifying binary neural networks | |
Munkhdalai et al. | Metalearning with hebbian fast weights | |
CN117094374A (en) | Electronic circuit and memory mapper | |
CN108805278A (en) | A kind of feature extracting method and system applied to deep learning | |
CN107273969A (en) | It is a kind of to parameterize the expansible full articulamentum multilayer interconnection structure of neutral net | |
CN118410844B (en) | An optical fully connected neural network device and its working method | |
CN118313426B (en) | Optical convolution device and working method thereof | |
Jiang et al. | Single-shot pruning and quantization for hardware-friendly neural network acceleration | |
US20220335283A1 (en) | Systems and methods for accelerated neural-network convolution and training | |
Yu et al. | Comparison of different neural network architectures for digit image recognition | |
CN115047721B (en) | Method for rapidly calculating mask near field by using cyclic coincidence countermeasure network | |
JPH04237388A (en) | Neuro processor | |
CN112541469B (en) | Crowd counting method and system based on self-adaptive classification | |
Yao et al. | A pruning method based on the dissimilarity of angle among channels and filters | |
Sima et al. | Advanced computing and related applications leveraging brain-inspired spiking neural networks | |
CN115100237A (en) | Visual odometer method for inspection robot | |
Leroux et al. | Multi-fidelity matryoshka neural networks for constrained IoT devices |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |