240 points · by redbell · 3y ago · 130 comments
> And in our new Tensor G3 chip, every major subsystem has been upgraded, paving the way for on-device generative AI.
This is definitely weasel-worded, but note that this does not actually have to mean that all the generative AI stuff can be done on Tensor G3. They could (credibly, but, again, weasel-y) claim that the stuff they've done on G3 is prep work that is "paving the way" for a future chip to be able to do it all.
But either way, I'm not terribly surprised? Generative AI on a mobile SoC (even with special-purpose hardware) still sounds like a bit of a stretch at this point, no? At least, doing it on-device with acceptable performance and power consumption seems a little unlikely?
https://apps.apple.com/ca/app/draw-things-ai-generation/id64...
I believe the Tensor chip is powerful enough to do the same but I suspect the efficiency is low enough that they don’t want to run it locally.
Apple does a lot of computation on your own devices (in the name of privacy and what not) and ends up saving a lot of server compute.
Googles strategy so far has been just burning cloud compute costs.
Google ALSO performs transcription/live captioning/speaker diarization on-device, for privacy, for instance.
The features being discussed here are the generative AI features, like Magic Editor and their heretofore not-yet-launch Video Boost mode.
Post-launch embargoes to deceive consumers about actual performance is a MUCH bigger deal.
> As we covered exclusively earlier this week, in an extraordinary move, Google went out of its way to block reviewers from being able to easily install popular benchmark apps through its Play Store during the review embargo period. This actually also extended into the post-launch period too, however Google lifted the ban after our article went live. Tests using Primate Labs’ popular cross-platform benchmark Geekbench 6 showed that -- despite having quite new CPU architecture -- Tensor G3 performance is closer to the mid-range Qualcomm Snapdragon 7+ Gen 2 than it is to its current flagship chip the Snapdragon 8 Gen 2.
> Our work with Tensor has never been about speeds and feeds, or traditional performance metrics. It’s about pushing the mobile computing experience forward. And in our new Tensor G3 chip, every major subsystem has been upgraded, paving the way for on-device generative AI. It includes the latest generation of Arm CPUs, an upgraded GPU, new ISP and Imaging DSP and our next-gen TPU, which was custom-designed to run Google’s AI models.
Then why the internet requirement? Were they trying something that failed last minute forcing them to ship it the way it is? Or was this always just advertisement material?
Meanwhile, on [1] they say:
> Pixel 8 and Pixel 8 Pro are equipped with Google Tensor G3, Google’s fastest, most efficient, and most secure chip yet. Every major component of the chip has been upgraded for enhanced performance and efficiency. Not only has the number of machine learning models on device more than doubled since 2021, but their complexity and sophistication have increased as well. And Tensor is running many of these complex models at the same time.
Sounds to me like it was very much about performance...
[1] https://store.google.com/intl/en/ideas/articles/google-tenso...
Seems likely. Your chip underperforms? Just block people from using benchmarking apps, and also tell the press you never cared about speed. Problem solved.
State of the art for low end generative AI is still running on some sort of desktop class GPU with optimised models and getting not-so-great results. A phone can't do that.
Lots of ML happens on device, more is moving to the device. Generative AI is not ready for that yet from what I can tell (based on external experience, not Google specific).
"...The result of this full-stack optimization is running Stable Diffusion on a smartphone under 15 seconds for 20 inference steps to generate a 512x512 pixel image — this is the fastest inference on a smartphone and comparable to cloud latency. User text input is completely unconstrained."
Hasn't shown up in a shipping cellphone yet AFAIK.
This blog post is interesting, but there are so many caveats to it. It's a 1B parameter model which is tiny. Inference takes 20 seconds, which sucks for UX, but also that will be 20s of sustained extremely high load on the device, which means battery drain that would probably make this unshippable as well. It's also worth noting that the images in the blog post were not generated by this process as far as I can tell, they're just stable diffusion examples.
It's good this research is being done of course, but I think we're a few years away from this being shipped in any real form on device.
Yeah they are being a bit slippery about it, but I don't think it's really a surprise that ML models that require a GTX 4090 to run aren't going to work on a phone.
This seems yet another nothingburger news to generate clicks and HN rants.
All of the AI photo-related tasks that the Google employees demoed, i.e. inpainting et al, happened in realtime.
Rewatching the keynote just now, I see some of the Magic Editor-related scenes have the following disclaimer in tiny white text, "Features simulated and sequences shortened throughout ad. Magic Editor coming soon" - see https://www.youtube.com/watch?v=pxlaUCJZ27E&t=2416s
As an anecdotal data point: they recently silently defaulted storing photos in Google Photos instead of on device (tweet in Russian: https://twitter.com/igrekde/status/1715456025594134690)
generative ai is very computationally expensive, even for inference. I too wonder if they can get there, but nobody has really done it.
So they can include it in their advertising profile about you, and later insert ads into the generated content.
It wouldn’t surprise me at all if they decided to disable on device features unless you sent them your data so they could monetize it, share with oppressive regimes, etc.
But generative is only one class of AI workload; predictive/inference is probably what the tensor is used for most. I would not be shocked to find out that the "find object in this photo" part of magic eraser worked on device but the "figure out what to put in picture after object removed" bit is done server side.
The only thing the Tensor G3 seems to be better at is avoiding Qualcomm's habit of EoLing consumer smartphone chips.
Either way, I haven't seen anything to be impressed by when it comes to the Tensor SoCs themselves. The performance is lackluster, and in spite of Google's marketing, the AI acceleration isn't clearly better than what Qualcomm or Apple are offering.
None of that changes that Qualcomm does not support consumer smartphone chips beyond a couple of years.
The Google Pixel 8 Pro can run generative AI models locally on the device, but not all of them.
Google announced at the Made by Google event in October 2023 that the Pixel 8 Pro's custom-built Tensor G3 chip can run "distilled" versions of Google's text- and image-generating models. These models can power a range of applications on the phone, such as image editing and smart replies in Gboard.
However, some generative AI tasks, such as running large language models like Bard, still require too much computing power to run locally on a smartphone. These tasks are offloaded to the cloud, where Google has access to more powerful servers.
Here are some examples of generative AI models that can run locally on the Google Pixel 8 Pro:
Magic Eraser Zoom Enhance Best Take Audio Magic Eraser Gboard Smart Replies AI summaries in Google Recorder
Google is still working on developing new ways to run generative AI models locally on devices. As the Tensor chip continues to improve, we can expect to see more and more generative AI features running on-device in future Pixel phones. ʘ ‿ ʘ
This really shoulnd't be a hard thing to check on a HACKER news forum which constantly talks about modern AI.
How can they advertise on-device if they’re immediately sending your data elsewhere?
This is fine.
Generative AI has gotten good by being beastly huge, consuming gobs of resources. It's not particularly fast even on >$1000 consumer GPUs.
It feels like it would be an enormous waste of time and effort to try to scale these generative tasks down to small on-device footprints, where they can fit and run in reasonable time, knowing how much worse the results would be.
I don't see what the alternative is here. But it certainly does leave the question open of what exactly are the great tensor tasks for the edge. With chipmaker like AMD and Qualcomm and ARM all putting on sizable neural/tensor cores too, the question is a somewhat concerning one.
Wakeword especially is a continuously running process that needs a relatively small foot print CNN over a fixed window, where power is extremely important.
After reading (and attempting to quickly implement the models ensembles within) both the RealFill[0] and Break-A-Scene[1] papers published from Google researchers just prior to the Pixel 8 launch I was expecting either a leap in their G3 tensor core akin to 2013 Moto X NLP+contextual awareness cores[2] (which provided better implementations of Active Display, gesture recognition, and voice recognition in loud environs than 95% of current mobile devices) or the Coral[3], the edge TPU they developed that got shockingly amazing inference performance from (though HW production handed off to ASUS in 2022--thanks to the chip shortage, the general arbitrary nature of the company, and their wholesale divestment from IoT) I expected more.
All that to say this: your assumptions of inference performance on >$1000 hardware are fundamentally flawed (the fact that you reach for the buzzy "generative" prefix suggests they're erroneously informed by twitter influencers and attempting to deploy current LLMs.)
Custom hardware can and has been developed in the past (on mobile devices) that could've been tailored to the task at hand. If they failed to meet performance, power draw, or processing time requirements, they should've reframed their pitch instead of exposing themselves to what is likely going to be yet another class action suit focusing on their hardware.
[0] https://realfill.github.io/ [1] https://omriavrahami.com/break-a-scene/static/paper/Break-A-... [2] https://en.wikipedia.org/wiki/Moto_X_(1st_generation)#Hardwa... [3] https://coral.ai/
I can't help but notice that you included a lot of references, but none for this claim.
Neither of the features mentioned in the article is claimed to be on-device in the official Pixel 8 Pro announcement blog[0]. The only feature that the blog post claims is on-device is the Best Take feature, which the article does not say requires an internet connection.
But of course that's just one bit of marketing material, and I'm sure you've seen these features advertised as happening on-device. Maybe you could post a link?
You think google doesn't know that? are you aware of what's inside of Google's phones?
I'm not sure what performance benefit you expect out of custom hardware. How many orders of magnitude? You're going to probably need at least a few, probably more, to make generative AI work well in the palm of your hand.
Oh, and if you've figured that out, Apple, Google, OpenAI, and other AI companies would like a word.
This is a direct quote from an official press release [0]. They claimed Tensor G3 is "up for the task" that is "on-device generative AI".
I'd say "if you can't do it, simply don't promise it", but the fact is, this is the third time Tensor has been outright incapable of what was promised. People pointing that out are more than justified.
Prior to the launch of the Pixel 6, with their first generation of Tensor SOC, they made big promises concerning HDR video performance [1], implying heavily or outright stating (depending on whom generous you want to be) that they'd finally manage to be on par with Apple. They weren't, by a lot. Pixel 6 video performance was neither on par with Apple nor did it exceed the Pixel 5 on an upper-mid SD765G. Still, first-gen and a bit of overhyping happen to the best of us.
During the Pixel 7 launch [2], they claimed Tensor G2 enabled users to finally get computational photography for high-quality videos. Spoiler alert: It didn't. Fool me once...
Now, on the Pixel 8 with their third generation of Tensor, they finally have a solution that gets their nighttime video processing results competitive with the current iPhone in the form of Video Boost. Instead of doing that processing on their amazing Tensor SOC though, they offload that to the cloud [3]. At least they didn't promise on-device processing improvements to video with the G3, only a tone of GenAI capabilities...
I have followed Tensor extensively, and I am happy to see that they are at least utilizing their control over the silicon to provide a longer update cycle. But few of their local processing promises have held water, and even fewer appear to be impossible on contemporary SOCs from competitors such as Qualcomm (who are by no means angles and need all the competition the market can provide).
If the Pixel team were more honest about their SOCs capabilities and proactively transparent on what they run locally vs off-load to datacenters, that'd be appreciated. With Video Boost they did just that, though I fear that was mainly because of the upload times...
[0] https://blog.google/products/pixel/google-tensor-g3-pixel-8/
[1] https://9to5google.com/2021/08/02/google-pixel-6-video-hdr-t...
[2] https://www.youtube.com/live/2NGjNQVbydc?si=2Gg1mPrdOkmu1L44...
It's all about utility and how much I can do with my phone. I don't care about how many cpu megarams my phone has. Can I fix a picture I took of my wife and kids as they passed by on the Hulk rollercoaster?
For tensors we don't have such an exact comparison but it does seem that Samsung's fab plays a role in this.
And battery life is still very much a hot topic.
Moreover, the Snapdragon uses less battery overall and stays cooler. But the differences seem marginal.
Both the computing requirements and the data requirement on modern AI make it a challenging fit. So it will be a curiosity about how Apple tries to balance a feature set that they can power on the phone, net take advantage of the modern AI capabilities.
Or, just bail, and funnel it to the net.
Unless you want to charge a subscription for a feature it really isn't smart for Apple to try something like this.
Apple is super stingy about RAM capacity on their devices, which is a problem for GenAI
Also, the M1 NPU (the equivalent to Google's offloading) is not very fast in Apple's own Stable Diffusion port, and I'm not aware of any community LLM frameworks that even use the NPU. They all run Metal implementations on the M1's GPU.
Their device features has been behind android for quite some time, with only a slight edge in overall maxed out performance.
Take Duplex for example. It was meant to be this flexible and natural AI that even the store wouldn't notice. In 2023 it's a clunky chatbot experience, it has a patchwork of features depending on the user's location and sounds so much like a robocall that there is a problem with how many stores hang up on it.