Artificial intelligence may be tech’s hottest sector, and Chinese internet giants and startups alike have been engaged in fierce competition to poach top talent from Google, Facebook, Microsoft and elite universities around the world.

Few of these hires had the status of Andrew Ng, whom Baidu Inc. recruited in 2014 as its chief scientist...