Yibo Dong et al. implement a compact and robust diffractive neural network chip with a virtually unlimited lifetime for optical inference. The chip demonstrates high accuracy and high stability even after high temperature aging, aiming at applications in extreme environments.