8 ms·
Stanford engineers present new chip that ramps up AI computing efficiency
- nmstoker 4y agoWould be interested to hear the take that more experienced ML practitioners had on this, but from skimming the Nature article (https://www.nature.com/articles/s41586-022-04992-8 https://www.nature.com/articles/s41586-022-04992-8) it seems like there is some reconfigurability built into these chips but overall they're at a fair early stage. It doesn't yet sound like it's something one could take a model from one of the well known frameworks and simply drop it in / automatically convert it for use in these NeuRRAM chips but presumably something along those lines might be on the cards as things mature.
- visarga 4y agoThe article says: > They found that it’s 99% accurate in letter recognition from the MNIST dataset, 85.7% accurate on image classification from the CIFAR-10 dataset, 84.7% accurate on Google speech command recognition and showed a 70% reduction in image-reconstruction error on a Bayesian image recovery task. These are all small scale models that run on very low power, on edge devices. Not gonna load GPT-3 on it soon. It's for wake word detection and security cameras.
- WithinReason 4y agoThe trade-off can be that you're not as free in designing the architecture of your model, and you have to train it in a special way. This is actually a huge obstacle to making neural networks more efficient. You could design HW that would run networks 10x-100x more efficiently, but the networks would have to be specially trained for the HW, and the SW investment to create the SW infrastructure to go with your HW is 10x the effort of designing the HW. Nvidia knows this in the area of GPUs, and they have 10x as many SW engineers than HW engineers. Neural network HW startups have yet to learn it.
- m3kw9 4y agoCan anyone explain further as a simple example?
- ip26 4y agoNeural networks are commonly evaluated with matrix multiplication. A matrix multiply is orders of magnitude faster if all three matrices fit in your caches. So you want to tune the matrix size to the hardware.
- WithinReason 4y agoIn addition, once you did that (tuned your hardware to a matrix size) it can be inefficient to use smaller matrices. So even if you can make a network that uses smaller components the HW will not gain the corresponding speedup.
- zasdffaa 4y agoMatMult = the dot product, effectively. I can't believe that allowing smaller vectors is difficult or even non-trivial in hardware.
- svnt 4y agoYou’re assuming caches know anything about dot products.
- zasdffaa 4y agoThat seems a non-sequiteur to me. Can you elaborate?
- WithinReason 4y agoGPUs are a good example: SIMD means all 128 threads do the same work. If only 1 thread has work to do the other 127 threads still take up resources.
- wpietri 4y agoI hadn't read about RRAM before, but from what Wikipedia has on it [1], it's been a technology of the shining press-release future for a while. E.g.: "In 2013, Crossbar introduced an ReRAM prototype as a chip about the size of a postage stamp that could store 1 TB of data. In August 2013, claimed that large-scale production of their ReRAM chips was scheduled for 2015. [...] Also in 2013, Hewlett-Packard demonstrated a memristor-based ReRAM wafer, and predicted that 100 TB SSDs based on the technology could be available in 2018 with 1.5 PB capacities available in 2020 [...]" [1] https://en.wikipedia.org/wiki/Resistive_random-access_memory https://en.wikipedia.org/wiki/Resistive_random-access_memory
- rbanffy 4y agoTrue, but HP was looking at different applications. I’m not sure why they didn’t pan out - at the time it looked massively promising. Here they are playing with the analog aspect of it the same way we store multiple bits in flash cells, but doing math in their analog behaviour. Maybe the issue with using it for storage was long term stability, and this is not really an issue here.
- spyder 4y ago“Having those calculations done on the chip instead of sending information to and from the cloud could enable faster, more secure, cheaper, and more scalable AI going into the future, and give more people access to AI power,” said H.-S Philip Wong, Huh... why is he comparing it to network (cloud) transfers and not to the current CPU-RAM transfers? I thought the benefit of compute-in-memory is reduction of CPU-RAM transfers and that's what they're also saying in the beginning of the article.
- svnt 4y agoYou sell much higher quantities of chips if they are not being time-shared in the cloud. This statement is a between-the-lines message to potential partners and investors that they intend to sell to end users and not data centers, and capture that increase in volume.
- KKKKkkkk1 4y agoThey are targeting edge devices like your phone or watch. Computations that use too much battery (e.g., because they do too many cache misses) have to go to the cloud. I am guessing the reason they're targeting edge is because the technology is energy efficient but slow. Any experts can chime in?
- c_o_n_v_e_x 4y agoLocal inferencing eliminates the round trip latency to/from the cloud. Also, for wireless sensors, you save power by not having to turn on your radio transmitter and receiver on. For non-battery / line powered devices, thermal design is a big consideration at the edge. Running high powered GPUs in non-environmentally controlled environments is difficult. Low power AI chipsets can help reduce product cost, design cost (simpler thermal designs), and decrease product SWaPs.
- senttoschool 4y ago>Huh... why is he comparing it to network (cloud) transfers and not to the current CPU-RAM transfers? I thought the benefit of compute-in-memory is reduction of CPU-RAM transfers and that's what they're also saying in the beginning of the article. He's saying that they can now perform heavier calculations on the edge device using their novel chip design. Currently, these calculations have to be sent to the cloud to perform because chips today can't compute them without wasting too much battery. For example, Siri has recently implemented on-device AI processing for many queries because the neural engine inside Apple SoCs have gotten so much more powerful and efficient. Previously, all Siri requests were sent to the cloud.[0] [0]https://www.theguardian.com/technology/2021/jun/07/apple-overhauls-siri-to-address-privacy-concerns-and-improve-performance https://www.theguardian.com/technology/2021/jun/07/apple-ove...
- mikewarot 4y agoThe assumption made in using a resistive network as a matrix multiply is that D/A and A/D circuits are available at the speeds and resolutions intended. For running a network a few times per second, to utilize a trained network in an application, this is entirely reasonable. However, if you're going to be running hundreds of Mhz of samples at 8 bits or more of resolution, power goes up very quickly. Typical values are 100millwatts/channel for 8 bits of resolution at 100 Mhz in each direction.
- JonChesterfield 4y agoI for one love the wild variety of AI hardware that lives one sufficiently smart compiler away from viable. It's great to move complexity out of the hardware and into the compiler stack.
- aborsy 4y agoCan someone explain this a bit further? I understand RAM-CPU transfer is avoided, so some type of memory is brought next to CPU. RRAM is non-volatile (unlike on-chip SRAM/cache), so it’s like persistent random access flash memory. Why flash or even some type of NVMe can’t be brought very close to CPU? Is it due to space and driver voltage requirement? Another question: a processor is a collection of transistors. How do you organize these transistors to accelerate a particular type of computation, such as matrix multiplication versus vs basic arithmetic operations (addition and multiplication)?
- pca006132 4y agoNot sure about the flash/NVMe thing. We can speed up specific type of computation by making it parallel, and use special circuits to implement the computation rather than using a general purpose circuit. The idea is that a general purpose circuit has overhead, such as instruction decoding, pipelining, unused area for other functionalities, which can be eliminated if we just want to implement a specific computation.
- jeffbee 4y agoCertificate expires on: Sunday, August 21, 2022 at 8:44:22 AM PDT I don't know what it's going to take, and I had assumed that a big dedicated organization like Let's Encrypt would have squared this situation by now, but you should always, always, always make your certificates expire in the middle of a work day in your local time, never, never, never just exactly 90 days from this instant, which appears to be what happened here.
- jillesvangurp 4y agoI've had the lets encrypt renew script fail silently once. I found out when we started getting warnings like this. Turned out to be a mis-configured server that had broken some months before. Our fault of course. But it still happened. Probably a good idea to monitor your certificate expiration. You don't want to cut it too close.
- CaliforniaKarl 4y agoI spent around 15 minutes looking around, and discovered: In RFC 8555 (defining the ACME protocol), when applying for a certificate, although they are optional, you can specify a notAfter time. https://www.rfc-editor.org/rfc/rfc8555.html#section-7.4 https://www.rfc-editor.org/rfc/rfc8555.html#section-7.4 Per that section: > The server MUST return an error if it cannot fulfill the request as specified, and it MUST NOT issue a certificate with contents other than those requested. If the server requires the request to be modified in a certain way, it should indicate the required changes using an appropriate error type and description. I don't think your beef should be with Let's Encrypt. The timestamps they get are all UTC (or should be UTC), and I don't want them inferring timezone from the IP address of the requestor. So, that leaves two things: • Let's Encrypt might blanket-refuse any ACME orders that specify a notAfter time, even if the time difference (from notBefore to notAfter, or from $NOW to notAfter) is within their policies • ACME clients might not support specifying a particular notAfter time. I leave it up to you to figure out the two points above, to decide if your ire should go to Let's Encrypt, or to ACME clients.
- femto113 4y agoThe real problem here is browsers treating recently "expired" (but otherwise still perfectly "valid") certificates as comparable in danger to visiting a known malware den. This is absolutely the sort of thing that could harmlessly wait until the next Monday to address if it weren't for the overwrought interstitial warning page.