References used to be one of the last things journal editors checked before publishing a paper. Artificial intelligence is changing that.