Apple’s first research paper tries to solve a problem facing every company working on AI