IP Library Granted Patent US 11,264,011
Granted Patent B2
US 11,264,011 · App. 16/749,328 · Granted Mar 1, 2022

Systems and methods for employing predication in computational models

Inventors: Nadav Rotem (Santa Clara, CA); Abdulkadir Utku Diril (Menlo Park, CA); Mikhail Smelyanskiy (Burlingame, CA); Jong Soo Park (Mountain View, CA); James Kenneth Reed (Redwood City, CA)
Assignee: Facebook, Inc.
G10L15/16G06N3/0445G10L15/18G10L15/22
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,264,011
App. No.
16/749,328
Granted
Mar 1, 2022
Kind
B2
Abstract

The disclosed method may include (1) determining whether a next operation of a plurality of operations of an artificial neural network (ANN) is dependent upon a Boolean predication value based on a representative value for a weight or an input of a node of the ANN, (2) based on the next operation not being dependent on the Boolean predication value, allowing the next operation to update a state of the ANN, and (3) based on the next operation being dependent on the Boolean predication value, performing at least one of (a) allowing, based on the Boolean predication value being a first value, the next operation to update the state of the ANN, and (b) preventing, based on the Boolean predication value being a second value different from the first value, the next operation from updating the state of the ANN. Various other methods and systems are also disclosed.

Claims (71)

1. A method comprising:

setting, using at least one hardware processor, as a result of a previous operation of a plurality of operations of an artificial neural network (ANN), a Boolean predication value to a first value or a second value different from the first value, wherein the previous operation comprises comparing a representative value for one of a weight or an input of a node of the ANN to a comparison value;

determining whether a next operation of the plurality of operations of the ANN is dependent upon the Boolean predication value;

allowing, based on the next operation not being dependent on the Boolean predication value, the next operation to update a state of the ANN; and

based on the next operation being dependent on the Boolean predication value:

allowing, based on the Boolean predication value being the first value, the next operation to update the state of the ANN; and

preventing, based on the Boolean predication value being the second value, the next operation from updating the state of the ANN.

2. The method of claim 1 , wherein:

the representative value of the one of a weight or an input of the node comprises an actual value of a weight of the node; and

the next operation comprises a multiply operation of the actual value of the weight and a value of an input associated with the weight.

3. The method of claim 1 , wherein:

the representative value of the one of a weight or an input of the node comprises an actual value of an input of the node; and

the next operation comprises a multiply operation of the actual value of the input and a value of a weight associated with the input.

4. The method of claim 1 , wherein:

the representative value of the one of a weight or an input of the node comprises an absolute value of a weight of the node; and

the next operation comprises a multiply operation of an actual value of the weight and a value of an input associated with the weight.

5. The method of claim 1 , wherein:

the representative value of the one of a weight or an input of the node comprises an absolute value of an input of the node; and

the next operation comprises a multiply operation of an actual value of the input and a value of a weight associated with the input.

6. The method of claim 1 , wherein:

the representative value of the one of a weight or an input of the node comprises an actual value of a weight of the node; and

the next operation comprises a summing operation including a product of the actual value of the weight and a value of an input associated with the weight that is part of an accumulate operation.

7. The method of claim 1 , wherein:

the representative value of the one of a weight or an input of the node comprises an actual value of an input of the node; and

the next operation comprises a summing operation including a product of the actual value of the input and a value of a weight associated with the input that is part of an accumulate operation.

8. The method of claim 1 , wherein:

the representative value of the one of a weight or an input of the node comprises an absolute value of a weight of the node; and

the next operation comprises a summing operation including a product of an actual value of the weight and a value of an input associated with the weight that is part of an accumulate operation.

9. The method of claim 1 , wherein:

the representative value of the one of a weight or an input of the node comprises an absolute value of an input of the node; and

the next operation comprises a summing operation including a product of an actual value of the input and a value of a weight associated with the input that is part of an accumulate operation.

10. The method of claim 1 , wherein the comparison value is zero.

11. The method of claim 10 , wherein:

the Boolean predication value is set to the first value when the representative value is not equal to the comparison value; and

the Boolean predication value is set to the second value when the representative value is equal to the comparison value.

12. The method of claim 1 , wherein the comparison value is non-zero.

13. The method of claim 12 , wherein:

the Boolean predication value is set to the first value when the representative value is greater than or equal to the comparison value; and

the Boolean predication value is set to the second value when the representative value is less than the comparison value.

14. The method of claim 1 , wherein the input of the node comprises an output of an activation operation of another node of the ANN.

15. The method of claim 1 , further comprising:

performing the next operation prior to evaluating the Boolean predication value;

saving, based on the next operation being dependent on the Boolean predication value, a result of performing the next operation without updating the state of the ANN; and

updating, based on the Boolean predication value being the first value, the state of the ANN using the result of performing the next operation.

16. The method of claim 1 , further comprising:

performing, based on the next operation being dependent on the Boolean predication value, the next operation after determining the Boolean predication value is the first value; and

skipping, based on the next operation being dependent on the Boolean predication value, the next operation after determining the Boolean predication value is the second value.

17. The method of claim 1 , further comprising:

based on another operation of the plurality of operations being dependent on the Boolean predication value:

allowing, based on the Boolean predication value being the second value, the other operation to update the state of the ANN; and

preventing, based on the Boolean predication value being the first value, the other operation from updating the state of the ANN.

18. The method of claim 17 , wherein performance of the next operation and the other operation at least partially overlap in time.

19. A hardware processing element comprising:

an operation unit that performs a plurality of operations associated with nodes of an artificial neural network (ANN); and

a predication unit that:

sets, as a result of a previous operation of the plurality of operations, a Boolean predication value to a first value or a second value different from the first value, wherein the previous operation comprises comparing a representative value for one of a weight or an input of a node of the ANN to a comparison value;

determines whether a next operation of the plurality of operations is dependent upon the Boolean predication value;

based on the next operation not being dependent on the Boolean predication value, allows the next operation to update a state of the ANN; and

based on the next operation being dependent on the Boolean predication value:

allows, based on the Boolean predication value being the first value, the next operation to update the state of the ANN; and

prevents, based on the Boolean predication value being the second value, the next operation from updating the state of the ANN.

20. A system comprising:

a plurality of hardware processing elements that process nodes of an artificial neural network (ANN), wherein at least one of the hardware processing elements comprises:

an operation unit that performs a plurality of operations associated with the nodes of the ANN; and

a predication unit that:

sets, as a result of a previous operation of the plurality of operations, a Boolean predication value to a first value or a second value different from the first value, wherein the previous operation comprises comparing a representative value for one of a weight or an input of a node of the ANN to a comparison value;

determines whether a next operation of the plurality of operations is dependent upon the Boolean predication value;

based on the next operation not being dependent on the Boolean predication value, allows the next operation to update a state of the ANN; and

based on the next operation being dependent on the Boolean predication value:

allows, based on the Boolean predication value being the first value, the next operation to update the state of the ANN; and

prevents, based on the Boolean predication value being the second value, the next operation from updating the state of the ANN.

Assignments (2)
CHANGE OF NAME Recorded Dec 23, 2021
From: FACEBOOK, INC.
To: META PLATFORMS, INC.
Reel/Frame 058569/0422 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Feb 26, 2020
From: ROTEM, NADAV; DIRIL, ABDULKADIR UTKU; SMELYANSKIY, MIKHAIL; PARK, JONG SOO; REED, JAMES KENNETH
To: FACEBOOK, INC.
Reel/Frame 051936/0462 →