Optimizing capacity and learning of weighted real-valued logic.

The method of learning weighted real-valued logic in neural networks optimizes expressive power and gradient quality through logical constraints and true threshold determination, addressing interpretability and efficiency challenges in AI methodologies.

JP7553203B2Active Publication Date: 2024-09-18INTERNATIONAL BUSINESS MACHINE CORPORATION
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2022567784
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2020-05-13
Filing Date
2021-03-18
Publication Date
2024-09-18
Estimated Expiration
2041-03-18

AI Technical Summary

Technical Problem

Existing artificial intelligence methodologies face challenges in balancing the interpretability and efficiency of formal logic systems with the data-driven capabilities of neural networks, particularly in terms of computational intensity, dataset requirements, vulnerability to adversarial attacks, and uninterpretable black-box characteristics.

Method used

A method for learning weighted real-valued logic in neural networks is introduced, which includes defining logic constraints and determining a true threshold for activation functions to optimize expressive power and gradient quality, using techniques such as convex optimization and alpha-conserving sigmoid functions to enhance neural network performance.

Benefits of technology

This approach addresses vanishing gradient problems and improves the interpretability and efficiency of neural networks by ensuring non-zero gradients and maintaining logical constraints, thereby enhancing the learning capacity and accuracy of neural networks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007553203000039
    Figure 0007553203000039
  • Figure 0007553203000038
    Figure 0007553203000038
  • Figure 0007553203000032
    Figure 0007553203000032
Patent Text Reader

Abstract

A maximum expressive power representing the ratio between the maximum input weight and the minimum input weight to a neuron of a neural network implementing a weighted real-valued logic gate can be received. An operator arity associated with the neuron can be received. A logical constraint associated with the weighted real-valued logic gate can be defined with respect to the weights associated with the inputs to the neuron, the true threshold, and the neuron threshold for activation. The true threshold can be determined as a parameter used in the activation function of the neuron based on solving an activation optimization formulated based on the logical constraint, where the activation optimization maximizes the product of the expressive power representing the distribution width of the input weights to the neuron and the gradient quality for the neuron for a given operator arity and maximum expressive power. The activation function in the neuron can be used to train a neural network of logical neurons, where the activation function uses the determined true threshold.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates generally to computers and computer applications, and more particularly to neural networks and neuro-symbolic networks. [Background technology]

[0002] Artificial intelligence methodologies include principled deductive reasoning using any of a variety of systems of formal logic, and data-driven gradient-optimized neural networks. Both paradigms have many advantages and disadvantages. For example, formal logic is interpretable, verifiable, and broadly generalizable, but is computationally intensive, requires input from experts in a wide range of domains, and can be derailed by inconsistencies. Neural networks, on the other hand, perform well on raw or noisy data or both, require little human configuration, and can run efficiently in parallel. However, neural networks may require large training datasets, may be vulnerable to adversarial attacks, and may have uninterpretable black-box properties. Summary of the Invention

[0003] A method for learning weighted real-valued logic implemented in a neural network of logical neurons can, in one aspect, include receiving a maximum expressiveness representing a ratio between a maximum input weight and a minimum input weight to a neuron of the neural network implementing the weighted real-valued logic gate. The method can also include receiving an arity of an operator associated with the neuron. The method can further include defining logic constraints associated with the weighted real-valued logic gate in terms of weights associated with the inputs to the neuron, a true threshold, and a neuron threshold for activation. The method can also include determining the true threshold as a parameter used in an activation function of the neuron based on solving an activation optimization formulated based on the logic constraints. The activation optimization maximizes the product of an expressiveness representing a distribution width of input weights to the neuron and a gradient quality for the neuron for a given operator arity and maximum expressiveness. The method can also include training the neural network of logical neurons using the activation function in the neuron, the activation function using the determined true threshold.

[0004] The system may include, in one aspect, a hardware processor. A memory device may be coupled to the hardware processor. The hardware processor may be configured to receive a maximum expressiveness representing a ratio between a maximum input weight and a minimum input weight to a neuron of the neural network implementing the weighted real-valued logic gate. The hardware processor may also be configured to receive an operator arity associated with the neuron. The hardware processor may also be configured to define logic constraints associated with the weighted real-valued logic gate in terms of weights associated with the inputs to the neuron, a true threshold, and a neuron threshold for activation. The hardware processor may also be configured to determine the true threshold as a parameter used in an activation function of the neuron based on solving an activation optimization. The activation optimization may be formulated based on the logic constraints. The activation optimization maximizes the product of an expressiveness representing a distribution width of input weights to the neuron and a gradient quality for the neuron for a given operator arity and maximum expressiveness. The hardware processor may also be configured to train the neural network of logical neurons using the activation function in the neuron, the activation function using the determined true threshold.

[0005] A computer-readable storage medium having stored thereon a program of instructions executable by a machine to perform one or more of the methods described herein may also be provided.

[0006] Further features, as well as the structure and operation of various embodiments, are described in detail below with reference to the accompanying drawings, where like reference numbers indicate identical or functionally similar elements. [Brief description of the drawings]

[0007] [Figure 1] 1 illustrates a neuron in a network of neurons in an embodiment. [Figure 2A]1 illustrates an example of a network of logical neurons in an embodiment. [Figure 2B] 1 illustrates an example of a network of logical neurons in an embodiment. [Diagram 3] FIG. 1 illustrates components of a system in one embodiment that can provide capacity and training optimization for weighted real-valued logic. [Figure 4] FIG. 2 is a flow diagram illustrating a method in an embodiment. [Diagram 5] FIG. 13 is a diagram illustrating an example of a true threshold value in the embodiment. [Figure 6] 1 illustrates an alpha-preserving sigmoid activation function in accordance with an embodiment. [Figure 7] 1 illustrates a weight distribution in one embodiment. [Figure 8] FIG. 1 is a schematic diagram of an exemplary computer or processing system on which a system according to one embodiment may be implemented. [Figure 9] 1 illustrates an exemplary user interface visualization in an embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0008] Systems, methods, and techniques are presented that can determine various parameters for optimizing machine learning models, such as neural networks. The methods can determine, for example, the threshold-of-truth (alpha) of weighted real-valued logical operators, such as logical neurons (e.g., weighted offset Lukasiewicz real-valued strong conjunction or disjunction operators or both), activation functions, and logical constraints (e.g., convex optimization linear programs) to optimize the functional gradient of the activation function for a given maximum expressivity (e.g., defined by the ratio between the maximum and minimum input weights) and the size or arity (number of operands) of the operator. In one aspect, the various parameters for machine learning determined by the embodiments of the present systems, methods, and techniques can address the vanishing gradient problem in machine learning, such as having a gradient that is too small, which makes machine learning difficult.

[0009] An artificial neural network (ANN) or neural network (NN) is a machine learning model that can be trained to predict or classify input data. An artificial neural network can include successive layers of neurons that are interconnected such that the output signal of a neuron in one layer is weighted and transmitted to a neuron in the next layer. A neuron Ni in a given layer can be connected to one or more neurons Nj in the next layer, and a different weight wij can be associated with each neuron-neuron connection Ni-Nj to weight the signal transmitted from Ni to Nj. A neuron Nj generates an output signal that depends on its accumulated input, and the weighted signal can be propagated through successive layers of the network from the input to the output neuron layer. An artificial neural network machine learning model can undergo a training phase in which a set of weights associated with each neuron layer is determined. The network is subjected to a set of training data in an iterative learning scheme in which the weights are repeatedly updated as the network "learns" from the training data. A trained model with weights determined through a training operation can be applied to perform a task based on new data.

[0010] One example of a neural network is a recurrent neural network, which can handle sequence-based data such as time series data or sentences in a language. A recurrent neural network model can have a set of neural network cells that receive as input the sequence of data as well as activation information from a previous neural network at a previous time step.

[0011] Fuzzy logic is a logical system in which the Boolean operators of classical logic are replaced by functions operating on real numbers in the range [0;1]. Beyond a means of evaluating the truth value of various expressions based on their subformulas, fuzzy logic aims to provide an algorithm by which the truth values ​​of propositions (or predicates) can be inferred from one another along with a knowledge base (theory) of axioms, each of which is assigned a fuzzy truth value.

[0012] In weighted fuzzy logic, logical expressions and / or their components have real-valued weights that represent importance, influence, or some related concept. Such a system of logic allows for a more flexible representation of relationships between propositions (predicates when extended to first-order logic). Weighted fuzzy logic is amenable to automated learning, since it provides a continuous means of adjusting the effect of each operand in a given expression.

[0013] For example, Lukasiewicz logic is a real-valued logic or multi-valued logic, and sentences can be assigned truth values ​​not only of 0 or 1, but also of any real number in between (e.g., 0.3). The propositional connectives of Lukasiewicz logic are

number

[0014] Neuro-symbolic representations are weighted real-valued logic in the form of neural networks that can be constrained to behave equivalently to classical logic (or fuzzy logic). In embodiments, the systems and methods can determine various parameters for neuro-symbolic representations that include neurons that evaluate classical logic functions similar to activation functions, for example.

[0015] For example, a neural network in one embodiment includes logic neurons. The logic neurons can emulate logic gates such as AND, OR, IMPLIES, NOT, or others or combinations thereof. A neural network of logic neurons can be trained to implement logic rules and perform logical inference. The logic neurons are similar to any sigmoid neurons used in neural networks, but may differ in the following properties: The weights of a logic neuron are constrained such that its output reflects the behavior of the operations performed in classical logic, e.g., AND, OR, and IMPLIES. The inputs and outputs of a logic neuron are understood to be truth-value boundaries. The truth values ​​range from 0 to 1, but this can be interpreted classically if they are bounded above or below some (e.g., defined) threshold, e.g., above a threshold α or below 1-α. These can be evaluated normally, or can be used to perform modus ponens, where the boundaries of each input are calculated based on the output and known boundaries of the other inputs. Modus ponens refers to the logical law that states that if a conditional statement ("if p then q") is accepted and the antecedent (p) is true, then the conclusion (q) can be inferred.

[0016] Logistic function S(x)=(1+exp(-x)) -1 and a scaled and offset α-preserving sigmoid, given a chosen true threshold 0.5<α<1.

number

[0017] By definition, this function is α (α)=α and S α (1-α)=1-α. Then, for a logical neuron indexed by j∈N, the usual computation is

number

[0018] The activation function of each neuron can compute the output of that neuron or node and can be chosen to represent a particular logical operation or family of operations. Each node in the network can compute its upper and lower truth bound values ​​as outputs. These upper and lower truth bounds are continuous variables at each node and are passed around the network. These bounded truth variables are computed at nodes at prediction or inference time, which are computed based on the inputs and correspond to learned importance weights, respectively.

[0019] Constraints on logical neurons (e.g., logic constraints) can be derived from the truth table of the operation they are intended to model, and from established ranges for "true" and "false" values. In one aspect, a continuous truth value is considered true if its lower bound is at least α, and false if its upper bound is at most 1-α. With an α-preserving sigmoid, it is sufficient to constrain the result of its linear argument to be above or below such a reasonable threshold. Figure 6 shows an α-preserving sigmoid activation function.

[0020] As an example, a truth table, say of a binary AND, represents a given set of constraints.

number

[0021] For example, in deriving constraints, a false logical value (0) is represented as (1-α) and a true logical value (1) is represented as α.

[0022] More generally, an n-ary conjunction (with positive inputs) has a constraint of the form

number

number

[0023] For example, (3) requires that the conjunction returns true if all of its inputs are true, and (4) requires that if any input is false, the conjunction returns false even if all other inputs are 1, i.e., the disjunction returns true maximally if true. Given negation defined as ¬p=1-p, the classical identity p→q=¬p∨q allows implications to use the same constraints as disjunctions. The above two sets of constraints are equivalent under DeMorgan's laws, e.g., p∨q=¬(¬p∧¬q).

[0024] As a result of this constraint, a normal evaluation of a logical neuron is guaranteed to give a result within an established range of true and false if all inputs are within that range.

[0025] Form for conjunctions

number

number

number

number

[0026] In one aspect, reasoning about boundaries of truth values ​​alleviates many of the challenges inherent in implementing logical reasoning in neural networks. Boundaries provide an elegant and intuitive mechanism for expressing the four possible states that truth values ​​can take during reasoning: unknown, known true, known false, and known contradictory. Boundaries provide a mechanism by which modus ponens can return nonresults. Reasoning about boundaries facilitates the ability to aggregate multiple proofs to the same proposition.

[0027] It may be desirable to reduce the weight of an input to zero, thereby effectively removing it from I. To make this possible, a slack variable (s) can be introduced for each weight, allowing the respective constraints in (4) or (5) to be violated when the weight goes to zero.

number

[0028] s k =0 or w k = 0, these match the original constraints. The optimization is k w k One can choose such a parameterization by updating the training loss function to include a penalty term that scales with x. The coefficient of this penalty term controls how classical the learned operation is, and if the optimization reduces the penalty term to zero, then truly classical behavior is restored.

[0029] 1 illustrates a neuron in a network of logical neurons or a logical neuron in an embodiment. Weighted inputs to the neuron are combined through a weighted sum or linear combination inside the neuron 102 before inputting the result to the neuron's activation function 104. In the illustrated example, the logical neuron 102 corresponding to a logical conjunction (AND) operation on a vector x of logical truth values ​​in the range [0,1] can be defined in the form of the Lukasiewicz fuzzy t-norm (triangular norm) as an argument to the neuron activation function f as follows:

number

[0030] A logical neuron receives one or more input operands x0, x1, .., x i ,..,x n Each operand receives a respective assigned or calculated weight w0, w1, .., w i ,..,w n The input values ​​are combined according to a defined equation t-Σw(1-x) and fed into a neuron activation function f. "t" represents the maximum expected input to a neuron activation, which corresponds to the case where the output of the logical conjunction is entirely true.

[0031] For example, a conjunction (&, also called AND) neuron is &(x)=f(tw (1-x)) The constraints or logical constraints on the conjunctive neurons can be defined as follows:

number

[0032] In an embodiment, the system determines parameter values, including a truth threshold and an activation threshold, for a parameterized activation f that maximizes the product of expressiveness and gradient quality for the expected input distribution to the activation function, computed at the argument to the activation function in a logical neuron. In an embodiment, in a constrained neuron: 1. f is odd, monotonically increasing, in the range [0,1], and alpha (α)-conserving; 2. Define the degree of truth for thresholding: e.g., 0.5<α≦1; 3. Set the slack s i allows for the removal of an input; 4. For example, one false input to a logical conjunction (AND) neuron makes its output false.

[0033] A neurosymbolic representation may have a neural network formed of a number of logical neurons forming a logical formula. Figures 2A and 2B show an example of a network of logical neurons in an embodiment. An example of a logical inference may be "whiskers ∧ tail ∧ (laser pointer → chasing)) → cat" (whiskers AND tail AND (laser pointer IMPLIES chasing) IMPLIES cat). Another example of a logical inference may be "(cat ∨ dog) → pets" ((cat OR dog) IMPLIES pets). A known truth value for any proposition or formula may be used as ground truth in neural net optimization.

[0034] 2A is a logical network tree structure showing an example use case of a neural network having logical neurons in an embodiment, and FIG 2B shows a backward inference calculation in the logical network tree structure of the example use case of the neural network in FIG 2A.

[0035] 2A is a use case of a neural network ("net" or "NN") 200 including logical neurons formed according to the methods herein in an embodiment. Although neural networks are generally described in terms of first-order logic, the use cases below will first describe neural networks within the scope of propositional logic.

[0036] As shown in FIG. 2A, there is one neuron 210 per logical connective symbol or edge 212 and one neuron 220 per proposition / predicate 202. Each generated neuron 210 has a one-to-one correspondence with the system of logical expressions 205, 208, where evaluation is equivalent to logical inference. To generate a logical neural network, a computing system receives inputs, e.g., knowledge graphs / predicted input data / facts, for use in outputting truth values ​​(represented by upper and lower bounds) at any neuron, e.g., the neuron associated with the query expression. The neurons 210 are arranged to match the expression syntax tree, and the proposition / predicate neurons 220 provide proven truth values ​​and recursively aggregate. In general, negation (and first order quantifiers) are pass-through nodes that have no parameters. As shown, a particular neuron 210 provides an uncertainty bound 213 of a value between 0 and 1. Each neuron 210 has a tuned activation function 211 whose calculation results in a truth bound. A further method of bidirectional inference is used.

[0037] As shown in FIG. 2A, an exemplary use case logic network (net) 200 includes a syntax tree graph structure 204, which is shown in symbolic logic inference, constructed to correspond to a logic formula 205 at the time of NN model creation. The logic network has logical connective symbols and predicates as nodes and edges as part of the syntax tree of the corresponding system of logic formulas. FIG. 2A also shows a second syntax tree structure 207, which is constructed to correspond to an input logic formula 208 at the time of model creation. The input logic formulas 205, 208 are rules about the world and may be created by an expert or may be generated in an aphazard way, e.g., extracted by an integer linear programming (ILP) or natural language programming (NLP) device. The formulas 205, 208 may be known formulas or parts thereof, i.e., sub-formulas, and may be modified or fine-tuned at the time of model creation or at the time of prediction or inference, or both. That is, particular inputs to a formula or inputs to a sub-formula (e.g., operands) can be weighted based on their importance and, as a result, assigned importance weights that become part of the structure of the NN. In this way, each operand of each connective symbol in a formula is or can be assigned an importance weight, allowing modification of each formula or weights unless optimized.

[0038] In the example use case, for subgraph 218, the "cat" node can be weighted as twice as important as "dog", thus skewing the results in the sense that "cat" has more influence than "dog" in the expression, a modified version of the disjunctive "OR" connective.

[0039] Each of the syntax tree graphs 204, 207 for each formula is constructed based on an initial list of input propositions 202 with defined truth values ​​(e.g., true or false), including "whiskers" 202A, "tails" 202B, "laser pointers" 202C, "chasing" 202D, "cats" 202E1, 202E2, "dogs" 202F, and "pets" 202G present in the formula. Alternatively, these inputs may be predicates, e.g., statements whose truth values ​​depend on more than one variable. A logical formula 205, 208 is applied that results in a respective inference or implication evaluation (e.g., "whiskers ∧ tails ∧ (laser pointers → chasing)), → cat") and an inference or implication evaluation (e.g., "cats ∨ dogs) → pets"). In FIG. 2A, sub-formulas are shown as corresponding sub-graphs 218 (e.g., "cats ∨ dogs"). No inference rules are depicted, but activation functions 211 are depicted that are present at particular nodes 210 based on a particular selected logic, e.g., Lukasiewicz logic. Activation functions 211 are shown corresponding to particular logical connectives, e.g., nodes 210A, 210B, 210C, present in expressions 205, 208. Exemplary classical propositional logic connectives use Boolean operations, e.g., AND, OR, implication, negation, and logical equality, and use truth values ​​as 1 or 0.

[0040] An example of recursive (bidirectional) backward inference (reverse path) is shown in FIG. 2B, corresponding to the exemplary NN 200 shown in FIG. 2A. While the system is not converged, a backward traversal of the logic network is performed to update the truth values ​​of various propositions. In the NN, reverse inference rules are evaluated at each node in a downward direction, traversing all paths from the root node 215 to all leaves. In an embodiment without guidance, a depth-first traversal is performed, sweeping the paths from the root to the leaves of the syntax tree for each expression. For example, the first path evaluated is a modal strength edge 242 that attempts to disprove a conjunction based on the knowledge "cat", then a conjunction syllogism edge 242A that attempts to disprove "whiskers" if the conjunction is false. Then, the next conjunction syllogism evaluation can be performed at edge 242B, then an evaluation can be performed on the sub-expression "laser point implies chase" of node 210B at edge 242C, and so on.

[0041] In an embodiment, information is backpropagated along the following backward paths to update the inverse function calculations in tree 204: the truth value (upper and lower bounds) of "whisker" predicate 202A is updated by the inverse activation function calculations in conjunctive neuron 210A, as indicated by arrows 242, 242A; the truth value (upper and lower bounds) of "tail" predicate 202B is updated by the inverse activation function calculations in conjunctive neuron 210A, as indicated by arrows 242, 242B; the truth value (upper and lower bounds) of laser pointer predicate 202C is updated by the inverse activation function calculations in conjunctive neuron 210A and implication neuron 210B, as indicated by arrows 242, 242B; the truth value (upper and lower bounds) of the “chase” predicate 202D is updated by inverse activation function calculations in the conjunction neuron 210A and the implication neuron 210B, the truth value (upper and lower bounds) of the “chase” predicate 202E1 is updated by inverse activation function calculations in the implication neuron 215, the truth value (upper and lower bounds) of the “cat ... That is, the path indicated by arrows 272, 272A, in which the truth value (upper and lower bounds) of the “cat” predicate 202E2 is updated by the inverse activation function calculation in the disjunctive neuron 210C; the path indicated by arrows 272, 272B, in which the truth value (upper and lower bounds) of the “dog” predicate 202F is updated by the inverse activation function calculation in the disjunctive neuron 210C; and the path indicated by arrow 273, in which the truth value (upper and lower bounds) of the “pet” predicate 202G is updated by the inverse activation function calculation in the implication neuron 225.

[0042] In one aspect, fuzzy logic is used, which provides probabilities for truth values ​​ranging between 0 and 1, i.e., values ​​between 0 and 1 are fuzzy mixes between true and false. In one embodiment, alpha α is defined as a truth threshold, for example ranging between 0.5<α≦1. Any truth value evaluated is therefore constrained such that values ​​greater than α are considered "true" and any truth value less than the quantity 1−α is considered "false."

[0043] The activation function 211 is a particular function at each neuron 210 for computing the output of that neuron, chosen to represent a particular logical operation, or a family of activation functions that represent logical operations consistent with a particular logic scheme, e.g., Lukasiewicz logic. For example, as shown in sub-formula 218, the activation function is a disjunctive function that is evaluated as the addition (sum) of the inputs. In the example "unweighted" case depicted in FIG. 2A, the disjunctive activation function at node 210C provides an output that is clamped to be a value of 0 or 1.

[0044] In an embodiment, for real-valued logical connective symbols, an exemplary activation function computes a truth value subject to constraints such as:

[0045] Conjunction (AND):

number

[0046] In the disjunction (OR) case:

number

[0047] In the case of implication (→):

number

[0048] Other activation functions according to other logic schemes can be used in the embodiment. Furthermore, different logistic functions can be used as activation functions in different parts of the NN. For example, a "weighted" Lukasiewicz logic scheme can be used for the logical connective symbols, where the activation function calculates the truth value as follows: For activation functions of neurons corresponding to AND, the weighted Lukasiewicz t-norm is defined as follows:

number

[0049] And in the disjunction case (OR), we can use the following associated weighted t-conorms:

number

[0050] In the case of implication (→):

number

[0051] In each of the above constraints, β is a bias term that establishes the operation, the weight w represents the importance, and w p is the weight of the input operand p, and w q is the weight of the input operand q. The bias term β can be 1, but may be other values. The interior of the clump is a representation or formula of the hyperplane, i.e. the dot product between the weight (input) vectors + offset.

[0052] Systems and methods in embodiments can determine various parameters used in training such above-mentioned neural networks. Methods can, for example, in embodiments, implement and learn logic using specialized artificial neurons, addressing, for example, problems of finding logic from observations, correcting logic programs, and integrating logical reasoning into neural networks and differentiable learning systems. The methods can approximate neuron activation functions to provide non-zero gradients. The methods can also quantify the relative gradient magnitudes. The methods can also define the expressiveness of neuron input weights. The methods can also optimize the tradeoff between gradient quality and expressiveness. The methods can also define optimal activation functions and sets of logic constraints for logical neurons.

[0053] Gradient quality refers to the availability of non-zero and / or non-small gradients in the operating range of the activation function of a neuron, where high gradient quality ensures that there is a non-zero and non-small change in the truth output for a change in the neuron parameters. Gradient quality is related to ensuring the ability to calculate error gradients under all conditions, for example, so that learning can occur through gradient descent. In an embodiment, gradient quality can be expressed in terms of ratio-averaged flanks gradient, which is a relative scalar measure and is an average gradient including ratio-averaged flank gradients. When optimizing an activation function (activation function of a neuron), the gradient quality measure can be used relatively, for example, to select an optimization direction in which the gradient quality at the new optimum is higher than the gradient quality at the previous optimum. An activation function with a high ratio-averaged flank gradient is considered to have a higher quality than an activation function with a low ratio-averaged flank gradient. Expressivity refers to the ratio of the minimum input weight of a neuron to the maximum input weight, and is related to the distribution width of the input weights to a logical neuron.

[0054] A threshold-of-truth means a limit above which a real-valued truth value is considered true, and can be used for external interpretations related to classical true / false truth values. In an embodiment, the threshold-of-truth can be a learnable parameter of an activation function. The notation for representing the threshold-of-truth can be "α". A continuous truth value is considered true if its lower bound is at least α, and false if its upper bound is at most 1-α. FIG. 5 shows an example of a threshold-of-truth (or degree of truth) in an embodiment. In an embodiment, an optimization process determines a threshold-of-truth for machine learning in a neural network of logical neurons. In an embodiment, constraints for logical neurons can be derived from the truth table of the operation they are intended to model, and from ranges established for "true" and "false" values. A continuous truth value is considered true if its lower bound is at least α, and false if its upper bound is at most 1-α.

[0055] For operators with user-specified arity and user-specified maximum expressiveness, the method in one embodiment calculates an alpha (α) that maximizes the product of expressiveness and gradient quality at the user-specified maximum expressiveness. In one aspect, alpha is a truth threshold that can be used for external interpretation of truth values ​​in the classical true / false sense, and by setting it less than 1, allows for non-zero gradients. For example, non-zero gradients can facilitate machine training, e.g., in backpropagation, and reduce or mitigate the problem of vanishing gradients.

[0056] The following notations are also used herein:

[0057] Arity refers to the number of input connections to a neuron, which is multiplied by an associated weight parameter for each input.

[0058] Maximum expressivity means the maximum difference in input importance that can be expressed by weighting the neuron inputs (the inputs to a neuron), providing a guarantee for the differences in input weights that can be supported by a logical neuron.

[0059] "t_max" means the upper bound of the maximum expected input to a neuron activation, which corresponds to the upper bound of the threshold of the logical neuron formula. It is the maximum value to which the threshold of the logical neuron formula can be set under the given constraints.

[0060] "t" denotes the maximum expected input to a neuron's activation, which corresponds to where the output of the logical conjunction is entirely true.

[0061] "t-sum(w)" (t minus the sum of w neurons, where w represents the weights associated with the inputs) denotes the minimum expected input to the activation function of a logical neuron, and corresponds to a logical conjunction with completely false outputs.

[0062] In one embodiment, the method calculates an upper bound for the neuron threshold, t_max, and sets the upper bound for the neuron threshold, t, in the constrained linear program (which calculates the updated neuron parameters) to t_max indefinitely. t_max can be calculated based on a logical constraint derived from the truth table of the operator (e.g., the AND operator). If the system has a true threshold set to alpha<1 (which may be the usual case since it provides a non-zero gradient over the entire operating range of the neuron), this also constrains the size and sum of the neuron input weights through a given constraint of t-sum(w)(1-alpha)>=alpha. This minimizes the allowed neuron input weight parameter region while providing a desired level of expressiveness or variation in the neuron input weights, and the minimum convex region may help reduce large, steep parameter steps in the optimization stage.

[0063] In an embodiment, the arity, maximum expressiveness, alpha, t_max, is determined at the initialization stage of the logical neuron and is kept fixed during all future neuron weight parameter updates thereafter (e.g., during learning). In an embodiment, the learning method may also envisage modifying the true threshold alpha associated with the logical neuron based on the current weight expressiveness that supports up to a certain weight difference ratio between the weights in order to optimize the gradient quality at the current expressiveness. This modification of alpha may be done when the current expressiveness changes, i.e. when the weight ratio of the neuron inputs changes, e.g. when the ratio of the maximum weight to the minimum weight changes.

[0064] In an embodiment, every operator can have its own 3-piece leaky rectified linear unit (ReLU) activation function, which is updated to saturate in t and t-sum(w) after every parameter update. According to the defined activation function objective, the 3-piece leaky ReLU can be optimal. In simple terms, ReLU is a type of activation function that can be used in neural networks. In leaky ReLU, when x<0, the leaky ReLU can have a small negative slope (e.g., 0.01, or so) instead of the function becoming zero.

[0065] Based on the relationship between arity, expressiveness, and alpha, an observation can be made. For example, increasing arity can degrade gradient quality. Based on this observation, in an embodiment, the method herein can set a maximum allowed arity and utilize composition and associativity to construct larger arity gates from smaller arity gates.

[0066] In an embodiment, the optimum condition for alpha is determined to maximize the tradeoff between expressiveness and the quality of learning (gradient). In addition to expressiveness, which describes the ratio between the maximum and minimum weights, a slack variable can be introduced. Slack allows for inputs to be completely removed (e.g., by setting the weight (w) to zero (e.g., w=0)) without needing higher expressiveness. For example, a constrained slack variable can be introduced for each weight during the learning phase to allow the constrained linear program to set (through the slack variable) weight values ​​that would otherwise be infeasible because they violate logical constraints. If the input is reduced, the effective arity can be recalculated along with alpha and t_max.

[0067] The methods herein determine truth thresholds (alphas), activation functions and logic constraints (e.g., convex optimization linear programs) for weighted real-valued logic operators such as logic neurons (e.g., weighted offset Lukasiewicz real-valued strong conjunction or disjunction operators) to optimize the functional gradient of the activation function for a given maximum expressiveness (e.g., defined by the ratio between the maximum and minimum input weights) and the size or arity of the operator. Real-valued logic refers to multi-valued logic whose truth values ​​include a continuous range.

[0068] The method in the embodiment can enable improved expressiveness and machine learning by introducing relaxations to the logic constraints, defining a truth threshold (alpha), an uncertainty above which truth values ​​behave like classical logic true values, and a false threshold (1-alpha), below which values ​​behave like classical false.

[0069] In an embodiment, the method can compute a measure of gradient quality for the activation function of a logical neuron by taking the ratio-averaged gradient only for the parts of its operating region above and below the true and false thresholds, respectively. In an embodiment, the gradient quality is a relative scalar measure and can be measured in terms of the ratio-averaged flank gradient.

[0070] The method in the embodiment can incorporate the expressiveness or capacity of the logical operators into its logical constraints to establish a relationship between expressiveness and true thresholds by modeling the weight distribution such that the sum of the weights can be determined given only the minimum weight and the expressiveness.

[0071] FIG. 7 illustrates a weight distribution in one embodiment. In an embodiment, the expressive power is determined as the ratio of the maximum input weight to the minimum input weight to a logic neuron. For example, the expressive power λ=W max / W min For example, W max = λW min The sum of the weights is

number

[0072] In embodiments, in addition to symmetric weight distributions such as uniform and normal distributions, the method can also tolerate asymmetric weight distributions and determine the relationship between acceptable expressiveness and true thresholds. An embodiment can model the input weights according to a Poisson distribution (or vice versa) that describes the volume of events per interval. For example, in an exemplary use case involving electronic mail (email), an embodiment of the method can model the input weights according to a Poisson distribution (or vice versa) that describes the volume of events per interval, for example, according to the number of replies received or created per day for a given input e-mail (or e-mail inbox) in a logical filter that filters unwanted or inappropriate e-mails. When the logical filter of the e-mail provider analyzes the activity / count of e-mails received for each of the e-mail users / inboxes, the logical rules take as input the receipt of suspicious e-mails (Boolean conditions) in each of these inboxes and determine a real-valued logical output that is true if the suspicious e-mail is considered to be an unwanted e-mail and false otherwise. The logical filter can provide classification or labeling of e-mails based on an internal logical process. For example, an email provider hosts email storage, sending, receiving, and access services for its registered users. A logical filter is automatically applied to every email arriving in the user's inbox to provide a label or classification, such as whether the email is from a reputable source. The logical filter can have an internal process based on one or more logical rules that take as input a truth value associated with an external condition about the email or the user, such as whether the email sender address domain is the same as the sending email server domain. The disclosed method can generate a real unit interval [0,1] truth value from the logical filter, such as how suspicious an email is, based on the input proposition and the email characteristics. The input weights to the logical operator that proposes whether an input email has received a suspicious email can thus capture relevant information that can increase or decrease the influence of the input.For example, if a network of neurons with logical operator activation receives a large number of incoming emails, a suspicious email is expected and the input is de-weighted, i.e., the weight of the input (or neuron) is reduced. For example, if a logical filter observes that many inboxes that do not normally receive suspicious emails all received the same email, this is a stronger indication that this email is suspicious. On the other hand, if an inbox that normally receives a lot of emails also receives a suspicious email, it will be given a smaller weight as a vote to suspect the email than another inbox that receives a much smaller number of emails.

[0073] In an embodiment, a lower bound on the minimum weight is determined in relation to the expressiveness, the operator arity, and the truth threshold. If only uniform expressiveness is desired, the computation can be simplified by setting the expressiveness to 1 across the entire system.

[0074] In an embodiment, the method can construct and continually update the activation function for a given true threshold to optimize the gradient of the activation function over the logical operating range, for example, by forming a piecewise linear function that is false at the operating range minimum, at the false threshold for a false threshold input, at the true threshold for a true threshold input, and true at the operating range maximum. In an embodiment, the false operating range is [0,1-alpha]. In an embodiment, the true operating range is [alpha,1].

[0075] In an embodiment, the method can set the true threshold to the same value that maximizes the product of the expressiveness and the gradient quality at the maximum expressiveness indefinitely. The true threshold can be updated based on the current expressiveness. For example, the expressiveness can be changed as weights are learned and changed. The true threshold can be recalculated or updated based on the changed expressiveness.

[0076] In an embodiment, the method may include determining and updating a true threshold. The method may also include providing a user interface that calculates, updates, and visualizes various aspects and properties of real-valued logic operators based on a set of user value selections. Associated values ​​of expressiveness and arity may be determined based on various aspects and properties of real-valued logic. For example, the method may visualize a logical decision surface and operating region, analyze the impact of expressiveness and arity thereon, and determine a feasible parameter region that guarantees a lower bound on expressiveness. FIG. 9 illustrates an example of a visualization of a user interface in an embodiment. The visualization provides an activation objective plot 902. Such an activation objective plot 902 allows a user to determine which x or y values ​​the user desires to set a maximum expressiveness or alpha value. For example, in a plot or graph, the y-axis represents the setting of expressiveness and the x-axis represents the setting of alpha value. Various points in the plot indicate activation for different values ​​of maximum expressiveness and alpha value. Such visualizations can be shown for different activation functions, such as, but not limited to, sigmoid and ReLU functions (e.g., 3-piecewise leaky ReLU). Different plots of maximum expressiveness versus alpha value can be shown for different values ​​of arity (number of operators or inputs).

[0077] The method in an embodiment can introduce slack into the logical constraints to allow an input to receive zero weight, without requiring a corresponding change in the defined expressiveness values ​​to allow the input to be removed entirely.

[0078] The method in the embodiment can, given a specified formula taking the truth threshold, arity, and expressiveness as input, set the maximum logical offset (e.g., for a weighted offset Lukasiewicz real-valued strong conjunction or disjunction operator) and the corresponding offset upper bound in the logical constraint to the same value indefinitely.

[0079] In an embodiment, the method specifies the true threshold as a learnable parameter of the activation function. In an embodiment, the optimization of the activation function specifies the details to ensure the logic function.

[0080] Reasoning explicitly about truth-value boundaries alleviates many of the challenges inherent in implementing logical reasoning in neural networks. Boundaries provide an elegant and intuitive mechanism for expressing the four possible states that truth values ​​can take during reasoning: unknown, known true, known false, and known contradictory. Boundaries provide a mechanism by which modus ponens can return non-results. Reasoning about bounds facilitates the ability to aggregate multiple proofs for the same proposition.

[0081] Below, we describe determining the true threshold (alpha), activation functions and logical constraints (e.g., convex optimization linear programs) of weighted real-valued logical operators or logical neurons that implement an AND operation or gate. The system and method can also be applied to other logical gates or operations.

[0082] In an embodiment, a logical neuron corresponding to a logical conjunction or AND operation on a vector x of logical truth values ​​in the range [0,1] can be defined in the form of a Lukasiewicz fuzzy t-norm (triangular norm) that is an argument to a neuron activation function f as follows:

number

[0083] In the following, we will explain the definition of expressiveness and true threshold alpha in the embodiment, where the following notation is used:

[0084] t represents the neuron threshold or bias, which corresponds to the maximum input to the neuron activation function.

[0085] w represents a vector of learnable weight parameters associated with each input to a logical neuron.

[0086] α represents the neuron's truth threshold, above which truth values ​​(between 0 and 1) can be interpreted as classically true.

[0087] n represents the arity or number of inputs of the logical neuron.

[0088] λ represents the expressive power, i.e. the ratio of the maximum input weight to the minimum input weight.

[0089] t_min represents the lower bound of the neuron threshold, which corresponds to the minimum value to which the neuron threshold can be set while still satisfying the neuron logic constraints.

[0090] w_min represents the minimum input weight among the set of input weights to a logical neuron.

[0091] s represents a vector of slack variables associated with each of the input weight parameters to the logical neuron. These slack variables are used to determine constraint satisfaction and to compute the loss terms, but are not otherwise used, for example, in the inference stage of the logical neuron.

[0092] s_i denotes the particular slack variable associated with the neuron input indexed by the integer i.

[0093] x_min represents the minimum point in the operating range of the logical neuron, which corresponds to the minimum expected input to the activation function of the logical neuron.

[0094] t_max represents the upper bound of the neuron threshold, which corresponds to the maximum value to which the neuron threshold can be set while still satisfying the neuron logic constraints.

[0095] In an embodiment, the following defines a lower bound for t.

number

[0096] In an embodiment, the following defines an upper bound for t:

number

[0097] In the embodiment, t is an upper bound of t. max is computed by choosing the constraints on i, where w i is chosen so that t is the maximum possible value, i.e. w i =w min The alpha value used here may be the same alpha value used in the calculation of other constraints and all derived values ​​that depend on alpha. In an embodiment, there may be one alpha value for a given logical neuron. There may be different alpha values ​​for other logical neurons.

[0098] In an embodiment, the following defines a lower bound for x, which is the expected minimum input to the activation function of a logical neuron and is the minimum point of the neuron's operating range:

number

[0099] In an embodiment, the following is min Define a lower bound for

number

[0100] In the embodiment, the following defines the logical bandwidth, which is the width of the operating range of the activation function of the logical neuron. A large logical bandwidth necessarily means a small gradient quality, while a small logical bandwidth means a small expressiveness. Therefore, the logical bandwidth is a measure for balancing the gradient quality and the expressiveness in optimizing the system.

number

[0101] In an embodiment, the following defines an upper bound on λ (expressive power).

number

[0102] The lower bound of t, the upper bound of t, the lower bound of x, and w min A lower bound on,λ,and an upper bound on the logical bandwidth,λ,are used in formulating the activation optimization function.

[0103] The following shows the activation optimization in an embodiment: The optimization maximizes the ratio-averaged Frank gradient (denoted as g) and the expressive power (denoted as λ) (activation optimization).

number

[0104] The following shows the ratio-averaged flank gradient in the above activation optimization. In an embodiment, the ratio-averaged flank gradient is the average gradient including the two flank gradients that are ratio-averaged. In an embodiment, the piecewise linear activation function is x min From max and three connected linear lines ranging from 0 to 1. min The left linear section from to 1-α is associated with false outputs, the center linear section from 1-α to α is associated with fuzzy outputs, and the section from α to t max The right linear section corresponds to the true output. The slope of the left linear section (left flank) is the area 1-α with width 1-α-x min The slope of the right linear section (right flank) is the area 1-α divided by the area width t max This is divided by -α.

[0105] The ratio of the width of the left linear section to the sum of the left and right linear sections is 1-α-x min 1-α-x min and max-α. Similarly, the ratio of the width of the right linear section to the sum of the left and right linear sections is t max -α to 1-α-x min and max This is calculated by dividing it by the sum of -α.

[0106] In this case, the ratio average flank gradient is the gradient of the left flank (1-α) / (1-α-x min ) and the area width ratio of the left flank, plus the slope of the right flank (1-α) / (t max -α) plus the product of the area width ratio of the right flank.

[0107] Derived optimization function

number

[0108] The arity and expressiveness lambda (λ) of the neuron can be specified by the user. In another aspect, the arity and expressiveness lambda (λ) of the neuron can be predefined. The disclosed system and / or method can then automatically optimize alpha via an activation goal. Once the arity, lambda (λ) and alpha (α) are known, the logical neuron is fully instantiated and ready for weight learning. As the weights adapt over time, the expressiveness lambda (λ) can be recalculated to match the high expressiveness required for the current weights, and alpha (α) can be reoptimized when lambda (λ) changes (in response to the change in lambda (λ)).

[0109] The above formula optimizes the capacity and machine learning (gradient) of real-valued logic circuits or gates. The function g combines two notable values: expressiveness of the three-piecewise linear regularized activation function and the ratio-averaged flank gradient. In an embodiment, the function g can be a multiplication between the expressiveness λ and the gradient quality. The ratio-averaged flank gradient is the gradient multiplied by the ratio of each flank section width to the full operating range of the three-piecewise linear regularized activation function to obtain a ratio-averaging where the thin flank sections contribute less to the gradient quality measure. The activation function f that maximizes the product of the expressiveness and the gradient quality is then determined by the above formula, thereby providing the logic neuron with an activation function that supports weights of different magnitudes up to the expressiveness λ while also providing a relatively non-small gradient in the full operating range of the logic neuron.

[0110] In an embodiment, the activation goal can be described only in terms of lambda (λ), alpha (α) and arity. The activation goal scalar output can be calculated given lambda (λ), alpha (α) and arity, which indicates the relative number of expressiveness and gradient quality. The arity can be pre-specified for the logical neuron design, and the maximum expressiveness lambda (λ) that the user wishes to be supported by the logical neuron can also be specified. Given lambda (λ) and arity, the true threshold alpha (α) remains as a dependent parameter that can be selected to maximize the activation goal, and this selection can be determined automatically.

[0111] In another aspect, an interface can be provided, such as a user interface (e.g., as shown in FIG. 9), that provides or visualizes, for example, a two-dimensional (2D) plot of lambda versus alpha for a given arity and allows the user to select a combination of lambda and alpha that maximizes the activation goal. FIG. 9 shows, for example, a contour plot of activation goal scalar output values ​​calculated for an input triplet (arity, lambda, alpha) specified via an axis and a selection of a single arity. Similar plots can be generated with selection of higher value arity. A graphical user interface can visualize such a plot and allow the user to select a combination of lambda and alpha that maximizes the activation goal.

[0112] 3 is a diagram illustrating components of a system in one embodiment that can provide capacity and training optimization of weighted real-valued logic. One or more hardware processors 302, such as a central processing unit (CPU), a graphic processing unit (GPU), and / or a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), and / or another processor, can be coupled to a memory device 304. The memory device 304 can include a random access memory (RAM), a read only memory (ROM), or another memory device, and can store data and / or processor instructions for implementing various functions associated with the methods and / or systems described herein. The one or more processors 302 can execute computer instructions stored in the memory 304 or received from another computer device or medium. The memory device 304 can store, for example, instructions and / or data for the functions of the one or more hardware processors 302, and can include an operating system and other programs of instructions and / or data. For example, the at least one hardware processor 302 can determine the true threshold (alpha), activation function, and logic constraints (e.g., convex optimization linear programs) of weighted real-valued logic operators or logic neurons (e.g., weighted offset Lukasiewicz real-valued strong conjunction or disjunction operators) or both to optimize the functional gradient of the activation function for a given maximum expressiveness (e.g., defined by the ratio between the maximum input weight and the minimum input weight) and the size or arity of the operator. In one embodiment, input data can be stored in the storage device 306 or received from a remote device via the network interface 308 and temporarily loaded into the memory device 304 to optimize the capacity and learning of the weighted real-valued logic. The learned weighted real-valued logic can be stored in the memory device 304, for example, to perform predictions or inferences.The one or more hardware processors 302 may be coupled with interface devices, such as a network interface 308 for communicating with remote systems over a network, and an input / output interface 310 for communicating with input devices or output devices, such as a keyboard, mouse, display, or the like, or a combination thereof, or both.

[0113] 4 is a flow diagram illustrating a method in one embodiment. One or more processors, e.g., hardware processors, may execute or run the method described herein. The method may learn weighted real-valued logic implemented in a neural network of logical neurons. At 402, the method may include receiving a maximum expressive power representing a ratio between a maximum input weight and a minimum input weight to a neuron of the neural network implementing the weighted real-valued logic gate. At 404, the method may include receiving an operator arity associated with the neuron.

[0114] At 406, the method may include defining logic constraints associated with the weighted real-valued logic gates in terms of weights associated with inputs to the neurons, a true threshold, and a neuron threshold for activation. At 408, the method may include determining the true threshold as a parameter used in an activation function of the neurons. The true threshold may be determined by solving an activation optimization formulated based on the logic constraints. The activation optimization maximizes the product of an expressiveness, which represents the distribution width of the input weights to the neurons, and a gradient quality for the neurons, for a given operator arity and maximum expressiveness. In an embodiment, the gradient quality is a relative scalar measure and may be represented by a ratio-averaged Frank gradient. The ratio-averaged Frank gradient may be determined as described above. At 410, the method may include training a neural net of logical neurons using the activation function in the neurons, the activation function using the determined true threshold.

[0115] In an embodiment, the activation function may be a sigmoid function. In another embodiment, the activation function may be a 3-piece leaky rectified linear unit (ReLU). Other activation functions may be used or selected.

[0116] In an embodiment, the method may include using the defined logical constraints to define or derive a lower bound on the neuron threshold, an upper bound on the neuron threshold, a lower bound on the neuron's input, which represents the minimum point of the neuron's operating range, a lower bound on the expressiveness, the operator arity and the true threshold, a logical bandwidth, which represents the width of the operating range of the neuron's activation function, and an upper bound on the expressiveness. The activation optimization may be formulated based on the lower bound on the neuron threshold, the upper bound on the neuron threshold, the lower bound on the neuron's input, the lower bound on the minimum input weight, the logical bandwidth, and the upper bound on the expressiveness. The activation optimization may be derived in terms of the expressiveness, the true threshold, the lower bound on the neuron's input, and the upper bound on the maximum input expected for the neuron activation.

[0117] The method may also include continually updating the activation function about the true threshold to optimize a gradient of the activation function over the logical operating range by forming a piecewise linear function that is false at the operating range minimum, at the false threshold for a false threshold input, at the true threshold for a true threshold input, and true at the operating range maximum.

[0118] The method may also include introducing a slack variable associated with the neuron's input to allow for the removal of the neuron's input without requiring higher expressive power. In an embodiment, the sum of the input weights to the neuron may be determined given only the minimum weight and expressive power. In an embodiment, the true threshold may be updated based on the current expressive power. In an embodiment, the method may also include visualizing properties of the weighted real-valued logic gate.

[0119] FIG. 8 illustrates a schematic diagram of an exemplary computer or processing system on which the system may be implemented in one embodiment. This computer system is merely one example of a suitable processing system and is not intended to suggest any limitation as to the scope of use or functionality of the method embodiments described herein. The illustrated processing system may be operational with numerous other general-purpose computing system or application-specific computing system environments or configurations. Examples of well-known computing systems, environments or configurations, or combinations thereof, that may be suitable for use with the processing system illustrated in FIG. 8 may include, but are not limited to, personal computer systems, server computer systems, thin clients, thick clients, handheld or laptop devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputer systems, mainframe computer systems, distributed cloud computing environments that include any of the above systems or devices, and the like.

[0120] A computer system may be described in the general context of computer system executable instructions, such as program modules, executed by a computer system. Generally, program modules may include routines, programs, objects, components, logic, data structures, etc. that perform particular tasks or implement particular abstract data types. The computer system may be practiced in distributed cloud computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed cloud computing environment, program modules may be located in both local and remote computer system storage media, including memory storage devices.

[0121] Components of a computer system may include, but are not limited to, one or more processors or processing units 12, a system memory 16, and a bus 14 that couples various system components, including the system memory 16, to the processor 12. The processor 12 may include modules 30 that implement the methods described herein. The modules 30 may be programmed into integrated circuits of the processor 12, loaded from the memory 16, the storage device 18, or the network 24, or a combination thereof.

[0122] Bus 14 may represent any one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures, including, by way of example and not limitation, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MCA) bus, Enhanced ISA (EISA) bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.

[0123] The computer system may include a variety of computer system readable media, which may be any available media that can be accessed by the computer system and may include both volatile and nonvolatile media, removable and non-removable media.

[0124] System memory 16 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) and / or cache memory. The computer system may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, a storage system 18 may be provided for reading from and writing to a non-removable, non-volatile magnetic medium (e.g., a "hard drive"). Although not shown, a magnetic disk drive may be provided for reading from and writing to a removable, non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive may be provided for reading from and writing to a removable, non-volatile optical disk, such as a CD-ROM, DVD-ROM, or other optical medium. In such an example, each may be connected to bus 14 by one or more data media interfaces.

[0125] The computer system may also communicate with one or more external devices 26, such as a keyboard, pointing device, display 28, etc., one or more devices that allow a user to interact with the computer system, or any device that allows the computer system to communicate with one or more other computing devices (e.g., network cards, modems, etc.), or both. Such communication may occur via an input / output (I / O) interface 20.

[0126] Furthermore, the computer system may also communicate with one or more networks 24, such as a local area network (LAN), a general purpose wide area network (WAN) or a public network (e.g., the Internet), or combinations thereof, via a network adapter 22. As shown, the network adapter 22 communicates with other components of the computer system via a bus 14. Although not shown, it is understood that other hardware and / or software components may be used with the computer system. Examples include, but are not limited to, microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data archive storage systems.

[0127] The present invention may be embodied as a system, method, or computer program product, or combination thereof, at any possible level of technical detail. The computer program product may include a computer readable storage medium or media having computer readable program instructions for causing a processor to carry out aspects of the present invention.

[0128] A computer readable storage medium may be any tangible device capable of holding and storing instructions for use by an instruction execution device. A computer readable storage medium may be, for example, but not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the above. A non-exhaustive list of more specific examples of computer readable storage media includes the following: portable computer diskettes, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), portable compact disk read-only memory (CD-ROM), digital versatile disk (DVD), memory sticks, floppy disks, mechanically encoded devices such as punch cards or ridge structures in grooves having instructions recorded thereon, and any suitable combination of the above. As used herein, a computer-readable storage medium is not to be construed as a transitory signal per se, such as an electric wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., light pulses through a fiber optic cable), or an electrical signal sent through a wire.

[0129] The computer readable program instructions described herein may be downloaded from a computer readable storage medium to each computing / processing device or to an external computer or storage device over a network, such as the Internet, a local area network, a wide area network, or a wireless network, or a combination thereof. The network may include copper transmission cables, optical transmission fiber, wireless transmission, routers, firewalls, switches, gateway computers, or edge servers, or a combination thereof. A network adapter card or network interface in each computing / processing device receives the computer readable program instructions from the network and transfers the computer readable program instructions for storage in a computer readable storage medium in the respective computing / processing device.

[0130] The computer readable program instructions for carrying out the operations of the present invention may be assembler instructions, instruction set architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state setting data, configuration data for an integrated circuit, or source or object code written in any combination of one or more programming languages, including object oriented programming languages ​​such as Smalltalk, C++, and procedural programming languages ​​such as the "C" programming language or similar programming languages. The computer readable program instructions may be executed entirely on the user's computer, partially on the user's computer as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet Service Provider). In some embodiments, electronic circuitry including, for example, a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA) can execute computer readable program instructions to individualize the electronic circuitry by utilizing state information of the computer readable program instructions to perform aspects of the invention.

[0131] Aspects of the present invention are described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer readable program instructions.

[0132] These computer readable program instructions may be provided to a computer processor or other programmable data processing apparatus to produce a machine such that the instructions, executed by the computer processor or other programmable data processing apparatus, produce means for performing the functions / operations specified in one or more blocks of the flowcharts and / or block diagrams. These computer program instructions may also be stored in a computer readable medium capable of instructing a computer, programmable data processing apparatus or other device, or combination thereof, to function in a particular manner such that the computer readable storage medium having instructions stored thereon includes an article of manufacture including instructions that perform aspects of the functions / operations specified in one or more blocks of the flowcharts and / or block diagrams.

[0133] The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other device to generate a computer-implemented process, such that the instructions executing on the computer or other programmable apparatus, or other device, perform the functions / operations specified in one or more blocks of the flowcharts or block diagrams, or both.

[0134] The flowcharts and block diagrams in the figures illustrate the architecture, functionality and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowcharts or block diagrams may represent a module, segment or part of instructions, including one or more executable instructions for implementing the specified logical function. In some alternative implementations, the functions shown in the blocks may occur in a different order than that shown in the figures. For example, depending on the functionality involved, two blocks shown in succession may actually be executed simultaneously, substantially simultaneously, in a partially or fully overlapping manner in time, or the blocks may even be executed in reverse order in some cases. It should also be noted that each block of the block diagrams and / or flowchart illustrations, and combinations of blocks in the block diagrams and / or flowchart illustrations, may be implemented by a special-purpose hardware-based system that performs the specified functions or operations or executes a combination of dedicated hardware and computer instructions.

[0135] The terms used herein are for the purpose of describing particular embodiments only and are not intended to be limiting of the invention. As used herein, the singular forms "a", "an" and "the" are intended to include the plural unless the context clearly indicates otherwise. As used herein, the term "or" is an inclusive operator and may mean "and / or" unless the context clearly or unambiguously indicates otherwise. Furthermore, as used herein, the terms "comprise", "comprises", "comprising", "include", "including", "including" or "having", or combinations thereof, specify the presence of stated features, integers, steps, operations, elements or components or combinations thereof, but will be understood not to preclude the presence or addition of one or more other features, integers, steps, operations, elements, components or groups or combinations thereof.

[0136] Corresponding structures, materials, acts, and equivalents of the "means or step plus function" elements in the following claims are intended to include any structure, material, or act for performing a function in conjunction with other claimed elements as specifically claimed. The description of the present invention has been presented for purposes of illustration and description only, and is not intended to be exhaustive or to limit the invention to the disclosed form. Many modifications and variations will become apparent to those skilled in the art that do not depart from the scope of the invention. The embodiments have been chosen and described in order to best explain the principles and practical applications of the invention, and to enable those skilled in the art to understand the invention in terms of various embodiments with various modifications as suited to the particular applications contemplated.

Claims

1. 1. A method for learning weighted real-valued logic implemented in a neural network of logic neurons, comprising: receiving a maximum representation representing a ratio between a maximum input weight and a minimum input weight to a neuron of a neural network implementing weighted real-valued logic gates; receiving an operator arity associated with the neuron; defining logic constraints associated with said weighted real-valued logic gates in terms of weights associated with inputs to said neurons, a truth threshold, and a neuron threshold for activation; determining the true threshold as a parameter for an activation function of the neuron based on solving an activation optimization formulated based on the logical constraints, the activation optimization maximizing the product of an expressiveness representing a distribution width of input weights to the neuron and a gradient quality for the neuron for a given operator arity and the maximum expressiveness; training the neural network of logical neurons using the activation function in the neurons, the activation function using the determined true threshold; The method includes:

2. The method of claim 1 , wherein the activation function comprises a sigmoid function.

3. The method of claim 1 , wherein the activation function comprises a three-piece leaky rectified linear unit (ReLU).

4. Based on the defined logical constraints, defining a lower bound for said neuronal threshold; defining an upper bound for said neuronal threshold; defining a lower bound on the input of said neuron, representing a minimum point of the operating range of said neuron; defining a lower bound on a minimum input weight with respect to the expressive power, the operator arity, and the truth threshold; defining a logical bandwidth representing the width of the operating range of the activation function of the neuron; defining an upper bound on said expressive power; Further comprising:

2. The method of claim 1, wherein the activation optimization is formulated based on the lower bound of the neuron threshold, the upper bound of the neuron threshold, the lower bound of the neuron's input, the lower bound of the minimum input weight, the logic bandwidth, and the upper bound of the expressiveness.

5. The method of claim 4 , wherein the activation optimization is derived with respect to the expressive power, the true threshold, the lower bound on the input of the neuron, and an upper bound on the maximum input expected for a neuron activation.

6. 2. The method of claim 1, further comprising continually updating the activation function about the true threshold to optimize a gradient of the activation function over a logical operating range by forming a piecewise linear function that is false at an operating range minimum, at a false threshold for a false threshold input, at a true threshold for a true threshold input, and true at an operating range maximum.

7. 2. The method of claim 1, further comprising: introducing a slack variable associated with the input of the neuron to allow for removal of the input of the neuron without requiring more expressive power.

8. The method of claim 1 , wherein the sum of the input weights to the neurons is determined given only a minimum weight and the expressive power.

9. The method of claim 1 , wherein the truth threshold is updated based on a current expressiveness.

10. The method of claim 1 , further comprising visualizing a characteristic of the weighted real-valued logic gate.

11. A computer program comprising computer readable program instructions causing a computer to carry out a method according to any one of claims 1 to 10.

12. A computer-readable storage medium storing the computer program of claim 11.

13. A hardware processor; a memory device coupled to the hardware processor; A system comprising: The hardware processor includes at least receiving a maximum representation representing a ratio between a maximum input weight and a minimum input weight to a neuron of a neural network implementing weighted real-valued logic gates; receiving an operator arity associated with the neuron; defining logic constraints associated with said weighted real-valued logic gates in terms of weights associated with inputs to said neurons, a truth threshold, and a neuron threshold for activation; determining the true threshold as a parameter for an activation function of the neuron based on solving an activation optimization formulated based on the logical constraints, the activation optimization maximizing the product of an expressiveness representing a distribution width of input weights to the neuron and a gradient quality for the neuron for a given operator arity and the maximum expressiveness; training the neural network of logical neurons using the activation function in the neurons, the activation function using the determined true threshold; A system configured to:

14. The system of claim 13, wherein the activation function comprises a sigmoid function.

15. The system of claim 13, wherein the activation function comprises a three-piece leaky rectified linear unit (ReLU).

16. The hardware processor according to claim 15, defining a lower bound for said neuronal threshold; defining an upper bound for said neuronal threshold; defining a lower bound on the input of said neuron, representing a minimum point of the operating range of said neuron; defining a lower bound on a minimum input weight with respect to the expressive power, the operator arity, and the truth threshold; defining a logical bandwidth representing the width of the operating range of the activation function of the neuron; defining an upper bound on said expressive power; and further configured to:

14. The system of claim 13, wherein the activation optimization is formulated based on the lower bound of the neuron threshold, the upper bound of the neuron threshold, the lower bound of the neuron's input, the lower bound of the minimum input weight, the logic bandwidth, and the upper bound of the expressiveness.

17. The system of claim 16, wherein the activation optimization is derived with respect to the expressive power, the true threshold, the lower bound on the input of the neuron, and an upper bound on the maximum input expected for neuron activation.

18. The system of claim 13, wherein the hardware processor is further configured to continuously update the activation function about the true threshold to optimize a gradient of the activation function over a logical operating range by forming a piecewise linear function that is false at an operating range minimum, at a false threshold for a false threshold input, at a true threshold for a true threshold input, and true at an operating range maximum.

19. The system of claim 13, wherein the hardware processor is further configured to introduce a slack variable associated with the neuron's input to enable removal of the neuron's input without requiring greater expressive power.

20. The system of claim 13, wherein the sum of the input weights to the neuron is determined given only the minimum weight and the expressive power.

21. The system of claim 13, wherein the true threshold is updated based on a current expressiveness.

Citation Information

Patent Citations

  • Causal relation rule extracting method by neural network

    JP1992064163A

  • Fuzzy neural network device and learning method therefor

    JP1996314881A

  • Deep adaptive semantic logic network

    WO2018208813A1