Yes, funnily enough, it does involve training an AI to be nice - OpenAI says it is dedicating a fifth of its computational resources to developing machine learning techniques to stop superintelligent systems "going rogue."