System and method for error-aware runtime configurable memory hierarchy to improve energy efficiency

By detecting bit error rates in neural network accelerators and dynamically adjusting memory parameters, the contradiction between memory-level energy efficiency and accuracy in edge computing is solved, achieving a balance between efficient energy use and high accuracy in complex neural networks.

CN111860802BActive Publication Date: 2024-09-24INTERNATIONAL BUSINESS MACHINE CORPORATION
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010115082.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-04-25
Filing Date
2020-02-25
Publication Date
2024-09-24
Estimated Expiration
2040-02-25

AI Technical Summary

Technical Problem

In distributed edge computing, the memory hierarchy of neural network accelerators faces a trade-off between energy efficiency and accuracy. Especially when processing complex deep neural networks, monolithic static random access memory designs are impractical, resulting in different Hierarchies of memory type and capacity require trade-offs between output accuracy and energy performance.

Method used

Using closed-loop, runtime configurable technology, by detecting the bit error rate of the storage module, the operating parameters of the on-chip static random access memory and dynamic random access memory are dynamically adjusted to ensure that the predetermined accuracy threshold is reached and energy optimization is achieved.

Benefits of technology

While maintaining high accuracy, memory parameters are dynamically adjusted to optimize the energy efficiency of the entire memory hierarchy and reduce energy consumption, making it suitable for edge devices with complex neural networks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111860802B_ABST
    Figure CN111860802B_ABST
Patent Text Reader

Abstract

A method (and structure and computer product) for optimizing operations in a neural network accelerator (NNAccel), the neural network accelerator comprising a hierarchy of neural network layers as a computational level of NNAccel and a hierarchy of configurable memory modules, wherein the memory modules include one or more on-chip static random access memory (SRAM) modules and one or more dynamic random access memory (DRAM) modules, each memory module being controlled by a plurality of operating parameters adjustable by a controller of NNAccel. The method includes detecting a bit error rate of a memory module currently being used by NNAccel, and determining by the controller whether the detected bit error rate is sufficient to meet a predetermined threshold of accuracy of processing by NNAccel. When the accuracy is below the predetermined threshold, dynamically changing by the controller one or more operating parameters of one or more memory modules to move to a state of higher accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to systems and methods for an error-aware runtime configurable memory hierarchy to improve energy efficiency. Background Art

[0002] The present invention generally relates to Neural Network Accelerators (NNAccel). More specifically, an error control unit uses an error profile associated with the accelerator to determine settings for adjustable parameters of a memory device as a dynamic closed-loop control system to optimize performance (as measured by total energy consumption) subject to quality constraints (as measured by accuracy). Summary of the invention

[0003] Distributed edge computing includes any type of computing that pushes applications, data, and computing power from centralized points to locations closer to users, providing low latency closer to requests. For example, in Internet of Things (IoT) devices, data comes in from the physical world via various sensors, and actions are taken to change states via various forms of outputs and actuators. By performing analysis and knowledge generation at the edge, the communication bandwidth between the controlled system and the central data center is reduced.

[0004] In this paradigm of distributed edge computing, the computational load on edge devices increases significantly, especially in the field of cognitive IoT. In the context of the present invention, the term "cognitive" is intended to refer to applications that are performed using neural networks, so that neural network accelerators can be beneficial in implementing neural network functions. Most state-of-the-art cognitive accelerator hardware is expected to handle complex, multi-layer deep neural networks (DNNs), such as AlexNet, ResNet, and other complex convolutional neural networks (CNNs). These networks have large memory requirements, typically on the order of tens of megabytes (MB).

[0005] In most cases, it is impractical to design a chip with such a large on-chip static random access memory (SRAM) in a monolithic manner. This leads to a memory hierarchy with one or more levels of different memory types and different capacities, such as on-chip SRAM on the order of tens to hundreds of kilobytes (KB) and dynamic random access memory (DRAM) on the order of tens of MB. These memories have different actuation knobs that trade off reliability, which affects output accuracy, and performance and power, which affects energy.

[0006] The present invention discloses a closed-loop, runtime-configurable technique to optimize the energy of the entire memory hierarchy while maintaining target accuracy.

[0007] According to an exemplary embodiment, the present invention discloses a method (and apparatus and computer product) for optimizing operations in a neural network accelerator (NNAccel), the neural network accelerator including a hierarchy of neural network layers as a computational stage of NNAccel and a hierarchy of configurable memory modules, the memory modules including one or more on-chip static random access memory (SRAM) modules and one or more dynamic random access memory (DRAM) modules, each memory module being controlled by a plurality of operating parameters adjustable by a controller of NNAccel. The method includes: detecting a bit error rate of a memory module currently being used by NNAccel; determining, by the controller, whether the detected bit error rate is sufficient to meet a predetermined threshold of accuracy of processing of NNAccel; and when the accuracy is below the predetermined threshold, dynamically changing, by the controller, one or more operating parameters of one or more memory modules to move to a state of higher accuracy.

[0008] According to another exemplary embodiment, a neural network accelerator (NNAccel) is also disclosed herein, including: a hierarchy of neural network layers as a computing level including NNAccel; and a hierarchy of configurable memory modules, wherein the memory modules include one or more on-chip static random access memory (SRAM) modules and one or more dynamic random access memory (DRAM) modules, each memory module being controlled by a plurality of operating parameters adjustable by a controller of NNAccel. The controller controls NNAccel by a control method, the control method including: detecting a bit error rate of a memory module currently being used by NNAccel; determining by the controller whether the detected bit error rate is sufficient to provide a predetermined threshold of accuracy of processing of NNAccel; and when the accuracy is below the predetermined threshold, dynamically changing by the controller one or more operating parameters of one or more memory modules to move to a state of higher accuracy.

[0009] According to yet another exemplary embodiment, a method of controlling operations in a neural network accelerator (NNAccel) is also disclosed herein, the neural network accelerator comprising a hierarchy of neural network layers as a computing level of NNAccel and a hierarchy of configurable memory modules, wherein the memory modules comprise one or more on-chip static random access memory (SRAM) modules and one or more dynamic random access memory (DRAM) modules, each memory module being controlled by a plurality of operating parameters adjustable by a controller of NNAccel. The method comprises: detecting a current value of a parameter reflecting the quality of processing in NNAccel; determining by the controller whether the quality is currently sufficient to meet a predetermined threshold quality; and when the quality is below a predetermined threshold, dynamically changing by the controller one or more operating parameters to move to a higher quality state. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] Figure 1 A DNN with adjustable parameters for explaining the present invention is exemplarily shown;

[0011] Figure 2 The concept of inference accuracy is exemplarily demonstrated;

[0012] Figure 3 An exemplary embodiment of the present invention is shown;

[0013] Figure 4 Demonstrated static (offline) state space exploration and pruning to achieve runtime configuration;

[0014] Figure 5 A flow chart showing an exemplary embodiment of the present invention is shown;

[0015] Figure 6 A flow chart is shown for a more general understanding of the present invention;

[0016] Figure 7 An exemplary system implementation is shown;

[0017] Figure 8 shows a cloud computing environment according to an embodiment of the present invention; and

[0018] Fig. 9 Abstract model layers according to an embodiment of the present invention are depicted. DETAILED DESCRIPTION

[0019] In order to explain the concept of the present invention, Figure 1 The DNN accelerator system 100 with a hierarchy of memory modules is shown as an example, including one or more SRAMs (M S ) module 106 and one or more DRAM (M D) modules 108, each with multiple tunable knobs (voltage, latency, refresh rate, etc.) that can trade off increased bit error rate for energy savings. The accelerator controller 110 implements a process of alternating computation and memory access phases that involve, for the memory access phase, input data introduced from the remote memory 108 to the local memory 106, and for the computation phase, (a) on-chip computational elements 104, such as multiply-accumulate units 104, and (b) a model defined by the weights and biases of the DNN layers 102. In the present invention, in addition to controlling the memory access and computation phases, the controller 110 also implements an iterative feedback loop mechanism in which an overall output quality metric, such as inference accuracy in the case of a DNN application, is dynamically used to adjust the operating knobs of each level of the memory hierarchy 106, 108.

[0020] The controller 110 shown in the exemplary embodiment may be a microcontroller or a processor. More generally, for Figure 1 In the exemplary embodiment shown, the accelerator may have a dedicated memory controller such as controller 110, or in other configurations, an associated central processing unit (CPU) dedicated to control path operations will control the operation of the accelerator, including exemplary configurations involving an associated CPU in a host computer that implements other host computer functions in addition to managing the accelerator system 100.

[0021] In the context of the present invention, the term "adjustable knob" or "operating knob" refers to the ability to adjust one or more settings of the memory modules 106, 108, such as accessible by the accelerator controller 110 implementing the feedback loop of the present invention. Note also that the DNN layer 102 can be implemented as a "wired" hardware component, or can be implemented using other mechanisms, such as, for example, a field programmable gate array (FPGA).

[0022] Very-Low-Voltage (VLV) Operation for Neural Network Accelerators

[0023] Although reducing the voltage V in the memory module can lead to V 2 This can result in significant energy savings of orders of magnitude, but this reduced voltage can lead to bit errors (such as Figure 2 200 ), and changes to the model of the DNN layer 102. Such changes to the model configuration or inputs stored on-chip due to these bit errors 202 may reduce the overall inference accuracy 204.

[0024] The term "inference accuracy" is well known in the art and refers to the average percentage of accelerator output that matches the ground truth, where the "ground truth" refers to information that is known to be correct. The inference accuracy is established by testing the accelerator on a validation dataset where the ground truth is known, and for the purpose of explaining the present invention, this inference accuracy information is assumed.

[0025] The present invention is based on the recognition that settings of the memory modules 106, 108, such as operating voltage 206, can be adjusted to ensure that the inference accuracy 204 is above a target threshold even in the presence of errors. These errors 202 can occur in the SRAM 106 or the DRAM 108, or both. In a preferred exemplary embodiment, the bit error rate is cumulatively monitored across all currently active memory modules. Figure 2 As exemplarily shown in FIG. 1 , different layers 102 of the neural network may have different degrees of error tolerance, thereby allowing the inference accuracy to be determined. Very low voltage SRAM operation in DNN accelerators with respect to error rates has been studied in prior art references, such as Figure 2 As shown by the dotted line in .

[0026] The present invention focuses on error-aware operation of a memory hierarchy including one or more levels of both static and dynamic RAM. A technique is described herein where bit error information from one level of the memory hierarchy can be used, for example, to dynamically adjust the operating voltage of a subsequent level in order to simultaneously maximize energy efficiency without compromising overall accuracy.

[0027] Therefore, if Figure 3 As shown, an exemplary embodiment of the present invention includes a DNN accelerator 300 having an on-chip SRAM cache and an offload (ie, off-chip) DRAM and a DRAM (M D ) and SRAM(M S ) dynamic control loop of operating parameters. However, it is noted that the DRAM does not have to be off-chip, as the present invention also provides a control mechanism that is applicable if all memory devices are on-chip or off-chip, or partially on-chip and partially off-chip.

[0028] Accelerator Controller( Figure 3) includes an error control unit 302 that receives indications of errors in DRAM and SRAM memory modules using, for example, a mechanism such as counting error correction code (ECC) instances in memory cells under the current memory module settings. Although ECC is used in exemplary embodiments of the present invention, it should be noted that there are various different ECC mechanisms, such as, for example, Single Error Correction and Double Error Detection (SECDED), Double Error Correcting, Triple Error Detecting (DECTED), etc. and other error detection / correction mechanisms that can be used as monitoring mechanisms of the present invention, such as parity checking and built-in self-test (BIST). In addition, although Figure 3 The exemplary embodiments in use ECC or other error detection mechanisms, but the invention should be understood more generally to use any mechanism by which accuracy (or other parameter indicative of quality) can be detected in a closed-loop feedback system, where the closed-loop feedback system involves at least one parameter that can be adjusted and where the at least one parameter will potentially affect the accuracy (or other parameter indicative of quality).

[0029] Adjustable M D Parameters {P} include, for example:

[0030] - Voltage (V)

[0031] -Frequency (f)

[0032] -Delay (L)

[0033] -Refresh rate (R)

[0034] Adjustable M S Parameters include, for example:

[0035] - Voltage (V)

[0036] -Frequency (f)

[0037] The control loop of the present invention utilizes a combination of offline pruning and dynamic runtime reconfiguration of the above parameters. The actuation granularity can be based on a per-layer basis (e.g., when each layer is introduced from DRAM to SRAM), or on a per-test input basis (e.g., for each input from a test data set, once the final accuracy is calculated).

[0038] Figure 4An example of an offline pruning process 400 is shown, in which possible states of parameter settings are analyzed or experimentally analyzed 402 in an offline scenario involving a combination of different setting values ​​for different parameters. Figure 4 As shown in the example, those configuration states 404, 406 whose energy or accuracy values ​​are not within the specified threshold are eliminated or deleted. An exemplary threshold can be defined as follows (E 状态(i) >E opt +Δ E or Acc 状态(i) <Acc opt +Δ Acc ),in:

[0039] E 状态(i) is the total energy of the accelerator system,

[0040] E opt is the predetermined optimal total energy,

[0041] Acc 状态(i) is the overall accuracy of the system in state (i), and

[0042] Acc opt is the best overall accuracy predetermined.

[0043] The determination of optimal accuracy and / or energy depends on the specific application that the accelerator will execute. For example, optimal accuracy can be defined by the user based on application requirements. Energy can be defined, for example, with respect to total energy consumption of NNAccel, expected battery life, average ambient energy, and in the case of a battery-free (e.g., solar-powered) system, energy can be defined as the number of memory modules allowed to operate simultaneously before the supply voltage drops below a predetermined minimum voltage, or the maximum clock speed before energy consumption causes an undesirable voltage drop.

[0044] The states 408 remaining after the pruned state constitute the runtime configuration list of the accelerator system, which is stored in a non-volatile memory in the accelerator and can be accessed by the accelerator controller. It should be noted that in addition to storing specific parameter values ​​for establishing different possible state combinations, each of the possible states (i) will be associated with a quantitative value of energy (i) and accuracy (i), so that the resulting runtime configuration states 408 can then be sorted and stored as a list of states with increased accuracy and states with increased energy efficiency, which allows the closed-loop feedback system of the present invention to easily advance or retreat from different accuracy states and different energy efficiency states. It should also be noted that it is not necessary to consider all possible parameter value combinations in the pruned stage, because the method can be completed with a relatively small number of possible states in the runtime configuration state, assuming that the accelerator system can always operate with the highest accuracy using the highest allowed energy.

[0045] It should also be noted that the method of the present invention can be used without initially pruning the possible states, for example, by simply letting the feedback loop establish a state that properly ends up satisfying first the accuracy and then the total power consumption. However, using a system without initial pruning is generally not ideal because it takes time to converge to a stable operating state.

[0046] Figure 5 is a flow chart 500 of an exemplary method of the present invention, including abbreviated initial offline step 502, as shown in reference Figure 4 Exemplarily explained, it is determined which parameter combinations will cause the total energy of the accelerator system to exceed a predetermined energy consumption threshold level or fail to meet a predetermined accuracy level.

[0047] The deletion process and the determination of unproductive states can be achieved in various ways, but a straightforward way is to obtain Figure 2The accelerator is configured to be operable to provide a plurality of memory modules, each of which is configured ...

[0048] In step 504, the settings of the accelerator are initially set to nominal levels that ensure zero memory errors. By providing data as test inputs, the settings are then adjusted in a dynamic closed loop in steps 506, 508, 510 until both accuracy and energy targets are met in step 512, thereby reaching a configuration suitable for continuing without further adjustment until sufficient bit error rates are detected to cause further adjustment of parameter values ​​due to, for example, changes in the input data to be processed. Inputting test inputs may be initially done automatically, with the first n of N inputs, e.g., 5-10% of the total inputs, used to determine the best operating state for the remaining inputs.

[0049] like Figure 5 As shown, in this exemplary embodiment, accuracy is more important than energy consumption in accelerator operation because the desired accuracy is established first, after which the closed loop will search for lower energy consumption. As the closed loop searches for an acceptable energy rate, it changes states to lower energy efficiencies until it encounters an energy state that causes accuracy to become unacceptable, thereby returning to a more energy-efficient state that allows accuracy to fall back to acceptable accuracy. Figure 5 It should also be clear that both the desired accuracy and the desired energy consumption can be stably achieved, and the accelerator can be operated in this state until an excessive error rate is detected so that the closed loop can again search for a state that satisfies acceptable accuracy and acceptable energy consumption by moving to a more energy-efficient state.

[0050] The above exemplary embodiments are considered to be preferred embodiments. However, the present invention should not be considered to be limited to these exemplary preferred embodiments. For example, the preferred embodiments are based on the understanding that accuracy and energy efficiency are inversely proportional to most configuration parameters. That is, states with higher accuracy generally also consume higher energy. In the case where it is not possible to meet both accuracy and energy goals, alternative embodiments may be considered to include modifications to stabilize at the lowest energy state that meets the accuracy goal.

[0051] In addition, despite Figure 5 The embodiment exemplarily shown in shows accuracy in the inner loop of the feedback mechanism, but it is clear that the two parameters accuracy and energy can be reversed so that energy is evaluated in the inner loop. Furthermore, it should be noted that the present invention is intended to cover a feedback mechanism in which a single parameter, such as accuracy, is evaluated. Furthermore, it should be clear that there may be additional loops in which other parameters are taken into account when controlling the settings of the accelerator. Figure 5 Such modifications of the flow chart are also considered to be part of the present invention, as in Figure 6 The more general process 600 is further described in FIG.

[0052] In yet another modification, the present invention can be implemented in cloud services where energy constraints are less stringent. In such an environment, the method of the present invention can be modified to use a cost-based metric, where a trade-off can be made between accuracy and cloud computing cost, rather than between accuracy and energy usage.

[0053] In yet another possible variation, speed may be considered a tradeoff with accuracy, or qualities other than accuracy may be used as the highest priority in evaluating NNAccel's operations.

[0054] Furthermore, in some exemplary embodiments, the present invention may be considered to provide one or more of the following aspects:

[0055] - A hierarchy of memory elements (including static and / or dynamic RAM) where each element has knobs (voltage, refresh rate, delay) to dynamically trade off energy, power and / or performance against bit error rate (BER) during each memory access;

[0056] - A hierarchy of computational levels, such as layers of a deep neural network, where each layer can tolerate a certain BER to achieve energy savings, such that the overall output quality metric (e.g., inference accuracy) does not drop below a specified threshold;

[0057] - a dynamic controller module that can configure the aforementioned knobs individually for each computational stage to maximize energy subject to certain output quality constraints; and / or

[0058] - A mechanism by which the error profile of one stage of the memory hierarchy can be used to determine tunable parameters of a subsequent stage of the memory hierarchy, and vice versa.

[0059] Thus, as stated above, the present invention should not be considered limited to the exemplary embodiments described herein. Figure 6 600 is shown as a more general concept believed to be disclosed in the present invention. Specifically, the present invention is believed to describe that NNAccel having at least one tunable parameter can be designed to include a closed-loop control mechanism to adjust one or more of the tunable parameters to achieve an operational quality or benefit. Figure 6 As shown in the example, there is at least one control loop 602, which is based on detecting at least one operating state of NNAccel. Figure 5 In an exemplary embodiment of the present invention, the operating state is quality, more specifically, accuracy detected using an error rate. Another possible operating state may be speed, detected by a clock rate, for example.

[0060] Figure 6 The dashed flow element 604 in FIG. 1 illustrates that the general control flow may include (multiple) inner loops 604 based on a second quality or state, and it should be clear that additional inner loops are possible, and Figure 6 The single control loop 602 shown in FIG. 602 may include one or more parallel control loops not shown in the figure. It should also be appreciated that other qualities and / or metrics and other parameters related to NNAccel may be incorporated into Figure 6 The general concepts are shown rather than specific examples provided, and the invention is considered to cover these other possible qualities, metrics and parameters.

[0061] System Implementation

[0062] The present invention can be implemented in a variety of ways, including for example Figure 7 , wherein a host computer 702 includes an accelerator 704 as a coprocessor. In this implementation, the host computer can act as an accelerator controller and can even provide any off-chip memory devices used by the accelerator.

[0063] Similarly, Figure 7The host computer may be a server on a network such as the Internet, where the server provides access from users via the network. Thus, along this line of thought, the present invention may be implemented as a cloud service, or an accelerator may be provided as a cloud service, providing applications for users to define their own neural networks, or as part of a cloud-based application involving the Internet of Things (IoT), where the accelerator provides part of the computation associated with the application, such as a distributed edge computing environment involving one or more IoT devices.

[0064] Therefore, although the present disclosure includes the following detailed description about cloud computing, the implementation of the teachings described herein is not limited to cloud computing environments. Instead, embodiments of the present invention can be implemented in conjunction with any other type of computing environment now known or later developed.

[0065] Cloud computing is a service delivery model for convenient, on-demand network access to a shared pool of configurable computing resources. Configurable computing resources are resources that can be quickly deployed and released with minimal management cost or interaction with the service provider, such as networks, network bandwidth, servers, processing, memory, storage, applications, virtual machines, and services. This cloud model can include at least five characteristics, at least three service models, and at least four deployment models.

[0066] Features include:

[0067] On-demand self-service: Cloud consumers can unilaterally and automatically deploy computing capabilities such as server time and network storage on demand without human interaction with the service provider.

[0068] Broad network access: Computing power can be accessed over the network through standard mechanisms that facilitate the use of the cloud through different types of thin-client or thick-client platforms (e.g., mobile phones, laptops, personal digital assistants (PDAs)).

[0069] Resource pool: The computing resources of the provider are grouped into resource pools and serve multiple consumers through a multi-tenant model, where different physical and virtual resources are dynamically allocated and reallocated on demand. Generally, consumers cannot control or even know the exact location of the provided resources, but can specify the location (such as country, state or data center) at a higher level of abstraction, so it is location-independent.

[0070] Rapid elasticity: The ability to quickly and elastically (sometimes automatically) deploy computing power to scale up quickly, and quickly release it to scale down quickly. To consumers, the computing power available for deployment often appears to be unlimited, and any amount of computing power can be accessed at any time.

[0071] Measurable services: Cloud systems automatically control and optimize resource usage by leveraging metering capabilities at a level of abstraction appropriate to the type of service (e.g., storage, processing, bandwidth, and active user accounts). Resource usage can be monitored, controlled, and reported, providing transparency to both service providers and consumers.

[0072] The service model is as follows:

[0073] Software as a Service (SaaS): The capability provided to consumers is to use the provider's applications running on a cloud infrastructure. Applications can be accessed from a variety of client devices through a thin client interface such as a web browser (e.g., web-based email). Aside from limited user-specific application configuration settings, consumers neither manage nor control the underlying cloud infrastructure including networks, servers, operating systems, storage, or even individual application capabilities.

[0074] Platform as a Service (PaaS): The capability provided to consumers is to deploy applications created or acquired by consumers on the cloud infrastructure, which are created using programming languages ​​and tools supported by the provider. Consumers neither manage nor control the underlying cloud infrastructure including networks, servers, operating systems or storage, but have control over the applications they deploy and may also have control over the configuration of the application hosting environment.

[0075] Infrastructure as a Service (IaaS): The capabilities provided to consumers are processing, storage, network, and other basic computing resources on which consumers can deploy and run arbitrary software including operating systems and applications. Consumers neither manage nor control the underlying cloud infrastructure, but have control over the operating system, storage, and applications they deploy, and may have limited control over selected network components (such as host firewalls).

[0076] The deployment model is as follows:

[0077] Private Cloud: Cloud infrastructure is run solely for an organization. The cloud infrastructure can be managed by the organization or a third party and can exist inside or outside the organization.

[0078] Community Cloud: A cloud infrastructure is shared by several organizations and supports a specific community with common interests (e.g., mission, security requirements, policies, and compliance considerations). A community cloud can be managed by multiple organizations within the community or by a third party and can exist inside or outside the community.

[0079] Public cloud: Cloud infrastructure is provided to the public or to large industry groups and is owned by an organization that sells cloud services.

[0080] Hybrid cloud: A cloud infrastructure consisting of two or more clouds (private, community or public) in a deployment model that remain distinct entities but are bound together by standardized or proprietary technologies (such as cloud burst sharing for load balancing between clouds) that enable data and application portability.

[0081] The cloud computing environment is service-oriented, with characteristics centered on statelessness, low coupling, modularity, and semantic interoperability. The core of cloud computing is the infrastructure that includes a network of interconnected nodes.

[0082] Reference now Figure 8 , in which an exemplary cloud computing environment 50 is shown. As shown, the cloud computing environment 50 includes one or more cloud computing nodes 10 with which a local computing device used by a cloud computing consumer can communicate, and the local computing device can be, for example, a personal digital assistant (PDA) or a mobile phone 54A, a desktop computer 54B, a laptop computer 54C and / or an automobile computer system 54N. The cloud computing nodes 10 can communicate with each other. The cloud computing nodes 10 can be physically or virtually grouped in one or more networks including but not limited to private clouds, community clouds, public clouds or hybrid clouds, or a combination thereof as described above (not shown in the figure). In this way, cloud consumers can request infrastructure as a service (IaaS), platform as a service (PaaS) and / or software as a service (SaaS) provided by the cloud computing environment 50 without having to maintain resources on local computing devices. It should be understood that Figure 8 The various types of computing devices 54A-N shown are merely illustrative, and the cloud computing node 10 and the cloud computing environment 50 may communicate with any type of computing device on any type of network and / or network-addressable connection (eg, using a web browser).

[0083] Reference now Fig. 9 , which shows a cloud computing environment 50 ( Figure 8 ) provides a set of functional abstraction layers. First of all, it should be understood that Fig. 9 The components, layers and functions shown are only exemplary, and the embodiments of the present invention are not limited thereto. As shown in the figure, the following layers and corresponding functions are provided:

[0084] The hardware and software layer 60 includes hardware and software components. Examples of hardware components include: host 61; RISC (Reduced Instruction Set Computer) layer-based server 62; server 63; blade server 64; storage device 65; network and network components 66. Examples of software components include: network application server software 67 and database software 68.

[0085] The virtualization layer 70 provides an abstraction layer that can provide examples of the following virtual entities: virtual servers 71 , virtual storage 72 , virtual networks 73 (including virtual private networks), virtual applications and operating systems 74 , and virtual clients 75 .

[0086] In one example, the management layer 80 may provide the following functions: Resource provisioning function 81: providing dynamic acquisition of computing resources and other resources for performing tasks in a cloud computing environment; Metering and pricing function 82: tracking the cost of resource usage within the cloud computing environment and providing bills and invoices for this purpose. In one example, the resource may include an application software license. Security function: providing identity authentication for cloud consumers and tasks, and providing protection for data and other resources. User portal function 83: providing access to the cloud computing environment for consumers and system administrators. Service level management function 84: providing allocation and management of cloud computing resources to meet the required service levels. Service level agreement (SLA) planning and fulfillment function 85: providing pre-arrangement and provision for future demand for cloud computing resources predicted according to the SLA.

[0087] Workload layer 90 provides examples of functionality that may be implemented by a cloud computing environment. Examples of workloads and functionality that may be provided from this layer include tasks related to implementations of the present invention where a neural network accelerator is incorporated into, for example, a cloud service or as a cloud service for distributed edge computing, such as for cognitive IoT devices.

[0088] The embodiments of the present invention have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. 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 terms used herein are selected to best explain the principles of the embodiments, practical applications, or technical improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

[0089] Furthermore, it is noted that Applicant's intent is to include equivalents of all claim elements, even if amended later during prosecution.

Claims

1. A method of optimizing operations in a neural network accelerator NNAccel, the neural network accelerator comprising a hierarchy of neural network layers as a computational level of NNAccel and a hierarchy of configurable memory modules, the memory modules comprising one or more on-chip static random access memory (SRAM) modules and one or more dynamic random access memory (DRAM) modules, each memory module being controlled by a plurality of operating parameters adjustable by a controller of NNAccel, the method comprising: Detect the bit error rate of the memory module currently being used by NNAccel; determining, by the controller, whether the detected bit error rate is sufficient to meet a predetermined threshold of accuracy of processing by NNAccel; and When the accuracy is below the predetermined threshold, dynamically changing, by the controller, one or more operating parameters of one or more memory modules to move to a state of higher accuracy, Among them, the metrics used to quantify the accuracy of NNAccel's processing include NNAccel's inference accuracy.

2. The method according to claim 1, wherein: NNAccel includes artificial intelligence AI accelerators.

3. The method according to claim 1, wherein: The bit error rate is detected by counting errors from an error correction code (ECC) unit in the memory module.

4. The method according to claim 1, wherein: The bit error rate is detected by a parity check unit and one of the built-in self-test (BIST) units.

5. The method according to claim 1, further comprising: When it is determined that NNAccel is operating within a predetermined accuracy, further determining, by the controller, whether NNAccel is operating within a target energy level; and When NNAccel operates outside of the target energy level, one or more operating parameters of one or more memory modules are dynamically changed by the controller to move to a more energy efficient state.

6. The method according to claim 1, further comprising: A truncated list of combinations of parameter values ​​is stored in NNAcel's non-volatile memory to provide a list of possible runtime configurations for NNAcel, each configuration in the list identifying an indication of the accuracy achievable with the configuration.

7. The method according to claim 1, wherein: The at least one DRAM module includes an off-chip DRAM module. The method according to claim 1 , implemented on a server on a network.

9. The method of claim 1, implemented as part of a cloud service.

10. The method according to claim 1 is implemented in a distributed edge computing scenario involving cognitive processing of Internet of Things (IoT) devices.

11. A neural network accelerator NNAccel, comprising: A hierarchy of neural network layers, which includes the computational level of NNAccel; and a hierarchy of configurable memory modules, the memory modules comprising one or more on-chip static random access memory (SRAM) modules and one or more dynamic random access memory (DRAM) modules, each memory module being controlled by a plurality of operating parameters adjustable by a controller of NNAccel, Wherein, the controller controls NNAccel by a control method, and the control method includes: Detect the bit error rate of the memory module currently being used by NNAccel; determining, by the controller, whether the detected bit error rate is sufficient to provide a predetermined threshold of accuracy for processing by NNAccel; and When the accuracy is below the predetermined threshold, dynamically changing, by the controller, one or more operating parameters of one or more memory modules to move to a state of higher accuracy, Among them, the metrics used to quantify the accuracy of NNAccel's processing include NNAccel's inference accuracy.

12. The NNAccel of claim 11, wherein: The controller includes a central processing unit CPU in a host computer associated with NNAccel.

13. The NNAccel of claim 11, further comprising the controller as a component in the NNAccel.

14. The NNAccel of claim 11, wherein: The one or more operating parameters adjustable by the controller include one or more of: voltage V, frequency f, delay L, and refresh rate R of the memory module.

15. A method of controlling operations in a neural network accelerator NNAccel, the neural network accelerator comprising a hierarchy of neural network layers as a computational level of NNAccel and a hierarchy of configurable memory modules, the memory modules comprising one or more on-chip static random access memory (SRAM) modules and one or more dynamic random access memory (DRAM) modules, each memory module being controlled by a plurality of operating parameters adjustable by a controller of NNAccel, the method comprising: Detect the current value of a parameter reflecting the quality of processing in NNAccel; determining, by the controller, whether the quality is currently sufficient to meet a predetermined threshold quality; and When the quality is below the predetermined threshold, one or more operating parameters are dynamically changed by the controller to move to a higher quality state.

16. The method according to claim 15, wherein: The quality is accuracy, and the accuracy is detected using an error rate of the memory module.

17. The method of claim 15, further comprising optimizing the operation of NNAccel by trading off the quality with at least one other operational performance parameter of NNAccel processing.

18. The method according to claim 17, wherein: The at least one other operational performance parameter includes one of: accuracy, energy consumption of NNAccel, processing speed of NNAccel, and a cost-based metric in a cloud computing scenario.

19. The method according to claim 17, wherein: The controller does one of the following: attempting to optimize both the quality and the at least one other operational performance parameter while maintaining the quality above the predetermined threshold quality; and If the at least one other operating performance parameter cannot be optimized, stabilizing to a lowest value of the at least one other operating performance parameter for which the quality is maintained above the predetermined threshold quality.

20. A computer program product comprising a computer-readable storage medium having program instructions contained therein, the program instructions being executable by a computing device to cause the computing device to perform the method steps of the method according to any one of claims 1 to 10.

21. An apparatus comprising modules individually configured to perform each step of the method according to any one of claims 1 to 10.

22. A computer program product comprising a computer-readable storage medium having program instructions contained therein, the program instructions being executable by a computing device to cause the computing device to perform the method steps of the method according to any one of claims 15 to 19.

23. A system comprising: processor; and A memory storing an application program which, when executed on the processor, performs the method steps of the method according to any one of claims 15 to 19.

24. An apparatus comprising modules individually configured to perform each step of the method according to any one of claims 15 to 19.