Google have been offloading certain AI tasks to devices
No, Google has simply been blatantly lying about this to convince you to buy new phones. It’s very easy to prove, because as soon as you disable any network connections, these functions cease to work.