Recorded at CDFAM Computational Design Symposium, NYC, October 29-30, 2025 https://cdfam.com/nyc-2025/ Organization: Flexcompute Presenter: Gregory Roberts + Qiqi Wang Real-Time Computer-Aided Optimization (CAO): How GPU-Native CFD Changes the Industry Presentation Abstract Computer-aided engineering (CAE) has been a foundational tool in aerospace and photonics design, but slow workflows, high costs, and constrained design exploration limit its potential. Traditional methods rely heavily on intuition and a few simulations to validate designs, leaving vast opportunities untapped. However, a paradigm shift is underway: integrating mathematical optimization techniques like adjoint optimization and inverse design into CAE is redefining what’s possible in engineering. This modern approach - Computer-Aided Optimization (CAO) - directly leverages advanced mathematical optimization to automate and enhance the design process. CAO replaces intuition-driven, validation-focused methods with a data-driven, goal-oriented workflow by specifying design goals and using algorithms to refine configurations iteratively. Techniques like inverse design, which uses objective functions and gradient-based optimization, and adjoint methods, which enable efficient sensitivity analysis, are central to this transformation. GPU-native simulations amplify the impact of these methodologies, making it feasible to address industry-scale problems in a fraction of the time previously required. High-performance GPU computing accelerates the iterative optimization process, enabling rapid exploration of vast design spaces with unprecedented fidelity. Applications range from optimizing aerodynamic performance in aerospace to creating innovative photonic devices like metalenses and quantum computing components. This synergy of mathematical optimization and GPU acceleration positions CAO as the future of engineering design. By reducing costs, accelerating development cycles, and enabling robust design exploration, CAO allows engineers to confidently tackle complex challenges. Whether designing aircraft or photonic circuits, these advancements fundamentally reshape how industries approach innovation, driving breakthroughs across disciplines and unlocking new possibilities for high-performance, efficient design. Speaker Bio Greg Roberts is a research scientist at Flexcompute working on building gradient-based inverse design tools for photonic optimizations. He earned his PhD from Caltech in August 2023 on this same topic. His dissertation focused on the inverse design of 3-dimensional structures for advanced and high efficiency mid-infrared imaging applications. By using gradient information, he demonstrated practical design of color and polarization sorting devices that could be tiled on the pixels of focal plane arrays. Using multilayer fabrication via a finely tuned two photon lithography process, he was able to measure these novel devices to confirm their complex, target behavior. Greg followed graduate school with a postdoctoral research role at NYU applying inverse design to enhance contrast in biomedical imaging. Before graduate school, Greg worked as an embedded software engineer at an augmented reality startup called Magic Leap. Here, he optimized computer vision and machine learning algorithms to run at high speeds on a low-power embedded processor. This is a public episode. If you would like to discuss this with other subscribers or get access to bonus episodes, visit www.designforam.com
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
This is the CDFAM podcast with recordings from the CDFAM Computational Design
SPEAKER_01Symposium held in New York City, October 29th to 30th, 2025. The following presentation is by Gregory Roberts of FlexCompute on real-time computer-aided optimization, how GPU-native CFD changes the industry.
SPEAKER_00All right, okay. Yeah, so my name is Greg Roberts. I'm a research scientist at FlexCompute. Originally, one of our co-founders, Chi-Chi, was gonna come also give this talk with me, but he unfortunately couldn't make it down. So I'll give the whole talk today. My background's a little bit different. It's the original title of the talk was to talk about cfd and gpu native simulation for it but
my background's a little more in electromagnetics so i'll kind of switch things up a little and do a little title title change on you guys and actually talk more just generally about
SPEAKER_00how simulation helps us in computer-aided optimization And I'll try and illustrate some core concept for FlexCompute that we can learn about a bit through electromagnetics and electromagnetic design. So to be fully transparent, we'll just fully say EM simulations and optimizations for today. So a little background on myself. I did my PhD at Caltech in applied physics, where I worked on photonic metamaterials.
SPEAKER_00I worked on this for volumetric metamaterials, where we were trying to push the capabilities of three-dimensional metamaterial design for improving image sensor technology, both in efficiency and capabilities. And for this we used a design technique called inverse design that you may or may not be familiar with, but if not, we'll talk about it a little bit today. And we actually made these three-dimensional devices that could
sit on top of camera image sensors and printed them using two-photon lithography with submicron
SPEAKER_00feature sizes and showed that while a little bit rough in performance, they do do what they're supposed to. A lot of the challenges that I actually faced in my PhD in getting these things to work are things that we're actively working on at FlexCompute, one of which is actually making the process of doing a design like this easy and accessible to users, and another one that these are inherently hard to make robust while keeping the performance, and that's something that will be a big theme of the talk today.
So I'll start with kind of talking a bit about the big idea behind what we do at FlexCompute. And then we'll talk a little bit more specifically about this idea of inverse
SPEAKER_00design in the context of electromagnetics. And finally, talk about a key challenge that kind of illustrates and hopefully pulls together the goals of FlexCompute and the types of things we're enabling for our users. Let's start with the introduction to FlexCompute and what we do. At FlexCompute, we build high-speed GPU accelerated physics solvers. These are used across a large variety of industries by a bunch
of different users. There are over 200 companies that use our solvers and over 10,000 engineers that
SPEAKER_00take advantage of the performance we have. The main ones you're most likely familiar with are ones for electromagnetics and ones for computational fluid dynamics, but there's other ones either being created or the initial versions of them have already been pushed out. We're building things for radio frequency solving as well as heat and charge simulations. So I'd say the beginning of this slide probably needs very
little introduction. But we are likely all familiar with the idea that hardware can be a very difficult
SPEAKER_00thing to do in practice. And hardware iteration can be slow, it can be costly, and it can also be risky. And on the other hand, we often think of software as something that is the opposite in many ways. The development time of software is usually fast. It's low cost and carries little risk. If we can simulate something, we would much rather do that than actually make it, unless there's some real reason we need to actually make the device.
SPEAKER_00So the big dream at FlexCompute is how can we bridge this gap? Can we make hardware innovation as easy as software? And I want to talk about this, as I mentioned before, with a common challenge in photonic design. But first, I want to just introduce this idea of inverse design in Tidy3D, which is our electromagnetic solver at FlexCompute, and show how we make computational design accessible to people
using the software
SPEAKER_00and make it as easy as setting up and running simulations. So in order to talk about this, I'd like to show a pretty common design problem for photonic integrated circuit design, one where we want to couple light from outside of a photonic chip into the waveguides that are on that chip, or vice versa, couple light that is flowing around this chip outside of the chip into free space. And in order to do that,
one way people do this is to design a grading coupler.
SPEAKER_00And the grading coupler's sole purpose is to do exactly that. Couple of known input excitation into the chip. So a bilayer grading coupler is one that you can see where it uses multiple layers of design, something that in order to extract the most amount of performance out, you often need either some sort of optimization algorithm. And it's difficult to do with purely just intuitive types of design. And here I'm just putting up a figure from a paper where they did a global optimization on this type of grading coupler design.
So they turned the problem into a few different geometric parameters that they could optimize and ran a global search to find the best gradient coupler they could
SPEAKER_00find with those parameters. So the difference in inverse design is we actually usually kind of sounds like we make the problem a little bit more complex. And we actually increase usually the amount of parameters we can work with and increase the parameterization space that we can design in. So maybe we remove some restrictions like periodic, and we make it not strictly periodic anymore. We design every tooth of the grading coupler instead of assuming some of them are the same. And we essentially make our problem sound a little bit harder.
SPEAKER_00And in order to actually optimize in this space, usually it means we can't take advantage of a global optimization solution because we now have many, many parameters we're working with. And instead, we turn to something like a local optimizer, one that uses gradient information to slowly evolve and iterate the device towards something very high performing. So a key question is, is there a way to efficiently compute that gradient when you have a lot of degrees of freedom or a high dimensional optimization problem like this?
SPEAKER_00And I won't explain this in too much detail, but I'll show an illustration to kind of motivate the kind of work we've done at FlexCompute to make this type of stuff easy. And the way to do this in electromagnetics is to actually use something called the adjoint method. In the adjoint method, we have usually a simulation that represents how our device will be excited in the real world. So we have some input excitation and forward simulation, we call.
SPEAKER_00And then depending on what we want our device to do, we can actually figure out another simulation that's built around something called an adjoint source that allows us to specifically optimize for a given figure of merit. And if we can find what this correct adjoint source is, we actually only need to run these two simulations, and we can combine together the information inside of the device in order to compute the gradient, and crucially to compute the gradient for every parameter that
we're optimizing
SPEAKER_00against using only just a fixed number, in this case, two simulations. So now we don't scale with the number of parameters we're optimizing over. We actually just scale with the simulation time, which is a place where flex computers is well suited to help because a big thing we do is make very fast solvers. So fast solvers mean also fast calculations of these gradients. So if we go back to the problem from before, we can look at a comparison of what you could do with a local optimization method versus a global one when you expand the space that you're working in.
SPEAKER_00So in this case, we compare the number of simulations and the number of degrees of freedom as well as total simulation time and final performance for the global versus local optimization technique. And we find that actually in the local case, you can get an even better performing device using less simulations by expanding this design space. So the key takeaway here is that gradients give you, the fast computation of gradients gives you the ability to explore these interesting optimization spaces.
SPEAKER_00So this is great, but actually what I skipped over is the complexity in trying to solve for what that adjoint simulation looks like. And there is a way to compute what you need to do in that with a mathematical formula, but the amounts of combinations and different things you might need to do aren't completely straightforward. So what we've done to make this easy is we've pulled in this concept of a differentiable simulation. And the idea of this is to be able to stick that whole simulation, creation, and run inside of an objective function and put that objective
function into a traditional automatic differentiation library and with a single line of code be
SPEAKER_00able to get out the gradient of your whole figure of merit. So this is what this looks like if you're familiar with something like neural network optimization, you have something that looks like a computational graph which chains together a bunch of optimizations and tracks what you're doing in the simulation. But what we've built inside of Tidy3D is a way to actually chain together the inputs to your simulation to the outputs so that you can run this automatic differentiation backwards. through your whole simulation creation process. And you can do this for any number of geometries,
SPEAKER_00any number of simulations that you want to put in, in order to compute these net gradients. So you can write a function that looks like this, where you have a simulation based on a parameterization. You run it, and you compute a figure of merit. And you can take a single line code and compute the gradient function of your objective function with respect to your input parameters and automatically you're able to access this local gradient based optimization.
SPEAKER_00Okay, so That's a great tool to build on. The last thing that I kind of want to talk about today is how can we address our original goal of software replacing hardware iteration. And I want to talk about this for a key challenge in photonic design, especially photonic integrated circuits and getting these types of design methods adopted in industry. And the major challenge is dealing with fabrication robustness
and the ability for
SPEAKER_00the device to work well post fabrication. And an interesting challenge in photonics is that the relevant feature scale we have is the wavelength. And if you look at something like a telecom photonic integrated circuit that might be operating at 1.3 or 1.5 micron wavelength, your relevant manufacturing scale is something on the order actually of deeply, deeply sub-wavelength in the maybe 50 to 100 nanometers or less. which means that things that seem like very small fabrication imperfections can
SPEAKER_00have very large effects on your output performance of your device. And we actually have a lot of different types of variability when you make one of these devices in a foundry. The layer thickness, the alignment of layer to layer if you're doing a multi-layer design, the etch depth and the lithographic bias. And we also have other sources of variability when we actually use these things in practice or test them in the lab, such as the actual angle of the input excitation that we've assumed in our design.
SPEAKER_00And if you want to actually be able to get the advantages of a powerful computational design technique, you have to be able to be robust to at least some of these fabrication errors that you can't predict at the outset. So here's a way we can use this nice formulation of a differentiable simulation to account for this type of variability. So it's not good enough to just have this nominal device because we don't know how it's going to get changed in the fabrication. And we have a bunch of different sources of variability,
SPEAKER_00each of which could be taken in any combination. So in general, what we need is something that is robust against combinations of these or being at the extreme points of what we call process corners. Additionally, you have to make sure you can obey minimum gap and width sizes and other manufacturing tolerances. So really what we're going to rely on is sampling a few of these different things that fall under those specifications and designing devices around that.
SPEAKER_00So now what we can do is we can take our parameterization. We can turn that into a big series of devices and simulations, ones that have modulations on the widths of all our grating teeth, for example. The source tilt could be changed. The layer thicknesses could be different. And we can run simulations very quickly in Tidy3D for all of these different cases. We can actually take that whole batch of simulation output and turn it into an objective function. We can optimize for average performance over them. We can optimize for the minimum performing device.
And as long as we can write a differentiable function to combine together all of
SPEAKER_00those different objective functions into one, we can actually now immediately get a gradient for how to improve, let's say, the worst performing device in our batch. And we can optimize that instead. And actually the results are pretty dramatic when you do an optimization like this. This is an example of a grading coupler where in the blue solid line, we're showing what happens if you don't take into account any fabrication variability. And in the solid orange line, we're showing what happens if you do this, if you do actually an optimization over the worst performing
device in your batch. What you see is something that you commonly see with robust design is actually your peak performance is a little bit lower when you take into account all this
SPEAKER_00variability. But if you look at the shaded lines on either side of the solid curves, those are showing the amount the device performance can vary at each of these wavelengths when you sample over all of these different process corners. And what you end up trading off is a little bit of peak performance for a much more robust design that will more likely work as you expect it to in practice. So another thing we can do that fits well into this optimization framework is sometimes you have fabrication imperfections that you actually
know what they are
SPEAKER_00before you fabricate. If you're using a lithographic process and you input a square as your design, likely what you're going to see is some sort of rounded corners, things like that. So we actually do have things we can take advantage of that we know will happen in our real fabrication. So we can insert a model like that. We can have a design variable that we're optimizing against, and we can have figured out a fabrication model, and this is something we're actively developing internally that allows you to map between what you think you're going to make and what you're
actually going to make. And we can put this whole chain into the objective function where we're designing
SPEAKER_00the actual design variable that we will send to the manufacturer, but we're running the simulations on the... on the device that we expect to actually get fabricated, one with these rounded corners and non-idealities of the fabrication process. We can turn that into simulations, and we can turn that into an objective function, and now we can optimize for our expected device that's going to come out of the fab. So if you do something like this, here's another type of photonic device where you're splitting
an input band of wavelengths into a bunch of different output channels and different waveguides. And we can show that if you actually take into account a fabrication model like
SPEAKER_00this, you can design a device that's very high performing, whereas if you don't take it into account and apply it later, you'll have a natural degradation of the performance in your design. So one other very interesting thing we can do now that we have gradients and we have potentially devices that we've taken from design to fabrication is we can actually use these gradients to understand different fabrication imperfections that we might have had that we didn't know about.
So let's say you have a simulated spectrum for your device and you have the actual measured spectrum that you got in the lab for that device and you know that there was some fabrication imperfection and it was maybe due to things that weren't
SPEAKER_00actually in your control in the design process. Maybe you assume there was some variability in the layer thicknesses, or there was some imperfection that you just didn't know about. We can actually use gradients to try and move our simulated performance towards what our actual realized performance was in the measurement data. And if we can do that, we can actually start to train and build these fabrication models just purely based on the observable of the measurement data versus what we expected to get out in simulation.
So here's a couple of things that are just in addition that our tools were building
SPEAKER_00on top of this differentiable framework. We have another product called PhotonForge, which actually allows you to integrate directly with PDKs and Foundry process parameters and set up devices and different circuit models with them. And we're adding this ability to optimize directly in that space with gradient-based design. We also are working on extending this framework to be able to compute gradients for radio frequency devices,
which requires knowing about different types of material types like PEC and lossy
SPEAKER_00metals. And continually working on tools to help with robust optimization, sensitivity analysis, the ability to integrate with AI from a post-processing or pre-processing standpoint, and building these fabrication models and the way to access them inside of Tidy3D. So just a quick summary of what we talked about today. I think hopefully I made it clear that we can take advantage of
these really fast
SPEAKER_00solvers we're building at FlexCompute. We can find gradients easy. We can make finding gradients as easy as writing a simulation and objective function. And through that, we can take some of what would normally be an iteration and hardware and move it back into the software domain, saving time, complexity, and cost. Just want to put up a few acknowledgments here for the talk. Everyone, in many ways at FlexCompute, has contributed to what I showed today, but just a couple special thanks for people who contributed
directly to this
SPEAKER_00presentation today. Chi-Chi, Yannick, Tyler, and Momchul, who have also worked on previous iterations of this talk I gave today. So, thank you.
SPEAKER_01To see the full recording of this and previous presentations,
CDFAM Computational Design Symposium - Tokyo 2026 Onur Yüce Gün · New Balance Technology pushes the prototype to the next level, but the prototype often remains alien. Beyond the prototype, Computational Design unfolds...
CDFAM Computational Design Symposium - Tokyo 2026 Danilo Gigantelli & Umar Hossain · Alloyed Additive manufacturing is enabling a new generation of vapour chamber designs with geometries and functionalities not...
CDFAM Computational Design Symposium - Tokyo 2026 Jordan Taylor · VIZCOM The distance between a designer’s first sketch and a manufacturable product has traditionally been measured in weeks of handoffs: sketch, render,...
CDFAM Computational Design Symposium - Tokyo 2026 Zinab Eisa & Esha Morakhiya · Harvard University Aeroforms emerges from a shared curiosity of how the invisible sensory phenomena of scent can be modelled, mapped and...