AI companies are engaged in an expensive arms race to attract users and alleviate public anxiety about the technology.