Optimization and computational methods in modern lithography extend beyond rule-based OPC correction to techniques like source-mask optimization (SMO), which jointly optimizes both the illumination source shape and the mask pattern together, and inverse lithography technology (ILT), which directly solves for an optimal mask shape using gradient descent and the adjoint method to efficiently compute how small changes to the mask affect the predicted printed image. Machine learning approaches have increasingly supplemented these classical optimization methods specifically to accelerate the computationally expensive simulation step that both SMO and ILT need to evaluate many candidate solutions.