A smaller, cheaper AI usually means a dumber one. A new technique flipped that—and your phone might be the winner.