Neural networks with layers for solving semidefinite programming problems

The integration of a semidefinite programming optimization layer in neural networks allows for efficient approximation of discrete optimization problems, enhancing the learning of complex logical relationships and improving generalization without prior knowledge.

JP7540632B2Active Publication Date: 2024-08-27ROBERT BOSCH GMBH +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2020087497
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-05-22
Filing Date
2020-05-19
Publication Date
2024-08-27
Estimated Expiration
2040-05-19

AI Technical Summary

Technical Problem

Existing neural networks struggle to efficiently incorporate discrete optimization problems like MAXSAT due to their NP-hard nature, making it difficult to learn complex logical relationships and generalize well without prior knowledge, especially in scenarios requiring hard constraints.

Method used

Incorporating a semidefinite programming (SDP) optimization layer that converts input values into vectors, allowing for efficient approximation of discrete optimization problems within neural networks, enabling end-to-end learning of complex logical relationships through joint optimization and differentiable smoothing.

Benefits of technology

The SDP optimization layer enables neural networks to learn and capture complex logical relationships more efficiently, reducing the need for prior knowledge and requiring fewer parameters, thus improving generalization and performance in tasks involving hard constraints.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007540632000116
    Figure 0007540632000116
  • Figure 0007540632000111
    Figure 0007540632000111
  • Figure 0007540632000114
    Figure 0007540632000114
Patent Text Reader

Abstract

To provide a system (200) for applying a neural network to an input instance.SOLUTION: A neural network includes an optimization layer. The optimization layer is for determining values of one or more output neurons from values of one or more input neurons by co-optimization parameterized by one or more parameters. An input instance is acquired. The values of the one or more input neurons to the optimization layer is acquired, from which, input vectors for the one or more input neurons are determined. Output vectors for the one or more output neurons are calculated from the determined input vectors by co-optimizing at least the output vectors with respect to the input vectors in order to solve a semidefinite programming problem defined by the one or more parameters. The value of the one or more output neurons is determined from each calculated output vector.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] FIELD OF THEINVENTION The present invention relates to a system and a corresponding computer-implemented method for applying a neural network to an input instance, for example an input image. The present invention further relates to a system and a corresponding computer-implemented method for training a neural network. The present invention further relates to a computer-readable medium comprising instructions for carrying out the method or data representative of parameters of a neural network. [Background technology]

[0002] 2. Background of the Invention Autonomous devices need to make decisions based on the observed environment. For example, an autonomous driving system for a vehicle can use data from cameras and / or various other sensors to analyze traffic conditions and use this information to control the vehicle. Similarly, a safety system for a non-autonomous automobile can analyze traffic conditions to assist the driver, for example, by braking if a dangerous situation occurs. In this example and other settings, making decisions includes not only recognizing objects, but also making inferences, for example, about which recognized objects or combinations of objects are dangerous. Automatic inferences are also made, for example, in other control systems, medical image analysis, etc.

[0003] In these and other types of systems, neural networks, particularly deep neural networks, can be used to perform such reasoning about the environment. A neural network typically includes one or more layers, in which the value of one or more output neurons is calculated based on the values ​​of one or more input neurons. For example, a neural network can have at least 10, 100 or 1000 neurons, at least 2, 5 or 10 layers, etc. The layers can differ, for example, in which input neurons are connected to which output neurons and / or in which functions are used to calculate the values ​​of the output neurons. Typically, one or more parameters of the layers are learnable, for example, such parameters can include weights, which determine to what extent an output neuron is influenced by the value of each input neuron to which it is connected. Various types of layers are known per se. For example, a convolutional neural network typically includes an input layer, an output layer, and one or more layers, typically called hidden layers, between the input layer and the output layer. Such hidden layers may include convolutional layers, ReLU layers, pooling layers, fully connected layers, normalization layers, etc. For example, combinations of such layers may be used to perform various types of image classification tasks.

[0004] In the paper "OptNet: Differentiable Optimization as a Layer in Neural Networks" by Brandon Amos and J. Zico Kolter (incorporated herein by reference and available at https: / / arxiv.org / abs / 1703.00443), a deep neural network designed to capture the constraints and dependencies between the hidden states of the neural network is introduced. To this end, a quadratic program is incorporated as one layer of the network. This layer is inserted into the neural network to capture the constraints and complex dependencies between the hidden states of the neural network. Both the output of the layer and the problem data that defines the quadratic program may depend on values ​​from previous layers. The output values ​​of the layer are obtained by solving the quadratic program using a primal-dual interior point method. [Prior art documents] [Non-patent literature]

[0005] [Non-Patent Document 1] The paper "OptNet: Differentiable Optimization as a Layer in Neural Networks" by Brandon Amos and J. Zico Kolter Summary of the Invention [Means for solving the problem]

[0006] Summary of the Invention According to a first aspect of the invention, a system for applying a neural network to an input instance is proposed as defined by claim 1. According to a further aspect of the invention, a system for training a neural network is proposed as defined by claim 10. According to further aspects, a computer implemented method for applying a neural network and a computer implemented method for training a neural network are proposed as defined by claims 12 and 13, respectively. According to further aspects of the invention, a computer readable medium is proposed as defined by claim 14 and a computer readable medium is proposed as defined by claim 15.

[0007] In various embodiments, the neural network includes at least one optimization layer for determining values ​​of one or more output neurons from values ​​of one or more input neurons by joint optimization. In general, in joint optimization, the values ​​of one or more output neurons are not calculated independently of each other. For example, the joint optimization can include minimizing a loss function based on the values ​​of one or more output neurons. The optimization can be joint in the sense that the output values ​​that minimize the loss function are interdependent, e.g., for a given output neuron, the optimal value of this output neuron combined with one set of values ​​for other output values ​​may be different from the optimal value of this output neuron combined with other sets of values. In other words, if the values ​​of the other output neurons are fixed, the value of the output neuron that minimizes the loss function may be different depending on the value of the output neuron. Thus, the value of the output neuron can be calculated in the joint optimization. The joint optimization can be parameterized, e.g., the optimization problem to be solved may depend on one or more parameters.

[0008] Interestingly, computing the output vector can include solving a semidefinite programming problem defined by one or more parameters. Semidefinite programming problems are interesting because they can represent a relatively wide class of optimization problems that can be solved relatively efficiently. For example, semidefinite programming problems can include a relaxation of the MAXSAT problem. The MAXSAT problem and related problems such as MAXCUT are particularly important because they allow for capturing a wide set of discrete logical relationships between the input and output values ​​of an optimization layer, e.g., for efficiently capturing hard and / or global relationships between the input and output values ​​of an optimization layer.

[0009] Interestingly, in various embodiments, such relationships are defined by the parameters of the joint optimization, thus allowing the neural network to effectively learn the relationships between the input neurons and the output neurons of the optimization layer in an end-to-end manner. For example, the neural network can be trained in a similar process to learn how to determine the inputs to the optimization layer, e.g., as the output of a convolutional layer, a ReLU layer, etc., and / or to learn what relationships, defined by a set of parameters, exist between these inputs and the output of the optimization layer, and / or to learn how to use the output of the optimization layer in other layers of the neural network, e.g., a fully connected layer, another optimization layer, etc.

[0010] However, as the inventors have recognized, MAXSAT problems and other types of discrete optimization are typically not suitable for direct inclusion in neural networks. For example, to train a neural network, it is typically desirable for the forward pass of the neural network, e.g., the computation of output values ​​from input values, to be suitable for backpropagation. For example, it is desirable for the input / output relationship of the optimization layer to be describable as a function, preferably a differentiable and / or continuous function. Furthermore, MAXSAT and related problems are notoriously difficult to solve exactly. In particular, MAXSAT is known to be NP-hard. This also makes it difficult to efficiently include such problems in neural networks.

[0011] Therefore, the inventors have conceived of performing optimization on vectors relating input and output values, rather than on the values ​​themselves. Such vector optimization may be more suitable for application as a layer of a neural network. For example, by appropriately converting the input values ​​to vectors, performing the vector optimization, and converting the output vectors back to values, a neural network layer with continuous and / or differentiable parameterization can be obtained. Furthermore, vector optimization can be solved relatively efficiently, e.g., a relaxation of an NP-hard optimization problem such as MAXSAT may provide only an approximate solution to the problem, but can provide such a solution much more efficiently than solving the original problem. A concrete example of a vector optimization obtained as a relaxation of MAXSAT is given below.

[0012] The optimization layer may be applied to the values ​​of one or more input neurons by determining an input vector for each input neuron, e.g., an input vector for each input neuron. The input vectors each include a number of values. In particular, for the MAXSAT relaxation, the vectors may be determined to be at least

number

[0013] Given an input vector, an output vector for one or more output neurons can be determined by jointly optimizing at least the output vector with respect to the input vector to solve a semidefinite programming problem defined by one or more parameters. The output vector typically has the same dimension as the input vector. For example, the optimization can be a MAXSAT relaxation or a MAXCUT relaxation. In other words, the output vector can correspond to an approximate solution of the respective optimization problem. However, it is also possible to use other SDPs, for example SDPs obtained as vector relaxations of other optimization problems. Various examples of optimization are given below.

[0014] The values ​​of one or more output neurons may be determined from the respective computed output vectors. For example, if the semidefinite programming problem is a relaxation of a given optimization problem, e.g., a relaxation of a vectorized problem corresponding to the discrete optimization of values, the values ​​may be determined as an approximate solution of the problem, which is the relaxation of the problem. For example, the values ​​of the output neurons (z ω ) is the output vector of the output neuron (v ω ) and a given vector (v0), e.g.

number

[0015] Multiple optimization layers may be applied to a neural network (e.g., in the same layer or multiple layers). For example, a sequence of multiple optimization layers may be applied sequentially. In various embodiments, the joint optimization parameters for the multiple optimization layers are tied together, e.g., the multiple optimization layers are parameterized with the same or at least overlapping sets of parameters. For example, conceptually, this may enable multiple optimization layers to learn similar types of relationships between their inputs. In such a case, fewer parameters may be needed, overfitting, etc. may be avoided.

[0016] By various means discussed herein, neural networks may be provided in some aspects that improve upon traditional deep learning and / or existing logic learning methods. The neural networks may be capable of robustly learning various tasks, such as improved image classification, without any prior knowledge. By wrapping powerful and generic primitives of semidefinite programming problems, particularly the MAXSAT relaxation, the solvers of the present invention may allow implicit logic reasoning to be done where necessary within a relatively large framework, without the need to know the exact structure of the domain.

[0017] For example, various embodiments provide a differentiable smoothed MAXSAT solver that can be embedded inside relatively complex deep architectures, allowing for efficient end-to-end learning of complex logical relationships from examples without hard-coding these relationships.

[0018] As the inventors have discovered, the techniques presented herein can be used to solve a variety of classes of problems that traditional deep learning / logic learning methods are virtually unable to reliably learn without prior knowledge. For example, in a full end-to-end setting, classical convolutional networks can be integrated with a differentiable MAXSAT solver to learn constraint satisfaction problems that are challenging for modern neural network architectures.

[0019] The techniques described herein are applicable to various kinds of data, such as sensor data, audio data, video data, radar data, LiDAR data, ultrasonic data, or various individual sensor measurements or histories thereof. For example, in one embodiment, the neural network is used for image captioning or image classification. The network, in these and other applications, may include one or more convolutional layers followed by one or more optimization and one or more output layers, such as fully connected layers or sentence generation layers as known in the art, such as LTSM networks, recurrent neural networks, etc.

[0020] As another example, a neural network according to an embodiment can be used to recognize actions in a video, e.g., a sequence of images. For example, in these and other embodiments, the neural network can include one or more convolutional layers followed by one or more optimization layers, which are followed by at least a fully connected layer.

[0021] In various embodiments, the neural networks described herein may be capable of performing classification, regression, etc., based on relatively complex relationships in the data, e.g., hard constraints. Conventional neural networks may not be able to capture such constraints efficiently. For example, many layers may be required to represent the relationships, which may result in more parameters and / or training data being required, and / or the neural network may be susceptible to overfitting. Thus, a neural network according to an embodiment may require fewer trainable parameters to represent logical relationships in the data, or may be better able to represent such logical relationships with the same or fewer trainable parameters. At the same time, it may be unnecessary to constrain in advance the types of relationships that the optimization layer can learn, e.g., it may be unnecessary to explicitly define between which values ​​the optimization layer should learn relationships.

[0022] As one particular example, consider a system that analyzes traffic situations, e.g., as part of an autonomous vehicle, as part of a safety system of a non-autonomous vehicle, etc. Such a system can, for example, classify a traffic situation as dangerous or non-hazardous. The root cause of a dangerous traffic situation may be that the vehicles are close to each other. However, the root cause of a dangerous traffic situation may be that the vehicles are close to each other in many training instances because it is raining, since this is when the roads are congested. Especially when the training data set is small and / or when two such factors frequently occur together, a conventional neural network may not be able to learn which factors are the root cause and which factors are merely correlated. In practice, a conventional neural network may use many layers and / or neurons to learn such logical constraints, or the neural network may not be able to effectively capture such logical constraints at all. Thus, for a conventional neural network, learning this type of reasoning may be ineffective. Instead, such neural networks may be more efficient at inferring that a traffic situation is dangerous both when its underlying causes are met and when correlated factors are present, resulting in a trained network that may generalize poorly to new situations.

[0023] However, by using the optimization layers described herein, such logical relationships between data can be learned more efficiently; for example, one or a few nodes may be sufficient to learn that vehicle proximity is the important factor and that rain is merely correlated. For example, a small number of parameters in the optimization layers may be able to effectively capture such logical relationships. Thus, networks may be obtained that generalize better beyond the training data and / or require fewer training instances and / or parameters to achieve a given performance.

[0024] Interestingly, the various neural networks defined herein may not require a pre-existing set of known relationships or rules, for example, seeding with a prior structure of which variables can interact with each other. Effectively, in various embodiments, the entire structure and its parameters can be learned end-to-end for a wide class of problems.

[0025] Optionally, the input instances comprise images and the neural network comprises at least one convolutional layer followed by one or more optimization layers. In this way, a particularly good image classifier can be obtained.

[0026] Optionally, the semidefinite programming problem includes at least a relaxation of a MAXSAT problem or a MAX2SAT problem or a MAXCUT problem with respect to values ​​of one or more input neurons and values ​​of one or more output neurons. MAXCUT, MAX2SAT and MAXSAT allow for a particularly efficient representation of logical constraints, and these vectorized relaxations may be solved relatively efficiently.

[0027] Optionally, the output vector is calculated by jointly optimizing one or more auxiliary vectors with the output vector. The auxiliary vectors are typically not used elsewhere in the neural network. Introducing auxiliary vectors can reduce the size of a semidefinite programming problem. For example, such auxiliary vectors can effectively play a role similar to a register memory, for example, in the clauses that define a MAXSAT problem, thereby enabling better reasoning.

[0028] Optionally, a dot product (V T V) linear combination ( <M,V T The output vector can be calculated by minimizing V>. For example, the matrix V can include each input vector, the output vector, and each auxiliary vector, if used. The matrix V can additionally include a "true direction", e.g., a randomly initialized and fixed vector, e.g., as further detailed elsewhere. Typically, the vectors are constrained, e.g., each of these vectors can be constrained to have a unit norm. In this way, a semidefinite programming problem can be obtained that can be solved efficiently.

[0029] Optionally, the coefficients of the linear combination for the dot product of two vectors are the dot product of two weight vectors associated with each vector.

number

[0030] Optionally, two weight vectors (s i ) has fewer elements than the total number of input vectors, output vectors, and optionally auxiliary vectors, e.g., at most half. In this way, the knowledge, e.g., in the form of clauses, that the neural network learns can be effectively compressed. In fact, reducing the number of elements can help to avoid overfitting, thus allowing the network to capture / focus on the most important logical relationships of the data.

[0031] Optionally, the output vector is calculated by iteratively updating the output vector or auxiliary vector based on the input vector and the current values ​​of the output vector and auxiliary vector. In other words, the output vector is calculated by so-called coordinate descent. Coordinate descent not only has favorable convergence properties, but also, due to its sequential nature, is particularly suitable for learning by backpropagation, and therefore can be particularly well incorporated into neural network learning frameworks. Coordinate descent also has the advantage that it can be efficiently parallelized and / or implemented on a GPU.

[0032] Optionally, the parameters of the joint optimization are each a vector of inputs, a vector of outputs, and optionally an auxiliary vector v i and the weight vector s associated with i Each entry of the weight vector ( s1 )j,···,(s n )j is a linear combination of the above vectors representing the nodes to be jointly optimized

number

[0033] Optionally, multiple updates to the output vector and / or auxiliary vectors of coordinate descent can be performed in parallel. For example, by using coordinate descent, training and / or applying a neural network can be particularly suitable for GPU implementation. During the inner loop of coordinate descent in applying a neural network, the computation of the state matrix and / or rank-1 updates to the state matrix can be parallelized to reduce the number of GPU updates for all g ω The computation of the gradient terms can be parallelized, as can the training. Thus, for example, the matrix multiplication S T The use of low-rank semidefinite programming problems, defined by S, can be particularly useful, as such parallelization may not generally be possible in traditional full-rank coordinate gradient descent, resulting in significant performance improvements.

[0034] The training of the neural network can be effectively performed by backpropagating the calculations that determine the output values ​​from the input values. Interestingly, such updates can be efficiently performed using the means discussed herein, e.g., the forward pass can be continuous and / or differentiable, so that the backward pass can be analytically derived and / or efficiently calculated. In particular, if the joint optimization includes iteratively updating the output vector or auxiliary vector based on the input vector and the current values ​​of the output vector and auxiliary vector while training the gradient of the loss with respect to the input vector and / or one or more weights, the gradient of the loss can be determined by backpropagating the aforementioned iterative updates, thereby allowing the parameters of the optimization to be obtained in a manner that is well integrated with the neural network training techniques used to train other layers, e.g., the entire neural network can be trained end-to-end.

[0035] It will be appreciated by those skilled in the art that two or more of the above-described embodiments, implementations and / or optional aspects of the invention may be combined in any manner deemed useful.

[0036] Modifications and variations of any computer-implemented method and / or any computer-readable medium corresponding to the above-described modifications and variations of the corresponding system may be made by those skilled in the art based on the description herein.

[0037] BRIEF DESCRIPTION OF THE DRAWINGS These and other aspects of the invention will become apparent and will be further elucidated with reference to the embodiments described by way of example in the following description and the accompanying drawings, in which: [Brief description of the drawings]

[0038] [Figure 1] FIG. 1 illustrates a system for training a neural network. [Diagram 2]FIG. 1 illustrates a system for applying a neural network. [Diagram 3] FIG. 1 illustrates a system for applying a neural network. [Figure 4] FIG. 2 illustrates an optimization layer. [Diagram 5] FIG. 13 shows a detailed example of how to train / use an optimization layer. [Figure 6] FIG. 2 illustrates a method for applying a neural network. [Figure 7] FIG. 1 illustrates a method for training a neural network. [Figure 8] FIG. 1 illustrates a computer readable medium containing data.

[0039] It should be noted that the drawings are purely schematic and are not drawn to scale, in which elements corresponding to elements already described may bear the same reference signs. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0040] Detailed Description of the Preferred Embodiments FIG. 1 illustrates a system 100 for training a neural network. The system 100 may include a data interface 120 and a processor subsystem 140, which may communicate internally via a data communication 124. The data interface 120 may be for accessing data 050 representing parameters of the neural network. The neural network may include at least one optimization layer. The optimization layer may be for determining values ​​of one or more output neurons from values ​​of one or more input neurons by joint optimization. The data 050 may include one or more parameters of the joint optimization. The data interface 120 may also be for accessing a training data set 030 including one or more training instances.

[0041] The processor subsystem 140 may be configured to access the data 030,050 using the data interface 120 during operation of the system 100. For example, as shown in FIG. 1, the data interface 120 may provide access 122 to an external data storage 020 that may contain the aforementioned data 030,050. Alternatively, the data 030,050 may be accessed from an internal data storage that is part of the system 100. Alternatively, the data 030,050 may be received from another entity over a network. In general, the data interface 120 may take a variety of forms, such as a network interface to a local or wide area network, e.g., to the Internet, a storage interface to internal or external data storage, etc. The data storage 020 may take any known suitable form.

[0042] The processor subsystem 140 may be configured to train the neural network during operation of the system. Training the neural network may include determining a gradient of the loss of the neural network with respect to one or more input neurons and / or one or more parameters of the joint optimization from a gradient of the loss with respect to one or more output neurons of the optimization layer. Determining such a gradient may include: determining a gradient of a loss with respect to an output vector of one or more output neurons from the gradient with respect to the output neurons; determining from the gradient with respect to the output vector a gradient of a loss with respect to the input vector of one or more input neurons and therefrom determining a gradient of a loss of the neural network with respect to the input neurons and / or determining from the gradient with respect to the output vector a gradient of a loss with respect to one or more parameters; This can be carried out by:

[0043] The loss may be the loss of applying the neural network to one or more training instances of the training data set. When applying the neural network to the training instances, output vectors for one or more output neurons may be calculated from the input vectors by jointly optimizing at least the output vectors with respect to the input vectors to solve a semidefinite programming problem defined by one or more parameters. A backward pass may be performed accordingly.

[0044] As an optional component, the system 100 may include an image input interface (not shown) or any other type of input interface for acquiring sensor data from a sensor, such as a camera (not shown). The processor subsystem 140 may be configured to acquire one or more training instances of the training dataset 030 as the sensor data acquired from the sensor.

[0045] Various details and aspects of the operation of system 100 are further described with reference to Figures 4 and 5, which include aspects of these options.

[0046] In general, the system 100 may be implemented as or within a single device or apparatus, such as a workstation, e.g., laptop or desktop based, or a server. The device or apparatus may include one or more microprocessors running appropriate software. For example, the processor subsystem may be implemented by a single central processing unit (CPU), but also by a combination or system of multiple such CPUs and / or multiple other types of processing units. The software may be downloaded and / or stored in a corresponding memory, e.g., a volatile memory, e.g., a RAM, or a non-volatile memory, e.g., a flash. Alternatively, the functional units of the system, e.g., the data interface and the processor subsystem, may be implemented in a device or apparatus, e.g., in the form of programmable logic, e.g., a field programmable gate array (FPGA) and / or a graphics processing unit (GPU). In general, each functional unit of the system may be implemented in the form of a circuit. It should be noted that the system 100 may also be implemented in a distributed manner, in which multiple different devices or apparatuses, such as distributed servers, are included, or in the form of cloud computing, for example.

[0047] 2 illustrates a system 200 for applying a neural network to an input instance. The system 200 can include a data interface 220 and a processor subsystem 240, which can communicate internally via a data communication 224. The data interface 220 can be for accessing data 050 representing the neural network. The neural network can include at least one optimization layer. The optimization layer can be for determining values ​​of one or more output neurons from values ​​of one or more input neurons by joint optimization. The data 050 can include one or more parameters of the joint optimization.

[0048] The processor subsystem 240 may be configured to access the data 050 using the data interface 220 during operation of the system 200. The data 050 may be obtained, for example, by the system 100 by training a neural network according to the methods described herein. For example, as shown in FIG. 2, the data interface 220 may provide access 222 to an external data storage 022 that may contain the aforementioned data 050. Alternatively, the data 050 may be accessed from an internal data storage that is part of the system 200. Alternatively, the data 050 may be received from another entity over a network. In general, the data interface 220 may take a variety of forms, such as a network interface to a local or wide area network, for example to the Internet, a storage interface to an internal or external data storage, etc. The data storage 022 may take any known suitable form.

[0049] The processor subsystem 240 may be configured to obtain input instances during operation of the system. The processor subsystem 240 may further be configured to apply the neural network 050 to the input instances during operation of the system. Applying the neural network may include obtaining values ​​of one or more input neurons to the optimization layer and determining input vectors for the one or more input neurons therefrom. Applying the neural network may further include calculating output vectors for one or more output neurons from the determined input vectors by jointly optimizing at least the output vectors with respect to the input vectors to solve a semidefinite programming problem defined by the one or more parameters. Applying the neural network may also include determining values ​​of one or more output neurons from the respective calculated output vectors.

[0050] As an optional component, system 200 may include an image input interface 260, or any other type of input interface for acquiring sensor data from a sensor, such as a camera 280. The sensor data may be included in the instances to be processed by the neural network. For example, the camera may be configured to capture image data 262, and processor subsystem 240 may be configured to acquire the instances from the image data 262 acquired via input interface 260.

[0051] As an optional component, system 200 may include an actuator interface (not shown) for providing actuator data to the actuator that causes the actuator to perform an action within the environment of system 200. For example, processor subsystem 240 may be configured to determine actuator data based at least in part on the output of the neural network for the input instances and provide the actuator data to the actuator via the actuator interface.

[0052] Various details and aspects of the operation of system 200 are further described with reference to FIGS. 4 and 5, which include aspects of these options.

[0053] In general, the system 200 may be implemented as or within a single device or apparatus, such as a workstation, e.g., laptop or desktop based, or a server. The device or apparatus may include one or more microprocessors executing appropriate software. For example, the processor subsystem may be implemented by a single central processing unit (CPU), but also by a combination or system of multiple such CPUs and / or multiple other types of processing units. The software may be downloaded and / or stored in a corresponding memory, e.g., a volatile memory, e.g., a RAM, or a non-volatile memory, e.g., a flash. Alternatively, the functional units of the system, e.g., the data interface and the processor subsystem, may be implemented in a device or apparatus, e.g., in the form of programmable logic, e.g., a field programmable gate array (FPGA) and / or a graphics processing unit (GPU). In general, each functional unit of the system may be implemented in the form of a circuit. It should be noted that the system 200 may also be implemented in a distributed manner, in which multiple different devices or apparatuses, such as distributed servers, are included, or in the form of cloud computing, for example.

[0054] 3 illustrates the above example, where an automobile control system 300 for controlling a vehicle 62 is shown that includes a system for applying a neural network to input instances according to one embodiment, such as the system 200 of FIG. 2 (not shown separately). The neural network may be an image classifier in this example. The vehicle 62 may be an autonomous or semi-autonomous vehicle, although this is not required, for example the system 300 may be a driver assistance system for a non-autonomous vehicle 62.

[0055] For example, the vehicle 62 may incorporate a neural network-based system for controlling the vehicle based on images acquired from the camera 22. For example, the vehicle control system 300 may include a camera interface (not shown separately) for acquiring images of the vehicle's environment 50 from the camera 22.

[0056] The system may be configured to classify images acquired from the camera 22 using a neural network to detect situations of interest in the vehicle's environment 50, such as an obstacle with which the vehicle may collide. The control system 300 may further include an actuator interface (not shown separately) for providing actuator data to the actuators, which causes the actuators to perform actions to control the vehicle 62. The vehicle control system 300 may be configured to determine actuator data for controlling the vehicle 62 based at least in part on the detection result, and provide the actuator data to the actuators via the actuator interface. For example, the actuators may be operated to control the steering and / or braking of the vehicle. For example, the control system may control the electric motor 42 to perform (regenerative) braking when a situation of interest is detected.

[0057] FIG. 4 illustrates a detailed, but non-limiting, example of an optimization layer for use by, for example, system 100 or 200. The optimization layer OL, 451 shown here is a MAXSAT layer, in which a semidefinite programming problem that is a relaxation of the MAXSAT problem is solved in a joint optimization Opt, 440. The figure illustrates a forward pass, for example, from input to output, of a MAXSAT layer. The layer can receive as input discrete or probabilistic assignments of known MAXSAT variables. The layer can output guesses about assignments of unknown variables by SDP relaxations of the MAXSAT problem with particular weights S. Such a layer can be referred to as a "SATNet layer."

[0058] The input values ​​IVs, 400 of the optimization layer OL are shown. The input values ​​are

number

number

number

[0059] As part of the optimization layer OL, an operation Rx, 410 obtains an input vector IVXs, 420, e.g.,

number

number

[0060] Based on the input vector IVXs, an output vector OVXs, 470 is computed by jointly optimizing Opt, 440 at least the output vector OVXs with respect to the input vector IVXs, e.g., by optimizing a loss function with respect to at least the output vector OVXs while holding the input vector IVXs fixed. The output vector OVXs is

number

number

number

[0061] From the optimization output vector OVXs, in this case the output values ​​OVs, 490 of the optimization layer OL can be determined by performing a rounding Rd, 480. In this example, the output values

number

number

number

[0062] As a detailed example of an optimization layer OL, the following description of a SATNet layer is given with reference to the formulas and algorithms described in more detail with reference to FIG. [Table 1]

[0063] 5 shows a detailed, but non-limiting, example of how to apply and / or train a neural network according to one embodiment. In this example, a neural network, NN, 550, is shown.

[0064] For example, applying the neural network NN may obtain an input instance II, 530. For example, the input instance II may be an image or other type of sensor data. The input instance II may be input by a user from a sensor or the like. In various embodiments, the neural network NN may be configured to determine a classification CL, 539 of the input instance, although this is not required. The classification CL may be used to determine, for example, a control signal for an actuator to perform an action in the environment in which the input instance II is sensed. The arrows shown in the figure may indicate various data dependencies in the forward pass of applying the neural network.

[0065] For example, when training the neural network NN, backpropagation through the neural network can be performed, for example, by iteratively determining the gradient of the neural network's loss and adapting the parameters of the neural network so that the loss is reduced. For example, based on one or more input instances II with corresponding labels, for example in mini-batches, a loss is determined that indicates the difference between the classification of the neural network NN for each input instance II and the label attached to each instance. For example, to train the neural network NN, an optimization framework can be used that is known per se, such as the Adam optimization technique disclosed in "Adam: A Method for Stochastic Optimization" by Diederik P. Kingma and Jimmy Ba (hereby incorporated by reference and available at https: / / arxiv.org / abs / 1412.6980). For example, the loss to be minimized can be a cross-entropy loss, a negative log-likelihood, a mean squared error, etc.

[0066] As shown in the figure, the neural network NN can include at least one optimization layer. The neural network NN can also include multiple optimization layers, for example, one or more outputs of a first optimization layer are input to a second optimization layer, etc.

[0067] For example, to learn to apply a sequence of operations to an input sequence of length L, the neural network NN can include a series of L-1 optimization layers, e.g., SATNet layers. For example, the sequence of operations can be a sequence of XOR operations that are applied consecutively to the input sequence to calculate its parity. For example, if the same operation is applied multiple times, weights can be associated with some or all of the optimization layers. For example, in the case of a binary function such as XOR, the first optimization layer can receive the first two values ​​as input, and layer d can receive value d along with the output of layer d-1. Once each layer has learned to calculate each operation, the combined system will correctly calculate the entire operation. It should be noted that such neural networks with long sequences of optimization problems can be trained using the techniques presented herein with any intermediate supervision.

[0068] As another example of the structure of the neural network NN, the neural network can include one or more layers of a convolutional neural network, which is followed by one or more optimization layers, such as SATNet layers. In this way, the neural network can make inferences about low-level sensor input features, such as low-level image features. The optimization layer can be followed by additional layers, such as for performing classification, regression, coding into latent features, etc.

[0069] As those skilled in the art will appreciate, the specific neural network examples above are used only to illustrate some specific uses of the optimization layers as presented herein. Various alternatives or combinations are possible, in which the optimization layers presented herein can be advantageously combined with other types of neural network layers, e.g., layers known from LSTM architectures, and / or in various settings, e.g., generative adversarial models (GANs), variational autoencoders (VAEs), etc.

[0070] Then, we proceed to an optimization layer. The optimization layer may be for determining the values ​​OV1, 573 to OVn, 574 of one or more output neurons. In this example, two output neurons are shown, but in general there may be more output neurons, for example at least 20 or at least 100 output neurons. However, only one output neuron is also possible. The values ​​of the output neurons may be determined from the values ​​IV1, 501, . . . , IVn, 502 of one or more input neurons. Again, there may be one or more input values, for example at least 20 or at least 100 input values. The number of input values ​​and the number of output values ​​may be different. From the input values ​​IV1, . . . , IVn, the output values ​​OV1, . . . , OVn may be determined by jointly optimizing at least an output vector corresponding to the output values ​​with respect to an input vector corresponding to the input values, for example by determining an output vector that minimizes a loss function that depends on the output vector and the input vector while keeping the input values ​​constant.

[0071] In various embodiments, the joint optimization may be a relaxation of an optimization problem over the input and output values. Specifically, in some embodiments, the joint optimization is a MAXSAT relaxation. Other optimization problems, such as MAX2SAT or MAXCUT, may be similarly relaxed.

[0072] The MAXSAT problem is an optimization similar to the well-known satisfiability (SAT) problem, where the objective is to maximize the number of satisfied clauses. Consider a MAXSAT instance with n variables and m clauses.

number

number

number

number

number

number

number

number

number

number

number

number

number

number

number

number

[0073] In general, the dot product of a vector of V (V T V) T V) can be minimized for various choices of the matrix M, which leads to a semidefinite programming problem, but T This choice of S is particularly advantageous since it corresponds to the MAXSAT problem. In other words, the coefficients of the linear combination for the dot product of two vectors are the dot product of the two weight vectors associated with each vector.

number

[0074] In various embodiments, the semidefinite programming problem (2) can be solved by applying coordinate descent. In particular, v i The objective term that depends on is

number

number

number

[0075] In various embodiments, semidefinite programming problems are solved using a differentiable smoothing solver that can be incorporated into modern deep network architectures, such as neural networks NN. Coordinate descent can be used to solve semidefinite programming problems, such as SDP MAXSAT relaxations. In particular, an SDP relaxation of the MAXSAT problem and associated coordinate descent updates can be used to obtain a deep network layer for solving satisfiability, such as the SATNet layer of FIG. 4.

[0076] We now explain how the neural network NN can be applied to the input instance II in the forward pass.

number

number

[0077] The optimization layer receives as inputs IVi either stochastic inputs or binary inputs

number

number

number

number

number

number

[0078] Layer Initialization: Various aspects of the optimization layer can be configured, e.g., the number of parameters for joint optimization. For instance, in the MAXSAT example, the maximum number of nodes m that this layer can represent can be predefined.

[0079] Optionally, the expressive power of a layer can be improved by using one or more auxiliary variables that are not connected to the input or output of the layer. The output vector can be calculated by jointly optimizing one or more auxiliary vectors AVX1,571,...,AVXn,572 with the output vector. Adding additional variables to the optimization problem can reduce the number of clauses required to parameterize the problem. Similar to the input and output variables, auxiliary variables can be represented as auxiliary vectors, which are jointly optimized with the output vector. The number of auxiliary variables is generally not the same as the number of input or output vectors. There can be one or more auxiliary vectors, for example at least 10 or at least 100 auxiliary vectors.

[0080] The input vector, the output vector, and / or the auxiliary vector may be

number

[0081] In the operation Rx, 510, the layer inputs IV1,...,IVn can be relaxed, e.g., for each input value, an input vector IVX1, 521,...,IVXn, 522 can be determined. Preferably, the input vector is determined continuously and / or differentially for each input value to facilitate backpropagation. As a specific example,

number

number

number

[0082] In an operation Cdesc, 540, output vectors OVX1, 573, . . . , OVXn, 574 for one or more output neurons can be calculated from the determined input vectors IVX1, . . . , IVXn by jointly optimizing at least the output vectors with respect to the input vectors in order to solve a semidefinite programming problem defined by one or more parameters. In case auxiliary vectors AVX1, . . . , AVXn are present, these auxiliary vectors AVX1, . . . , AVXn can also be optimized. The number of output vectors typically corresponds to the number of output values ​​OV1, . . . , OVn.

[0083] For example, the one or more parameters may include a weight vector S of the MAXSAT relaxation. In this case, there may be one weight vector IWV1, 561,...,IWVn, 562 for each input vector, one weight vector AWV1, 563,...,AWVn, 564 for each auxiliary vector, and / or one weight vector OWV1, 565,...,OWVn, 566 for each output vector. Typically, the weight vectors each have the same length and together form the matrix S as described above. More generally, the parameters may include or define coefficients M of a linear combination of the dot products of vectors IVX1,...,IVXn, AVX1,...,AVXn, OVX1,...,OVXn.

[0084] Interestingly, the output vectors and / or auxiliary vectors are typically determined by optimization, while the input vectors remain fixed, as indicated by the arrows in the drawing.

[0085] Inputs IV1, , IVn

number

number

number

number

[0086] An example of a coordinate descent algorithm for the forward pass for MAXSAT relaxation is detailed below: [Table 2]

[0087] As illustrated in the above algorithm, coordinate descent involves the process of finding the state matrix, i.e., g ωThe term needed to calculate Ω=VS T It can be efficiently implemented by maintaining that. As explained, each entry of the weight vectors IWV1,...,OWVn, in other words the rows of the matrix S, can define a linear combination of vectors IVX1,...,OVXn representing clauses to be jointly optimized. The columns of the state matrix ω can thus indicate the values ​​of such clauses with respect to the input vectors, the output vectors and, optionally, the auxiliary vectors. As illustrated, the state matrix can be updated by rank-1 updates during each inner iteration. Thus, a per-iteration runtime of O(nmk) can be achieved. In practice, it has been observed that the number of iterations required for convergence is often very small.

[0088] In an operation Rd, 580, the discrete or probabilistic values ​​OV1,...,OVn of one or more output neurons are determined from the respective computed output vectors OVX1,...,OVXn.

number

[0089] For example, random rounding can be used, in which case a random hyperplane r can be generated, for example, from the unit sphere,

number

number

number

[0090] During training, or alternatively during random rounding, v ω and the probability that v0 is on the same side of any given r is

number

number

[0091] When applying a neural network NN, for example, a probabilistic output can be output as well, or a discrete assignment can be output by thresholding or by explicitly applying randomized rounding. In the case of randomized rounding, the rounding can be performed multiple times and a Boolean solution can be selected to maximize the optimization problem at hand, for example the MAXSAT objective (1). For example,

number

[0092] We then proceed to train the neural network NN in a backward pass. When training the neural network NN, a backward pass can be performed to determine the gradient of the neural network's loss with respect to one or more input neurons and / or one or more jointly optimized parameters from the gradient of the loss with respect to one or more output neurons of the optimization layer. The gradient of the network loss l with respect to the layer output

number

number

number

[0093] Interestingly, in some cases, calculations can be based on analytical expressions to directly compute the desired gradients, allowing for efficient coordinate descent algorithms. This is illustrated below for the SDP relaxation of the MAXSAT problem. However, explicit analytical expressions are not necessary, and it is possible, for example, to use numerical approximations.

[0094] From stochastic output to its continuous relaxation

number

number

number

number

number

[0095] SDP backpropagation Next, the results

number

number

number

number

number

number

number

[0096] First, the present invention provides an intermediate term

number

number

number

number

number

number

number

number

number

[0097] To capture the right-hand side of equation (9), η ω Solving this linear system and applying the chain rule gives us

number

number

number

number

number

number

number

number

number

number

number

number

number

number

number

[0098] From the relaxed to the original input Gradient (with respect to input relaxation)

number

number

number

number

number

number

number

[0099] Calculating backpropagation terms by coordinate descent Linear Systems

number

[0100] An exemplary procedure for computing gradients for an SDP relaxation of the MAXSAT problem is given below: [Table 3]

[0101] FIG. 6 illustrates a block diagram of a computer-implemented method 600 for applying a neural network to input instances.

[0102] The method 600 may include accessing 610 data representing the neural network in an operation titled "Accessing Neural Network Data." The neural network may include at least one optimization layer. The optimization layer may be for determining values ​​of one or more output neurons from values ​​of one or more input neurons by joint optimization. The data may include one or more parameters of the joint optimization. The method may further include obtaining 620 an input instance in an operation titled "Obtaining an Input Instance." The method may further include applying 630 the neural network to the input instance in an operation titled "Applying a Neural Network." Applying 630 the neural network may include obtaining 631 values ​​of one or more input neurons to the optimization layer in an operation titled "Obtaining Input Values." Applying 630 may further include determining 632 an input vector for one or more input neurons from the values ​​of the one or more input neurons in an operation titled "Determining an Input Vector." Applying 630 may further include calculating 633 output vectors for one or more output neurons from the determined input vectors by jointly optimizing at least the output vectors with respect to the input vectors to solve a semidefinite programming problem defined by the one or more parameters, in an operation titled "Solving a Semidefinite Programming Problem." Applying 630 may further include determining 634 values ​​for the one or more output neurons from each calculated output vector, in an operation titled "Determining Output Values."

[0103] Method 600 may correspond to the operation of system 200 of Figure 2. However, this is not a limitation, and thus method 600 may be implemented using other systems, apparatus, or devices.

[0104] FIG. 7 shows a block diagram of a computer-implemented method 700 for training a neural network.

[0105] The method 700 may include, in an operation titled "Neural Network, Accessing Training Data," accessing 710 data representing parameters of a neural network and accessing a training data set including one or more input instances. The neural network may include at least one optimization layer. The optimization layer may be for determining values ​​of one or more output neurons from values ​​of one or more input neurons by joint optimization. The data may include one or more parameters of the joint optimization.

[0106] Method 700 may further include training 720 the neural network in an operation titled "Training the Neural Network." Training 720 may include determining 730 a gradient of a loss of the neural network for one or more input neurons and / or one or more parameters of the joint optimization from a gradient of the loss for one or more output neurons of the optimization layer in an operation titled "Determining a Loss Gradient."

[0107] Determining 730 the gradient may include determining 731 the gradient of the loss for the output vector of one or more output neurons from the gradient for the output neuron in an operation titled "Determining Gradient for Output Vector."

[0108] Determining 730 may further include determining 732 gradients of losses with respect to the input vectors of one or more input neurons from the gradients with respect to the output vectors in an operation titled "Determining Gradient with Respect to Input Vectors." Determining 730 may further include determining 733 gradients of losses of the neural network with respect to the input neurons from the gradients of the losses with respect to the input vectors in an operation titled "Determining Gradient with Respect to Input Neurons."

[0109] Alternatively or in addition to operations 732 and 733, determining 730 may include determining 734 a gradient of the loss with respect to one or more parameters from the gradient with respect to the output vector in an operation titled “Determine Gradient with Respect to Parameters.”

[0110] To solve a semidefinite programming problem defined by one or more parameters, output vectors for one or more output neurons can be calculated from determined input vectors by jointly optimizing at least the output vector with respect to the input vector.

[0111] Method 700 may correspond to the operation of system 100 of Figure 1. However, this is not a limitation, and thus method 700 may be implemented using other systems, apparatus, or devices.

[0112] In general, it will be appreciated that the operations of methods 600 and 700 may be performed in any suitable order, e.g., sequentially, simultaneously, or a combination thereof, subject to specific ordering necessitated by, for example, input / output relationships, where applicable.

[0113] The method may be implemented on a computer, as a computer-implemented method, as dedicated hardware, or as a combination of both. As also shown in FIG. 8, instructions for a computer, e.g. executable code, may be stored on a computer-readable medium 800, e.g. in the form of a series of machine-readable physical marks 810 and / or in the form of a series of elements having different electrical, e.g. magnetic or optical properties or values. The executable code may be stored temporarily or non-temporarily. Examples of computer-readable media include memory devices, optical storage devices, integrated circuits, servers, online software, etc. FIG. 8 shows an optical disk 800. Alternatively, the computer-readable medium 800 may include temporary or non-transient data 810 representing parameters of the joint optimization, as described elsewhere herein.

[0114] Although the neural networks presented herein are applicable to a wide range of problems, some specific examples are given below.

[0115] Action Recognition from Video Suppose we are given a video sequence as input and the goal is to recognize actions occurring in the scene. For example, in an autonomous driving system, the system makes decisions by utilizing visual data. In many such cases, the rules for decision making cannot be explicitly or easily defined. However, by applying the techniques described herein, we can train and / or use neural networks that are capable of performing learning logical inferences based on a set of visual information.

[0116] Image caption: We can consider the problem of describing a scene in a digital image in one sentence. By utilizing a training set of image pairs together with their short descriptions, the proposed network can learn general rules to give descriptions and generalize better to unseen images. For example, the neural network can include a LTSM or a recurrent neural network followed by an optimization layer.

[0117] Handwritten text recognition : Suppose we are given a text contained in a document, for example scanned or given as a digital image, and the goal is to recognize this text. Even if the text is printed, noise or missing data should be taken into account. The problem becomes even more difficult when considering handwritten text recognition as a multiplicity, and therefore the complexity of the problem increases significantly. In this task, moreover, imperfect observations should be considered, which are difficult to handle without a large amount of training data. In this setting, the proposed neural network of the present invention is able to learn how to recognize the usual mistakes made by humans. As a result, the number of training examples required to train the network can be reduced. Moreover, as the network learns more general models, the recognition task becomes more accurately solved, which allows it to explore more sophisticated relationships within the data, thus allowing it to better identify uncertain situations.

[0118] natural language recognition : Similar to text recognition, the techniques disclosed herein can also be applied to natural language recognition. Since we cannot expect complete data, e.g. noiseless data, we can model the missing information. This can be achieved by the neural network proposed herein by using optimization layers to learn more complex relationships in the training data.

[0119] Neither examples, embodiments nor optional features, whether non-limiting or not, should be understood as limiting the claimed invention.

[0120] It should be noted that the above-described embodiments are illustrative rather than limiting of the present invention, and that those skilled in the art can design many alternative embodiments without departing from the scope of the appended claims. In the claims, reference signs placed between parentheses shall not be construed as limiting the scope of the claims. Use of the verb "comprise" and its conjugations does not exclude the presence of elements or steps other than those stated in the claims. The article "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. An expression such as "at least one" before a list or group of elements denotes the selection of all or any subset of the elements from the list or group. For example, the expression "at least one of A, B, and C" is to be understood as including A only, B only, C only, both A and B, both A and C, both B and C, or all of A, B, and C. The present invention can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In a device claim enumerating several means, several of these means may be embodied by one and the same item of hardware. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that a combination of these measures cannot be used to advantage.

Claims

1. A system (200) for applying a neural network to input instances, comprising: The system is a data interface (220) for accessing data (050) representing the neural network; A processor subsystem (240); Including, the neural network includes at least one optimization layer for determining values ​​of one or more output neurons from values ​​of one or more input neurons by joint optimization, the data including one or more parameters of the joint optimization; The processor subsystem (240) Get the input instance, Applying the neural network to the input instances It is structured as follows: Applying the neural network obtaining values ​​of the one or more input neurons to the optimization layer and determining therefrom an input vector for the one or more input neurons; calculating output vectors for the one or more output neurons from the determined input vectors by jointly optimizing at least an output vector with respect to the input vector to solve a semidefinite programming problem defined by the one or more parameters; determining values ​​of the one or more output neurons from each of the calculated output vectors; Including, The semidefinite programming problem includes at least a relaxation of a MAXSAT problem, a MAX2SAT problem, or a MAXCUT problem with respect to values ​​of the one or more input neurons and values ​​of the one or more output neurons. System (200).

2. the input instance includes an image; the neural network includes at least one convolutional layer, the at least one convolutional layer being followed by the optimization layer; The system (200) of claim 1.

3. the processor subsystem (240) is configured to calculate the output vector by jointly optimizing one or more auxiliary vectors representing auxiliary variables with the output vector; The system (200) of claim 1 or 2.

4. The processor subsystem (240) calculates the dot product (V T V) (<M, V T V>), The system (200) of claim 3.

5. The coefficients of the linear combination for the dot product of two vectors are the dot product of the two weight vectors associated with each of the vectors. [0010] is given by The two weight vectors are included in the parameters of the joint optimization. The system (200) of claim 4.

6. The two weight vectors (s i ) has fewer elements than the sum of the input vector, the output vector, and optionally the auxiliary vector; The system (200) of claim 5.

7. the processor subsystem is configured to calculate the output vector by iteratively updating the output vector or the auxiliary vector based on the input vector and current values ​​of the output vector and the auxiliary vector. The system (200) of any one of claims 3 to 6.

8. the joint optimization parameters include weight vectors associated with each of the input vectors, the output vectors, and optionally the auxiliary vectors; each entry of the weight vector defines a linear combination of the vectors representing nodes to be jointly optimized; The processor subsystem (240) may further include a processor for computing the output vector, the processor subsystem comprising: Initialize the state matrix, Iteratively updating the output vector or the auxiliary vector based on the input vector and current values ​​of the output vector and the auxiliary vector. The method is configured to implement the method by: the columns of the state matrix indicate nodal values ​​for the input vectors, the output vectors, and optionally the auxiliary vectors; the iterative updating includes updating the state matrix based on the updated output vector or the auxiliary vector. The system (200) of claim 7.

9. A system (100) for training a neural network, comprising: The system is a data interface (120) for accessing data (050) representative of parameters of said neural network; a processor subsystem (140) configured to train the neural network; Including, the neural network includes at least one optimization layer for determining values ​​of one or more output neurons from values ​​of one or more input neurons by joint optimization, the data including one or more parameters of the joint optimization, the optimization layer also for accessing a training data set (030) including one or more input instances; training the neural network includes determining a gradient of a loss of the neural network with respect to the one or more input neurons and / or the one or more parameters of the joint optimization from a gradient of a loss with respect to the one or more output neurons of the optimization layer; Determining the gradient comprises: determining a gradient of a loss with respect to an output vector of the one or more output neurons from the gradient with respect to the output neurons; determining from the gradients with respect to the output vector a gradient of a loss with respect to an input vector of the one or more input neurons, and therefrom determining a gradient of a loss of the neural network with respect to the input neurons, and / or determining from the gradients with respect to the output vector a gradient of a loss with respect to the one or more parameters; Conducted by the output vectors for the one or more output neurons are calculated from the determined input vectors by jointly optimizing at least the output vectors with respect to the input vectors to solve a semidefinite programming problem defined by the one or more parameters; The semidefinite programming problem includes at least a relaxation of a MAXSAT problem, a MAX2SAT problem, or a MAXCUT problem with respect to values ​​of the one or more input neurons and values ​​of the one or more output neurons. System (100).

10. The joint optimization includes iteratively updating the output vector or the auxiliary vector based on the input vector and current values ​​of the output vector and auxiliary vector, the auxiliary vector representing an auxiliary variable; the processor subsystem is configured to determine a gradient of a loss with respect to the input vector and / or one or more weights by backpropagation of the iterative updates. The system (100) of claim 9.

11. A computer-implemented method (600) for applying a neural network to input instances, comprising: The method comprises: accessing data representing the neural network; Obtaining an input instance; applying said neural network to said input instances; Including, the neural network includes at least one optimization layer for determining values ​​of one or more output neurons from values ​​of one or more input neurons by joint optimization, the data including one or more parameters of the joint optimization; Applying the neural network obtaining values ​​of the one or more input neurons to the optimization layer and determining therefrom an input vector for the one or more input neurons; calculating output vectors for the one or more output neurons from the determined input vectors by jointly optimizing at least an output vector with respect to the input vector to solve a semidefinite programming problem defined by the one or more parameters; determining values ​​of the one or more output neurons from each of the calculated output vectors; Including, The semidefinite programming problem includes at least a relaxation of a MAXSAT problem, a MAX2SAT problem, or a MAXCUT problem with respect to values ​​of the one or more input neurons and values ​​of the one or more output neurons. Method (600).

12. A computer-implemented method (700) for training a neural network, comprising: The method comprises: accessing data representative of parameters of the neural network; training the neural network; Including, the neural network includes at least one optimization layer for determining values ​​of one or more output neurons from values ​​of one or more input neurons by joint optimization, the data includes one or more parameters of the joint optimization, and a training data set includes one or more instances; training the neural network includes determining a gradient of a loss of the neural network with respect to the one or more input neurons and / or the one or more parameters of the joint optimization from a gradient of a loss with respect to one or more output neurons of an optimization layer; Determining the gradient comprises: determining a gradient of a loss with respect to an output vector of the one or more output neurons from the gradient with respect to the output neurons; determining from the gradients with respect to the output vector a gradient of a loss with respect to an input vector of the one or more input neurons, and therefrom determining a gradient of a loss of the neural network with respect to the input neurons, and / or determining from the gradients with respect to the output vector a gradient of a loss with respect to the one or more parameters; Conducted by the output vectors for the one or more output neurons are calculated from the determined input vectors by jointly optimizing at least the output vectors with respect to the input vectors to solve a semidefinite programming problem defined by the one or more parameters; The semidefinite programming problem includes at least a relaxation of a MAXSAT problem, a MAX2SAT problem, or a MAXCUT problem with respect to values ​​of the one or more input neurons and values ​​of the one or more output neurons. Method (700).

13. A computer readable medium (800) comprising transitory or non-transitory data representing instructions that, when executed by a processor system, cause said processor system to perform the method of claim 11 or 12.

14. A computer-readable medium (800) containing transitory or non-transient data representative of parameters of a neural network, comprising: the neural network includes at least one optimization layer; the optimization layer is for determining values ​​of one or more output neurons from values ​​of one or more input neurons by joint optimization, the data including one or more parameters of the joint optimization; applying the neural network to input instances obtaining values ​​of the one or more input neurons to the optimization layer and determining therefrom an input vector for the one or more input neurons; calculating output vectors for the one or more output neurons from the determined input vectors by jointly optimizing at least an output vector with respect to the input vector to solve a semidefinite programming problem defined by the one or more parameters; determining values ​​of the one or more output neurons from each of the calculated output vectors; Including, The semidefinite programming problem includes at least a relaxation of a MAXSAT problem, a MAX2SAT problem, or a MAXCUT problem with respect to values ​​of the one or more input neurons and values ​​of the one or more output neurons. A computer readable medium (800).

Citation Information

Patent Citations

  • Method and system for removing noise of image

    JP2017059220A

  • Intermediate information analyzer, optimizing device and feature visualizing device of neural network

    JP2019046453A