Meta's chief artificial intelligence scientist Yann LeCun is planning to leave the social media company to set up his own startup.