Scientists in China and Russia are using AI to fine-tune ultrahigh-speed light flashes called attosecond pulses.