The U.S. and China are accelerating research on how to integrate artificial intelligence into their militaries.