Preemptively concluding inference operations based on test data performance, including: detecting, during an inference operation of a neural network, an activation of a grandmother neuron of the neural network, wherein the grandmother neuron comprises a neuron of the neural network always activated for a particular output during training of the neural network and never activated for any other output during training of the neural network; suspending, in response to activation of the grandmother neuron, the inference operation; and providing the particular output as an output of the inference operation.
Legal claims defining the scope of protection, as filed with the USPTO.
detecting, during an inference operation of a neural network, an activation of a grandmother neuron of the neural network, wherein the grandmother neuron comprises a neuron of the neural network always activated for a particular output during training of the neural network and never activated for any other output during training of the neural network; suspending, in response to activation of the grandmother neuron, the inference operation; and providing the particular output as an output of the inference operation. . A method comprising:
claim 1 . The method of, further comprising detecting, during another inference operation of the neural network, an activation of a plurality of grandmother neurons of the neural network.
claim 2 . The method of, further comprising completing the another inference operation by processing an input of the other inference operation beyond the plurality of grandmother neurons of the neural network.
claim 2 . The method of, further comprising saving a training data sample for the neural network comprising an input of the another inference operation.
claim 2 . The method of, further comprising removing a grandmother neuron designation from one or more of the plurality of grandmother neurons.
claim 1 . The method of, further comprising identifying, based on a training of the neural network, one or more neurons of the neural network as one or more grandmother neurons, wherein the grandmother neuron is included in the one or more grandmother neurons.
claim 1 . The method of, wherein detecting the activation of the grandmother neuron comprises monitoring an activation path of the neural network.
claim 1 . The method of, wherein detecting the activation of the grandmother neuron comprises monitoring a grandmother neuron aggregation layer of the neural network.
claim 8 . The method of, further comprising generating the grandmother neuron aggregation layer.
claim 8 . The method of, further comprising exchanging, in the grandmother neuron aggregation layer, one or more grandmother neurons with one or more other grandmother neurons based on an activation rate of the one of more grandmother neurons.
a processor set; one or more computer-readable storage media; and program instructions stored on the one or more storage media to cause the processor set to perform operations comprising: detecting, during an inference operation of a neural network, an activation of a grandmother neuron of the neural network, wherein the grandmother neuron comprises a neuron of the neural network always activated for a particular output during training of the neural network and never activated for any other output during training of the neural network; suspending, in response to activation of the grandmother neuron, the inference operation; and providing the particular output as an output of the inference operation. . A computer system comprising:
claim 11 . The computer system of, wherein the operations further comprise detecting, during another inference operation of the neural network, an activation of a plurality of grandmother neurons of the neural network.
claim 12 . The computer system of, wherein the operations further comprise completing the other inference operation by processing an input of the another inference operation beyond the plurality of grandmother neurons of the neural network.
claim 12 . The computer system of, wherein the operations further comprise saving a training data sample for the neural network comprising an input of the another inference operation.
claim 12 . The computer system of, wherein the operations further comprise removing a grandmother neuron designation from one or more of the plurality of grandmother neurons.
claim 11 . The computer system of, wherein the operations further comprise identifying, based on a training of the neural network, one or more neurons of the neural network as one or more grandmother neurons, wherein the grandmother neuron is included in the one or more grandmother neurons.
claim 11 . The computer system of, wherein detecting the activation of the grandmother neuron comprises monitoring an activation path of the neural network.
claim 11 . The computer system of, wherein detecting the activation of the grandmother neuron comprises monitoring a grandmother neuron aggregation layer of the neural network.
claim 18 . The computer system of, wherein the operations further comprise generating the grandmother neuron aggregation layer.
claim 18 . The computer system of, wherein the operations further comprise exchanging, in the grandmother neuron aggregation layer, one or more grandmother neurons with one or more other grandmother neurons based on an activation rate of the one of more grandmother neurons.
one or more computer-readable storage media; and program instructions stored on the one or more storage media to perform operations comprising: detecting, during an inference operation of a neural network, an activation of a grandmother neuron of the neural network, wherein the grandmother neuron comprises a neuron of the neural network always activated for a particular output during training of the neural network and never activated for any other output during training of the neural network; suspending, in response to activation of the grandmother neuron, the inference operation; and providing the particular output as an output of the inference operation. . A computer program product comprising:
claim 21 . The computer program product of, wherein the operations further comprise detecting, during another inference operation of the neural network, an activation of a plurality of grandmother neurons of the neural network.
claim 22 . The computer program product of, wherein the operations further comprise completing the other inference operation by processing an input of the another inference operation beyond the plurality of grandmother neurons of the neural network.
claim 22 . The computer program product of, wherein the operations further comprise saving a training data sample for the neural network comprising an input of the another inference operation.
claim 22 . The computer program product of, wherein the operations further comprise removing a grandmother neuron designation from one or more of the plurality of grandmother neurons.
Complete technical specification and implementation details from the patent document.
The present disclosure relates to methods, apparatus, and products for preemptively concluding inference operations based on test data performance.
According to embodiments of the present disclosure, various methods, apparatus and products for preemptively concluding inference operations based on test data performance are described herein. In some aspects, preemptively concluding inference operations based on test data performance includes detecting, during an inference operation of a neural network, an activation of a grandmother neuron of the neural network, wherein the grandmother neuron comprises a neuron of the neural network always activated for a particular output during training of the neural network and never activated for any other output during training of the neural network; suspending, in response to activation of the grandmother neuron, the inference operation; and providing the particular output as an output of the inference operation. In some aspects, a computer system may include a processor set; one or more computer-readable storage media; and program instructions stored on the one or more storage media to cause the processor set to perform operations comprising this method. In some aspects, a computer program product may include: one or more computer readable storage media; and program instructions stored on the one or more storage media to perform operations comprising this method.
In some aspects, a method may include: detecting, during an inference operation of a neural network, an activation of a grandmother neuron of the neural network, wherein the grandmother neuron comprises a neuron of the neural network always activated for a particular output during training of the neural network and never activated for any other output during training of the neural network; suspending, in response to activation of the grandmother neuron, the inference operation; and providing the particular output as an output of the inference operation. This provides the technical advantage of preemptively providing an output corresponding to an activated grandmother neuron instead of completing an inference operation by fully processing an input through a neural network, reducing the amount of time and computational resources required for inference operations, improving system utility and performance.
In some aspects, this method may include detecting, during another inference operation of the neural network, an activation of a plurality of grandmother neurons of the neural network. This provides the technical advantage of identifying erroneously designated grandmother neurons, preventing false positives and improving overall system utility.
In some aspects, this method may include completing the other inference operation by processing an input of the other inference operation beyond the plurality of grandmother neurons of the neural network. This provides the technical advantage of allowing for inference operations to complete in the event that multiple grandmother neurons are activated, improving system utility.
In some aspects, this method may include saving a training data sample for the neural network comprising an input of the other inference operation. This allows for the neural network to be subsequently refined based on data outliers, improving accuracy of the neural network and overall system utility.
In some aspects, this method may include removing a grandmother neuron designation from one or more of the plurality of grandmother neurons. This provides the technical advantage of removing erroneously designated grandmother neurons, preventing potential false positive classifications, improving overall system utility.
In some aspects, this method may include identifying, based on a training of the neural network, one or more neurons of the neural network as one or more grandmother neurons, wherein the grandmother neuron is included in the one or more of grandmother neurons. This provides the technical advantage of identifying grandmother neurons based on neural network training data for later use, improving overall system utility.
In some aspects, detecting the activation of the grandmother neuron comprises monitoring an activation path of the neural network. This provides the technical advantage of allowing for grandmother neuron activations to be monitored without modifying the actual encoding of the neural network, improving system utility.
In some aspects, detecting the activation of the grandmother neuron comprises monitoring a grandmother neuron aggregation layer of the neural network. This provides the technical advantage of monitoring activation of grandmother neurons early in the inference operation, reducing the amount of time required to potentially identify an activated grandmother neuron, thereby improving system performance.
In some aspects, this method may include generating the grandmother neuron aggregation layer. This provides the technical advantage of including a dedicated layer for grandmother neurons in the neural network, reducing the amount of time required to potentially identify an activated grandmother neuron, thereby improving system performance.
In some aspects, this method may include exchanging, in the grandmother neuron aggregation layer, one or more grandmother neurons with one or more other grandmother neurons based on an activation rate of the one of more grandmother neurons. This provides the technical advantage of refining the particular grandmother neurons included in the grandmother neuron aggregation layer to include those grandmother neurons most likely to be activated, improving overall system utility and performance.
In some aspects, a computer system may include: a processor set; one or more computer-readable storage media; and program instructions stored on the one or more storage media to cause the processor set to perform operations comprising: detecting, during an inference operation of a neural network, an activation of a grandmother neuron of the neural network, wherein the grandmother neuron comprises a neuron of the neural network always activated for a particular output during training of the neural network and never activated for any other output during training of the neural network; suspending, in response to activation of the grandmother neuron, the inference operation; and providing the particular output as an output of the inference operation. This provides the technical advantage of preemptively providing an output corresponding to an activated grandmother neuron instead of completing an inference operation by fully processing an input through a neural network, reducing the amount of time and computational resources required for inference operations, improving system utility and performance.
In some aspects, these operations may include detecting, during another inference operation of the neural network, an activation of a plurality of grandmother neurons of the neural network. This provides the technical advantage of identifying erroneously designated grandmother neurons, preventing false positives and improving overall system utility.
In some aspects, these operations may include completing the other inference operation by processing an input of the other inference operation beyond the plurality of grandmother neurons of the neural network. This provides the technical advantage of allowing for inference operations to complete in the event that multiple grandmother neurons are activated, improving system utility.
In some aspects, these operations may include saving a training data sample for the neural network comprising an input of the other inference operation. This allows for the neural network to be subsequently refined based on data outliers, improving accuracy of the neural network and overall system utility.
In some aspects, these operations may include removing a grandmother neuron designation from one or more of the plurality of grandmother neurons. This provides the technical advantage of removing erroneously designated grandmother neurons, preventing potential false positive classifications, improving overall system utility.
In some aspects, these operations may include identifying, based on a training of the neural network, one or more neurons of the neural network as one or more grandmother neurons, wherein the grandmother neuron is included in the one or more of grandmother neurons. This provides the technical advantage of identifying grandmother neurons based on neural network training data for later use, improving overall system utility.
In some aspects, detecting the activation of the grandmother neuron comprises monitoring an activation path of the neural network. This provides the technical advantage of allowing for grandmother neuron activations to be monitored without modifying the actual encoding of the neural network, improving system utility.
In some aspects, detecting the activation of the grandmother neuron comprises monitoring a grandmother neuron aggregation layer of the neural network. This provides the technical advantage of monitoring activation of grandmother neurons early in the inference operation, reducing the amount of time required to potentially identify an activated grandmother neuron, thereby improving system performance.
In some aspects, these operations may include generating the grandmother neuron aggregation layer. This provides the technical advantage of including a dedicated layer for grandmother neurons in the neural network, reducing the amount of time required to potentially identify an activated grandmother neuron, thereby improving system performance.
In some aspects, these operations may include exchanging, in the grandmother neuron aggregation layer, one or more grandmother neurons with one or more other grandmother neurons based on an activation rate of the one of more grandmother neurons. This provides the technical advantage of refining the particular grandmother neurons included in the grandmother neuron aggregation layer to include those grandmother neurons most likely to be activated, improving overall system utility and performance.
In some aspects, a computer program product may include: one or more computer-readable storage media; and program instructions stored on the one or more storage media to perform operations comprising: detecting, during an inference operation of a neural network, an activation of a grandmother neuron of the neural network, wherein the grandmother neuron comprises a neuron of the neural network always activated for a particular output during training of the neural network and never activated for any other output during training of the neural network; suspending, in response to activation of the grandmother neuron, the inference operation; and providing the particular output as an output of the inference operation.
This provides the technical advantage of preemptively providing an output corresponding to an activated grandmother neuron instead of completing an inference operation by fully processing an input through a neural network, reducing the amount of time and computational resources required for inference operations, improving system utility and performance.
In some aspects, these operations may include detecting, during another inference operation of the neural network, an activation of a plurality of grandmother neurons of the neural network. This provides the technical advantage of identifying erroneously designated grandmother neurons, preventing false positives and improving overall system utility.
In some aspects, these operations may include completing the other inference operation by processing an input of the other inference operation beyond the plurality of grandmother neurons of the neural network. This provides the technical advantage of allowing for inference operations to complete in the event that multiple grandmother neurons are activated, improving system utility.
In some aspects, these operations may include saving a training data sample for the neural network comprising an input of the other inference operation. This allows for the neural network to be subsequently refined based on data outliers, improving accuracy of the neural network and overall system utility.
In some aspects, these operations may include removing a grandmother neuron designation from one or more of the plurality of grandmother neurons. This provides the technical advantage of removing erroneously designated grandmother neurons, preventing potential false positive classifications, improving overall system utility.
In neuroscience, a grandmother cell is a hypothetical neuron that represents a specific entity, such as an object, person, or concept, that is activated when a person sees or otherwise experiences that specific entity. Particularly, grandmother cells are conceptually activated quickly when that specific entity is experienced, reducing the overall amount of time for a person to recognize that entity compared to other entities.
Neural networks include multiple layers of neurons that may be activated as an input is processed through the neural network as part of an inference operation. If an inference operation can be preemptively suspended or concluded so as to provide some output, the overall amount of time and processing resources required to perform the inference operation is reduced. Accordingly, it may be advantageous to adapt neuroscientific concepts such as the grandmother cell to neural network applications to achieve these performance benefits.
1 FIG. 100 107 107 100 101 102 103 104 105 106 101 110 120 121 111 112 113 122 107 114 123 124 125 115 104 130 105 140 141 142 143 144 With reference now to, shown is an example computing environment according to aspects of the present disclosure. Computing environmentcontains an example of an environment for the execution of at least some of the computer code involved in performing the various methods described herein, such as the neural network module. In addition to neural network module, computing environmentincludes, for example, computer, wide area network (WAN), end user device (EUD), remote server, public cloud, and private cloud. In this embodiment, computerincludes processor set(including processing circuitryand cache), communication fabric, volatile memory, persistent storage(including operating systemand neural network module, as identified above), peripheral device set(including user interface (UI) device set, storage, and Internet of Things (IoT) sensor set), and network module. Remote serverincludes remote database. Public cloudincludes gateway, cloud orchestration module, host physical machine set, virtual machine set, and container set.
101 130 100 101 101 101 1 FIG. Computermay take the form of a desktop computer, laptop computer, tablet computer, smart phone, smart watch or other wearable computer, mainframe computer, quantum computer or any other form of computer or mobile device now known or to be developed in the future that is capable of running a program, accessing a network or querying a database, such as remote database. As is well understood in the art of computer technology, and depending upon the technology, performance of a computer-implemented method may be distributed among multiple computers and/or between multiple locations. On the other hand, in this presentation of computing environment, detailed discussion is focused on a single computer, specifically computer, to keep the presentation as simple as possible. Computermay be located in a cloud, even though it is not shown in a cloud in. On the other hand, computeris not required to be in a cloud except to any extent as may be affirmatively indicated.
110 120 120 121 110 110 Processor setincludes one, or more, computer processors of any type now known or to be developed in the future. Processing circuitrymay be distributed over multiple packages, for example, multiple, coordinated integrated circuit chips. Processing circuitrymay implement multiple processor threads and/or multiple processor cores. Cacheis memory that is located in the processor chip package(s) and is typically used for data or code that should be available for rapid access by the threads or cores running on processor set. Cache memories are typically organized into multiple levels depending upon relative proximity to the processing circuitry. Alternatively, some, or all, of the cache for the processor set may be located “off chip.” In some computing environments, processor setmay be designed for working with qubits and performing quantum computing.
101 110 101 121 110 100 107 113 Computer readable program instructions are typically loaded onto computerto cause a series of operational steps to be performed by processor setof computerand thereby effect a computer-implemented method, such that the instructions thus executed will instantiate the methods specified in flowcharts and/or narrative descriptions of computer-implemented methods included in this document. These computer readable program instructions are stored in various types of computer readable storage media, such as cacheand the other storage media discussed below. The program instructions, and associated data, are accessed by processor setto control and direct performance of the computer-implemented methods. In computing environment, at least some of the instructions for performing the computer-implemented methods may be stored in neural network modulein persistent storage.
111 101 Communication fabricis the signal conduction path that allows the various components of computerto communicate with each other. Typically, this fabric is made of switches and electrically conductive paths, such as the switches and electrically conductive paths that make up buses, bridges, physical input / output ports and the like. Other types of signal communication paths may be used, such as fiber optic communication paths and/or wireless communication paths.
112 112 101 112 101 101 Volatile memoryis any type of volatile memory now known or to be developed in the future. Examples include dynamic type random access memory (RAM) or static type RAM. Typically, volatile memoryis characterized by random access, but this is not required unless affirmatively indicated. In computer, the volatile memoryis located in a single package and is internal to computer, but, alternatively or additionally, the volatile memory may be distributed over multiple packages and/or located externally with respect to computer.
113 101 113 113 122 107 Persistent storageis any form of non-volatile storage for computers that is now known or to be developed in the future. The non-volatility of this storage means that the stored data is maintained regardless of whether power is being supplied to computerand/or directly to persistent storage. Persistent storagemay be a read only memory (ROM), but typically at least a portion of the persistent storage allows writing of data, deletion of data and re-writing of data. Some familiar forms of persistent storage include magnetic disks and solid state storage devices. Operating systemmay take several forms, such as various known proprietary operating systems or open source Portable Operating System Interface-type operating systems that employ a kernel. The code included in neural network moduletypically includes at least some of the computer code involved in performing the computer-implemented methods described herein.
114 101 101 123 124 124 124 101 101 125 Peripheral device setincludes the set of peripheral devices of computer. Data communication connections between the peripheral devices and the other components of computermay be implemented in various ways, such as Bluetooth connections, Near-Field Communication (NFC) connections, connections made by cables (such as universal serial bus (USB) type cables), insertion-type connections (for example, secure digital (SD) card), connections made through local area communication networks and even connections made through wide area networks such as the internet. In various embodiments, UI device setmay include components such as a display screen, speaker, microphone, wearable devices (such as goggles and smart watches), keyboard, mouse, printer, touchpad, game controllers, and haptic devices. Storageis external storage, such as an external hard drive, or insertable storage, such as an SD card. Storagemay be persistent and/or volatile. In some embodiments, storagemay take the form of a quantum computing storage device for storing data in the form of qubits. In embodiments where computeris required to have a large amount of storage (for example, where computerlocally stores and manages a large database), this storage may be provided by peripheral storage devices designed for storing very large amounts of data, such as a storage area network (SAN) that is shared by multiple, geographically distributed computers. IoT sensor setis made up of sensors that can be used in Internet of Things applications. For example, one sensor may be a thermometer and another sensor may be a motion detector.
115 101 102 115 115 115 101 115 Network moduleis the collection of computer software, hardware, and firmware that allows computerto communicate with other computers through WAN. Network modulemay include hardware, such as modems or Wi-Fi signal transceivers, software for packetizing and/or de-packetizing data for communication network transmission, and/or web browser software for communicating data over the internet. In some embodiments, network control functions and network forwarding functions of network moduleare performed on the same physical hardware device. In other embodiments (for example, embodiments that utilize software-defined networking (SDN)), the control functions and the forwarding functions of network moduleare performed on physically separate devices, such that the control functions manage several different network hardware devices. Computer readable program instructions for performing the computer-implemented methods can typically be downloaded to computerfrom an external computer or external storage device through a network adapter card or network interface included in network module.
102 102 WANis any wide area network (for example, the internet) capable of communicating computer data over non-local distances by any technology for communicating computer data, now known or to be developed in the future. In some embodiments, the WANmay be replaced and/or supplemented by local area networks (LANs) designed to communicate data between devices located in a local area, such as a Wi-Fi network. The WAN and/or LANs typically include computer hardware such as copper transmission cables, optical transmission fibers, wireless transmission, routers, firewalls, switches, gateway computers and edge servers.
103 101 101 103 101 101 115 101 102 103 103 103 End user device (EUD)is any computer system that is used and controlled by an end user (for example, a customer of an enterprise that operates computer), and may take any of the forms discussed above in connection with computer. EUDtypically receives helpful and useful data from the operations of computer. For example, in a hypothetical case where computeris designed to provide a recommendation to an end user, this recommendation would typically be communicated from network moduleof computerthrough WANto EUD. In this way, EUDcan display, or otherwise present, the recommendation to an end user. In some embodiments, EUDmay be a client device, such as thin client, heavy client, mainframe computer, desktop computer and so on.
104 101 104 101 104 101 101 101 130 104 Remote serveris any computer system that serves at least some data and/or functionality to computer. Remote servermay be controlled and used by the same entity that operates computer. Remote serverrepresents the machine(s) that collect and store helpful and useful data for use by other computers, such as computer. For example, in a hypothetical case where computeris designed and programmed to provide a recommendation based on historical data, then this historical data may be provided to computerfrom remote databaseof remote server.
105 105 141 105 142 105 143 144 141 140 105 102 Public cloudis any computer system available for use by multiple entities that provides on-demand availability of computer system resources and/or other computer capabilities, especially data storage (cloud storage) and computing power, without direct active management by the user. Cloud computing typically leverages sharing of resources to achieve coherence and economies of scale. The direct and active management of the computing resources of public cloudis performed by the computer hardware and/or software of cloud orchestration module. The computing resources provided by public cloudare typically implemented by virtual computing environments that run on various computers making up the computers of host physical machine set, which is the universe of physical computers in and/or available to public cloud. The virtual computing environments (VCEs) typically take the form of virtual machines from virtual machine setand/or containers from container set. It is understood that these VCEs may be stored as images and may be transferred among and between the various physical machine hosts, either as images or after instantiation of the VCE. Cloud orchestration modulemanages the transfer and storage of images, deploys new instantiations of VCEs and manages active instantiations of VCE deployments. Gatewayis the collection of computer software, hardware, and firmware that allows public cloudto communicate through WAN.
Some further explanation of virtualized computing environments (VCEs) will now be provided. VCEs can be stored as “images.” A new active instance of the VCE can be instantiated from the image. Two familiar types of VCEs are virtual machines and containers. A container is a VCE that uses operating-system-level virtualization. This refers to an operating system feature in which the kernel allows the existence of multiple isolated user-space instances, called containers. These isolated user-space instances typically behave as real computers from the point of view of programs running in them. A computer program running on an ordinary operating system can utilize all resources of that computer, such as connected devices, files and folders, network shares, CPU power, and quantifiable hardware capabilities. However, programs running inside a container can only use the contents of the container and devices assigned to the container, a feature which is known as containerization.
106 105 106 102 105 106 Private cloudis similar to public cloud, except that the computing resources are only available for use by a single enterprise. While private cloudis depicted as being in communication with WAN, in other embodiments a private cloud may be disconnected from the internet entirely and only accessible through a local/private network. A hybrid cloud is a composition of multiple clouds of different types (for example, private, community or public cloud types), often respectively implemented by different vendors. Each of the multiple clouds remains a separate and discrete entity, but the larger hybrid cloud architecture is bound together by standardized or proprietary technology that enables orchestration, management, and/or data/application portability between the multiple constituent clouds. In this embodiment, public cloudand private cloudare both part of a larger hybrid cloud.
1 FIG. 106 Cloud computing services and/or microservices (not separately shown in): private and public cloudsare programmed and configured to deliver cloud computing services and/or microservices (unless otherwise indicated, the word “microservices” shall be interpreted as inclusive of larger “services” regardless of size). Cloud services are infrastructure, platforms, or software that are typically hosted by third-party providers and made available to users through the internet. Cloud services facilitate the flow of user data from front-end clients (for example, user-side servers, tablets, desktops, laptops), through the internet, to the provider’s systems, and back. In some embodiments, cloud services may be configured and orchestrated according to as “as a service” technology paradigm where something is being presented to an internal or external customer in the form of a cloud computing service. As-a-Service offerings typically provide endpoints with which various customers interface. These endpoints are typically based on a set of APIs. One category of as-a-service offering is Platform as a Service (PaaS), where a service provider provisions, instantiates, runs, and manages a modular bundle of code that customers can use to instantiate a computing platform and one or more applications, without the complexity of building and maintaining the infrastructure typically associated with these things. Another category is Software as a Service (SaaS) where software is centrally hosted and allocated on a subscription basis. SaaS is also known as on-demand software, web-based software, or web-hosted software. Four technological sub-fields involved in cloud services are: deployment, integration, on demand, and virtual private networks.
2 FIG. 2 FIG. 1 FIG. 2 FIG. 107 202 For further explanation,sets forth a flowchart of an example method of preemptively concluding inference operations based on test data performance in accordance with some embodiments of the present disclosure. The method ofmay be performed, for example, by a neural network moduleof. The method ofincludes detecting, during an inference operation of a neural network, an activation of a grandmother neuron of the neural network. As described herein, a grandmother neuron is a neuron or node of the neural network that, during training of the neural network, was always activated for a particular output and was never activated for any other output. Put differently, grandmother neurons are neurons that have a one-to-one mapping with particular training data outputs such that any training data output may only be mapped to a single grandmother neuron.
For example, assuming a training data set of input and output pairs with the output value being a particular classification, a grandmother neuron is a neuron that was always activated for training data samples of a particular classification of training data and never activated for any other classification of training data. Continuing with this example, assume that a neural network is being trained on a training data set for classifying images of animals, with each sample of training data including, as input, an image and, as output, a classification of animal. A grandmother neuron may be identified as a neuron that was always activated for samples for cats and not activated for any other classification of animal. Moreover, as grandmother neurons have a one-to-one mapping for particular outputs, only a single node may be identified as a grandmother neuron for cats.
202 202 The interference operation of the neural network is any operation whereby some input was provided to the neural network so as to generate some output. This may include, for example, classifications, predictions, or other types of inference operations as can be appreciated. Detecting, during the inference operation, an activation of the grandmother neuron includes detecting that a neuron previously identified as a grandmother neuron has been activated in response to some input provided to the neural network. This may include detecting that an identified grandmother neuron has been activated with a confidence value or some other score exceeding a threshold. Particular approaches for detectingactivation of the grandmother neuron are described in further detail below.
2 FIG. 204 204 The method ofalso includes suspending, in response to an activation of the grandmother neuron, the inference operation. During an inference operation using a neural network, the input to the neural network, after being processed by an input layer, is processed through successive hidden layers until an output layer is reached, with the output layer providing the output of the inference operation. Here, as a grandmother neuron has been activated, it may be determined that no further processing through these layers is required in order to complete the inference operation. Accordingly, the inference operation is suspendedso as to prevent or refrain from any further processing through the neural network. In other words, rather than processing the input through the neural network until the output layer is reached so as to generate some output, the inference operation is preemptively suspended or concluded.
2 FIG. 206 204 The method ofalso includes providingthe particular output as an output of the inference operation. In other words, after suspendingthe inference operation, the particular output corresponding to the activate grandmother neuron is provided as output of the inference operation. Thus, rather than fully process some input through all layers of the neural network to complete the inference operation, the inference operation is instead preemptively concluded by providing, as output, the particular output corresponding to the activated grandmother neuron.
Returning to the example where the neural network has been trained to perform classifications of images of animals, assume that, during an inference operation to classify an animal in an image, the grandmother neuron for classifying cats has been activated. As this neuron has only ever been activated for images including cats and never activated for any other classification of animal, it can be assumed that the input image includes a cat. Accordingly, rather than fully process the image through the neural network, the inference operation may be preemptively concluded and a classification for a cat may be provided as the output of the inference operation.
Readers will appreciate that these approaches allow for inference operations that cause a grandmother neuron to be activated to be preemptively concluded so as to provide a predefined or predetermined output for that grandmother neuron. This improves both the speed at generating an output for the inference operation and reduces the overall computational burden associated with the inference operation as fully processing the input through the neural network is not performed, improving overall system performance. Moreover, although the discussion set forth above is described in the context of a single grandmother neuron, readers will appreciate that, in some embodiments, a neural network may potentially include multiple grandmother neurons each corresponding to different outputs.
3 FIG. 3 FIG. 2 FIG. 3 FIG. 202 204 206 For further explanation,sets forth a flowchart of another method of preemptively concluding inference operations based on test data performance in accordance with some embodiments of the present disclosure. The method ofis similar toin that the method ofalso includes: detecting, during an inference operation of a neural network, an activation of a grandmother neuron of the neural network; suspending, in response to an activation of the grandmother neuron, the inference operation; and providingthe particular output as an output of the inference operation.
3 FIG. 2 FIG. 3 FIG. 302 The method ofdiffers fromin that the method ofalso includes: detecting, during another inference operation of the neural network, an activation of a plurality of grandmother neurons of the neural network. As is set forth above, a grandmother neuron should only be activated for a particular output and only a single grandmother neuron should be mapped to that particular classification. Accordingly, where an input causes multiple grandmother neurons to be activated, designation of one or more of these neurons as grandmother neurons is erroneous.
Continuing with the example of a neural network for classifying images of animals, assume that an input image causes a first grandmother neuron corresponding to cats and a second grandmother neuron corresponding to dogs to be activated. As the animal in the image cannot be both and a dog simultaneously, both the first and second grandmother neurons were erroneously designated as grandmother neurons. Assuming that the image is actually a cat, the second grandmother neuron should not be a grandmother neuron for dogs as it was activated for an input image of a cat.
As will be described in subsequent flowcharts, various actions may be performed in response to detecting activation of multiple grandmother neurons. This may include, for example, removing a grandmother neuron designation from one or more of the multiple grandmother neurons, saving the input of the other inference operation as a training data sample for later retraining or fine-tuning, and/or completing the other inference operation using the rest of the neural network.
4 FIG. 4 FIG. 3 FIG. 4 FIG. 202 204 206 302 For further explanation,sets forth a flowchart of another method of preemptively concluding inference operations based on test data performance in accordance with some embodiments of the present disclosure. The method ofis similar toin that the method ofalso includes: detecting, during an inference operation of a neural network, an activation of a grandmother neuron of the neural network; suspending, in response to an activation of the grandmother neuron, the inference operation; providingthe particular output as an output of the inference operation; and detecting, during another inference operation of the neural network, an activation of a plurality of grandmother neurons of the neural network.
4 FIG. 3 FIG. 4 FIG. 402 The method ofdiffers fromin that the method ofalso includes: completingthe other inference operation by processing an input of the other input operation beyond the plurality of grandmother neurons of the neural network. In other words, the input to the other input operation may be processed fully through the neural network so as to generate an output for the other inference operation. As multiple grandmother neurons have been activated and their outputs are mutually exclusive, no output corresponding to any of these grandmother neurons may be reliably output by preemptively concluding the other inference operation. Accordingly, to generate an output for the other inference operation, this input is fully processed through the neural network.
5 FIG. 5 FIG. 3 FIG. 5 FIG. 202 204 206 302 For further explanation,sets forth a flowchart of another method of preemptively concluding inference operations based on test data performance in accordance with some embodiments of the present disclosure. The method ofis similar toin that the method ofalso includes: detecting, during an inference operation of a neural network, an activation of a grandmother neuron of the neural network; suspending, in response to an activation of the grandmother neuron, the inference operation; providingthe particular output as an output of the inference operation; and detecting, during another inference operation of the neural network, an activation of a plurality of grandmother neurons of the neural network.
5 FIG. 3 FIG. 5 FIG. 502 The method ofdiffers fromin that the method ofalso includes: savinga training data sample for the neural network comprising an input of the other inference operation. As the input of the other inference operation caused activation of multiple grandmother neurons, this input serves as an outlier relative to the existing training data set for the neural network (e.g., the training data set that resulted in identification of these multiple grandmother neurons). Accordingly, this input may be useful as a training data sample so as to prevent subsequent erroneous grandmother neuron designations.
For example, in some embodiments, the training data sample may include, as an input value, the input to the other inference operation. In some embodiments, the training data sample may include, as an output value, an output of the other inference operation generated as described above by fully processing the input value through the neural network. In some embodiments, the training data sample may include, as an output value, a manually defined value based on a manual review of the input value. This training data sample may then be used, along with potentially other training data samples, in a training data set to refine the neural network. For example, in some embodiments, this training data set may be used to fine-tune the neural network. As another example, in some embodiments, this training data set may be used to fully retrain the neural network.
6 FIG. 6 FIG. 3 FIG. 6 FIG. 202 204 206 302 For further explanation,sets forth a flowchart of another method of preemptively concluding inference operations based on test data performance in accordance with some embodiments of the present disclosure. The method ofis similar toin that the method ofalso includes: detecting, during an inference operation of a neural network, an activation of a grandmother neuron of the neural network; suspending, in response to an activation of the grandmother neuron, the inference operation; providingthe particular output as an output of the inference operation; and detecting, during another inference operation of the neural network, an activation of a plurality of grandmother neurons of the neural network.
6 FIG. 3 FIG. 6 FIG. 602 602 602 The method ofdiffers fromin that the method ofalso includes: removinga grandmother neuron designation from one or more of the plurality of grandmother neurons. As multiple grandmother neurons were activated for the same input, one or more of these grandmother neurons were necessarily activated for an input whose output does not match the particular output of the one or more of these grandmother neurons. Returning to the example above, a grandmother neuron for dogs may have been activated for a cat. Accordingly, one or more of these grandmother neurons can no longer be considered a grandmother neuron for preemptively concluding an inference operation and using the particular output of the activated grandmother neuron as the output of the inference operation. Accordingly, removinga grandmother neuron designation for a particular grandmother neuron causes the particular grandmother neuron to no longer being monitored during inference operations of the neural network. In other words, removinga grandmother neuron designation for a particular neuron causes the particular neuron to no longer be treated as a grandmother neuron.
602 602 602 In some embodiments, removinga grandmother neuron designation from one or more of the plurality of grandmother neurons may include removinga grandmother neuron designation for any activated grandmother neuron whose corresponding output does not match the output of the other inference operation. Returning to the examples above, assume that an output of the other inference operation is generated using similar approaches as are set forth above by fully processing the other input through the neural network, resulting in an output of a cat. In this example, the grandmother neuron designation for the grandmother neuron corresponding to the dog output may be removedwhile maintaining the grandmother neuron designation for the grandmother neuron corresponding to the cat output may be maintained as it matches the output produced by the neural network.
602 602 602 In some embodiments, the grandmother neuron designation may be removedfor all of the activated grandmother neurons. In some embodiments, the grandmother neuron designation may be removedfor all of the activated grandmother neurons due to the output of the other input operation not matching the corresponding output of any activated grandmother neuron. For example, assume that the neural network produces, for the other input, a classification of a capybara. As this matches the corresponding outputs for neither the dog grandmother neuron nor the cat grandmother neuron, both of their grandmother neuron designations may be removed. In some embodiments, the grandmother neuron designation may be removedfor all of the activated grandmother neurons regardless or independent of the output of the other inference operation produced by the neural network.
7 FIG. 7 FIG. 2 FIG. 7 FIG. 202 204 206 For further explanation,sets forth a flowchart of another method of preemptively concluding inference operations based on test data performance in accordance with some embodiments of the present disclosure. The method ofis similar toin that the method ofalso includes: detecting, during an inference operation of a neural network, an activation of a grandmother neuron of the neural network; suspending, in response to an activation of the grandmother neuron, the inference operation; and providingthe particular output as an output of the inference operation.
7 FIG. 2 FIG. 7 FIG. 702 702 The method ofdiffers fromin that the method ofalso includes: identifying, based on a training of the neural network, one or more neurons of the neural network as one or more grandmother neurons. In some embodiments, this may include monitoring an activation path of the neural network during training (e.g., the particular neurons activated during each training data sample). These activation paths may then be used to identifythe one or more grandmother neurons according to a variety of approaches.
702 For example, once training of the neural network has been completed, the activation paths for each training data sample of a particular output may be compared to each other to identify any neurons were always activated for that particular output. These neurons may be identified as candidate grandmother neurons. After identifying any candidate grandmother neurons for each output of the training data, the candidate grandmother neurons for each output may be compared to the activation paths for other outputs to determine if they are included in the activation paths of any other output. Where a candidate grandmother neuron is not found in the activation paths of any other output, the candidate grandmother neuron may be designated as a grandmother neuron. Readers will appreciate that this approach for identifyinggrandmother neurons is merely illustrative and that other approaches may be used that fall within the scope of the present disclosure.
8 FIG. 8 FIG. 2 FIG. 8 FIG. 202 204 206 For further explanation,sets forth a flowchart of another method of preemptively concluding inference operations based on test data performance in accordance with some embodiments of the present disclosure. The method ofis similar toin that the method ofalso includes: detecting, during an inference operation of a neural network, an activation of a grandmother neuron of the neural network; suspending, in response to an activation of the grandmother neuron, the inference operation; and providingthe particular output as an output of the inference operation.
8 FIG. 2 FIG. 202 802 204 206 The method ofdiffers fromin that detecting, during an inference operation of a neural network, an activation of a grandmother neuron of the neural network also includes monitoringan activation path of the neural network. In some embodiments, as the input is processed through each layer of the neural network, the activated neurons for a current or most recently processed layer may be compared to a listing of any identified grandmother neurons. If a single identified grandmother neuron has been activated, the inference operation may be suspendedand the particular output of the activated grandmother neuron may be providedas output of the inference operation.
9 FIG. 9 FIG. 2 FIG. 9 FIG. 202 204 206 For further explanation,sets forth a flowchart of another method of preemptively concluding inference operations based on test data performance in accordance with some embodiments of the present disclosure. The method ofis similar toin that the method ofalso includes: detecting, during an inference operation of a neural network, an activation of a grandmother neuron of the neural network; suspending, in response to an activation of the grandmother neuron, the inference operation; and providingthe particular output as an output of the inference operation.
9 FIG. 2 FIG. 202 902 802 The method ofdiffers fromin that detecting, during an inference operation of a neural network, an activation of a grandmother neuron of the neural network also includes monitoringa grandmother neuron aggregation layer of the neural network. In some embodiments, rather than requiring that activation through the neural network be monitoredas described above, a layer may be added early in the neural network, such as a new first hidden layer or another early layer, that includes one or more of the identified grandmother neurons. This may include all of the identified grandmother neurons or a subset thereof. Although the following discussion is presented with respect to a grandmother neuron aggregation layer, other data structures for aggregating identified grandmother neurons may also be used, such as a translation lookaside buffer (TLB).
202 Accordingly, when processing an input by the neural network, the input is processed first or earlier using this grandmother neuron aggregation layer. Detectingan activation of a grandmother neuron may then include determining if any grandmother neurons in the grandmother neuron aggregation layer are activated. If not, the input is processed through the remaining layers of the neural network. In some embodiments, where the grandmother neuron aggregation layer only includes a subset of identified grandmother neurons, activation of any of the remainder of the identified grandmother neurons may be monitored by monitoring the activation path through the neural network as described above.
202 802 202 202 Readers will appreciate that the use of a grandmother neuron aggregation layer provides several advantages over approaches that detectactivation of grandmother neurons only by monitoringthe activation path through the neural network. For example, as the grandmother neuron aggregation layer occurs first or relatively early in the hidden layers of the neural network, activation of grandmother neurons may be detected earlier, thereby allowing for the inference operation to be suspendedin response to detectingan activated grandmother neuron, reducing overall computational resource usage and the time to provide the output of the activated grandmother neuron. Moreover, this approach allows for monitoring of a large number of grandmother neurons concurrently by aggregating them into the same layer, in contrast to other approaches where the grandmother neurons may be spread across potentially many hidden layers.
10 FIG. 10 FIG. 9 FIG. 10 FIG. 202 902 204 206 For further explanation,sets forth a flowchart of another method of preemptively concluding inference operations based on test data performance in accordance with some embodiments of the present disclosure. The method ofis similar toin that the method ofalso includes: detecting, during an inference operation of a neural network, an activation of a grandmother neuron of the neural network, including: monitoringa grandmother neuron aggregation layer of the neural network; suspending, in response to an activation of the grandmother neuron, the inference operation; and providingthe particular output as an output of the inference operation.
10 FIG. 9 FIG. 10 FIG. 1002 1002 1002 1002 1002 1002 The method ofdiffers fromin that the method ofalso includes generatingthe grandmother neuron aggregation layer. In some embodiments, generatingthe grandmother neuron aggregation layer includes generatingthe grandmother neuron aggregation layer to include all identified grandmother neurons. In some embodiments, generatingthe grandmother neuron aggregation layer includes generatingthe grandmother neuron aggregation layer to include a subset of identified grandmother neurons. For example, in some embodiments, the grandmother neuron aggregation layer may include up to a maximum number of grandmother neurons. Accordingly, in some embodiments, where the number of identified grandmother neurons exceeds the maximum number of grandmother neurons, the grandmother neuron aggregation layer may be generatedto include up to the maximum number of grandmother neurons.
In some embodiments, this subset of identified grandmother neurons may include a random selection of the identified grandmother neurons. In some embodiments, this subset of identified grandmother neurons may correspond to a particular grouping of outputs based on a system or application in which the neural network will be used. For example, where the neural network has been trained on a large set of training data for classifying many types of objects with identified grandmother neurons for different types of objects, assume that the neural network is to be deployed in a system for identifying animals in images. The subset of identified grandmother neurons may then include those grandmother neurons corresponding to different classifications of animals. Readers will appreciate that, in some embodiments, any identified grandmother neurons not in the grandmother neuron aggregation layer may be preserved in the remaining layers of the neural network.
1002 1002 In some embodiments, generatingthe grandmother neuron aggregation layer may include removing the grandmother neurons to be included in the grandmother neuron aggregation layer from their original layers in the neural network. In some embodiments, generatingthe grandmother neuron aggregation layer may include preserving the grandmother neurons to be included in the grandmother neuron aggregation layer in their original layers in the neural network.
11 FIG. 11 FIG. 10 FIG. 11 FIG. 1002 202 902 204 206 For further explanation,sets forth a flowchart of another method of preemptively concluding inference operations based on test data performance in accordance with some embodiments of the present disclosure. The method ofis similar toin that the method ofalso includes: generatingthe grandmother neuron aggregation layer; detecting, during an inference operation of a neural network, an activation of a grandmother neuron of the neural network, including: monitoringa grandmother neuron aggregation layer of the neural network; suspending, in response to an activation of the grandmother neuron, the inference operation; and providingthe particular output as an output of the inference operation.
11 FIG. 10 FIG. 11 FIG. 1102 1102 1102 The method ofdiffers fromin that the method ofalso includes exchanging, in the grandmother neuron aggregation layer, one or more grandmother neurons with one or more other grandmother neurons based on an activation rate of the one or more grandmother neurons. Although the following discussion describes exchanginggrandmother neurons based on their activation rate, readers will appreciate that other factors or metrics may also be used in exchanginggrandmother neurons. As is set forth above, in some embodiments the grandmother neuron aggregation layer may include only a subset of the identified grandmother neurons, such as where the grandmother neuron aggregation layer includes a maximum number of grandmother neurons. Accordingly, some remainder of identified grandmother neurons may not be monitored when monitoring the grandmother neuron aggregation layer, instead having to monitor the activation path through the neural network to see if any of these remaining identified grandmother neurons are activated.
In some embodiments, the activation rate of the grandmother neurons in the grandmother neuron aggregation layer can be monitored. In response to some event, such as a reaching a predefined time threshold, reaching a predefined number of inference operations, or another event, one or more grandmother neurons may be identified for removal from the grandmother neuron aggregation layer. In some embodiments, the one or more grandmother neurons identified for removal may include those grandmother neurons with an activation rate below some threshold. In some embodiments, the one or more grandmother neurons identified for removal may include the bottom N grandmother neurons in a ranking of grandmother neurons ranked according to their activation rate. In some embodiments, the one or more grandmother neurons may be identified for removal according to other approaches.
These grandmother neurons identified for removal may then be exchanged with a number of grandmother neurons (e.g., a same number of grandmother neurons) not included in the grandmother neuron aggregation layer. Thus, one or more of the grandmother neurons previously not included in the grandmother neuron aggregation layer are added to the grandmother neuron aggregation layer and one or more of the grandmother neurons previously included in the grandmother neuron aggregation layer are removed. In some embodiments, those grandmother neurons removed from the grandmother neuron aggregation layer are instead included in the remaining layers of the neural network.
In some embodiments, the grandmother neurons to be added to the grandmother aggregation layer may also be identified according to a variety of approaches. In some embodiments, the grandmother neurons to be added to the grandmother neuron aggregation layer may include the top N grandmother neurons in a ranking of grandmother neurons not included in the grandmother neuron aggregation layer based on their activation rate, an amount of time or number of inference operations performed while the grandmother neuron has been excluded from the grandmother neuron aggregation layer, or another metric. In some embodiments, the grandmother neurons to be added to the grandmother neuron aggregation layer may include a random selection of grandmother neurons not included in the grandmother neuron aggregation layer. In some embodiments, the grandmother neurons to be added to the grandmother neuron aggregation layer may include a manual selection of grandmother neurons. The grandmother neurons to be added to the grandmother neuron aggregation layer may also be determined or selected according to other approaches.
1102 1102 In embodiments where a grandmother neuron added to the grandmother neuron aggregation layer is removed from its original layer in the neural network, exchangingthe one or more grandmother neurons may include readding, to their original layers of the neural network, those grandmother neurons removed from the grandmother neuron aggregation layer and removing, from their original layers of the neural network, those grandmother neurons added to the grandmother neuron aggregation layer. In embodiments where a grandmother neuron added to the grandmother neuron aggregation layer is preserved in its original layer in the neural network, exchangingthe one or more grandmother neurons includes adding grandmother neurons to and removing grandmother neurons from the grandmother neuron aggregation layer without modifying the grandmother neurons as included in their original layers of the neural network.
For example, assume that, in a neural network used to identify animals from images, a grandmother neuron for identifying capybaras has never been activated in the grandmother neuron aggregation layer. Further assume that, though not included in the grandmother neuron aggregation layer, a grandmother neuron for identifying horses has been activated some number of times. In this example, no performance benefit has been provided by including the capybara grandmother neuron in the grandmother neuron aggregation layer. As the horse grandmother neuron has been activated by some amount, there is likely an unrealized performance benefit for including the horse grandmother neuron ion the grandmother neuron aggregation layer. Accordingly, the capybara grandmother neuron may be exchanged in the grandmother neuron aggregation layer with the horse grandmother neuron.
Various aspects of the present disclosure are described by narrative text, flowcharts, block diagrams of computer systems and/or block diagrams of the machine logic included in computer program product (CPP) embodiments. With respect to any flowcharts, depending upon the technology involved, the operations can be performed in a different order than what is shown in a given flowchart. For example, again depending upon the technology involved, two operations shown in successive flowchart blocks may be performed in reverse order, as a single integrated step, concurrently, or in a manner at least partially overlapping in time.
A computer program product embodiment ("CPP embodiment" or “CPP”) is a term used in the present disclosure to describe any set of one, or more, storage media (also called "mediums") collectively included in a set of one, or more, storage devices that collectively include machine readable code corresponding to instructions and/or data for performing computer operations specified in a given CPP claim. A "storage device" is any tangible device that can retain and store instructions for use by a computer processor. Without limitation, the computer readable storage medium may be an electronic storage medium, a magnetic storage medium, an optical storage medium, an electromagnetic storage medium, a semiconductor storage medium, a mechanical storage medium, or any suitable combination of the foregoing. Some known types of storage devices that include these mediums include: diskette, hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or Flash memory), static random access memory (SRAM), compact disc read-only memory (CD-ROM), digital versatile disk (DVD), memory stick, floppy disk, mechanically encoded device (such as punch cards or pits / lands formed in a major surface of a disc) or any suitable combination of the foregoing. A computer readable storage medium, as that term is used in the present disclosure, is not to be construed as storage in the form of transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide, light pulses passing through a fiber optic cable, electrical signals communicated through a wire, and/or other transmission media. As will be understood by those of skill in the art, data is typically moved at some occasional points in time during normal operations of a storage device, such as during access, de-fragmentation or garbage collection, but this does not render the storage device as transitory because the data is not transitory while it is stored.
The descriptions of the various embodiments of the present disclosure have been presented for purposes of illustration, but are not intended to be exhaustive or limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein was chosen to best explain the principles of the embodiments, the practical application or technical improvement over technologies found in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.
Cooperative Patent Classification codes for this invention. Click any code to explore related patents in that topic.
January 6, 2025
July 9, 2026
Browse 5M+ US patents with plain-English claim translations and AI-generated analysis.