Making progress in Physics as a hobbyist

AI Diffusion into STEM Academia
I was catching up with a friend who went from being SWE -> PhD in mechanical engineering/ applied physics. I told him I was surprised that his group was not leveraging frontier AI agents more as it seemed that the massive gains in pure math research is starting to trickle into phyiscs and adjacent fields, citing this report from Anthropic where researchers made some physics progress with basically no human input.
The Experiment
I had some AI agents scour different fields of physics for problem spaces that were computable, unsolved, and could potentially be scaled up by applying best practices from fields I was familiar with. I ended up on the problem of “limits on efficient designs in photonics”, basically a niche topic of interest on determining what is the theoretically most efficient chip design to solve various problems.
Experimental resources
I spent ~$300 on Runpod credits total and had access to the $200 AI subscriptions that give you seemingly unlimited tokens. The research was done primiarly with Opus 5.5 before Fable 5.2 and Astra 6.2 released, although I did use them to validate the results at the end and to help produce the final paper. They were useful in pruning some of my analysis and making sure the results I stated were accurate.
🤖 Why this field seemed relevant
🤖 marks the parts of this post that an AI wrote: this section and the collapsible sections further down.
What sold me on this field is that the people in it have written down, in plain words, what they are stuck on. Owen Miller (Yale) and Francesco Monticone (Cornell) put out a 140 page tutorial on fundamental limits in photonics this year. In it they describe where they want computed bounds to go:
…for any photonic design problem, there should be a prescriptive, automated way to compute bounds. Just as electromagnetic software increasingly offers automated inverse-design capabilities, one can envision specifying a design space, the set of allowed materials, and the objective of interest, with the software automatically producing an unsurpassable limit.
Then they list what stands in the way, and scale is the first item:
Three open challenges stand between this vision and routine practice. First, scale: SDP relaxations remain expensive, and the sparsity exploited in Ref. [296] is one step among many needed to reach industrial-scale design problems.
For a design problem with N degrees of freedom, the computational runtime of standard SDP solver scales as N^3.5 or N^4, which inhibits application at large scale.
An SDP is a semidefinite program, which is the kind of optimization problem these bounds turn into. A runtime of N^3.5 to N^4 means that doubling the size of the design makes the calculation 11 to 16 times more expensive.
“Ref. [296]” in that quote is a 2025 Science Advances paper from Miller’s group (arXiv version) that made these calculations sparse. In its discussion, that paper asks the concrete version of the same question:
When will such a method be viable on large two-dimensional ‘square’ design regions, or on three-dimensional design regions?
So the field has a stated goal and a stated bottleneck, and the bottleneck is how a computation scales. I can’t contribute much to the physics. Making a big matrix computation run faster and cheaper is a problem I know how to push on.
How verifiable is the problem?
Almost completely verifiable. Not as clean as a Lean proof but this is a classic problem where generating a valid solution is much more expensive than validating correctness. This plays a huge role in a novice/ hobbyist being able to make progress and for AI to “closed loop” aspects of the problem. Some more info here:
🤖 How a bound gets checked
What a bound claims. A bound is a statement like “no design in this region can score above 43.624”. The region here is a square cut into 78,961 pixels, and each pixel either holds material or is empty. That is far too many designs to try one by one, so the claim has to be proven some other way.
The solver hands back a proof attempt. Every real design has to obey a physical constraint at every pixel. The solver looks for a set of weights, about two per pixel, 157,923 in total. Add up the constraints with those weights and you get one large symmetric matrix. If that matrix has no negative eigenvalues, a few lines of algebra show that no design can beat the number. Finding good weights took 67 minutes on a rented GPU. Checking a given set of weights takes 27 seconds on my desktop.
The check does not trust floating point. A GPU solver works in ordinary rounded arithmetic, and a matrix that is “positive up to rounding” proves nothing. So a separate program, the certifier, redoes the check from scratch. It reads the problem file and the weights. It factors the matrix in extended precision and carries an explicit bound on every rounding error it makes. It prints a bound only when the worst-case error is smaller than the safety margin. It computes the final number in exact fractions and rounds it up. When it cannot prove the condition, it refuses and prints nothing.
It refuses in practice. Twice in this project the certifier rejected every answer a solver had stopped on. The first time the cause was my own mistake: the solver had been run on a slightly different problem from the one in the file. The second refusal, on the largest per-pixel case, has a likely explanation that I have not confirmed. A solver’s convergence report does not catch a mistake like the first one. A proof against the file does.
A second program checks the first. I had a second checker written in Python from the math alone, without reading the certifier’s source. The two share the input files and no code. Where both prove a bound, they print the same number to the last digit. 26 of the 44 result bundles pass both checkers.
What this covers. There are three links between the physics and the number:
- Physics to a discrete model: a 2D grid at 40 points per wavelength. This link is ordinary numerical modelling and is unproven.
- The model to the problem file. A separate script rebuilds the model with its own code and compares it against the file. That is a floating point comparison, and it passes on 36 of the 44 bundles.
- The problem file to the bound. This is the proven link.
Why this mattered so much. An agent can run a solver all night, and it can also be wrong all night. With a certifier in the loop, a number either comes with a proof or it does not count. I never had to judge a result by reading solver logs or by trusting a summary. This is weaker than a Lean proof, because you still have to trust the certifier’s source, the compiler and the machine’s arithmetic. Each result ships as a bundle with the inputs, the weights and a script that reruns the checks, so anyone can repeat the 27 second check without a GPU.
Results vs the field
Essentially I was able to push beyond the frontier of the field in terms of computable bounds of photonics on a 2d design problem. The previous fully granular result was at 8,400 pixels at most and the previous constrained result was at 57,600 pixels, and I reached 78,961 pixels fully granular and 160,000 constrained by making the calculations done with a GPU. The state that I left the work is basically “Hey if you care enough about this problem to pay for GPUs, you can pretty clearly just rent some GPUs and keep pushing results further”.
I wouldn’t say that I fully solved the problem of scale in this field but I presented an approach that moves in that direction.
🤖 Notes on the chart above: what each bar counts
What a bar counts. Every bar is the number of pixels in the design region, which is the area the optimizer is allowed to fill with material. Compare bars inside one panel. A few-constraint bound is an easier computation than a per-pixel bound of the same size.
DTU 2024. Their paper counts 1,849 “design variables”. A design variable is one number per pixel that says how much material sits there, so I read this as a pixel count.
Yale 2025, and why its bar says ”≤”. Their paper gives the size of the matrix for the whole simulation, which is 8,400 by 8,400. That count includes the empty space around the lens, so the lens itself has at most 8,400 pixels. Their region is also a strip about 100 wavelengths long and 0.06 thick. A thin strip is a much easier computation than a square with the same number of pixels, and their paper poses large squares as an open question.
Different devices. Stanford and DTU bound a mode converter. Yale bounds a lens. Princeton and I bound a light source next to a square. Only the Princeton bar is the same problem as mine.
My per-pixel bar. The 78,961 pixel result is on a mirror-symmetric version of Princeton’s problem at a higher material loss. On their exact problem my per-pixel bound reaches 14,400 pixels.
Left out. Morrison and co-authors (2026) solve a per-pixel problem at larger sizes. Their paper counts size in millions of matrix variables, which I could not convert to pixels, and it uses the answer to start a design without reporting it as a bound.
Does this qualify as publishable results?
The work I did here is a bit useful but not a step change. The ultimate goal of this subfield is to establish upper bounds on how efficient designs can be, so you can grade how much juice is left to squeeze on particular problems. This is useful to move this forward on a theoretical basis, but real chip designs happen in 3 dimensions obivously and this is still in 2, so it is just a step towards useful.
I’m not all that familiar with how academics work but this results seems atleast up to the standard of a grad student, probably not going to make a thesis or win any kind of award. I took my friends challenge to mean “Could you create something to the standard of getting published”… not literally getting published since there seems to be a lot of schlep in between getting a decent, sound result and your name actually appearing in a paper.
My role in this work
The Anthropic article that I had linked my friend to intially said their only input to the problem was telling claude to “keep going” or “try harder”. I found that I had to do a bit more than that. Claude Code was continually telling me that it had reached the frontier of how efficient we could make our GPU code and that pushing the results any further would cost several hundreds… Before I pushed it more and more to do more A/B testing/ research more GPU tricks/ go deeper into making things more sparse or be less memory intense.
It seemed weirdly eager to give up, and also seemed to lack the common sense to be constantly stating its model, falsifying its model, and collecting more data in each run so that it could further improve our experiments. Repeatedly it would try and launch long running experiments with little visiblity into progress and I had to re-architect things in such a way that we were getting faster feedback loops, able to bail out of experiments faster to conserve $ and time.
More than anything it seemed to put very little value on time itself… which to me was the binding constraint. I only had so much time and interest to put into this work and long breaks would hurt my ability to get this over the line. I continually ran into the problem where it would say “OK waiting 2 hours for this to run I’ll be monitoring it”… only for it to not actually monitor anythig without additional harnessing.
Overall I would say I spent a lot more time adding research and performance debugging taste than I would expect since I have no experience in real empirical research, and while I would consider myself very good at performance debugging… it seems like something that AI would be RL’d to be super human on at this point.
Finding mistakes in published work
There has been a lot of headlines around “AI Found thousands of mistakes in published works” and I found a small matrix multiplication error in one of the leading papers when reproducing it. I’m going to reach out to the author to let them know. This makes me think there is a lot of lwo hanging fruit in just doing better science by having automatic checks on math/ methodology/ logic checks.
🤖 The mistake, and how sure I am
The paper. Angeris, Diamandis, Vučković and Boyd, “Bounds on efficiency metrics in photonics”, from Stanford in 2022. One of its examples is a small device that converts one waveguide mode into another. The paper reports that no design can exceed a purity of 0.981, and it shows a design that reaches 0.966. The authors published their code as PhysicalBounds.jl. That code still runs four years later, which is the only reason any of this could be checked.
Step 1: reproduce it. Their Julia code, run as published, gives a bound of 0.9815 and a design at 0.9659. Both match the paper.
Step 2: rebuild it independently. A Python rebuild of the same problem matches their matrices to 13 digits. So the rebuild and the original are the same problem.
Step 3: the test that failed. A bound of this kind rests on one rule: every real design must satisfy every constraint. That gives a cheap sanity test. Take a real design and plug it into the constraints. Their own best design violates 196 of the 800 constraints as the code writes them. A real design cannot break a constraint that is supposed to hold for all real designs, so the constraints in the code are not the ones the physics gives.
Step 4: the cause. The function construct_matrices builds one symmetric matrix per constraint. It writes the source term -b_i into two mirrored positions of that matrix. A symmetric matrix counts each mirrored pair twice, so the term comes out doubled:
as coded: y_i^2 + y_i (G y)_i - 2 b_i y_i a <= 0
physics: y_i^2 + y_i (G y)_i - b_i y_i a <= 0
The neighbouring term in the same matrix is halved for exactly this reason. The source term is not. With the coefficient set to 1, the same design satisfies all 800 constraints, and the largest value is 4e-18, which is zero to rounding.
How much it changes. Very little, and the paper’s conclusion stands.
| Bound | |
|---|---|
| Paper | 0.981 |
| Same problem as coded, solved to convergence | 0.97904 |
| Corrected constraint, certified | 0.97865 |
| Best design | 0.9659 |
There are two separate effects in that table. The printed 0.981 comes from a solver that stopped at a loose tolerance, about 0.0025 above the converged value of the same problem. The factor of 2 then moves the bound by another 0.0004. The corrected bound still sits above the best design.
How sure I am. About 97%. Three checks agree: the algebra above, the design test in step 3, and a separate forward simulation that reproduces every corrected constraint to 13 digits. What would prove me wrong is a variable convention in their code that I misread. For example, the last variable could stand for half the source amplitude. I looked for a rescaling like that and did not find one that works: it would need one factor inside the design region and a different factor at the output. I found no bug report, erratum or correction for it anywhere, and I have not checked the journal version of the paper.
The authors have not seen this yet. Until they have, treat it as my reading of their code.
You can just make progress incremental progress in fields you care about (for now)
If there is a particular problem you care about that is sufficiently computable it is likely you can get atleast up to the frontier of the problem space and start bumping into the edges and seeing if you find anything.
I think the price of GPUs over time will continue to go up
I was skeptical of the claim by Dwarkesh Patel that the price of compute would continue to rise, but now I’m starting to see it. Before GPUs had a lot of power in ML/ Science etc. but only a small circle of people in the world could actually use them effectively. And by effectively I mean getting to 70%+ FLOP utilization and using every sparsity trick and memory trick that is easily findable.
There is tons of potential use cases for GPU’s now that this skill is effectively democratized… H200’s might become irrelevant for AI research but become critical for making progress in biology/ materials science/ physics etc.
Conclusion
Overall I feel like with around 2 weeks of work, working on this extremely part time, I was able to get to a solid result. I think that we will continue to see that a lot of incredible progress in science. Math is showing the bleeding edge of AI right now since it is fully closed loop with Lean and requires no “schlep” to get to the answer. Everything else that has any degree of “schlep” to it… I beleive the Riemann Hypothesis moment is coming after several bottleknecks get chipped away at, even if the bottlekneck is as simple as “Get GPU and AI access into the hands of academics who care about these problems, have funding, and publish their work”.
I feel relatively strongly that the typical STEM academic is not sufficiently AI pilled and that is in the short term slowing down scientific progress since they are in many cases the people who have access to scarce equipment, funding, and the credentials to be respected in a given field. In some fields like mathematics this probably doesn’t matter since it is largely done for the pursuit of knowledge and understanding. In other fields like medicine it would be productive to make their research more open, share more code and data, and try to use coding agents and the like more.
Links
- Code and proof bundles: ianm199/photon-limits
- Paper: Toward scalable computed bounds for 2D photonic design (Zenodo preprint)
- Data: large inputs for the proof bundles (Zenodo dataset, 3.6 GB). With these, all 44 proof bundles re-check from a clone of the repository.