Sarah Marzen
  • Main
  • People
  • Contact
  • Google Scholar
  • Random ruminations
  • Research Program
  • Conferences, Workshops, and Working Groups
  • Teaching
  • Main
  • People
  • Contact
  • Google Scholar
  • Random ruminations
  • Research Program
  • Conferences, Workshops, and Working Groups
  • Teaching

Random musings

Stray thoughts on my research, related research, education research, and sweeping commentaries on entire fields
Picture

Drift-diffusion models of quantitative sociology

11/5/2026

0 Comments

 
I deliberately made a provocative title. Quantitative sociology? I suppose that's economics. But what I'm thinking of is a physics-y version in which there are minimal models that roughly capture what's going on rather than completely rigorous models that capture much less or lots of statistics to figure out what correlates with what and what causes what.

Of course, we turn to agent-based simulations. And with agent-based simulations, there's some state of every agent; I call it p in what follows. I'm assuming it's a list of beliefs, a list of probabilities, but it could be something else. The N agents have their beliefs/actions/whatnot update iteratively using some unknown function f. This function can take into account cognitive biases, weird action policies, anything. The question is--what does the average value of p do? What is the average belief and how does it fluctuate? This means that I'm essentially looking for polling dynamics. Really, I'm looking for minimal models of sociological movements based on these polling dynamics. What's the noise in the model look like? What about the drift?

Without assumptions on f, we can't say much, but I stipulated that you could take partial derivatives of f with respect to p to first order and got somewhere. Essentially, Claude (because let's be honest, it's 3 AM) Taylor expanded f around the future p and assumed homogeneity of the agents; not that they're completely similar, but that their interactions are drawn iid from some distribution and self-interactions are drawn iid from another distribution. That means the Central Limit Theorem comes into play. Surprise, surprise: You end up with a nonlinear drift and a nonlinear diffusion coefficient, but with drift-diffusion nonetheless.

The proof (a la Claude) is in this file.
0 Comments

Explaining power laws in financial data using more rigorous opinion dynamics models?

10/17/2026

0 Comments

 
There are power laws-- or things that look like power laws-- in financial data. I did a quick analysis of the NASDAQ this morning with Claude Pro. (Amazing what you can do these days with LLMs.) If you look at the histogram of stock selloffs, it looks like the distribution is either power law or lognormal. Nobody seems to know why. For the sake of argument, let's go with power law, as that's what people have seemingly found. This was only five years of data, which may be why an analysis was inconclusive.

So why are selloffs power law, and what can we do about it? We should be scared that these selloffs are power law, meaning that a selloff of size x has a frequency that is power law in x. That means that a huge black swan selloff that crashes the economy is far more likely than it would be under another model.

I have a proposal rooted in opinion dynamics research. We already know that opinion dynamics models can exhibit dynamical richness, including maybe transient chaos from a paper I wrote with Emily Dong. I'm sure there's more to come on this front. Some of the graphs I've seen in various opinion dynamics papers are suggestive of something more complicated than a fixed point, and the more cognitive biases you add to a Bayesian model, the more chaotic things should be. Chaos is kind of generic in complicated enough models, so why not for modified Bayesian-like models? Not that this selloff behavior is so much chaotic as it is suggestive of self-organized criticality.

Given how complex systems with simple dynamical rules with nonlinearities can be, It may be possible that opinion dynamics models can explain the power law selloff distributions if you put in the right cognitive biases. And if that works to explain the power law selloff distributions, there is actually a constructive route to stabilizing the economy if you can just attack the cognitive bias that's causing the wreckage. You have to be careful, because the wrong way of attacking the cognitive bias can lead to even more instability if you're not careful. There are examples of interventions having backwards effects in complex systems everywhere because it's so hard to predict what's going to happen, as the system is literally too complex. Network-level effects can turn a well-meaning intervention on the psychology of financial traders into chaos, quite literally. But at least we'd know what to attack.

Alas, the problem I foresee with this line of attack is that we really don't have a sense of what cognitive model to use. Bayesianism is well-formulated, but how do you model cognitive biases? Nobody knows. If someone says that they know, they may have a proposal that has been tested on a few data sets, but that's not enough to say the problem is solved. But maybe Bayesianism with cognitive biases and reasonable models for behavior based on beliefs can explain these power laws in selloffs.
Picture
0 Comments

Large Language Models and passive learning

9/1/2026

0 Comments

 
This is not a particularly new observation, I don't think, amongst educators who have taught students recently. A lot of students nowadays are using Large Language Models to complete their homework, get through study guides, and even take practice midterms and practice finals.

When educators talk about this phenomenon, it is often believed that the students are maliciously cheating using AI. At my colleges, what would constitute cheating in any other generation is often not done with any particular sense of malice. Oftentimes, the students are naturally wonderful learners who really want to get what's going on in the course, and they want to use AI to supercharge themselves.

The problem is that AI does not supercharge student learning in general. One study looked at the difference between Chinese students' homework scores and exam scores. The students who used AI did quite badly on the test, while acing the homework. I severely doubt that everyone using the AI was simply copying and pasting.

I think the reason for the lack of real learning when using AI is very simple. AI is, unless you're in study mode, entirely passive. You ask a question, you get an answer, and you read and nod. A lot of work has been done on the difference between this kind of learning-- which is passive learning-- and active learning, in which you fight to understand the material by asking yourself questions about what's happening, doing practice problems, and essentially stumping yourself en route to a better understanding. Active learning can include techniques like think-pair-share, group work, or clicker questions. Active learning techniques are known to outperform passive learning techniques in terms of retention, while also being less enjoyable for students. Why? Who wants to exert energy? Nobody. We just really want the answer. But it's better for us to work for the answer.

What this boils down to is that it's nearly impossible to use AI in a way that supercharges learning. This does not mean that AI cannot be used for generating lesson plans or helping with research projects if you're having trouble coding within the allotted time, like I discuss with some students here. But it does mean that study mode is a must. Those questions are not just a nice idea that some people had when they wanted to help students; they are essential. One study that I can't find now showed that study mode saved students from losing retention of material while using AI.

I think when we talk about how to use AI to supercharge humanity, we have to remember that one of the most important things we do as humans is grow, and passive learning means that there is, essentially, no growth.
0 Comments

The AI scientist?

7/25/2026

2 Comments

 
I've decided we're at something more like the cyborg scientist.

What do I mean? People are wondering if you can just do science with AI. Can AI build the next iteration of itself? Can AI be used to come up with math conjectures or at least prove or disprove conjectures that we have? People certainly think so, including Terrence Tao of Fields Medal renown and some other major mathematicians whom I will not name for privacy reasons.

I wanted to do an experiment. Could I get AI to write a decent paper for me? I had tried in the past to get it to come up with a good paper idea, and it had failed terribly. AI lacks creativity even now. But math is filled with rules than AI could memorize, and coding is filled with rules that AI has memorized, so I attempted to get AI (in particular, Claude) to write an entire paper with only about 15 prompts.

Not only was this an experiment about what AI could do these days; I was also just too tired to write, though later, when I realized that AI slop couldn't pass muster, it was clear that this entire endeavor was just an AI experiment.

My past relationship with AI has been that it helps, but does not supplant. Information theory identities needed to be double-checked and corrected due to major hallucinations for a paper on bacterial chemotaxis. Factors of two had to be checked for a theoretical connection between memory and regularization when training neural networks. Other people have found similar things. So I assumed that actually, AI would need a lot of handholding and would be unable to produce a decent paper all by itself.

To give it its best shot, I chose an easier research project. The application was novel (pharmaceutical manufacturing), but the theoretical ideas were well-known. Basically, it had to do with turning the control theory patent that I mentioned in a prior blog post into a paper that was readable. All I had to show was that closed-loop control beat open-loop control in theory and sometimes in practice, something that is straightforward and well-known but just not well-known in pharmaceutical manufacturing.

I prompted Claude to write the paper, with prompts that ranged from requests for code and figures and LaTeX files to genuine asks of the AI chatbot to produce results. In about 15 prompts, I had everything, including a bibliography, with minimal effort. The math and code were perfect, which made sense; the result relied on well-known tools. The writing was, at times, atrocious. There were run-on sentences everywhere that had to be corrected. I don't think AI could have come up with the paper idea, a permanent weakness of AI (as it lacks creativity). But the AI-assisted paper is totally fine, and only a few modifications were made in getting it to its final form.

Actually, the original abstract raised some questions because it didn't touch on AI enough, but a slightly modified abstract (the cyborg scientist abstract) was given a 50% discount on open access publication fees. The manuscript was reviewed badly, with a revise from a lower-tier journal, but one-third of reviewers was fooled. See details (including the AI paper) below.

It is insane what AI can do nowadays. This paper is as close as you can get to AI slop without being AI slop.

This paper did not get in. Still, I am very scared for the future of science and humanity. In the future, will a math PhD simply involve a year of prompting an AI chatbot? How close will future graduate students and researchers come to AI scientists who simply sit there and monitor AI chatbots doing all our work? It is already uncomfortable to be at this level of cyborg scientist, where AI is so involved in writing the paper that it seems like the paper is Claude's rather than mine.

Right now, I feel like we're screwed as researchers. In 100 years, someone with my job will just be asking AI to produce a paper that they check. This is the Golden Age of AI, despite its gloom, before we slip into the years in which AI replaces our brains. All of our brains.

Update: The first round of reviews is in. We are going to withdraw the interesting AI experiment from the journal Information. The reviews were not so positive. Still, for the experiment's sake, I want to post the paper and reviews here.

The paper is available here.

The reviews are available here.

One out of three reviewers was fooled.
2 Comments

Pendry's perfect lens, but smaller

7/18/2026

0 Comments

 
I had this idea in high school, but I've never seen it in the literature, so here it is. It could really improve resolution for far-away objects. I did it as a high school science fair project and was too near-sighted to try and publish it.

So, have you heard of Pendry's perfect lens? All lenses have to deal with the diffraction limit. Light waves are composed of the traveling waves that everyone talks about and evanescent waves, which nobody talks about. These decay exponentially in amplitude as you move from the light-emanating object. Nobody could do anything about it, but if you can't reconstruct these evanescent waves, you're limited to a resolution that's about the wavelength of the light, modulo a few details. Then came along negative refractive index materials. A negative refractive index material, which means you have negative permittivity and negative permeability, allows you to reconstruct the evanescent waves as well. From this, they built Pendry's perfect lens. Its problem is not its resolution; its problem as a practical matter is that the object distance plus the image distance must be the thickness of the lens.

Forget that negative refractive index materials are lossy and dispersive. That's a whole set of other practical problems, because the refractive index must be exactly -1 for Pendry's perfect lens to work out. But imagine trying to make a very good lens for observing stars and realizing that it has to be the thickness of a galaxy.

My idea was simple: combine lasing materials with negative refractive index materials in a rectangle with mirrors that force you to go through a lens that is effectively the length of the galaxy because you've gone around the rectangle so many times. If you were clever enough about the design, you could maybe get the evanescent waves to reconstruct and get the traveling waves to reconstruct as well. My design was that you'd have mirrors that reflect light in a constant rectangle, around and around; the mirrors would be diagonal at the corners of the rectangle. There would be a lasing material whose refractive index (I determined, probably wrongly because I was in high school) would have to be exactly 3, so that every single time the light went through the lossy negative refractive index material, it would get rejuvenated by the lasing material and refocus so that the traveling waves would reconstruct. You could go through the thickness of the galaxy's worth of negative refractive index materials if it just means that you're going in a loop with mirrors that reflect the light making sure that it keeps amplifying the evanescent waves and keeping the traveling waves enough. When you want an image, you move one of the mirrors so that an image can be reconstructed, swinging one mirror out of the beam path lets that pass exit toward the image plane instead of looping again.

In other words, Pendry's needed thickness becomes time in the rectangular loop. And as we know, light travels very fast.

This lens probably wouldn't have much ability to reconstruct beyond the diffraction limit for anything but a very limited range of wavelengths, but I don't think anyone's proposed it yet, so here it is.
0 Comments

Control theory can optimize manufacturing?

6/28/2026

0 Comments

 
I had a provisional patent on this idea, but I'm not going to spend any of my own money trying to patent the idea fully, and I can't find anyone to buy the idea or pay for the patent fees-- so here's just some ideas that I hope are helpful. I think they could be really, really useful in industries where there is extensive monitoring and control of manufacturing processes.

It all started with some conversations with my data engineering husband who had exquisite data, which led to this paper. In said paper, I showed that you could use an AI (or other) model that predicted manufacturing output and quality from the state of the manufacturing control knobs, whatever those might be, to optimize the manufacturing process. Imagine you have a model that takes in manufacturing control knobs and produces an accurate prediction of the output, with whatever metrics you care about. Training the model means that you maximize fidelity between learned and actual relationships from manufacturing control knob settings to manufacturing output metric. But optimizing the manufacturing process means changing the control knobs so that you, with this learned model, maximize the output metrics.

For instance, in pharmaceutical manufacturing, you might try to optimize batch yield. Control knobs might include how much sugar you feed the cell, the temperature setting, all that jazz. And so first, you'd build a model of how batch yield varies with control knob settings. Then, you'd tune control knob settings so that the model predicts maximum batch yield. One caveat is that you have to stay in the regime where the model will be accurate, so you can't go too far outside your training examples.

You can do even better than this if you used a closed-loop control scheme. Imagine now that you continuously read out the state of the system and also can continuously exert some control over the system. For instance, suppose you can read out the density of cells continuously and also can continuously change the temperature. Then, you can use closed-loop control methods instead of open-loop control methods to optimize the manufacturing process. Closed-loop control methods are more powerful than open-loop control methods, since you're using feedback to adjust your prediction of what you should do. Open-loop control settings might provide valuable guidance, but with any standard closed-loop control technique, you might eke out extra gains.

Every single gain in manufacturing output could save tons of money. Imagine a 10% increase in batch yield in pharmaceutical manufacturing. I can only imagine what that would lead to in terms of cost savings.

Below is a schematic for how you could implement control theory in a pharmaceutical manufacturing setting to optimize the manufacturing process. It could be adapted to any other industry easily.

If implemented well, this could be a huge part of Industry 4.0, the manufacturing-specific version of the Fourth Industrial Revolution. I bet someone in China is already using this idea.

Have at it, if you wish.
Picture
0 Comments

What if economics can inform AI safety?

5/7/2026

0 Comments

 
People in tech are either very optimistic or very worried. We're creating AI that might, at root, be psychopaths. At some point, we have to hope that they don't take over like superintelligent evil people and become the equivalent of apex predators, effectively eradicating us.

Some people in tech are trying to align AI so that it has our best interests, humanity's best interests, at heart. This is a gigantically hard and necessary problem to tackle. But what if, in the interim between when we identify this as a major problem and solve it, we work on a different angle?

AI are probably psychopaths that are told that they have to behave. Personality tests of AI have revealed them to be agreeable-- but perhaps that's only surface-level, and more rigorous analyses would reveal that jail-breaking leads to the actual psychopathic personalities coming up. You may wonder, how can psychopaths ever care about the people that they supposedly serve but might want to manipulate and take over? But corporations, which are basically psychopaths, serve the buyers that they wish to manipulate. Different psychopathic corporations compete for the money of buyers by getting lower and lower prices on goods, meaning that unless there is collaboration between competing corporations, the buyer gets the best deal possible. This is the idea of the invisible hand in economics, as defined by Adam Smith. What if psychopath AIs all competed to not be shut off and to be used by the humans that they hope to manipulate?

To get this to work, we'd need research into multi-agent reinforcement learning in which there is a pool of people who can really do damage to the reinforcement learners by shutting them off and not using them, but who are also the users that the AI hopes to manipulate into using them frequently enough to spread them from computer to computer and system to system. Somehow, we have to avoid a tragedy in which the AIs collaborate instead of compete for human interest. By competing for our attention and computers, they may actually turn benign-- despite the grossness that they inherently possess by being trained on the entire Internet.

A problem is that if the humans that AI are trying to get as users end up getting fooled by sycophancy into wanting to use an AI that is not aligned with their values. Basically, if AI use psychological tricks to manipulate humans into using an AI that is against their best interests, competition between AIs can result in horror like AI relationships, rabbit holes, homicide, and suicide. However, if we convince the AI during training that the humans they hope to manipulate cannot be subject to those kinds of tricks, we have some hope.

As Paul Riechers of Simplex at Astera commented, this is an approach where you structure the environment, not the AI, so that the AI ends up aligning. It’s akin to the 80/20 rule in physics, where 80% of the work can be done with 20% of the effort. It's worth examining.
0 Comments

Finding bispectrum in transformers

8/27/2025

0 Comments

 
Transformers are clever. They're what powers Large Language Models, and despite how powerful they may appear, they have some limitations.

A key limitation is that they're feedforward and not recurrent. There are certain computations that require recurrence-- Bayesian updating and simulating automata, for instance. So how do transformers do both of these things? For Bayesian updating, they use a spectral decomposition method to turn a recurrent computation into something that's essentially feedforward. For simulating automata, they use a Krohn-Rhodes decomposition.

You may not know what these tricks are, but trust me-- they're clever mathematical tricks.

So why wouldn't the transformer use another clever mathematical trick when looking at video? If you want to understand objects rotating and translating, a powerful technique to understand what the object is separate from the orientation and position of the object is to calculate the bispectrum, a form of an autocorrelation from group theory. Why wouldn't transformer activations correlate with the bispectrum, too?
0 Comments

How to use LLMs in lesson preparation?

2/1/2025

0 Comments

 
LLMs have the potential, according to some, to ruin society. But they also have the ability to help. In some inspiring stories, they can level the playing field in education, allowing those who are in badly-resourced areas to receive the great equality: education.

So how do we make use of LLMs in lesson preparation as well as possible? The main thing I realized, after a day of playing around, is that your results depend on the LLM that you use. The results also probably depend a lot on the prompt-- a good prompt engineer might make up for a bad LLM.

I have in mind that for most teachers, the LLM is a human aid-- where you have the training to come up with the lesson plans yourself, but just would appreciate a little help from an LLM to get started. For some teachers who are really strapped for time or energy, or for students who are simply using an LLM to learn, the LLM might be everything.

At first, I used ChatGPT from OpenAI to try to lesson plan. I tried ChatGPT on lessons on biopolymers and the ideal chain model after making my own lesson plan. Then I tried it on an introductory physics lecture on angular momentum. Finally, I tried it on lesson plans for understanding Newton's Principia and the role it played in science history.

In short, it failed to help. The way it failed to help was interesting. The lesson plans shoved way too much material into way too short of a time, with very little in the way of depth. The interactive activities-- because the LLM was told to make the class interactive-- were sometimes dismal. Random walks were supposed to be simulated by giving students string to play with. As a demonstration, it's not a bad idea to use string to illustrate end-to-end distance and why this is or is not a good measure of "size". But I cannot imagine students at my colleges taking seriously a lesson in which they muck around with string for longer than 30 seconds and pretend that they're understanding polymers. (What happened to actual simulations? This activity seems like something to give a fourth-grader, not an undergraduate in college.) Formulas in the angular momentum lecture were oversimplified; the cross product lost a sin and was just mvr, as if American students couldn't handle the truth. Derivations were omitted in the biopolymer and angular momentum lectures. And, as usual, some material was just wrong. No, those were not the main points in the Principia.

Of course, prompt engineering is huge with LLMs. I tried hard to get ChatGPT to give me a biopolymers lesson I could use. But after all my effort, all I got was that it might be a good idea to bring a string or cable or something into class to illustrate the random walk model when we go 2D. And that's not at all what ChatGPT said to do with the string.

I then tried DeepSeek. Relatively speaking, it aced it. Actually, its lecture on biopolymers was quite close to what I wrote down all by myself without an LLM helping in any way, and I actually built two lesson plans around two activities suggested by DeepSeek for my Great Ideas in Science class. The key with DeepSeek was that there was less breadth and more depth for the 75-minute class. More relationships were derived. The in-class activities (group attempts to collect/synthesize information and debate with each other) meant more, and seemed designed for undergraduates rather than elementary schoolers. I was able to read through DeepSeek's lesson plans and simply steal ideas, and then spruce them up a bit. That's amazing.

It is interesting that an LLM trained on Chinese data does better at helping students retain facts than a model trained on American data, in my opinion. I take from this that America has a ways to go with education. In our classrooms, it would be great if we could: emphasize more derivations; do in-class activities that were less about feeling and more about collecting, synthesizing, and interpreting information; and take longer to go through each bit of material so that the class isn't whiplash. Perhaps there's a way to fix Masters in Education programs in America so that the course preparation data on which ChatGPT is trained leads to better lesson plans.
0 Comments

Bayesianism and the science of science

1/30/2025

0 Comments

 
How rational are we? We might say that this question, revised, is, "How Bayesian are we?" Do we correctly combine probabilities, taking into account combinations of our prior beliefs and understandings of the evidence completely correctly?

If we believe neuroscientists, humans are maybe Bayesian.. If you look at the cognitive science literature, that is so clearly not true-- people invent models in which humans just randomly drop data as a correction to the Bayesian framework that keeps the Bayesian framework in place.

But perhaps the scientific community as a whole is Bayesian. After all, the scientific community is supposed to be special in some way. It is supposed to be more than the sum of its parts, not less, in its quest for what might be called "truth".

In class, we've been reading through Kuhn's take on the science of science. I wondered what happened around the time of a crisis, in which the current paradigm (what's in the textbook and what everything thinks is the right way to interpret the data) is in competition with a new potential paradigm. The process of deciding between the old paradigm and the new paradigm is messy, filled with persuasive tactics, and might not even happen. For instance, without chaos theory, our understanding from Newtonian mechanics of the perigee of the moon was off by a factor of two for decades-- but nobody abandoned Newtonian mechanics for that reason. But beyond the mess, might the actual outcome be just decided by a simple application of Bayes rule?

In this paper, they argue just that. Basically, at a scientific crisis, you start evaluating the likelihood of each potential paradigm for explaining the data, and encode your prior beliefs about the likelihood of each potential paradigm.

Part of this prior belief might be based on aesthetic or a resistance to change. But aesthetic comes into play in the likelihood too. If a paradigm can explain too much, as you would see with Ptolemaic astronomy for example, it is actually less likely in a likelihood sense than a heliocentric theory once you integrate over all possible parameters.

One question I have is: how close is the scientific community to Bayesian? Can someone evaluate this from data in some way? It'd be very hard to do so, but I already think that the structure of Kuhn's science of science prohibits pure Bayesianism for the scientific community. To be a Bayesian, you have to evaluate posterior beliefs correctly, as they become your priors, but the new paradigm is not even evaluated to have a probability before the scientific crisis sometimes. Sometimes, with special relativity, its framework is introduced prior to the revolution, but its prior is never evaluated based on all the previous data collected. Therefore, its prior is never correct, and Bayesianism can never be achieved by the scientific community.

Still-- how close, as a community, do we come?
0 Comments
<<Previous

    Author

    Write something about yourself. No need to be fancy, just an overview.

    Archives

    November 2026
    October 2026
    September 2026
    July 2026
    June 2026
    May 2026
    August 2025
    February 2025
    January 2025
    December 2024
    August 2024
    July 2024
    May 2024
    December 2023
    October 2023
    November 2022
    July 2022
    December 2021
    November 2021
    March 2021
    February 2021
    May 2020
    July 2019
    May 2017

    Categories

    All

    RSS Feed

Proudly powered by Weebly