Advanced on-device AI