Section Insights
Challenges in Reduced Order Modeling
What challenges are faced in reduced order modeling?
The lecture highlights difficulties in reduced order modeling, particularly when dealing with symmetries and rotations in high-dimensional simulations. It emphasizes the need to find a low-rank subspace for effective model reduction.
- Model reduction aims to simplify high-dimensional PDEs into lower-dimensional representations.
- Challenges arise from symmetries and rotations that can complicate the modeling process.
- A good proxy model should accurately represent the true solution while being computationally efficient.
Invariance and Its Impact on Data Correlation
How does invariance affect data correlation in modeling?
Invariance, such as translational shifts, can lead to failures in data correlation, as the data matrix may not recognize shifted versions of the same object. This issue has historically impacted machine learning, particularly in image processing.
- Translational invariance can cause significant problems in data correlation and model accuracy.
- Early machine learning models required careful preprocessing to avoid invariance issues.
- Recent methods aim to align data to handle translational invariance effectively.
Handling Rotational Invariance in Models
What strategies can be employed to manage rotational invariance?
To address rotational invariance, one can adjust the coordinate system to align with the wave's movement, allowing for a more accurate representation of the data. This approach helps in simplifying the model and improving its effectiveness.
- Rotational invariance requires careful consideration in model design to avoid confusion in data representation.
- Adjusting the coordinate system can help in accurately capturing the dynamics of rotating phenomena.
- Data augmentation techniques are essential in computer vision to account for variations in orientation.
Understanding Mode Oscillation in Spiral Waves
What insights can be gained from analyzing modes in spiral waves?
The analysis reveals that two primary modes oscillate against each other to form a spiral wave, while other modes may contribute noise. Understanding these modes is crucial for accurately reconstructing the wave and ensuring model precision.
- Identifying meaningful modes is essential for accurate model representation of complex phenomena.
- Noise can obscure important data, making it vital to distinguish between significant and insignificant modes.
- A small number of modes can effectively capture the dynamics of a system if properly aligned.
Dimensionality and Measurement Variability
How do measurement choices affect model dimensionality?
Different measurement variables can artificially inflate the dimensionality of the model, complicating the representation of the underlying dynamics. Understanding these effects is crucial for effective model reduction.
- Measurement choices significantly impact the perceived dimensionality of the data.
- Translational invariance may not be as problematic as measurement variability in some cases.
- Careful analysis of modes is necessary to ensure accurate model reconstruction and avoid unnecessary complexity.
Transcript
0:05 all right this is the final lecture of chapter 11 section 11.5 what I wanted to do this lecture is highlight some of the difficulties or challenges faced and reduced order modeling again this is from the book data sense driven science and engineering by cuts in button you can find more details here including everything for this chapter code notes as well as all the other chapters ok so recall that we're interested in model reduction we're instant taking some PDE
0:38 that we discretized and which is extremely high dimensional finding a low rank subspace to embed that PD in and then running simulations in this new subspace right this is going to be this new proxy model or that we're gonna build with the hopefully that a good representation of the true solution of the system ok so the circuit modeling idea is is old it's been around for a while people have been using it as and partly because no matter how big a
1:11 computer you can build people are always trying to do simulations that certainly are much bigger than whatever biggest computer you're going to build or but the idea is to take this high dimensional simulation and bring it down to some subspace that gives you a very good approximation and as much cheaper to run there are problems so I've showed you sort of the outline of how this stuff works but part of the problems have to do with symmetries and rotations
1:40 being one of them but what happens when you have symmetries or rotations or in variances in your problem I'm going to give you two canonical examples one in which you get essentially a complete failure unless you handle the situation and the other one which it can potentially work but it's all about this idea of like you know that there should be some low dimensional embedding and these symmetries and rotations if you're if there's they're often very difficult
2:08 to integrate into the reduced sort of modeling architecture which means is going to artificially inflate the dimensionality of that data and let me give you very and I think intuitive examples of how this is happening our first thing I give you is a traveling wave suppose I have a PDE and this is its solution so what you see here of course is a bump it's not changing its shape it's just moving across the grid some extent you say it's
2:34 like a one-dimensional object it's just this wave that's translating so you might say well all I'd really need is this mode which is like a one degree of freedom system with the translation variable so that's that's all you really need to capture this dynamics however what we've done so far is to think about taking snapshots of my system in doing a correlation right to look at the correlation matrix to see what are the dominant correlated activities of
3:02 patterns of activity in this data you can see this is gonna fail immediately right because if this wave is over here how is it correlated with that wave over there the data matrix does not understand it's the same object translated or shifted from each other so this idea of invariance and shifting is really problematic and in fact it's been one of the problematic parts of machine learning especially in the early days where when they were doing image
3:28 processing for instance trying to do image classification of faces or dogs or cats you had to carefully crop all those images so that there was no invariances and no translations otherwise your correlation scores would blow up and your feature space would be just washed out you can see it here if I take this data matrix run it through an SVD here's what the singular facts value spectrum looks like here's how many modes I would need to represent that somewhere around
3:55 30 this is not a 30 degree of seed freedom system it's like one it's just that I have the wrong coordinate system in other words the SVD is not capable of handling this translational invariance by the way here it is on a log plot so you can see it's just this very slow roll over of the singular value spectrum creating a real problem for this there are methods that have been developed to try to handle this so there's some
4:27 recent methods out that basically say well if I have a translation wave how about if I do an alignment of this wave in other words find the frame of reference find this moving frame of reference reset all the data and then do your your model reduction in that new coordinate system so these are the kind of techniques you might try to use on something like this where you have fundamentally invariance that the SVD is gonna choke on okay
4:53 remember the SVD isn't that smart it's an extremely powerful technique except for you do have to have data in alignment if you're gonna get correlated features and this is one of these examples that shows you that it just completely breaks down in fact if you want to look at more carefully at the modes that was a singular value spectrum when I showed you here's the modes it picks out here's the top four modes both for the spatial mode and the temporal
5:23 behavior of those modes so the first mode is right here it's this orange one across here so that's what it thinks the dominated correlated activity is of that traveling wave and here's what it's doing in time it gets big it gets small look at these other modes it's almost trying to build you some kind of polynomial basis with Spanish and with these special functions so right there's even odd modes here this is what the SVD gives you for this data
5:49 and you look at those mode structure there's very little interpret ability be done for that translating wave into these modes and their time dependencies right it just it is the wrong tool for the job if you have that translational invariance you don't take care of it so again if you knew what the wave speed was then every frame you could say well reset the wave speed I'll just change and do a change of variables into the
6:18 wave speed variable so I locked myself in along that along the pulse so now in a new coordinate system attached the pulse and then it would be one mode which would look like a bump and in time it would be constant because that's all it's doing it's a very boring system but this really boring system completely breaks down the raw Marc architecture unless you find ways to handle it let me show you another one this is
6:47 spiral waves and what I want to show you here is I just basically made a spiral wave that had a localized structure you and decayed away so that I don't have to worry about boundary effects and that's what you're seeing here here's a snapshot of it here in panel a and what I did also I said well let's take this let's take the absolute value of that data and let's take you to the fifth power and there they are so they're just
7:09 three representations were really the same basic spiral wave phenomena so this thing is just rotating around and one of the questions you could ask is now what I have is not translational invariance I have rotational invariance right so this thing is just rotating around and again this is a classic problem image processing that people have had to overcome which is if you put in pictures of people's faces in the real computer vision systems you have to also wrote
7:37 those fixtures and slide them around so that you can augment the data set so that the computer vision software doesn't get confused when someone tilts their heads because all they've seen is straight up faces so this is the so this is like a very standard problem in when you're using correlation convolutional neural nets do a great job of trying to get around some of that but still convolutional nets don't handle rotations that well so you have to
8:04 artificially rotate the data in a lot of data practices but anyway these are just three representations really the same structure just you absolute value u v and I'm gonna show you that if you start looking at collections of the data you get very different you know singular value spectral decays even though this one you got lucky with because it's rotating around in a circle it actually works out pretty well to do the SVD so if you take a long time snapshot of this
8:35 thing and you do the SVD that's right here this is senior vice spectrum and there sat us on a log scale look at this it's almost perfectly two modes there they are the two modes there down here you might think well how much energy how much variance is really there and look at this down to 10 minus 16 so it's down a numerical roundoff it's almost it's perfectly two modes and what are they doing they are they're oscillating against
8:59 each other mode one and two or this orange and cyan and the rest of this is numerical garbage you basically mode three and four are down here there there in the noise level those this numerical round off and this is why it just looks like trash when you look at it what it's trying to do in time so what it's telling you is there's two modes that are oscillating against each other to form that spiral wave and here's what
9:21 those modes look like here's mode 1 mode 2 mode 3 mode 4 remember both 3 & 4 they they were noise numerical round off modes and you can certainly see that here you can see the salt-and-pepper of noise down here but mode 1 & 2 are physically meaningful and what it tells you that these these two modes oscillating in this pattern right here the bread and the blue which looks to be like PI over 2 face shifted will
9:49 actually perfectly reconstruct two numerical precision that spiral wave if you're looking at it from the point of view of this u coordinate so this is good news you got lucky here because it wasn't translating in the rotation it comes back to her at sampled the data it would be a little bit like if that traveling wave came back you know oscillated back and forth but stayed in a confined area so you can use a small number of modes to still get that here
10:18 that's exactly what happens is far away to keep coming it back on itself so you can easily represent it with with in with with this 2 mode of proximation so so it's not that these invariances will are guaranteed to destroy a reduced sort of model it's just that you have to understand that the minute you have an invariance whether it's translation rotation you have to think carefully about what it's going to mean to your model and your reduced order model
10:43 because you can artificially inflate your rank of the system which is exactly what happened here in the travelling wave right look at the rank of this system it's huge even though it should be ranked one with a slide but in this case you know it's stayed ranked 2 it's almost perfect at Rank 2 and so we didn't get destroyed here by the rotational invariance but I do want to point out that even if I just took that data and I looked I
11:15 measured a different quantity whether it's the absolute value which is the magenta I'm sorry the cyan or U to the fifth right so before I got perfect singular value to cake two modes goes to zero but notice if I just measure something different notice the modal structure here so what you're looking at here is this is on a log scale here this is on a regular scale now what you end up getting is there's like five modes
11:40 that matter for for instance the u v and notice a single value decay for the absolute value it's it doesn't really drop off very fast so this is problematic so I took the same simple spiral wave you measured a different variable which is exactly what you might actually do in practice and notice how to artificially inflated the dimensionality of my model right here are some of the temporal modes that are
12:12 associated with this but it's very interesting to see this right so these are the kind of things that happen in these reduced sort of models either by measuring different things or not accounting for the in variances in this cases in in this case the translational variance is not so bad but the measurement that these different measurements are can give you quite different results in terms of the dimensionality of the data itself by the way here are some of the modes
12:38 associated with these here the top four modes these actually look sort of meaningful and in fact when you look at just this here which is the absolute value notice that it's starting to give you modes all of them which look like they could be meaningful and in fact the very slow decay of the single value spectrum says you're gonna need a lot of these modes to represent that simple spiral behavior which if I had just measured you directly was perfect with
13:03 two modes here the use of v you can actually do this with like six modes so it doesn't keep going on six modes later you can truncate it and you get like almost a perfect reconstruction two numerical precision so these are all these subtleties that you want to start thinking about when you do reduced order it's not just as clear as take snapshots reduce build your model and your set it is in fact there are some definite
13:32 markers you have to watch for including in variances whether translation and rotation those are the most common and PD systems and if you have those they're going to be problematic for you unless you find a way again to remove them for the spiral waves again you could move yourself in it to a rotating coordinate system and then the far wave would be frozen and be one mode right but you have to know how to find that rotating
13:55 reference frame so these are all things that you have to start thinking about if you want to get more sophisticated in handling these things so that's just a wrap up of this chapter I did want to say that you know this this projection based reduce order modeling method has lots of great features of exploiting low dimensional spaces but it also has challenges in in what it can do realistically on on data so all the code and as well as a copy of the notes is
14:28 here on data book u-dub comm you can find more lectures on this chapter and also what this chapter is set up is for us to go into chapter 12 where we now also integrate a fast interpolation methods into the ROM architecture to build models much more rapidly and it also has a very nice angle around sensor design and sensor placement so I'll finish off this chapter
Summary
- Reduced order modeling aims to simplify high-dimensional PDEs by finding a low-rank subspace for simulations.
- Challenges arise from symmetries and invariances, which can mislead correlation-based methods like Singular Value Decomposition (SVD).
- Translational invariance in traveling waves can cause SVD to misinterpret the data, inflating the required modes for accurate representation.
- Rotational invariance in spiral waves can sometimes be managed effectively, allowing for a lower-dimensional representation.
- Different measurements of the same phenomenon can yield varying results in terms of dimensionality, complicating model accuracy.
- The lecture highlights the need for careful consideration of invariances to avoid artificially inflating the rank of the data.
- Future chapters will integrate fast interpolation methods into the ROM architecture, enhancing model-building efficiency and sensor design.
Questions Answered
What challenges are faced in reduced order modeling?
The lecture highlights difficulties in reduced order modeling, particularly when dealing with symmetries and rotations in high-dimensional simulations. It emphasizes the need to find a low-rank subspace for effective model reduction.
How does invariance affect data correlation in modeling?
Invariance, such as translational shifts, can lead to failures in data correlation, as the data matrix may not recognize shifted versions of the same object. This issue has historically impacted machine learning, particularly in image processing.
What strategies can be employed to manage rotational invariance?
To address rotational invariance, one can adjust the coordinate system to align with the wave's movement, allowing for a more accurate representation of the data. This approach helps in simplifying the model and improving its effectiveness.
What insights can be gained from analyzing modes in spiral waves?
The analysis reveals that two primary modes oscillate against each other to form a spiral wave, while other modes may contribute noise. Understanding these modes is crucial for accurately reconstructing the wave and ensuring model precision.
How do measurement choices affect model dimensionality?
Different measurement variables can artificially inflate the dimensionality of the model, complicating the representation of the underlying dynamics. Understanding these effects is crucial for effective model reduction.