A lot hangs for Nvidia on the success of its latest Tesla T4 AI chip, which certainly boasts impressive specifications – even if we only have the company’s word to take for some of the more specific performance claims. We can all agree it is almost 12 times faster than Nvidia’s older P4 chip, at the half precision FP16 floating point arithmetic relevant for AI calculations, at 65 teraflops against 5.5 teraflops, with a similar gain for integer arithmetic.
But just as important are the associated new tools and software packages for development and optimization of AI and machine learning models, with a focus on video. It is no surprise that one of Nvidia’s headline datapoints is the ability of the chip to decode 38 HD video streams simultaneously.
This brings us on to a yardstick we should use when considering Nvidia’s chips, which is the company’s stated strategic aim that given its size with annual revenues approaching $10bn its products must address a wide market, while it is not big enough to afford too many failures.
All its past GPUs have been cast in that light such that none have been totally dedicated to AI and have been designed with a more general market in mind. The T4 seems to break that rule which indicates Nvidia is now confident the AI market is big enough to address in its own right. In fact not only is the T4 highly optimized for deep machine learning but incorporates many features focused primarily on video, including transcoding and recognition, as well to a lesser extent on natural language processing.
One thing common to video and language is that both generate data that incorporating specific objects as images and words that need to be identified and separated from within the surrounding data body. That underpins many of the features in the T4. The chip can also be considered in the wider context of a great battle shaping up over inferencing in general, which can only happen after a machine learning model has been thoroughly trained.
Recognizing images such as cats or particular words could be said to be specific inferences aligned with a reference base, but equally unexpected patterns could be found. There might for example be visual objects or sounds that the system has not been trained on, or it could be patterns in a completely different sort of data set.
Nvidia is eager to establish early leadership in inferencing and ready to take a new turn in the AI chip market by addressing consumer applications for the first time with technologies originally for high performance industrial and commercial computing. It may not be quite clear yet how that will happen, but a clue can be found by noting the support for ray tracing within the chip, with great potential in animation, 3D graphics, VR (Virtual Reality) and AR (Augmented Reality), as well as image rendering and enhancement.
Optical ray tracing is a way of simulating 3D images by following the path of an imaginary ray of light across the simulated field until it encounters an object such as a ball. At that point the system will calculate what would happen to the ray of light according to factors including the angle of incidence and the nature of the material to determine the degree of reflection, absorption, refraction and in rare cases fluorescence where light is remitted at a different wavelength, usually longer.
This can simulate effects such as shadows and reflections much more realistically than any other known algorithmic method, while the fact each ray can be analyzed independently lends itself to parallel processing. So although optical ray tracing is computationally extremely intensive, there is scope for making it run efficiently given the right hardware and especially chip design.
That is why Nvidia has incorporated dedicated ray tracing processors in the T4, as part of its new Turing architecture, which succeeds its preceding Pascal architecture. In fact the T in T4 stands for Turing and not Tensor as some might suspect, given the prominence Nvidia gives for the chip’s incorporation of 320 tensor cores powered by just 75 watts.
Tensors are integral to AI and especially machine learning because they enable large numbers of variables with multiple dimensions to be manipulated arithmetically in a manageable way. Many problems across all AI sectors involve multi-dimensional data sets because there are many variables to consider, such as blood temperature, pressure, sugar levels and other parameters in healthcare diagnostics.
Tensors extend the mathematics of two-dimensional matrices to arrays of numbers spanning in principle any number of dimensions. A matrix is a two-dimensional grid of numbers conforming to simple rules of addition and multiplication in rows and columns enabling manipulations of variables with two values such as speed and direction. Tensors extend this to grids with higher dimensions of three or more. Tensor processing cores are integral to Nvidia’s new Turing architecture.
Machine learning and inferencing require not just manipulation of tensors but also their effective organization for given models or problems. Therefore, Nvidia has also launched new tools for development, including an upgrade of its TensorRT software package, as well as a new version of its CUDA that includes libraries and models optimized for its Turing architecture. CUDA was originally created by Nvidia as a parallel computing platform allowing GPUs to be used for general purpose applications. It did this by allowing direct access to the GPU’s virtual instruction set through a software layer incorporated in the chip. This layer also helps with many AI applications, especially image and video processing.
A point to note is that AI chip improvements benefit training and inferencing over different time scales. While inferencing will often need to be performed in real time or as close as possible, training can take hours, days or even weeks. Cutting that down is just as critical and so equally important are two technologies Nvidia has developed to reduce that, called data augmentation and tensor parameter interleaving.
As so often they have been around for a while and what is new is their incorporation in the chip. Data augmentation is particularly relevant to image and video, involving artificially manipulating training images through various shifts including rotation and flips as simple examples. Then tensor interleaving is essentially a way of accelerating various basic tensor manipulations, representing all tensors in a common optimized format.
Nvidia claims somewhat vaguely that training runs that used to take days or even a few weeks can now be executed in just a few hours. This will certainly enable a lot more retraining and enhancement of models, but as with all claims, there’s probably some small print lurking somewhere.
Of course Nvidia will face increasing competition as this market expands, including Intel and AMD. More critically Intel is entering the GPU space in 2020 while others including Qualcomm, IBM, STMicro and Samsung along with some startups are coming out with custom AI accelerators.
But in T4 Nvidia has invested a great effort to maintain its lead in AI chips by building on its GPU base, having caught the really big players like Intel napping. It even has invented a rule governing the growth in demand for compute power in the big data era in Buck’s law, coined by its datacenter business unit president Ian Buck. This posits that every bit of data created will consume a gigaflop of compute power over its lifetime. This may be far less precise than say Moore’s Law but does give an inkling of the forces now driving chip design.