The rapid development of artificial intelligence has sparked renewed debate about its risks, with both the United States and China expressing concerns.