7 ms·
Can FPGAs Beat GPUs in Accelerating Next-Generation Deep Learning?
- sqeaky 10y agoAll in that article keeps assuming lower precision, which is often okay, but then they kept testing the Titan X with 32 bit wide floats. Doesn't the newer nVidia stuff, like the Titan X support 16 bit wide floats, and don't they run at almost double the speed?
- znfi 10y agoThe Titan X(P) does not support 16-bit floats, or, well, it is supported but at 1/64th the speed of 32-bit floats. Source: https://en.wikipedia.org/wiki/Pascal_(microarchitecture) https://en.wikipedia.org/wiki/Pascal_(microarchitecture) section 2.4 Chips claims the Titan XP uses the GP102 chip, and section 3 Performance gives the speed for computing with 16-bit floats.
- foota 10y agoThe speed is likely faster, but there probably aren't as many 16 bit floating point units.
- gwern 10y agoThey (including the 1080ti which is basically a Titan) do support 4x faster INT8, though, so if comparing to a reduced-precision ternary net running a FPGA, that seems relevant. (They mention using INT8 in some of the GPU benchmarks but I'm not sure which graphs are supposed to represent that.)
- AIMunchkin 10y agoGP100 supports FP16 FMAD GP102 supports INT16 and INT8 MAD with 32-bit accumulation Overall, not impressed with Stratix 10. It won't be cost effective, it's not much more power-efficient, and Volta will likely leapfrog it across the board within a year. Wasn't this thing supposed to sample in late 2014? Back then it would have been a gamechanger at any price. Now, 1080Ti for $700 beats it across the board in throughput/$. NVIDIA's confusing messaging about using consumer versus professional HW is about the only thing that might make it viable for deep learning. Although I note the absence of training perf numbers here, just (apparently) inference.
- sp332 10y ago"GP100 however uses more flexible FP32 cores that are able to process one single-precision or two half-precision numbers in a two-element vector. Nvidia intends to address the calculation of algorithms related to deep learning with those." So 16-bit ops are more than twice as fast as 32-bit ops, if you pack them into the 32-bit cores two at a time and also use the dedicated 16-bit core.
- jsheard 10y agoYou're thinking of Nvidia's GP100 chip, which does run FP16 twice as fast as FP32. GP100 is only used on the Tesla P100 and Quadro GP100 cards though. The Titan X Pascal (and 1080ti) uses the smaller GP102 chip, which as znfi pointed out is practically useless for FP16.
- mabbo 10y agoI think the two can complement each other very well. GPUs are flexible and scalable when you don't know what the large-scale parameters of the network you want to build look like, and need a lot of them to do training. Let a fleet of cloud-based GPUs do the heavy-lifting of training and learning. But then once training is over, an FPGA or even an ASIC could implement the trained model and run it at a crazy-fast speed with low-power. A piece of hardware like that would be able to handle things like real-time video processing of a DNN potentially. Very handy for things like self-driving vehicles.
- DocSavage 10y agoAre there any TensorFlow-tuned ASICs like Google's TPU available or planned for general release? https://rcpmag.com/articles/2016/10/10/microsoft-google-ai-showdown.aspx https://rcpmag.com/articles/2016/10/10/microsoft-google-ai-s... If the deep learning architecture stabilizes for a problem with sufficient market demand, seems like ASICs could be economical.
- etrautmann 10y agoTrueNorth from Paul Merolla and co. at IBM, and Nervana Systems (now Intel) both have hardware optimized for neural networks
- p1esk 10y agoTrueNorth was built to run spiking neural networks, which have little to do with deep learning (even though they managed to get it to run a small convolutional NN), and Nervana has never actually built any hardware.
- hedgehog 10y agoYes, there are at least a dozen companies with specialized hardware accelerators in some stage of development. For smaller parts some of the existing DSP companies like CEVA and Cadence Tensilica are also are adapting their architectures for deep neural net workloads.
- krapht 10y agoThis news article is fairly useless. FPGAs have always been an option; that's why they are used in many DSP heavy workloads in communications etc. However, they are expensive. GPUs are popular and cost-efficient because millions of video gamers purchase them, driving prices down. The amount of 32-bit floating point compute on a modern video card is absurd for the price.
- user5994461 10y agoFPGA are cheap. What's expensive are the engineers who can speak HDL and make use of a FPGA.
- payne92 10y agoThe historical impediment to broader FPGA adoption has always been their proprietary nature. Until vendors are willing to release bitstream details enabling open source tools and an vibrant ecosystem, applications will be limited.
- blackguardx 10y agoI'm all for open toolchains, but I don't think this is the primary reason for FPGAs lack of broader appeal. I think the lack of open toolchains and the lack of broad appeal both stem from FPGA vendors almost exclusive focus on high margin, high-end applications. There doesn't seem to be much push to focus on larger markets with lower margins. That said, Lattice has recently started to push into these new areas, but they haven't been that successful. If they start to see more success, I think we will see open toolchains. Lattice also has the advantage of being able to lean on the open toolchain work done by people like Clifford Wolf [1] [1] http://www.clifford.at/icestorm/ http://www.clifford.at/icestorm/
- bayesian_horse 10y agoI've heard people say the open source ICE open source tool chain is less painful to work with.
- thesz 10y agoYou are wrong about focusing on the high end FPGA. There are plenty of FPGA's for low-level stuff. For example, one project I was involved in used FPGA for debouncing completed with the programming interface for ADSP-21xx. They replaced a dozen of different chips with one FPGA.
- legulere 10y agoI guess the problem is that FPGAs are even more horrendous to program than GPUs.
- flamedoge 10y agoGuess we need more assholes to write compilers
- legulere 10y agoThe problem isn't compilers but bitstream formats and the device description database (according to https://news.ycombinator.com/item?id=10653179 https://news.ycombinator.com/item?id=10653179)
- PeterisP 10y agoIt's not like most people in the field are programming GPUs. If a FPGA vendor made a FPGA solution (both the hardware and the software libraries to integrate with one or two machine learning frameworks) that did basic matrix/tensor calculations faster/cheaper than GPUs, then they'd be able to take a lot of market off nvidia. Users wouldn't have a need to program the FPGA directly if they can work at the level of matrix operations.
- user5994461 10y agoThat means making a whole networked black-box, based on FPGA(s) and exposing an API for external use. It's certainly possible to make. It's also a very expensive very specialized appliance. All of that to do some matrix manipulations.
- PeterisP 10y agoPeople are buying large quantities of very expensive GPUs just to do some matrix manipulations, so why not FPGAs? But the point is that you don't have that much FPGA-specific code - once someone does the matrix manipulations and the proper integration, everyone else can just run e.g. tensorflow code on it faster and/or cheaper without specific expertise; if a FPGA vendor can do this one-time investment in software tools, then they can compete for a slice of the large pie of hardware revenue that nvidia now has for itself.
- sgt101 10y ago"Another emerging trend introduces sparsity (the presence of zeros) in DNN neurons and weights by techniques such as pruning, ReLU, and ternarization, which can lead to DNNs with ~50% to ~90% zeros. " Does anyone have a reference for this ?
- znfi 10y agoJust randomly googling "ternarization deep learning" lead me to this article from ICLR 2017 https://openreview.net/pdf?id=r1fYuytex https://openreview.net/pdf?id=r1fYuytex which in turn seem to reference further work in the area.
- sgt101 10y agoThanks - I wouldn't have thought of ternarization in the context of sparsity! Good idea :)
- jhallenworld 10y agoWhat's missing from this analysis is a price comparison between FPGAs and GPUs.
- molticrystal 10y agoHow many Titan Xs can you purchase for the price of a Intel Stratix 10, including the kit required to start development? I saw some of their II-V kits costing 1-100k+ but didn't find the Stratix 10 mentioned in the article in their kit list: https://www.buyaltera.com/Search?keywords=stratix+kit&pNum=1 https://www.buyaltera.com/Search?keywords=stratix+kit&pNum=1 >Intel Stratix 10 FPGA is 10%, 50%, and 5.4x better in performance (TOP/sec) than Titan X Pascal GPU on GEMMs for sparse, Int6, and binarized DNNs My guess is that while electricity costs would be much higher, it would be better at this time to still just buy ceil(.1, .5, 5.4) Titans instead.
- ReverseCold 10y agoNvidia says the 1080Ti is pretty much a Titan with 1GB less vram, but I don't remember if that had to do with ML.
- pensono 10y agoI have a feeling that much of the cost is from the smaller market. It takes a massive amount of engineering resources to put out a new chip, and you need slot of sales to compensate. If FPGAs become commonplace in servers, then we will see a price decrease as it becomes easier to recouperate the overhead.
- user5994461 10y ago>>> How many Titan Xs can you purchase for the price of a Intel Stratix 10, including the kit required to start development? Actually, they are similar in price. medium to high end consumer FPGA and GPU will go up to around $1k. Then, there are the entreprisey GPU (Quadro and FireThing as I recall) going for a few k. It's similar for FPGA. The very high-end (Stratix/Virtex) will charge a few k as well, peaking at 5k or 10k for the top models (nude FPGA chip only). I recall negotiating some FPGA devkits in the 10-15k€ range, that seems to be the top end. If I remember well, there was an option to get 4 Virtex on the same devboard for 30k or 50k. That's as high as it gets. My memory ain't perfect but that's about this much.
- calvinlh 10y agoYou can find engineering samples of the chips on Digikey: http://www.digikey.com/products/en?FV=ffecdb78&pkeyword=fpga http://www.digikey.com/products/en?FV=ffecdb78&pkeyword=fpga Looks like the cheapest one is $17k (so 15 Titan Xs? 24 1080Tis?), and I'd expect the price will be around that after full release.
- user5994461 10y ago>>> Can FPGAs Beat GPUs in Accelerating Next-Generation Deep Learning? Whoever has worked with FPGA knows that they are completely different to program than CPU/GPU. They are not competing at all. You can't take some computer developers and have them work with FPGA. That'd be like taking a dude who knows XML and put him on optimizing C++ low level algorithms. For starters, a FPGA doesn't run programs, it describes hardware components.
- rebootthesystem 10y agoI think you are taking the question too literally. Hardware engineers can design FPGA-based hardware optimized for ML. A second set of engineers then uses these boards/FPGA's just as they would GPU's. They write code in whatever language to use them as ML co-processors. This second group doesn't have to be composed of hardware engineers. Today someone using a GPU doesn't have to be a hardware engineer who knows how to design a GPU. Same thing.
- tyingq 10y agoTrue, but if the benefit is there, the software folks will find the right people to assist. Bitcoin is a good example. I'm reasonably sure that FPGAs eclipsed GPU there because some "software person" called the right person in. And it certainly was a competition. Similar for the eventual move to ASIC. If there's enough incremental benefit, it will happen.
- snnn 10y agothere are opencl,blas libraries. You don't have to do everything from the beginning.
- bayesian_horse 10y agoThey are in competition, because increasingly, the deep learning models are run by people who are not experts in machine learning: in deployment, self-driving cars and other machinery. And if it is just about bang-for-buck and scale, FPGAs seem to be quite competitive.
- zamalek 10y agoThere is the evolutionary approach taken by Thompson.[1] There were some spectacular results; though each circuit only worked on the exact FPGA that it was trained on - so that particular approach has no practical applications. [1]: http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.50.9691&rep=rep1&type=pdf http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.50....
- anonymousDan 10y agoMicrosoft Research has some interesting recent work on using FPGAs for accelerating the convolution steps of DNN training at least: https://www.microsoft.com/en-us/research/publication/accelerating-deep-convolutional-neural-networks-using-specialized-hardware/?from=http%3A%2F%2Fresearch.microsoft.com%2Fpubs%2F240715%2Fcnn%2520whitepaper.pdf https://www.microsoft.com/en-us/research/publication/acceler... The big win for them is a 10x reduction in power usage, since in a datacenter/cloud environment this is more important. Still at the research stage though.
- moftz 10y agoSwitch those FPGAs out with ASICs and they could reduce power usage and increase speed by magnitudes.
- p0nce 10y agoHow about FPGAs programmed using OpenCL.