Using AI to Study Numerical PDEs (How I do it today!)

“The hope is that, in not too many years, human brains and computing machines will be coupled together very tightly, and that the resulting partnership will think as no human brain has ever thought and process data in a way not approached by the information-handling machines we know today.” – J. C. R. Licklider

As I have opined before, the capability of LLMs, and of Claude in particular, to do research in mathematics and computational science is breathtaking. It is mind blowing! It is amazing! The last month or so of working with it has been horizon expanding. It has also taught me a great deal about how to use these capabilities well. I would like to pass along a status report.

Before getting to that, some nuance about what my conclusions rest on is wise. We have all been stunned, even spellbound, by the developments in mathematics over the past few months. Anthropic reported that Claude had “proved” the Riemann hypothesis. Actually. increased the Riemann zeta function’s zeros on the critical line. That is not a proof of the Riemann hypothesis, but it is a big step forward. OpenAI then announced a solution to the (forced) Navier–Stokes Millennium Prize problem. Along the way, OpenAI also released a trove of other mathematical results. The world of mathematics reacted with some combination of alarm, fear, amazement, anger and confusion.

All of these are appropriate human reactions. The prevailing narrative, though, is deeply flawed. These are not results of AI per se. They are results of mathematicians using AI: not just using it, but directing it, steering it and asking it the right questions. The analogy I find most appealing is how we use supercomputers to answer scientific questions. The computing we use is immensely powerful, but used poorly, it is useless. The quality of the answers from a supercomputer depends directly on the quality of the methods and models it runs. Garbage in, garbage out.

“The purpose of computing is insight, not numbers.” – Richard Hamming

Scientists and engineers also need to check the answers from supercomputer calculations. This is the process of verification and validation. Verification checks whether the code is correct and free of errors. Validation checks the quality of the modeling by comparing it with observations of the real world. It turns out that checking AI results should follow the same principles. The goal is to assess the quality of results with evidence, and verification and validation is the process that produces that evidence. You are checking whether the results are right. Is the AI’s product believable and trustworthy? This is exactly what we should do with modeling on supercomputers.

This evidence is then the reason the results are processed into understanding. If the results are trustworthy, they are worth exploring to the point of knowledge. There is no sense in understanding crap results, is there?

“The first principle is that you must not fool yourself—and you are the easiest person to fool.” – Richard Feynman

AI is like supercomputing for thinking. Rather than the idiotic term “superintelligence,” AI could be called “accelerated intelligence” or “augmented intelligence.” Superintelligence is a nonsense term, more hype than meaning. AI simply takes thinking to levels of complexity, pace and intensity that human minds cannot match. At the core of using AI is guidance and direction by skilled people. Even more important are the skilled questions those people ask. AI is useless without the right questions. It cannot produce good answers without direction and quality control from these people.

“[Computers] are useless. They can only give you answers.” – Pablo Picasso

It is useful to look back at how I came to AI. The first time I used ChatGPT was memorable, comparable to my first use of Google. You just knew it was an amazing technology. The past was gone, and you had just seen the direction of the future. Once I used Google, I never went back to the old directories and search engines (Yahoo, AltaVista).

With ChatGPT, you discovered first that the famous Turing test was done. Almost immediately, it could pass as human in conversation. It also made horrendous mistakes and hallucinated often. As it became clear that this was the future, Sandia got a version internal to the Lab. I soon discovered that it was crappy. I got into the habit of sending the same queries to the internal ChatGPT and to external models. Invariably, the internal model was worse in multiple ways. It hallucinated more, and its answers were demonstrably worse. I found this troubling, because the paid internal model was worse than all of the free external models. It wasn’t even close.

Those early days of LLMs involved learning to prompt effectively. You needed to give the model a role and a voice, along with lots of steering. The early LLMs spent a lot of time kissing your ass and telling you how brilliant you were. They were inhumanly polite and solicitous, and I found this annoying. What I learned was to tell the model who I was and what level of response I wanted. I told it to stop kissing my ass, to be blunt, and not to refrain from cursing. With a bit of modification, the LLMs could be made much better.

More recently, I started to use Claude more. I had done an extensive review of work in my areas of research, and Claude performed consistently better. Image creation is one of the few areas where Claude struggled; ChatGPT is still the winner there. Claude Code seemed very useful. Then, in the past month, all of this capability went into overdrive. I am retired and this is a part time pursuit. Still I have probably done two or three years of work in a month. Spurred by a collaboration, I followed through on suggestions to have Claude write code to test ideas we had been working on together. When I did, the quality of the work was remarkable.

Suddenly I could do all sorts of work I had left behind when I retired. Claude could write, run and analyze code. It could write code for all sorts of numerical analysis. It could read my old code and use it to build the code anew. It could seamlessly add all sorts of capability, such as graphical output and auxiliary code. The skills I had built testing LLMs were also a great help. Checking the answers is still key. That means lots of verification of results, along with references for everything done.

What really stands out to me is that I have rediscovered some of the joy I used to feel in technical work. I had about 15 years at Sandia that did too much to sap the joy out of what I did. There was too much duty, too much management oversight, and far too little purpose and joy in the work. What I realize now is that I languished in the job for years because its demands left so little room for joy.

Until I discovered what I could do with Claude, I had lost that sense of wonder and joy at what I could accomplish. It has been amazing and wonderful to rediscover it. Learning, struggling and striving to produce something better are what motivate me. When I was young, this also revolved around the sense of purpose I had at the Lab. The last month has made me realize how much of that I had lost, and how wonderful it is to regain it.

“The prize is the pleasure of finding the thing out, the kick in the discovery, the observation that other people use it.” – Richard Feynman

I insisted on some steps to improve quality beyond checking all the answers. One of the key ones is to have the LLM ask a set of questions to refine its work. This gets at details that might otherwise rest on poor assumptions. You can also ask the LLM to check its own work for errors. You can give it reference material to work with, whether PDFs or existing codes. You can also ask it for multiple responses to any part of the question that isn’t a simple matter of fact. All of this enriches the work.

Beyond individual prompts, I have added some important standing instructions to my profile. I included my professional bio, with my education and career history. I also asked that every prompt be met with a set of clarifying questions to refine and focus the study. At the end of each study, the LLM should suggest follow-up questions and check all of the work. It should ask whether to make immediate corrections to any problems it finds. Each study finishes with a document of the results, including the references used in the work.

The LLMs need to read reference material. Today they do this with a speed and attention to detail that is stunning. They are far more pedantic and focused than we are. The key is to strategically provide the LLM with the right reading. When I ask an LLM to review a paper or manuscript, it digests the text in unearthly detail. What LLMs miss is what is not there. They don’t see the strategic content of a paper well. Worse yet, they don’t see what is missing: the content that should be in the paper and isn’t. This is the part that the human driving and steering the AI must provide. It is your responsibility, and your knowledge integrated with the technical details, that provides it. It is a key to getting spectacular results.

“‘The dog did nothing in the night-time.’ ‘That was the curious incident.’” – Arthur Conan Doyle

Let me give a worked example of what I was able to do. I took a fresh look at a paper I wrote about 20 years ago with Jeff Greenough. Do the results hold up? Did we make mistakes? What conclusions should be drawn from the study?

Greenough, J. A., and W. J. Rider. “A quantitative comparison of numerical methods for the compressible Euler equations: fifth-order WENO and piecewise-linear Godunov.” Journal of Computational Physics 196, no. 1 (2004): 259–281.

Jeff and I studied the computational efficiency of two popular categories of numerical methods. On one side was an optimized version of a modern Godunov code. The method is a second-order-accurate piecewise linear method with especially well-crafted slopes. Phil Colella pioneered the methodology (PLMDE). We compared it with the immensely popular WENO method, originally defined by Jiang and Shu. Even today, WENO is the default high-resolution scheme.

Our question was this: is WENO better or more efficient than PLMDE? Under what conditions is that true? How large is the difference in performance?

On its face, it seems like a silly question. Surely the second-order PLMDE must be less efficient than the fifth-order WENO. That seems to be the default assumption of the computational science community. It turned out to be a great question. PLMDE was much more efficient than WENO in most cases, and the difference was relatively large. The community was pursuing the worse method with vigor. It was a great question!

I asked Claude, “Can we recreate the work of Greenough and Rider for a comparison first. Then extend and expand to include other methods.”

Next I added, “After this study is done add TENO methods to the code base. Compare with PPM, AF and WENO”

As I discovered when I set Claude on the task, the conclusions of our paper still hold, but they are somewhat weakened. WENO does better today, largely because of how microchips and computers have progressed over the intervening 20 years. Pipelined, flop-intensive work is now more efficient. Nonetheless, the same conclusion comes out the other end. The results hold up, but Claude also found a number of mistakes we made in the manuscript and pointed them out. It also left open another question that I had pondered while Jeff and I were writing the paper, and I’d like to study that next as a follow-up.

That question flows naturally out of our paper when you look at the problems with shocks that these methods are designed to tackle. We have a fairly elaborate second-order method competing with, and beating, an elegant fifth-order method. What does this mean? What is the context? What lessons does it offer for designing numerical methods to solve practical problems?

I created a follow-up prompt: “I have a modest idea. I believe for shock problems the linear accuracy of a method is much more efficient for accuracy versus cost. Full nonlinear accuracy does not pay for problems with shocks-rarefactions. Is this true? Does this also apply to time accuracy. Would this define new time methods that are simply linearly accurate thus only formally second-order, but have elements of accuracy for high-order on the first term in a taylor series.”

I added, “A way to get high order would be finite volume high-order without quadrature instead of finite difference flux differencing as an example”

This is a question I took a swing at 20 years ago. My conclusion then was that the gains in accuracy and efficiency for shock problems saturated at fifth or sixth order. Generally speaking, nonlinear accuracy becomes useless once waves break, which happens as soon as a shock or an expansion forms. The formal accuracy for these flows only needs to be second order; anything more is wasted effort. My most recent paper gave me a better handle on computational efficiency. The new study confirmed and amplified the findings of 20 years ago.

In practice, accuracy comes from the linear term in the series expansion. I’ll just note that Boris and Book, of FCT fame, found this right away. Accuracy for square waves keeps improving all the way up to the most accurate operator you can build, Fourier differencing. At some point efficiency drops off, depending largely on the nature of the computer chips and the memory bandwidth. The next step is to examine all of this in two or three dimensions. How does that change things? What are the rules for time integration and symmetry preservation? This question is ripe for investigation, and now I have the perfect tools to run it to ground.

“We can only see a short distance ahead, but we can see plenty there that needs to be done.” – Alan Turing

Winning at AI is not simply a matter of making the best LLMs or applications. It means teaching people the conduct and practices that get the most out of these tools. There are practices that make these tools borderline magical. In my opinion, one of the most overlooked aspects of AI is the practice and approach of the people using it. This is not examined, not taught and not discussed nearly enough. The Frontier Labs should be more focused on teaching and sharing the best uses for AI. Freely. This would energize and expand use and utility tremendously. This would expand their success more than better models.

“Weak human + machine + better process was superior to a strong computer alone and, more remarkably, superior to a strong human + machine + inferior process.” – Garry Kasparov

This technology isn’t magical, but if we learn to use it properly, it could be. There are a host of essential steps one should take to use it well. I am not saying I have the answers or the golden key to using it. I am reporting the things I have done that work really well and seem to get the most out of it, at least for me. I have a reasonably distinguished research record, and I have been amazed at what it can do and achieve. That counts for something, at least for me. As I noted before, it has been a tremendous amount of fun. As far as technical work goes, I’m having the time of my life.

What are your hot tips for doing this? What did I miss?

“[Whether Machines Can Think is] a question of which we now know that it is about as relevant as the question of whether Submarines Can Swim.” – Edsger Dijkstra

Research management needs to change. Right now!

“It is not possible to be a scientist unless you believe that the knowledge of the world, and the power which this gives, is a thing which is of intrinsic value to humanity, and that you are using it to help in the spread of knowledge, and are willing to take the consequences.” – J. Robert Oppenheimer

Ever since I started using Claude regularly to explore ideas, develop code and test those ideas, I can’t stop thinking about how this capability could change the places where I used to work. I see much opportunity and possibility. I also see barriers that are immense. The stakes are extremely high. The greatest limit is the management approach. The incentives they value now will undermine all the opportunity if allowed to.

The difference it would have made to me personally is immense. The last month has brought me great joy in technical work. It feels like play. I also keep coming back to how it would have changed the way I was managed. What I see is a management approach and philosophy that is completely incompatible with this new reality. The incentive structure I watched take hold over the past 30 years is completely antiquated. The risk aversion and the inability to accept failure are incredibly counterproductive. They were counterproductive then; in the current age, they are fatal.

“A ship in harbor is safe, but that is not what ships are built for.” – John A. Shedd

I also worked at places that did classified work. The mantra was always to put the protection of secrets first. The problem is that we can now create new knowledge, and new secrets, at a breathtaking pace. That can only happen if we manage things correctly and free our researchers to use today’s tools as effectively as possible. The operative question is this: are we more interested in protecting old secrets, or in creating new ones?

“Secrecy strikes at the very root of what science is, and what it is for.” – J. Robert Oppenheimer

The long-term result will have a dramatic impact on our national security. Eventually, the capabilities we gain by inventing new secrets will be essential to a vibrant national defense and a safe, productive population. If we don’t shift the current balance toward creating new secrets, new ideas and new technologies, someone else will, and whoever does will own the future.

The fact of the matter is that, given my experience over the last 40 years, I have serious doubts about whether the United States can own the future, even if we create the dominant AI technology. This is not just a product of the Trump administration’s appalling behavior and leadership. The problem has been building for decades, and it is bipartisan. If we don’t change fast, someone else will own the future, and we will have handed it to them on a silver platter.

The key is for management to start figuring out how to make things happen instead of focusing on what can’t happen. Managers need a positive, affirmative attitude toward adopting technology and creating new ideas. They need to look at how these tools can create new, more powerful secrets.

“Good ideas are not adopted automatically. They must be driven into practice with courageous impatience.” – Hyman G. Rickover

When I look back over most of my career, management focused almost entirely on the negative. They focused on how not to make things happen, and what to avoid. They put barriers in the way of people’s productivity, because productivity, when let loose, is dangerous.

A big part of this is information control. The controls put in place for classification and export control are choking off ideas. Rules like need-to-know crush innovation. If there’s one prevailing mood at the national laboratories, it is that innovation must be crushed because innovation is dangerous. We can’t let people talk. We can’t let them share ideas. We can’t let them know what everyone else is doing, because we have to protect our secrets.

The question I hope we are solving is how to use the power of AI safely. How to keep essential secrets safe while unleashing these tools on creating new secrets. The new secrets are more important. We are too stuck in the past. This will require wisdom, but more importantly bold action. That action will entail risk. We need to recognize that the greatest risk is not enabling these capabilities.

“The very fact that knowledge is in itself the basis for civilization points directly to openness as the way to overcome the present crisis.” – Niels Bohr

In the age that is coming, this is a complete and total losing philosophy. If we don’t change right away, we will lose the future.

When I look at my own history at the labs, I see that my modest contributions, the code I’ve written and the ideas I’ve had, have made their way into some of our production codes. I’ve noted before that the CTH code is over 40 years old. I haven’t contributed to that code, but my colleagues and I have contributed to its replacement. The Sandia code I worked on contains code that is 15 years old. When I wrote my part, I was replacing code that was already 15 years old, written by someone who later became the lab director at Sandia.

There’s code I wrote 30 years ago that is still used in production at Los Alamos. I’m certainly proud of that, but the time for that pride is over. It is time to change things. If any of this code is still in use in three years, or even two, we will have failed our national security. Yet that is exactly what I predict will happen: our management will not change, and we’ll still be using ancient code to solve modern problems.

“Humans are allergic to change. They love to say, ‘We’ve always done it this way.’” – Grace Hopper

One thing I’ve noticed in working with Claude is that I’m suddenly free to think about ideas and actually see them come to fruition. Implementation is no longer a limitation. An idea can now be put into a test quickly and easily. That test can be long and elaborate, or quick and simple.

You are the peer review for the work that AI does. You are the one that gives the review and asks them to revise their answer based on your concerns. This is the process. It is an essential aspect of using AI properly. In today’s world, that is rarely taught formally in school or as part of a class. One suggestion for making AI work in science is to start formalizing and teaching peer review as a topic. It’s going to become something absolutely critical to being productive and using AI correctly.

For example, I explored two separate ideas this morning before I wrote any of this:

  1. A brand-new multi-material code in 1D that I can soon extend to 2D. Maybe I’ll add adaptive mesh refinement.
  2. Some ideas I had a few years ago about using sigmoidal functions in computational physics. The hyperbolic tangent is the sigmoid commonly used in the THINC method, but I’ve wondered whether other sigmoids might actually be better. Now I can explore that freely. Sigmoids have other interesting applications too. I’ve written about this before, but now I can really test it in a fairly complete environment.

All of this would probably have taken me at least a month the old way. Now I’m exploring multiple ideas per day. It is really goddamn fun

“The best way to have a good idea is to have a lot of ideas.” – Linus Pauling

Can you imagine what a well-organized, strategically focused team of talented scientists at a national lab could do with this kind of toolset? What I can’t imagine is our current management philosophy and structure being able to handle it, or even beginning to optimize the work. Management is too focused on control, too restrictive and too closed-minded to do any of this. The only way to make it happen is in a free, collaborative environment where people can bounce ideas off each other, test them and work together. That is the direct opposite of what the national labs have become, and it is a clear and present danger to our future security.

I was recently reminded that work needs to be fun. I came across a meme on LinkedIn, and it made me think of some memes I had made in 2020 for a workshop among the three labs. They were based on popular memes of the day, adapted to the workshop’s topic: verification and validation. It amounted to nothing as the workshop didn’t happen. It was March 2020 and Covid shut the world down. Nonetheless I learned something bitter in the process.

The manager, self-conscious about Sandia’s status compared with the other two labs, decided they weren’t professional enough and nixed showing them. That made me sad, but also angry and disappointed that the manager couldn’t see that a little fun at work might actually be good. Work should be fun. Work should be joyful. Our managers forget that.

What I’ve felt most acutely while using Claude this past month is this: it is really fun. Work is really fun. I’m retired, and I don’t have to do any of this, but I’m getting a lot of joy from it. It reminds me how much fun it is to explore, create and study these things.

“Work consists of whatever a body is obliged to do, and that Play consists of whatever a body is not obliged to do.” – Mark Twain

I’ll put some of those memes here for everyone to look at. One of the big changes management at the labs needs to make is to start having some goddamn fun again. You can have fun and still be serious, and national security is damn serious business. One way to fuck that up is to make work a slog and kill the fun. My final recommendation: start having a little more fun at work again.

“I used to enjoy doing physics. Why did I enjoy it? I used to play with it.” – Richard Feynman

.

Trump is a category 5 trust-destroying hurricane of corruption

The reinstatement of Jensen Huang by a unanimous vote of the Nvidia board is not at all surprising. Yet, I find it depressing and disturbing in ways I think the average person fails to comprehend.

Trump has said that he pressured the board to reinstate Huang. The question to ask is how he pressured the board. I have some guesses. None of them are good.

Let’s unwind this a bit, and look at why the decision is so unbelievably corrupt. My guess is that Trump threatened the Nvidia board with investigations and criminal action over what Huang was entangled in: the suspected spying and the alleged export-control violations. The counteroffer was that all of these legal problems would simply disappear if Huang were reinstated. That was probably the main quid pro quo. Never mind the subordinates he was reportedly fucking, or his other violations of trust. This entire episode is a catastrophe for American culture and for the culture of the industry. It shows that if you have enough money, and there’s enough money to be made, our legal system simply does not apply to you.

“No man is above the law and no man is below it; nor do we ask any man’s permission when we require him to obey it.” – Theodore Roosevelt

This is supposition. It is likely true, but our corrupt system will bury it. That’s a shame, because it is tantamount to treason. The likely story is that the Trump administration had leverage over Nvidia and its board, and used the threat of investigating their violations to get Huang reinstated.

We would be lucky if this were the worst of it, but it isn’t even close. The real losers here are American national security and the trust we can place in our government.

Let’s go a layer deeper. A reasonable and expected stock-market correction took place late last week. Trump, whose entire view of the American economy is built on the stock market, started to freak out. He sees Jensen Huang as the linchpin and a way to stop the bleeding.

The counterpoint is that what Nvidia and Huang are tangled up in involves fairly substantial and damaging alleged violations of law. Those laws are intimately tied to American national security. In the White House, you have a president who has shown absolute contempt for national security. If there’s money to be made, national security is ignored. He has even shown personal contempt for it by storing large amounts of classified documents in his home. That looks even worse when you consider that he probably could have demanded a SCIF be installed at Mar-a-Lago. A SCIF would have been a proper place to store those documents. Instead, he stored them in a bathroom. He shows utter contempt for national security.

The same is true of the attacks on Iran, and of his cozying up to the leaders of countries that are helping Iran fight the United States. Take Russia: he has consistently sided with Russia against Ukraine, because Russia offers money-making avenues for him and his friends and family. Over and over again, you see absolute and complete contempt for national security and for the safety of Americans in the most basic sense. In a nutshell, this behavior is completely and totally untrustworthy. Trump cannot be trusted with the safety or security of the American public.

There is a throughline here, from trust to the future of AI. If AI is going to be deployed successfully in society and be a benefit, trust is perhaps the most important thing we have. The AI itself needs to be trustworthy, and that should be a priority. The people using the AI should be trustworthy too.

“Trust, but verify.” – Ronald Reagan

Instead, what we have is a pantheon of AI leaders who act in the most untrustworthy ways possible. Jensen Huang is only the latest, and he stands at the apex of untrustworthy behavior. Sam Altman comes to mind as another. Similarly reinstated against the interests of trustworthy corporate governance.

The upshot is that, by doing this, Trump has truly fucked the future. He has almost certainly committed high crimes and misdemeanors of the highest order. He should be impeached and removed from office immediately. He is a clear and present danger to the country.

Those of you on the right shouldn’t worry. That’s never going to happen. Trump will never be removed. He now has absolute impunity to break the law as much as he likes, and this is just the latest example. The Supreme Court made sure that would happen. They are completely culpable. I wish I were wrong. He is treasonous. The best-case scenario for the United States is that this scandal blows up and destroys Trump’s presidency.

“Well, when the president does it, that means that it is not illegal.” – Richard Nixon

To put it more brutally, here is what’s at stake: the long-term prospects of the stock market, the economy, and the United States itself all depend on better trust. What happened today is one of the most unjust actions I can remember in this arena.

“A nation’s well-being, as well as its ability to compete, is conditioned by a single, pervasive cultural characteristic: the level of trust inherent in the society.” – Francis Fukuyama

Back to AI. I had already written a piece on how management at the national laboratories needs to change to get the best out of AI. I’ll finish it later, but these developments were simply too pressing to ignore. This story is going to damage our future in multiple and horrendous ways we can scarcely comprehend.

The key to managing a new capability correctly is learning how to unleash the talents and abilities of the people using these tools, responsibly and effectively. These tools radically change the timescale on which things can be accomplished. That means the path from research to production needs to evolve and compress as well.

All of this is a direct and massive challenge to how things are managed today. The possibilities are truly incredible, and the limits on success will come largely from problems our institutions have inherited. These institutions are run through policies and practices that are no longer suitable.

Many of those problems arise from a distinct and prevailing lack of trust. That lack of trust has to be confronted, because it will destroy all the good. The signs for improving trust within American institutions are poor. The United States is a country with a broken legal system. It has become clear that the law does not apply equally, and that it applies favorably if you have enough money.

Trust is a productivity superpower. If we trust our top research staff and empower their decisions about using AI, they can produce incredible things. The problem is that there is so little trust in the system today that its absence will fuck everything up. All the productivity gains and incredible things we could do can be completely undone by a pervasive lack of trust. That pervasive lack of trust is the core value on display today.

“Virtually every commercial transaction has within itself an element of trust, certainly any transaction conducted over a period of time.” – Kenneth Arrow

AI gives my ideas wings. It changes them too.

“The future is already here—it’s just not very evenly distributed.” – William Gibson

We live in incredibly heady times.

The common refrain is that you overestimate the amount of change in a year. You underestimate the amount of change in a decade. What a year we’ve had. It might make the world of a decade from now unrecognizable. We are headed to a future we can’t quite grasp.

I don’t think we are on the verge of AGI, or of anything that should rationally be called super-intelligence. We are seeing change at a pace that boggles the mind. What I see now, barely ten months after I retired, will transform the workplace completely. It will certainly transform the workplaces I knew. It will modify the kind of research I did, and I can easily imagine it transforming many others.

The ability to do high-level work swiftly and automatically should change the entire dynamic of the work. I develop numerical methods and theory for hydrodynamics. That involves a lot of numerical analysis and writing code, along with the verification and validation of it.

The pace at which I can work now, as an ordinary citizen retired from a national lab, is awe-inspiring. The institutions I used to work for should be completely rethinking their workflows and their expectations for work. This capability is truly transformative. I wonder if our leaders grasp the opportunity lying before them now.

“I suppose it is tempting, if the only tool you have is a hammer, to treat everything as if it were a nail.” – Abraham Maslow

The question is whether these institutions can replace the antiquated, sluggish way they work with something suited to the new paradigm. For example, both Los Alamos and Sandia still use code that I wrote or worked on that is 15 to 30 years old. In my opinion, relying on code that old is unforgivable given what is possible today. I am honored to have contributed to our national security this way, but that security is now threatened by our inability to move and create at the speed that is now possible.

The way projects and work were managed in the last few years of my career was generally unacceptable. There was an almost explicit refusal to let us explore ideas, take risks and fail, then learn and grow from that failure. This dismal approach is what prompted me to retire when I did.

As bad as that was, I now see that in the age now dawning, this approach to managing work will be fatal. It will squander our opportunities and blind us to what is possible. Our entire approach to management needs to change, dramatically. It already needed a great deal of correction; now it must become something entirely different.

“What I cannot create, I do not understand” – Richard Feynman

For the last few weeks, I have been exploring what AI can do from my own professional perspective. It has let me pick up many ideas and subprojects that the stifling environment I worked in choked out of me. Ideas I had many years ago could finally take flight. I was using Claude and its ability to work with code, and along the way I upgraded from Pro ($20 a month) to Max ($100 a month). In the space of a month, I developed capabilities and tested ideas that would previously have taken two years. That is an acceleration of roughly 25 times. This is probably an underestimate. I think it is more, since I’m retired and this work is by no means a full-time job.

All of a sudden, ideas that had lain dormant have come to life and can be explored and studied in depth, with the perspective they deserve. A couple of friends had hinted at this capability before, and I just didn’t get it. This summer, while working on a proposal, I saw a Claude workbook that I found mind-blowing, but I didn’t realize I could easily build that kind of capability myself, or how simple Claude was to work with. Someone I’m collaborating with also urged me to try it: “Just ask Claude to do it, and in 10 minutes you’ll have code and the answer.”

Finally, I tried it. I took a flying leap at the suggestion, and OMG, it fucking worked.

It did the job well, too. From a simple guided prompt, I had a von Neumann–Richtmyer hydro solver. Then I added modern remap to the mix, along with a set of standard test problems and convergence testing. I did a numerical analysis of the entire system of equations. All of it was fast and seamless, done in the blink of an eye compared with the old way of doing things. The speed was jaw-dropping and game-changing. A month of work happened in an afternoon.

Now I realize what’s possible, and as I’ve said, the consequences and possibilities are mind-blowing. I’m learning in real time how to use this power to push research ideas forward. More importantly, it lets ideas go from concept to half-baked to fully realized, with results, in record time.

I also realize how much of my creative energy was smothered during my final working years. I labored in an environment where creativity was systematically destroyed: by a lack of risk tolerance, by an inability to accept useful, meaningful failure as a recipe for ultimate success, and by a culture that paid lip service to the mission while really focusing on getting funding.

That funding was increasingly tied to projects that showed little or no vision for the future of computational science. They were simply about building extremely fast, large computers that would tackle problems by brute force. Meanwhile, the ideas that ran on those computers languished and fell into disrepair. Algorithms, physics and mathematics were all choked off by a set of large national projects created largely out of this low-risk, no-failure attitude.

“Partly because of the huge costs involved, a government contract becomes virtually a substitute for intellectual curiosity.” – Dwight D. Eisenhower

This, in large part, was the disease American science suffered from before the current administration took charge. As I’ve discussed before, the current administration has only made these problems worse by attacking researchers and the very legitimacy of ideas as the lifeblood of scientific progress.

I began to realize that I had a set of ideas going all the way back to my time at Los Alamos (20 years ago) and, in a few cases, new ideas that sprang from my work at Sandia. None of these ideas had any air to breathe, and none would have received even the slightest support from my employer.

Now, with AI and specifically Claude, I have the power to explore them. I can see whether these were good ideas and good problems to solve, with legitimate and reasonable outcomes. I can pick up where I left off, satisfy my own curiosity and perhaps make progress on research directions that matter for the areas of science I’ve dedicated my life to.

The beauty of AI is that it lets you test ideas with very little implementation effort. If you can test ideas faster, you can fail faster. You can learn faster. You can create something better, faster. This is the upside.

“Ever tried. Ever failed. No matter. Try again. Fail again. Fail better.” – Samuel Beckett

If your project manager or laboratory says the big advantage is reduced implementation time, know that they are wrong. Faster implementation is real, but some of that productivity must go into higher quality: better answers, better methods, better physics. That’s part of the balance. If we want the human contribution to show in this work, that energy must go into better quality.

In a very real sense, the ideas you get are a strong function of what you do. When I spent a great deal of time implementing and debugging code, my ideas were invariably related to that activity. I’m sure those ideas had their benefits, but the ideas that come from using AI to assist the work will invariably be different. They will focus more on results and analysis. In a sense, the ideas will be more strategic and a little further from the page of code.

In reviewing technical articles, I discovered something about how AI works. I would read the paper, write the review, and then give the paper to my favorite LLM to see whether I had missed anything critical.

What I discovered was that AI does a great job of seeing everything that is there. What AI misses is what isn’t there: what is missing, what should be present and is absent. This is what the creative, expert human provides. The human brings the secret sauce, that extra layer of thinking beyond the obvious.

“The dog did nothing in the nighttime.” “That was the curious incident.” – Arthur Conan Doyle

One thing about myself is invariably true: if I’m failing and learning from that failure, I take what I learn and use it to generate new ideas. That’s the virtuous cycle AI can unleash.

The other deep realization is that AI is going to change the ideas themselves. I used to get ideas in the midst of debugging code and working on implementations. That work has largely disappeared. Now ideas come from the results: from checking the evidence of correctness, from confirming that the work is right and that the prompt was understood. Ideas are now more strategic and goal-focused. They flow from the combined results of earlier ideas, executed at light speed. This changes the creative process in ways that will bring both benefits and costs.

“We shape our tools and thereafter they shape us.” – John M. Culkin

What I can do and see is truly awe-inspiring. I’m not seeing quite the disruption that mathematicians saw a few months ago, but I am seeing something that changes the entire game we’re playing. Everything is changing fast. The warning signs of potential catastrophe are everywhere. At the same time, the positive potential is growing too. The real question is how we will maintain control and steer this technology toward the best human outcomes. That should be a priority for anyone involved.

“We had better be quite sure that the purpose put into the machine is the purpose which we really desire and not merely a colorful imitation of it.” – Norbert Wiener

One key to using AI effectively is to break down silos: marry ideas, produce work that crosses boundaries, and come at problems fresh. When things can be implemented this fast, and seemingly this well, the real value lies in a system that lets new ideas be tried out, refined, and iterated on quickly, rather than one that keeps people in their silos. We need to take people out of their silos and let them swim together in a sea of inspiration.

The future before us is incredibly exciting. Whether it is good, exciting, or bad, exciting is up to us.

“The best way to predict the future is to invent it.” – Alan Kay

Nvidia and Jensen: three big stories, and we’re missing one of them completely.

“Power tends to corrupt and absolute power corrupts absolutely.” – Lord Acton

Jensen Huang dominated the news last week, even with the Microsoft outage and the FAA failure that grounded flights across the country. Jensen was king of the news. The story combined an incredibly valuable company with spies and sex, an almost irresistible combination. Still, this is actually three different stories, all big, and one of them is completely invisible.

Let us recap. It was disclosed that Jensen Huang, the CEO of Nvidia, was having an affair with a woman whom U.S. intelligence believed to be a spy for the Chinese government. Her background should have raised obvious flags: she reportedly worked as a journalist for Chinese state television before moving into finance and then becoming an executive at Megaspeed, a Singapore data-center company that buys Nvidia chips. A veritable basket of red flags missed.

Making it even worse, our government knew about this for about a year. They knew about it and apparently did nothing to warn Mr. Huang about the dangers of his dalliance. This was no ordinary oversight. Mr. Huang had become buddies with President Trump and accompanied him on high-level trips, including the summit in Beijing. They had regular phone calls.

Thus, this suspected spy had a direct line to somebody close to the president of the United States, and the U.S. government did nothing to stop it.

One needs to be crystal clear about Nvidia’s role in our current economy and national security. The entire AI buildout and the focus on data centers have fueled Nvidia’s stratospheric rise in value. Nvidia chips are also essential to our national security. GPUs are the beating heart of the supercomputers we use across the nuclear weapons complex to manage our stockpile, and Los Alamos’s next two machines, Mission and Vision, are built on Nvidia’s newest chips. They have become the lifeblood of our defense industry and a host of other essential national security enterprises. Any advantage the United States has in national security rests partly on our access to Nvidia hardware and our ability to use it.

It turns out that the Nvidia CEO had built the most valuable company in history. He also appears to have been vying for the title of horniest CEO, as he reportedly had at least two other affairs with his underlings. That points to atrocious corporate governance. There was no succession planning for Jensen’s departure. CEO malpractice personified. You can see it in the threadbare nature of his board, which offered little oversight of his actions, and in the violation of the most basic rule of executive behavior: don’t fuck your underlings. This alone would have warranted his being terminated with extreme prejudice. Then you find out that he had the poor judgment to have an affair with a suspected Chinese spy. He may have been completely clueless, or he may simply have overlooked the obvious signs that she was engaged in espionage. Either way, he was operating with the extreme hubris of his success, and he was kept in the dark by a government that should, at the very least, have warned him about the nature of this woman. Even without the affair, her closeness to him was a red flag.

“Success breeds complacency. Complacency breeds failure. Only the paranoid survive.” – Andy Grove

Here’s where I’m going to lay out the invisible story. Nvidia has lived a rather charmed life. It is a clear example of making the most of an opportunity that was not necessarily of its own creation.

Originally, Nvidia was the prime maker of graphics processing units, the chips used primarily for gaming. In the late 2000s and early 2010s, scientists discovered that these chips were extremely fast and good for scientific computing. They were an absolute bear to program and not very user-friendly, but they could compute the hell out of things.

It was in this era that the scientific computing world started to look at these chips as the vehicles for fast calculations. This culminated in the Exascale Computing Project, where GPUs, Nvidia’s or similar ones from AMD and Intel, became the horsepower behind the latest computers and models. As I’ve written many, many times, this was also an era when buying big iron swamped all other investments in computing.

“After all, you only find out who is swimming naked when the tide goes out.” – Warren Buffett

Fast forward to the current AI boom, where a similar attitude toward computing has taken over. It shows in the massive spending on data centers. Computing hardware has suddenly become the lifeblood not just of scientific computing, but of the entire economy.

Part of the issue with data centers is that they’ve become the focal point of public resistance to AI. This resistance is largely born of a tone-deaf and stupid marketing strategy by the frontier AI labs about what AI can do for society. Arguing that AI is so great that it’s going to take all your jobs is tailor-made for disaster. Data centers get the focus and absorb all the vitriol this creates.

The thing nobody talks about, in AI or in scientific computing for that matter, is the role that algorithms and purely intellectual ideas play in producing value. Over the long span of history, the track record is that algorithms, methods, and ideas contribute even more than hardware.

We have had more than a decade where hardware has been the sole focus. Nvidia is the consequence, and it has created a glaring Achilles’ heel in our strategy. Just look at the history of large language models: their birth was driven by the development of an algorithm. That algorithm, the transformer, changed the nature of deep learning and neural networks and produced the recipe for what we see in large language models.

What we are failing to invest in today, whether in AI or science, is algorithmic improvement that can yield equal benefits. By now, these algorithmic improvements are the veritable low-hanging fruit we need to focus on. Algorithmic improvements in scientific computing can change the efficiency and cost equation for a calculation. Then we are no longer dependent only on giant pieces of computing hardware to produce gains.

“In many areas, performance gains due to improvements in algorithms have vastly exceeded even the dramatic performance gains due to increased processor speed.” – President’s Council of Advisors on Science and Technology

I have a fairly firm belief that the same is true for AI: there are algorithmic improvements that can make these models more efficient and deliver the same or better results with less computing. The problem is that, in science and AI alike, we have done a very good job of hollowing out our professional ranks of the very people who could do this work. This work is unsupported, unfunded, and generally in full retreat. One result is that the actions of one foolish CEO can threaten the entire ecosystem. We have constructed this fragility.

“Put all your eggs in the one basket and—WATCH THAT BASKET.” – Mark Twain

The way to correct this is to broaden what we invest in across our computing ecosystem. There needs to be a recognition of the role and power of algorithms. Start by recognizing that without the transformer, our current age of AI and the value of Nvidia would not exist. These algorithmic breakthroughs laid the foundation the current world is built on.

Yet even though everyone should know this, we are not investing in the improvements that algorithms can bring. Instead, we are plunging huge amounts of resources into building hardware. This hardware is unequivocally good, but it is hardly the most efficient or effective way to build a broad, vibrant, and resilient ecosystem.

“Today, it is truer than ever that basic research is the pacemaker of technological progress.” – Vannevar Bush

Safetyism is a disease.

“Security is mostly a superstition. It does not exist in nature, nor do the children of men as a whole experience it. Avoiding danger is no safer in the long run than outright exposure. Life is either a daring adventure, or nothing.” – Helen Keller

One of the most damaging aspects of American life today is the plague of safetyism. It is a destructive philosophy that we have allowed to infect our private and public lives. In our public life, it creates costs we cannot bear and ultimately destroys productivity and progress. In our private life, the same attitudes hamper our development and reduce opportunities for joy and happiness. It is especially bad for children. Greg Lukianoff and Jonathan Haidt spoke to and popularized the term “safetyism” in The Coddling of the American Mind.

The work I have been doing with Claude to explore ideas has made perfectly clear that I lost a great deal over the last 25 years. Much of this loss is to the disease of safetyism at work. Safetyism is incredibly destructive in utterly innocuous ways. It has taken from me years of productive, creative breakthroughs and research. This damage is repeated across our entire population of scientists. It goes much further, too, to society as a whole.

It needs to be rejected whole cloth. It has no place in a vibrant future.

“Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety.” – Benjamin Franklin

Safetyism takes different forms on the left and the right of the political spectrum, but both contribute to its excesses and damage. Personally, I watched safetyism encroach on my children’s childhood. I watched safetyism erode and destroy the national laboratories where I worked. It gives diffuse benefits of a sense of safety. In return, it pervasively impacts the conduct of normal lives.

We are long past the time when we should have found a different philosophy to organize our public lives around. We need one that acknowledges that life comes with no guarantees and that risk and failure are key parts of learning. Learning is something all of us need to embrace lifelong, and it is the key to progress. Risk is the price for this. It is the key to creating a better, more vibrant, wealthier future for all of us. It is difficult to grapple with and estimate the cost of this diffuse safety. In the United States, it has not brought any great benefit in lifespan. It has seemingly only given riches to the already wealthy.

Today, we have a grim future ahead of us, where possibilities have been choked off, and decline seems the only natural outcome. Safetyism is a large part of that.

First, let’s define what safetyism is. In a nutshell, it is the choice to make safety the organizing principle for an activity. Safetyism is born out of recognizing a number of potential outcomes that are bad and structuring an activity to avoid them. In the process, good outcomes are also avoided. No risk. No reward.

The problem is that safetyism has become dominated by obscure and rare outcomes that are quite unlikely to happen. All of them are terrible if they do happen, but the safety of a small number of citizens is prioritized over the well-being of the great majority. Safetyism also does not take into account what is sacrificed and lost in choosing safety as the organizing principle.

A common and pervasive example of safetyism is illustrative: how we manage the free time and freedom of children while they’re growing up. When I was a child, back in the 1970s, I had an immense amount of freedom. I walked to school with friends and my brother, with no adults. It was a half mile, and there was very little danger along the way. I also had free time with my friends to explore the neighborhood and get myself into trouble. Nothing really bad ever happened to me, but it certainly could have.

For example, there were some marshy, swampy areas at the headwaters of the creek that ran through our neighborhood. We would take our shoes off and walk across, and when we made it to the other side. Then we’d discover our legs were covered with leeches. Before putting our shoes and socks back on, we had to sit down and carefully remove the leeches. Lesson learned.

“Wind extinguishes a candle and energizes fire.” – Nassim Nicholas Taleb

Today, you never see this. Today, my parents would be reported to child protective services and visited by the authorities. The sort of freedom I experienced would not be allowed. The reason is concern about child molesters or other dangers that could befall me. Surely some of these things are possible, but they’re incredibly rare. Tragic when they occur, but rare.

Meanwhile, the vast majority of children are actively harmed by the lack of freedom. They enter the world without the skills and capacities that freedom would have taught them. In other words, this is one of the reasons our young adults are less well and less well off than they were in the past. They don’t exit childhood with the toolset they need to succeed.

Similar forms of pathological safetyism exist within our government. The research laboratories where I worked are a perfect example. NASA is another, where safetyism has destroyed it as a space launch organization. In both cases, the organizations have become shadows of what they were. Safetyism is at the root of it.

The attack of safetyism comes in equal parts from the left and right. The left seems to be the more obvious source, but the right has its own sins in this regard.

The left is mostly afraid of ideas that are backward or traditional. It is afraid of various threats like climate change, sexual violence, and the dangers of new technology. Each injects its own form of safetyism as a response. The right is afraid of new ideas, of the waste or seeming waste of money by government, and of the encroachment on freedom from the consideration of societal good. It is driven by a general desire to turn anything the government does into a scandal. Safetyism is often their chosen vehicle.

“I think that most people are underestimating just how radical the upside of AI could be, just as I think most people are underestimating how bad the risks could be.” – Dario Amodei

How do we navigate safteyism in the age of AI?

The key is to get a reasonable handle on actual risks. There’s also this notion of risk versus reward. In my opinion, this talk of dooming humanity and extinction events is misguided. It lets us avoid the very real current risks of AI while focusing on things that are both very unlikely and incredibly vivid.

Instead, there should be a real focus on the potential for societal good and defining a much more vibrant and human path for AI. I’m convinced it’s a very powerful tool. At the same time, we need to be very much focused on the societal harms that it can cause. Chief among these are harms that have already come from things like social media, where we fail to act to protect society from the harms that algorithmic software can do. These harms are extremely profitable for the companies, but they damage society in profound ways. Worrying about AI doom while avoiding action on social media harms is madness.

The entire narrative around AI needs to change in terms of what it brings to us, but also what it costs. There is an attitude that the companies need to change in order to garner the proper public support. Destroying jobs with AI is a loser, technically and politically. Equally, there are attitudes on the part of the public that need to change. This genie is not going back in the bottle. Ignoring AI is not an option.

The most damning part of safetyism for AI is this doomerism driving development. There existential, over-the-top risks are put in the driver’s seat. Meanwhile, rather normal use and concerns about well-developed software go by the wayside. There isn’t a sense that real, meaningful concerns around AI are being addressed effectively. The commonplace is ignored. The doom is the focus.

The focus on the existential is used in a way that avoids dealing with difficult, practical, realistic circumstances. It has also led to views of a future as an AI nirvana, while avoiding the real needs of the electorate and humanity. This leads to a weak case for the development of AI, where there should be strength. The entire narrative is the real disaster. Safetyism is at the core of that disaster.

In my opinion, the focus of development needs to be maintaining the human element in this technology. AI should be a tool for accelerating human cognition and thought. An accelerator for creativity and ideas. Using it to amplify humanity’s progress. My recent experiments with AI certainly demonstrate this to me.

In a nutshell, the doomerism in AI is safetyism run amok. It allows the frontier labs to avoid actual meaningful, realistic safety issues that need to be addressed as a matter of course. Is AI dangerous? Yes, absolutely. Can it be controlled? Yes, absolutely. This is the work that we need to set out before us, not overwrought concerns. The focus on the extremes has allowed the banal concerns to be ignored.

As an example of safetyism run amok, when I was at Sandia, and we started to use AI extensively, we got access to ChatGPT. When I tested the internal version against the free external versions, the internal version was always worse. Safetyism had taken the capability of the LLM and lobotomized it to satisfy its demands. This was a prime example of the damage safetyism does to productivity and work. Because of safetyism, a premier research institution was forced to use an inferior version of a product that could transform its ability to do research.

The implicit message in all this is that we are only protecting old secrets. We are not creating new ones. Not having the best and most capable tools in the hands of our national security laboratories should be a scandal in itself. The price of safetyism is actually less aggregate safety for society, with a degradation in our national security. If we are not creating new secrets and new technology, we are going to be surpassed by our adversaries. They are not standing still, but we are.

“If the parts of a system are prevented from facing risks, the whole will become unable to adapt to new dangers.” – Aaron Wildavsky

While the left became obsessed with the use of language and with places like safe spaces, the right attacked anything the government did. The effect where I worked was that any project that failed or didn’t produce the intended goals was viewed as a waste of money. Management started to avoid these sorts of problems by lowering their sights on what was to be accomplished, more and more. They chose targets that were slam dunks and easily achieved.

Any time a project didn’t do exactly what it said it would, it was viewed as a fuck-up. Increasingly, managers simply lost the ability to take those leaps of faith and risks. Over time, projects became more and more risk-averse, and work became less intellectually engaging and creative. Big breakthroughs and big ideas were rarely explored. Our top research institutions were hollowed out by this irrational fear, by the belief that funding would be withdrawn if a project ever involved anything that didn’t pan out.

The issues on the left infected society as a whole, and they resulted in things that are genuinely funny being viewed as cringe and unacceptable. They choked off valuable and essential conversations about race and gender. Instead, an enforced political correctness took hold that avoided all of these topics. These topics are far from settled, and the conversations that should have been happening across society were simply destroyed.

“Far better is it to dare mighty things, to win glorious triumphs, even though checkered by failure, than to take rank with those poor spirits who neither enjoy much nor suffer much, because they live in the gray twilight that knows not victory nor defeat.” – Theodore Roosevelt

Then COVID came and kicked all of these fears and behaviors into overdrive. Now, when you see someone wearing a mask, it’s a safe assumption that the person is left-wing. On the right, there is the overwhelming stupidity of vaccine denial and the idiocy of the MAHA movement. All of it is safetyism in its dumbest form.

COVID was an example of safetyism in overdrive, as we went too far in many regards to ensure the safety of people who were not really at risk from the disease. Meanwhile, we probably didn’t do enough to help the vulnerable. It was a safetyism catastrophe that made our societal reaction to COVID far worse than it should have been. With COVID, safetyism killed many people. The USA did terribly by almost every conceivable measure.

The cost of safetyism is incalculable. Its cost to society is massive, not just in dollars, but in opportunities lost, lives less rich, and upbringings damaged. It’s even worse than that. It costs lives. It costs more lives than it protects.

“Only those who will risk going too far can possibly find out just how far one can go.” – T. S. Eliot

One of the facts that has become clear to me is that you will die. Something bad will befall you, and your life will end. Safetyism will not save you from this outcome, but what safetyism can do is make the life you lead before then shallow, less full, and less accomplished. Safetyism will hollow the good out of a life.

Life, being finite, needs to be well lived. Part of living life well is risk-taking: failure and the danger that things might not work out. Safetyism tries to take all of that away. What you get with safetyism is protection from obscure and rare fates, but also the destruction of what makes life good and worth living.

I watch safetyism destroy childhoods, like my own children’s. I watched safetyism take a wonderful place to work, Los Alamos, and make it gross and terrible. Just as it made my time at Sandia a shadow of what it could have been. It’s time that society as a whole cast this off and take more risks. The rewards would be massive.

“Life, if well lived, is long enough.” – Seneca

Verification And Validation Is The New Superpower

“The real problem is not whether machines think but whether men do.” – B. F. Skinner

You are smarter than AI.

You are more creative than AI.

AI is faster than you and can digest more information.

AI is a tool.

“With great power there must also come great responsibility.” – Stan Lee

You are responsible for determining whether AI results are correct and fit for purpose. If and how any of these results find their way into a finished product is your decision. Your intelligence, energy, and creativity must be harnessed to determine any ends. Anything less is human malpractice.

This process is known as verification and validation. It is your superpower in this new age of AI.

“If you’re nothing without this suit, then you shouldn’t have it.” – Tony Stark

Tony Stark’s Iron Man armor is a good analogy for all this. When Tony Stark puts on the Iron Man armor, what happens in that armor is still his responsibility. He is still in charge. He is still the one completing the action. He is in control.

With AI, you are granted a different kind of power in an intellectual sense. Your suit of intellectual armor is something you are responsible for. You must use it in a way you can stand behind. If you want to be a superhero and use this superpower, you are the one who must be responsible for what it does. Doing that is a skill. It t is a skill I am working hard to develop better. I believe it should be part of the development of everyone using AI. This is a society-wide project.

I submit that verification/validation, as a skill, is the equivalent of your suit of armor. Practicing it when working with AI is the path toward success. It is also the path toward responsible use. It is the path toward getting the best out of these AI platforms. Step one is looking at each query as one in a series of tests. Reacting to each through iterative refinement of what I had asked is always necessary. In almost every case an essential step to getting the best results.

“Essentially, all models are wrong, but some are useful.” – George E. P. Box

Our experience with verification/validation is not new. It was born in a closely related area of science and engineering. The practice of verification and validation started under similar circumstances for computational simulation. It is a practice in which the scientific method is harnessed to produce evidence that a simulation is correct.

What AI shares with simulation is the speed and volume of computation done with modern computers. In both cases, they vastly exceed anything humans can comprehend. Just because things are fast and involve many computations does not mean they’re correct. The whole verification and validation mindset is structured to test correctness. Discover how true it is and the evidence of that truth.

Just as in AI, the vast amount of computing does not equal correctness. Correctness must be proved with serious evidence. That evidence can then guide decisions.

The advent of AI as a productivity tool has created a need to restructure the way we work. It also demands a restructuring of how we teach and how we learn. One benefit of AI might be making work look more like school. That would be a very good thing. The impact on the workplace and the educational system is profound. They are also closely aligned.

“Trust, but verify.” – Ronald Reagan

As the Borg say, “Resistance is futile.” This AI genie is not going back in the bottle. It needs to be developed for the good of humanity. Not the good of a few humans. We need to learn how to use this technology effectively. If we’re educating young people, their success in the workplace is predicated on mastering this technology. The more it’s mastered, the more it’s used, the more successful individuals will be.

What I have found is that the concepts of verification and validation have grown in importance. Any result AI comes up with, whether it’s a body of writing, a literature search, or coding work, requires testing and verification. This actually starts with the mindset you approach the use of software.

The foundational thought is “this is probably wrong. I just need to find out where.”

One needs to approach anything it produces with doubts. Doubt the output and look for things that are not sensible or expected. There are techniques for this that we need to teach people, and their use needs to be expected. It’s a necessary part of the educational reform needed to meet the moment. One way to do this is to outfit the output with many tests. This should always include tests you know the answer to. If AI can’t give you the answer you already know, you can’t trust it.

This is the verification part of the work.

This assumes that you asked the question or request properly. One of the things to recognize is that there are different failure modes. Most people think the failures are all in the output. Garbage in. Garbage out. One more important mode of failure is an inadequate prompt. You were not clear. You were not specific. You were misunderstood. Often, the prompt is flawed and needs to be refined. Corrected and given more detail in order to get the right answer. So, correct yourself and try again.

Then there is the case of hallucinations or outright mistakes. These require other steps. For instance, when code is being produced, demand unit tests for each capability (to establish the adequacy and dependability of what’s produced). Check those test cases! There’s also spot-checking outputs, making sure references actually exist, and a host of other checks that AI can help with.

The key is always to approach the output from an AI platform with an element of doubt. Work steadfastly to remove those doubts. Go again looking for anything you missed. Only when you feel sufficiently confident, move forward.

Given how weak the actual practice of verification and validation is, there’s plenty of reason for concern. V&V is often the first thing to go in computational simulation. With AI, this will be calamitous. In many areas of endeavor, the entire workforce will be using AI to do their work. We need to think about how to do this in an effective, efficient, and safe manner. If we don’t develop these skills, we’ll feel very productive, but that productivity will be an illusion.

The ability to test AI starts with your prompt. Is your prompt well understood? Is it clear, and does it get the response you were expecting? Sometimes that’s the core of your problem. A second way prompting is essential is whether you outfit the response with tests that get at the legitimacy of the output. Do you actually build the sort of strong testing environment that lets you check whether the results you get are good? This is one of the key things to do.

Part of good prompting is being well equipped with an understanding of the topic you’re prompting about.

This is where education comes in. The education of students needs to include the basics, an understanding of how to get to the basics. Additionally, a refined sense of where the gaps in understanding are. What is foundational knowledge, and where is that knowledge a little fuzzy? Finally, how do you test knowledge? How do you test what you’re doing, and how do you make sure you’re on the right track? These form the foundation of any product. The product will go further than the foundation, but must include it..

The key is repeated prompting and correction. The corrections are born from the doubt and reflection on the output. The whole cycle is driven by not being satisfied with the result until it is “perfect”. The first prompt is rarely sufficient for any complex task.

Using more than one LLM is another path to success. This might fill the role of code comparison in simulation. Where answers are most interesting is where they differ. You have some evidence of correctness where they agree. I did not say correct, both could be wrong. Still, the differences in the answers are where to focus initially.

Recently, I asked Muse to recreate what I asked Claude to do. This was creating a modern Von Neumann-Richtmyer Lagrangian code. Claude had done an outstanding job and matched what I had once done by conventional means. Muse messed it up. The answers were different. The numbers were off due to errors. Then I looked at the answers; they had oscillations that were unexpected. It turned out Muse had left out some of the stabilizing artificial viscosity. Things were almost identical with this. Things are still a little different, but I haven’t figured it out yet.

That said, if Muse had done this a year ago, I’d be writing about it.

The validation part with AI is a bit less structured. This is just like simulation. Validation is comparing the new information or results against reality. That reality depends greatly on what the prompt is doing. One place it is easy is in checking references. New references should be confirmed. Hopefully, lay eyes on the actual print. You cannot test all the new information. You need to look to confirm some of what it produces. The more you confirm, the more confidence you can have. Each confirmation is that evidence.

“There is surely nothing quite so useless as doing with great efficiency what should not be done at all.” – Peter Drucker

Our National Labs Are In Deep Trouble.

“Scientific progress on a broad front results from the free play of free intellects, working on subjects of their own choice, in the manner dictated by their curiosity for exploration of the unknown.” – Vannevar Bush

We need to talk about how misaligned incentives have eroded the quality of the Labs. I will discuss the important role these labs have for the nation, its short- and long-term security, and how to fix the problems. At this moment of extreme change and danger, the lack of high-performing federal Labs is dangerous. They exemplify the decline in American science.

Before I get to the bigger, deeper issues, I’d like to recount an episode that shows how far the moral and ethical behavior that’s accepted at the labs has fallen. This was one of the most abhorrent episodes while I was at Sandia. This gets to some deep issues with the mindset of people in parts of the lab.

I had a student who was quite good. He has his PhD now and is a staff member. He was working on his degree at Texas A&M University. His advisor at the time was an Iranian citizen who had lived in the United States for quite some time. He is a citizen now.

“Ignorance, allied with power, is the most ferocious enemy justice can have.” – James Baldwin

Ar required, the counterintelligence part of the lab demands that we elaborate on any external collaborations we have with foreign nationals. I complied. When I looked within the database for the information to make sure it was correct, I noticed that the line item associated with this professor was labeled as “terrorist.” In other words, the professor was labeled as a terrorist. I found this alarming and investigated. It turned out to simply be a general label for Iranians, not a statement about the person.

This only made the label worse.

I found this to be a genuinely appalling lack of judgment on the part of the counterintelligence people. I called it out, and they declined to address the issue, saying that it was too difficult to fix within their database. This should have been a three-alarm fire for the counterintelligence office. Nothing the government funds should ever use this kind of language or slur to describe anyone. Can you imagine what would happen if they took someone who came from an African country and labeled them with the N-word?

I will just note that the label “terrorist,” when given to anyone of Arabic descent, is a racial slur these days. The lack of any sort of sense of this on the part of people at the national laboratory was one of the grossest and most disgusting things I had seen in my entire career. As far as I know, this practice persists, and they still label people of Iranian descent as terrorists. I don’t know whether this applies to other nationalities, but it is an appalling practice. Full stop.

This repulsive example is just the tip of the iceberg of fucked up things ruining the Labs.

“The prospect of domination of the nation’s scholars by Federal employment, project allocations, and the power of money is ever present and is gravely to be regarded.” – Dwight D. Eisenhower

For all the talk of alignment with AI models, the thing we rarely talk about is the misalignment of incentives for corporations and institutions. Increasingly, corporations, for all their wealth, are viewed as the model for institutions. I saw this at the labs, where corporate governance became the way to do things. In the process, the incentives totally aligned towards money and profit, and power became aligned similarly at the labs. This has led to destruction of capability and incompetence.

“The best minds of my generation are thinking about how to make people click ads. That sucks.” – Jeff Hammerbacher

One of the big problems is the advent of the gold standard science from the Trump administration. They are bootstrapping off of genuine problems in the scientific community to make things worse. They are pushing forward an ideological project that is undermining science. I would not mince words on how much the national labs declined during my tenure. There are real problems, and those problems are huge. Nothing the current administration has done addresses those problems directly or makes things better.

They are only making things far worse.

The Lab’s missions are entirely different from corporations. I would argue the alignment of incentives at corporations is similarly misaligned. Societal good and the well-being of the people in society are not even considered. They often suffer under the decisions that are most beneficial for profit. We’ve seen this unfold decade after decade, most acutely with the nature of social media. Their software is engineered to get humans’ attention because that attention is a source of money. This engineering is done without regard for the damage that it does to society as a whole or the individuals in it. Children are particularly vulnerable to this.

Now we have AI that is being written by these corporations.

Somehow we think that the misalignment of the corporations won’t seep into the alignment of these models. They have the power to do even more damage than the social media software has already done. This is absolute madness!

For a long time, the labs have suffered under the governance of the NNSA and the Department of Energy. The labs have become completely allergic to anything that looks like failure. Without failure, you also sacrifice success. This is particularly true in safety, but it’s poisoned research as well. There is this element of fear and hostility to any risk-taking that has led to a decline in everything the lab does. This is the pre-existing condition the current administration inherited. They have done nothing to address it.

Part of the reason for this is the inability of the agency managing the labs to accept failure in a way that is positive. They make little or no attempt to ever cast the failure as an opportunity to learn. It is an opportunity to punish. Anyone who screws up infects everyone with punishment. Every failure just generates more bureaucracy and oversight, and it creates a vicious, self-perpetuating cycle of decline.

“A ship in harbor is safe, but that is not what ships are built for.” – John A. Shedd

I watched this happen for virtually my entire career. I saw a wonderful, generous environment at Los Alamos savaged and destroyed. There, everything good was destroyed along with the problems being wrapped in red tape. They took a hatchet to the Lab where precision surgery was needed. Sandia already had its issues when I arrived with its corporate takeover in 1994. Those issues have gotten worse and worse over those 20 years. This is twinned with the priority given to money. By the time I left, the only thing that really got managed was money. The science, the engineering, the technology were not managed, except for reduction of risk.

AI is a great example of how this manifests itself. For starters, the labs have lost their supremacy as a source of superior scientific and technical knowledge for the nation. AI is this in spades. Private companies have all the expertise, and the labs are playing catch-up. Furthermore, the labs can’t take risks and do the research necessary to close the gap. In fact, the gap is just widening. The nation needs their expertise, and needs it for national security. They need to weigh in on the big subjects of our day. Today, the Labs are impotent.

I’ll get more of this in terms of how cowardly and weak the lab’s leadership is. They have capitulated to the Orwellian demands of the administration. This includes a new version of political correctness in terms of terms that can be used. First, the terms related to climate change were outlawed. No longer could researchers write their results freely. They were censored. Now they have outlawed “artificial intelligence”. It has been replaced by the President’s edict of “super intelligence”. This edict is pure propaganda and completely un-American.

All this does is undermine the integrity of the lab’s leadership and show how weak and craven they are. All they care about is funding. They have no moral certitude or virtue to lean on. In their capitulation, they’ve shown how unfit they are for leadership. They should have lost everyone’s respect.

It is the same thing that is poisoning the law firms that simply collapsed under the pressure from the administration. The ones who gave in to everything based on their threats, threats that were illegal. It violates freedom of speech, and it basically implements a form of chosen stupidity as policy. This simply accelerates the decline of the Labs.

Another example where safetyism has completely destroyed important national capabilities is launch to orbit and the satellite business. The obsession with safety and fear of failure means that NASA is no longer an organization that can lead in space. All our launch capability has been given over to business interests such as SpaceX or Bezos’s Space Launch Enterprise. This is completely unnecessary. Rather than empower and fix NASA, the government just gave up. The key is that NASA should be allowed to take risks and fail, just in the same manner that SpaceX does. Just as NASA used to do. The only reason it doesn’t is the attitudes that we have in government, which hamstring these agencies.

What I can say is that the NNSA is going the same way NASA went. It is in decline, and the way we have governed these institutions is destroying essential national capabilities. It may already be too late. The labs may already be in such a horrendous shape that they are just as incapable of executing their mission as NASA is capable of executing its mission.

“Failure is only the opportunity more intelligently to begin again.” – Henry Ford

I can start with one of my last experiences at the lab around AI. This was the nature of the chat LLMs the labs could access compared to what was accessible outside the labs. Invariably, when I tested the various chat capabilities at Sandia, the internal chat (which we should have had a free, unlimited license to use) was dramatically inferior to any of the LLMs on the outside in free mode. I was working at a premier National organization that had lobotomized these tools on purpose.

It’s my understanding that this imbalance has persisted. The whole reason this is occurring is fear: the lab’s fear of information getting leaked, their information control protocols being violated, and a host of other concerns. The concerns are very legitimate, but the fear of all this means that the labs are using dramatically inferior products to do seemingly essential research. In the end, the fear is completely undermining what ought to be essential work for the nation. AI is such an enormous transition and opportunity that the fear will have long-lasting, profound consequences.

The opportunities that I have described with AI are largely unavailable to the people in the lab. Thus, the productivity, the ability to explore ideas, and the basic capability are lost to them. Unless something changes, the labs will always be significantly behind the cutting edge. In a year, they may have capabilities that are equivalent to what I have now. By then, what I have now will be a pittance to what is available then.

“Political language… is designed to make lies sound truthful and murder respectable, and to give an appearance of solidity to pure wind.” – George Orwell

How can we fix this utterly, completely fucked-up situation?

The key is to start trusting people again. The labs need to be trusted. The people running the labs need to start looking at failures and problems differently. Change the mindset from thinking that these are not incompetent or malicious, but rather failures: things that can be fixed and learned from. They are not reasons to mete out punishments every time something goes wrong.

The key is to actually fail and learn from those failures and create better, more effective, more efficient systems. Every bad incident, every bad thing that happens at the lab, whether it’s a safety problem such as a fire or a security incident, is viewed as an apocalyptic event. It simply puts more bureaucratic measures onto the lab and increases the fear and the reticence of the lab’s management to do things. The government and public need to react differently. Bureaucracy is never the answer, and less of it is better.

Over the span of my career, this became an unremitting and corrosive influence on the labs. The labs are much less capable and effective places than they were. They are worse engineering and scientific institutions. It is all because of a lack of trust and the punishments and policies imposed by the governance. To be blunt, the current governance of the labs is a failure. The current management of the labs is a failure. This failure is something we have created and continue to amplify. It’s time to change course.

The ideology that they are promoting is unscientific and overturned by the casual examination of facts. Even worse, they have changed the priorities and the studies in research so that various ideological bits are now removed from the federal research agenda. This is another place where they’re making our future less wealthy, less safe, and less secure than it would be. Part of doing science is sometimes taking the evidence and accepting a hypothesis that violates the current mode of thinking. When a mode of thinking is simply imposed, the evidence is disregarded. The administration has taken a bad situation and made it even worse.

Let’s take the example of the COVID pandemic as being instructive. The right-wing administration instituted a bunch of conspiracy theories that now drive their actions. There were some genuine problems with how we responded to COVID. The view of expertise, as exemplified by someone like Dr. Fauci. The advice that Dr. Fauci gave was from one extreme point of view. Where it went wrong was that it was unbalanced in terms of what the suggestions meant for society. Fundamentally, it was toxic safteyism. There were other bodies of expertise that should have weighed in to moderate the suggestions made and come up with a better solution for society as a whole.

Trump proceeded to pour gasoline all over the conflagration. The issue, particularly for democratically run states, was that the medical advice was taken out of balance and fed into the rampant safetyism that defines society today. Rather than allow there to be reasonable risks for populations that were not susceptible to disease, they imposed draconian lockdowns on all of society. This is probably most acutely felt in the impact on children and education. The problem is that there was an inadequate level of risk-taking and a balanced perspective. It wasn’t that the expert advice was wrong or bad. It was that the expert opinion and advice came from one point of view that was not measured against other considerations effectively. This has turned into another attack on science that has moved everything in the wrong direction. It’s one of the reasons we have unprecedented measles outbreaks in the United States and falling vaccination rates.

In the end, both the left and the right wing of politics failed: the left wing with too much safety and unbalanced advice, the right wing with unscientific ideas and conspiracy theories.

Returning to the governance of the labs, the impact of both of these trends is clear. By punishing failure and failing to take risks, we are setting the science back dramatically. The science and technology we should be counting on for a better future are being crippled by both of these trends.

“Facts do not cease to exist because they are ignored.” – Aldous Huxley

This is not a left-wing or right-wing thing. Both sides of the political spectrum have damaged the labs. They’ve just done it in different ways. Although the right-wing assault is more current and visceral, the left-wing assault has gone on for decades. In both cases, they are harming the nation and ultimately leading to less wealth, less health, and less security for the vast majority of the population.

“Moral courage is a rarer commodity than bravery in battle or great intelligence.” – Robert F. Kennedy

Steepened Methods for Remap, Advection and Hyperbolic Conservation Laws

“The quantitative influence of these terms can be made as small as one wishes by choice of a sufficiently fine mesh for the numerical integrations.” – John von Neumann and Robert D. Richtmyer

The implementation of such a method is one of my most enduring achievements and contributions to national security. It was put into a major production code for Los Alamos. The methodology remains important and may be a path forward into a development of improved capability across a whole spectrum of codes. It can be explained with some simple principles. I hope to do that here for a broader audience.

“A new algorithm for the volume tracking of interfaces in two dimensions is presented. The algorithm is based upon a well-defined, second-order geometric solution of a volume evolution equation.” – William J. Rider and Douglas B. Kothe

Another significant professional accomplishment was the paper I wrote with Doug Kothe on volume tracking using volume-of-fluid methods. It’s got nearly 2,500 citations for the Journal of Computational Physics article we wrote. There was a related Annual Reviews Fluid Mechanics article that came out a couple of years after our article. I’m sure our article would probably have 4,000 citations were it not for that. It has a similar citation count to ours. Nonetheless, it is a great accomplishment, and I’ve been told that the code that I wrote (almost as a hobby and part of an unpaid project at Los Alamos) is still being used. It’s the same production code I contributed to for steepened methods.

I didn’t actually put the code that I wrote into the production code. This was the work of a colleague, Ed Dendy, who did the heavy lifting. I was the idea man, and we worked in concert with one another.

In the late ’90s, we discovered that the use of adaptive mesh refinement was insufficient to retain sharp interfaces. This in physical circumstances where those sharp interfaces should not diffuse. The situation where this becomes most acute is when the flow is expanding, but there’s a material interface embedded. In this situation, the material interface grows almost without bound and becomes extremely diffuse. For some simulations, this is unacceptable and must be mitigated.

This shows up in a test problem that is quite common. The Woodward-Colella interacting blast wave problem at late time has a contact discontinuity that becomes embedded in an expansion wave. For most methods, the contact becomes extremely distended. This ends up being a very critical test for the ability of the code to handle a sharp interface.

Thus, we needed to add the ability to retain sharp interfaces to this code. There were two means to do this:

1. The volume tracking that I discussed in the paper with Kothe. I wrote the toolbox code to demonstrate how to do this in an object-oriented way. I’ve discussed this before, where I learned that the standard way of implementing volume tracking with a series of nested if-then loops had too much cyclomatic complexity to be easily maintained or extended.

2. There is a second way to maintain a sharp interface. This is the notion of what’s often called steepeners. This ends up being a controlled way of combating numerical diffusion. This often involves anti-diffusion, and there are a host of methods for doing this. Some are physically motivated, effectively looking like surface tension; these use an analogy to physics to achieve sharp interfaces.

“Simplicity is prerequisite for reliability.” – Edsger W. Dijkstra

This idea originally came from Ami Harten. He introduced a method called the artificial compression method (ACM). This method worked to remove numerical dissipation. It would remove it in a safe way that removed the dissipation where it was unnecessary. ACM was amongst the set of first methods designed to overcome Godunov’s theorem. It would turn out to be useful with later generations of methods.

My mind, when developing numerical methods, works in a Godunov framework. A geometric reconstruction of the profile in a cell is used. That reconstruction informs how fluxes are computed. Below, I’m going to describe and show the performance of methods using this formulation. I’ll also show some plots to illustrate the effect. I will note that this was the project that started to show me what Claude could do that blew my fucking mind.

The key idea in all of this is that, in order to get anti-diffusion, you reverse the way you get diffusion. Numerical diffusion is often viewed as the bane of numerical simulation. This is doubly so in places like Los Alamos, where the canonical numerical method for solving problems is the Lagrangian method, where interfaces are naturally preserved as invariants. Thus, the numerical diffusion necessary in Eulerian computations is viewed as pathological. I’ve spoken before about how wrong-headed this is. The solution of hyperbolic PDEs, which include the linearly degenerate interfaces such as contacts and shears, requires a modicum of numerical diffusion in order to ensure numerically and physically stable and consistent interfaces. Without numerical diffusion, solutions are a mess. Nonetheless, it is around interfaces that much of the annoyance and distress of code users revolves.

I will just note that Lagrangian material interfaces are themselves filled with some pathologies. The most famous of these pathologies is known as wall heating, which arises most classically in terms of the Noh problem, where the heating that results from it is quite extreme. In planar geometry, this is an infinitely strong shock bouncing off a wall, and there’s a dip in the density and a rise in internal energy that is called “wall heating.”

The desire for this Lagrangian material identity-invariant point of view can be seen in our physics education. By and large, when we learn physics in college, the Lagrangian frame of reference is taken. In some cases, this is merely due to simplicity. In other cases, it has a genuine character. In terms of relationships like solid mechanics, the Lagrangian frame is king. Most of more complex dynamics has its foundation with mechanics. Radiation transport is the same. All of this matters greatly in Los Alamos.

The problem with the Lagrangian frame is that phenomena such as shear and turbulence (and not to mention diffusion of a real physical kind) will always induce the destruction of the Lagrangian frame over time. This becomes unavoidable in virtually any multidimensional complex simulation. In this case, some degree of Eulerian representation is necessary if we want to compute the physical circumstances we care about. This is where interface tracking comes in.

Volume tracking methods are generally thought of as ways to keep the interfaces completely sharp in a nearly Lagrangian approach. David Youngs introduced the idea of viewing this geometrically. Youngs introduced a linear planar interface for tracking. This built on a representation known as SLIC from Lawrence Livermore that represented the interfaces as a series of straight lines. In some ways, this was analogous to the Godunov method, where constant values represent the reconstruction in a cell. One of the issues is that this method can produce side effects that are quite profound, and you trade numerical surface tension for numerical diffusion.

With numerical surface tension, the interfaces bead and form substructures or islands that are equally physically incorrect. You trade this for excessive diffusion, so pathologies are unavoidable. Wall heating is another one you get. The key is to be cognizant of the issues and manage them.

Steepened or anti-diffusive transport methods are an alternative. It was this alternative that I divined. Ultimately, my friend Ed implemented it in the production code at Los Alamos. As fate would have it, the production code people gave the method a completely different name than you would find in the literature. It produced a sense that it was unique and separate from what was there. They called the method “interface preserving.” As with most labels, it’s not correct in any way, but it also incorrectly divorces the approach from its origin.

“Numerical analysis is the study of algorithms for the problems of continuous mathematics.” – Lloyd N. Trefethen

In the remainder of this article, I’m going to describe how these methods work and how they perform. In showing how they perform, I’m going to go on a slight tangent to present a sidebar discussion of how much current AI work using Claude specifically assisted me. It’s an example of the sort of incredible boost to productivity these tools can provide.

As they discovered with Claude, I could reproduce almost everything I could do with Mathematica in numerical analysis of numerical methods. I used to do all this work with Mathematica, which carries a heavy price tag that a retired person such as myself isn’t very eager to bear.

I started to experiment with Claude and began to go through a host of numerical analysis tests and techniques that I had used over the years to see what the AI could produce. Ultimately, I want to use Claude to reproduce the results we already know and extend those results. Once I established that I could do everything that I used to do competently and correctly, I’m ready to extend things. This post will benefit from that capability.

One of the big things that Claude does is do this with ease and speed. I estimate that in 2 days of intermittent use of Claude, I was able to produce what would have taken me a month in Mathematica and writing my own code to produce. It also created figures and effortlessly produced a report that I could look at to check the quality of the work and its correctness. The key to doing this work is writing good prompts at the start. Next, the output needs to be carefully examined and verified. The prompt and the work from AI can be wrong. It makes mistakes, and your job is to find them.

In what follows, the results were produced in this manner.

You can get the interface tracking by using an anti-upwind method. The key is to do this in a way that does not go unstable. You take the anti-upwind flux and make sure it is nonlinearly stable with a limiter. TVD theory gives you that theory. The result is quite similar to SLIC.

You can keep this simple by using the so-called Superbee limiter. This is a good, but not great solution. You can amp up the performance by making the limiter sharper, including the CFL number in the form. It is still second-order when flow is resolved, but very sharp for interfaces.

“…a steeper representation of discontinuities, particularly contact discontinuities.” – Phillip Colella and Paul R. Woodward

Starting with Colella and Woodward’s PPM method, this can be improved. A way to do this is to use an anti-upwind high-order method. For example, you find an anti-upwind method using a minmod limiter. This is what we used in the IP method. The key is knowing that the more diffusive a method is in the upwinding, the more anti-diffusive it will be. This is what you do for PPM, ENO, and WENO methods to great effect. PPM also had a heuristic contact-material interface detection. It’s all that simple.

I’ve included some figures to demonstrate what these methods look like geometrically and in performance. Enjoy. This is a really simple and relatively bulletproof method. Going to multi-dimensions and avoiding pathological results is important. Anti-dissipation is playing with fire and must be done with extreme care.

“It can scarcely be denied that the supreme goal of all theory is to make the irreducible basic elements as simple and as few as possible without having to surrender the adequate representation of a single datum of experience.” – Albert Einstein

References

Rider, William J., and Douglas B. Kothe. “Reconstructing volume tracking.” Journal of computational physics 141, no. 2 (1998): 112-152.

Scardovelli, Ruben, and Stéphane Zaleski. “Direct numerical simulation of free-surface and interfacial flow.” Annual review of fluid mechanics 31, no. 1 (1999): 567-603.

Noh, William F., and Paul Woodward. “SLIC (simple line interface calculation).” In Proceedings of the fifth international conference on numerical methods in fluid dynamics June 28–July 2, 1976 Twente University, Enschede, pp. 330-340. Berlin, Heidelberg: Springer Berlin Heidelberg, 2005.

Harten, Amiram. “The artificial compression method for computation of shocks and contact discontinuities.” Maths Comput 32 (1978): 363.

Colella, Phillip, and Paul R. Woodward. “The piecewise parabolic method (PPM) for gas-dynamical simulations.” Journal of computational physics 54, no. 1 (1984): 174-201.

Yang, Huanan. “An artificial compression method for ENO schemes: the slope modification method.” Journal of Computational Physics 89, no. 1 (1990): 125-160.

Shu, Chi-Wang. “High order ENO and WENO schemes for computational fluid dynamics.” In High-order methods for computational physics, pp. 439-582. Berlin, Heidelberg: Springer Berlin Heidelberg, 1999.

Claude Blew My Mind This Weekend

“The best way to have a good idea is to have lots of ideas.” – Linus Pauling

Steve Jobs called the computer “a bicycle for our minds.”

I’ve been working on an idea with a friend and colleague. Some of that work called for numerical analysis, and since retiring I no longer have the software I used to rely on. For these tasks, I had always used Mathematica, which is expensive. My friend kept saying I should just ask Claude to check things, as if it were easy. This weekend I finally took him up on it.

I quickly found that Claude could do the analysis using Python libraries. Even better, it wrote up a report, and I could ask questions in plain language. What else could it do? I started asking Claude for the kinds of analyses I used to do myself. I derived numerical approximations. I analyzed accuracy and stability for ODEs and PDEs. I did modified equation analysis of various methods. It did a great job on every task, did it quickly, and produced documentation for me to check.

Next, I wanted to see the methods in action. I had Claude write and run code. I defined metrics and computed convergence rates. I implemented a host of linear and nonlinear methods, and I created some new ones. All of this happened at lightning speed. Soon I had a 200-page report covering everything I had asked for. The work was extremely competent, the feedback was useful, and all of it was scrupulously documented.

My mind was completely blown!

By the time I was done, it had done a month’s worth of work in hours. Counting the time I spent checking results, it was maybe one full working day. That is a speedup of 20 to 50 times, depending on how well I specified the tests. I can now see how easily it can help with work and accelerate the fuck out of progress. It gives me feedback, but the ideas and the direction are mine. I also need to check all the work. It needs to be verified! Without my guidance and creativity, the work isn’t worth much.

This should be the model for AI. It increases your productivity. You create and define the work, and it implements and tests your ideas. This applies to some very specific kinds of knowledge work, and it mirrors what we’ve seen with coding agents. The human is still driving. It lets you test, study, and implement more ideas. You can innovate and fail at a breakneck pace.

This is a change from how we usually work. Checking and verifying the work is critical. Verification needs to be based on well-defined and understood principles. It is somewhat more results-based, but requires a full education. I can see this change being needed in education. Any work done with AI needs to be seriously scrutinized. This is a skill to be learned as an emphasis.

This is the model we need. AI accelerates humans. It lets us try more ideas. Really, it lets us fail more. The barrier to exploring an idea gets lower. Most ideas won’t be good. The key is to fail and learn, then refine the idea and try again. You go through more cycles: fail more, learn more, create more.

“Ever tried. Ever failed. No matter. Try again. Fail again. Fail better.”– Samuel Beckett