Training with adaptive runtime and precision profiling
Abstract
A mechanism is described for facilitating efficient training of neural networks at computing devices. A method of embodiments, as described herein, includes detecting one or more inputs for training of a neural network, and introducing randomness in floating point (FP) numbers to prevent overtraining of the neural network, where introducing randomness includes replacing less-significant low-order bits of operand and result values with new low-order bits during the training of the neural network.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 19 · Forward citations: 0.
Claims (8)
- Claim 1Independent Claim
An apparatus comprising: a graphics hardware processor to: detect one or more inputs for a first training of a neural network; track, using a hardware counter, precision of floating-point (FP) values during the first training of the neural network by the hardware counter observing exponents of one or more FP registers of hardware to determine a range of values of the exponents stored in the one or more FP registers, wherein the hardware counter is at least one of continuously or periodically reset; store, in a precision tracking table based on the tracked precision of FP values, a number of bits that are used to represent single-precision FP value used with each layer of the neural network during the first training of the neural network; provide automated mixed precision for the neural network by enabling selection of a precision for each layer based on the number of bits stored in the precision tracking table, wherein the precisions selected for each layer can differ from other layers
- Claim 2Depends on #1
The apparatus of claim 1, wherein the hardware counter is to periodically observe the exponents of the one or more FP registers of the hardware to determine the range of values stored in the one or more FP registers.
- Claim 3Depends on #2
The apparatus of claim 2, wherein the hardware counter is implemented using one or more bits based on a range of precision values.
- Claim 4Depends on #1
The apparatus of claim 1, wherein an adaptive runtime layer of the graphics hardware processor is to determine a best parallelism from a plurality of parallelisms relating to the neural network on a hardware platform.
- Claim 5Depends on #4
The apparatus of claim 4, wherein the plurality of parallelisms comprises one or more of a data parallelism, a model parallelism, and a hybrid parallelism.
- Claim 6Depends on #4
The apparatus of claim 4, wherein the adaptive runtime layer is to receive the one or more inputs and is communicatively coupled to one or more of the precision tracking table and a profiling table.
- Claim 7Depends on #1
The apparatus of claim 1, wherein the neural network comprises one or more of a convolutional neural network (CNN), a deep neural network (DNN), and a recurrent neural network (RNN), wherein the neural network is based on and in communication with one or more processors including the graphics hardware processor, wherein the graphics hardware processor is co-located with an application processor on a common semiconductor package.
- Claim 8Independent Claim
A method comprising: detecting, by a graphics hardware processor, one or more inputs for a first training of a neural network; tracking, using a hardware counter, precision of floating-point (FP) values during the first training of the neural network by the hardware counter observing exponents of one or more FP registers of hardware to determine a range of values of the exponents stored in the one or more FP registers, wherein the hardware counter is at least one of continuously or periodically reset; storing, in a precision tracking table based on the tracked precision of FP values, a number of bits that are used to represent single-precision FP value used with each layer of the neural network during the first training of the neural network; providing automated mixed precision for the neural network by enabling selection of a precision for each layer based on the number of bits stored in the precision tracking table, wherein the precisions selected for each layer can differ from other
Technical Overview & Description
RELATED APPLICATIONS This application claims the benefit of priority from and is a continuation of U.S. patent application Ser. No. 15/581,031 filed on Apr. 28, 2017, now U.S. Pat. No. 11,017,291, the full disclosure of which is incorporated herein by reference. FIELD Embodiments described herein relate generally to data processing and more particularly to facilitate improved training with adaptive runtime and precision profiling. BACKGROUND Current parallel graphics data processing includes systems and methods developed to perform specific operations on graphics data such as, for example, linear interpolation, tessellation, rasterization, texture mapping, depth testing, etc. Traditionally, graphics processors used fixed function computational units to process graphics data; however, more recently, portions of graphics processors have been made programmable, enabling such processors to support a wider variety of operations for processing vertex and fragment data. To further increase performance, graphics processors typically implement processing techniques such as pipelining that attempt to process, in parallel, as much graphics data as possible throughout the different parts of the graphics pipeline. Parallel graphics processors with single instruction, multiple thread (SIMT) architectures are designed to maximize the amount of parallel processing in the graphics pipeline. In an SIMT architecture, groups of parallel threads attempt to execute program instructions synchronously together as often as possible to increase processing efficiency. A general overview of software and hardware for SIMT architectures can be found in Shane Cook, CUDA Programming , Chapter 3, pages 37-51 (2013) and/or Nicholas Wilt, CUDA Handbook, A Comprehensive Guide to GPU Programming , Sections 2.6.2 to 3.1.2 (June 2013). Machine learning has been successful at solving many kinds of tasks. The computations that arise when training and using machine learning algorithms (e.g., neural networks
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (19)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (10)
- Han, Song, Huizi Mao, and William J. Dally.
- “
- Deep compression: Compressing deep neural networks with pruning, trained quantization and huffman coding.
- ”
- arXiv preprint arXiv:1510.00149 (2015). (Year: 2015).
- Shan, Lei, et al.
- “
- A dynamic multi-precision fixed-point data quantization strategy for convolutional neural network.
- ”
- CCF National Conference on Computer Engineering and Technology. Singapore: Springer Singapore, 2016. (Year: 2016).