Transformer neural network technology can be tapped to optimize the optical properties of materials.