Regression-based OCD measures a nanostructure's geometry by iteratively adjusting a physical optical model's parameters until its simulated light-scattering signature matches the actual measured signature, rather than comparing against a pre-computed library of candidate geometries. This approach is more computationally intensive per measurement than library matching, since it runs a new optical simulation for each iteration rather than looking up a pre-built answer, but it can measure geometries outside any pre-defined library range and adapt more readily when a process changes the structure being measured in an unanticipated way.