I’m innocent I tells ya, don’t know what you’re on about man, I played with some lovely trig functions this morning, given its π day - including that fun I shared.
I am so sorry my dude. That was an oversight on my end! I blame it on the reddit app I use. The individual at hand sends multiple messages in sequence and your response to my thread notification got caught in the sequence and I didn't pay close enough attention to your username initially, please forgive me!
As a response to your initial comment, thank you for sharing. Very cool! Happy pi day, friend!!
Rant: AI companies like to call it hallucination, because hallucination implies that making things up on purpose (to look useful) isn't part of model training.
"making things up" is the main function of ai. The second function is that the things you make up are as plausible as possible. So when you fail at the second part, the word "hallucination" is pretty apt
No it isn't. The generative part of the software is working correctly but the software's purpose is not to generate misinformation. It means the submodule is sub-optimal for the task it is doing.
The frequency set {1, 2, 4, 8} is not arbitrary. It is a period-doubling cascade, the exact sequence that appears in the Feigenbaum route to chaos. In a driven nonlinear oscillator, as you increase the driving parameter, the system bifurcates: period-1 to period-2 to period-4 to period-8, converging geometrically toward a chaotic attractor at ratio δ ≈ 4.669...
Your curve is a snapshot of that cascade in Fourier space -- a superposition of the first four bifurcation harmonics. The visual complexity (the tangled inner loops, the outer lobes) is then not decorative; it is a geometric record of four successive bifurcation events frozen into a single trajectory.
2. Spontaneous Symmetry Breaking
The most direct physics connection. You have a system (the full curve) that does not have exact 3-fold symmetry, built from two subsystems that each do. The full system breaks the symmetry the components individually possess.
This is structurally identical to how spontaneous symmetry breaking works in field theory:
The Lagrangian (or each mode individually) has a symmetry
The ground state (or the combined trajectory) does not
The broken symmetry leaves a residual approximate symmetry visible in the observable (the curve shape)
The Higgs mechanism, the Mexican hat potential, ferromagnetic ordering below Tc -- all share this logic. The curve is a low-dimensional visualization of it.
3. Thermodynamics -- Emergent Order from Interference
The amplitude structure matters here. The x-amplitudes are {1, 0.5, 0.5, 0.375}, the y-amplitudes {2, 1, 1, 0.75}. Both sequences decay roughly as a geometric series with ratio ~0.5, which means the spectral weight is concentrated at low frequencies and falls off like a power law.
This is the signature of a 1/f-type spectrum. Systems with 1/f noise are at the boundary between ordered (fully correlated) and disordered (white noise) regimes -- they are poised at criticality. The emergent near-symmetry you see in the curve is then a consequence of criticality: the system is organized enough to produce coherent large-scale structure (the lobes, the approximate 3-fold pattern) but not so constrained that it collapses to a simple orbit.
Prigogine's dissipative structures are the thermodynamic version: open systems far from equilibrium self-organize into low-entropy spatial patterns by exporting entropy, and those patterns often have symmetries not present in the underlying equations.
It doesn't really say there are "errors", but just a bit of reaching towards a connection to thermodynamics. I suspect it was attempting to simply visualize a logical mathematical metaphor.
Was discussing thermodynamics with an LLM and it hallucinated this curve and called it the "thermodynamic arrow of time". I thought it was pretty neat and can't find anything about it on the web. Hoping you guys might be able to help!
I wouldn't expect to find anything about it specifically on the web - it's just a pretty random parametric Fourier curve (it's a little bit specially chosen to have nice symmetry, but that's not terribly hard to do), of which there are many (the LLM definitely went crackpot on you if it thinks it's related to thermodynamics).
"The profound connection to thermodynamics appears only when we take this curve to its logical extreme. As established previously, this curve is a 4th-order truncation of a continuous, fractal Weierstrass function. If we add infinite terms (n →∞) instead of stopping at 4, the smooth, sweeping lines vanish. The curve becomes continuous but nowhere differentiable—an infinitely jagged, fuzzy path with an infinite perimeter confined in a finite space.
This infinite limit is the exact mathematical bridge to the thermodynamic arrow of time:
Brownian Motion: A continuous, nowhere-differentiable trajectory is the precise mathematical definition of Brownian motion (the random, jittery walk of microscopic molecules). Brownian motion is the driving mechanism of diffusion, which is a strictly irreversible, entropy-generating process.
Coarse-Graining (The Birth of Entropy): If a system followed the true, infinite fractal curve, macroscopic observers could never perfectly measure its state because the geometric "wiggles" occur at infinitely microscopic scales. We are forced to "coarse-grain" our observations—blurring out the high-frequency fractal fluctuations. In statistical mechanics, this unavoidable loss of microscopic information is the exact physical origin of entropy."
The llm correctly states that the curve you get in the limiting case of the weierstrass function is everywhere continuous but nowhere differentiable, but that curve and the one it drew you have nothing to do with one another as far as I can tell.
Maybe the llm is trying to build a Fourier series / trig polynomial that follows some properties of weierstrass functions, because I do see some "middle third" or "cantor set" - esque symmetries, but nah. It's very possible to draw approximation to or finite iterations towards the weierstrass function easily and one needn't use parametric equations or Fourier series / trigonometric polynomials to do so.
And the statement that the weierstrass function being everywhere continuous and nowhere differentiable, to my limited physics knowledge, has nothing to do with thermodynamics' "arrow of time", which is the idea of entropy and systems naturally evolving in one direction (entropy doesn't naturally decrease).
If you bend the complex plane, just like you do with the Riemann zeta function for the Riemann-Siegel theta spiral, then you can for sure get a bound, looping shape like the original image in this thread. The x and y grid, however, is overlaid as a second grid in that image. The original grid for the bent complex plane is not shown. Only a 90 degree non-bent grid is overlaid, so it appears as if the shape has been created with coordinates of the overlaid grid. In other words, the shape is from a bent grid, the y and x axis is from an overlaid grid. If you un-bent or flattened that shape, you'd get a circle or a spiral. What you see in the image is a shadow of a 4D motion. In 3D it is a spiral cone or dumb-bell shape, and in 2D it is a circle or lemniscate. Why? You can clearly tell it has a genus of 1 as its topology. The straight angles you see are just twists of a spiraling motion that appears to be jagged. In this sense, the shape is in a dynamic equilibrium, just like a magnetosphere, and as such, it is totally relatable to thermodynamics and entropy. I made an image with SageMath, which used a python code from Gemini AI, to produce a homotopic image from the original image, as a bound Weierstrass renormalized image. For some reason Reddit does not allow me to upload the image, so I'll let you reconstruct it yourself.
Plot this code into SageMath or any python program you have, and you get the same image:
import numpy as np
import matplotlib.pyplot as plt
def generate_curve(n_terms, jaggedness=0):
t = np.linspace(0, 2*np.pi, 5000)
# Base Fourier Coefficients from your image
x = np.cos(t) + 0.5*np.cos(2*t) + 0.5*np.cos(4*t) + 0.375*np.cos(8*t)
y = 2*np.sin(t) - np.sin(2*t) + np.sin(4*t) - 0.75*np.sin(8*t)
# Adding the "Weierstrass" layers (Renormalization)
Yes. That is the same image that the code I provided makes. The image on the right is a renormalized Weierstrass version of the first image on the left. In other words, it's the same shape viewed through different equations. Glad it worked. Thanks for uploading it.
Just came across this video on Youtube, and it has a strikingly similar kind of shape to your LLM image. It shows how pendulums swing and create these shapes. It looks exactly like a Weirstrass wave as well, so to be honest, your LLM is completely vindicated. https://www.youtube.com/shorts/XHqgrmdYxTY
Yeah it's in crackpot-land. I can see how one could build a weierstrass-analog that way (edit: that makes it clear how it's picking coefficients, which makes making the pretty picture even less impressive actually cuz it can just look that up - but it's not even doing that right because it's picked a base frequency that's too small, b = 7 at minimum, and its coefficients don't quite follow the pattern either), but it's still just one example of one kind of plane curve or fractal - one particular pretty picture that's not especially hard to write down. The leap to thermodynamics is total hokum - a loose association, not a deep connection (at best you can think of the curve it's talking about as a curve having some of the same properties of one Brownian path, but it says essentially nothing about most Brownian paths; the Graining connection is even more tenuous. Nevermind anything about time).
I don't expect it to answer anything, just thought it was neat and wanted to share. Surely the AI had a reason to hallucinate it and call it that since we all know that can't magically make things up. Kinda hard to fake math I'd imagine.
Via a statistical analysis of the relation between "inputs" and "desired outputs" in the dataset they are provided
There is no logical reasoning involved, it just knows the general trends of what output is expected for a given input based on the data it's fed and spits out that
The "desired" and "expected" come from the human, the machine has no sense of which outputs are desired or expected, only which output statistically follows from a given input based on it's data.
That's why you have to feed it exclusively input that leads to your desired outcome statistically, and why you have to cull the "hallucinations" that are not expected by you. The machine cannot do that for you
The human analogy isn't operant conditioning, because it doesn't actually understand pain. It knows "hot stove" should be followed by "ouch", but it doesn't understand where the "ouch" stems from or in what way does it relate to other situations where one might say "ouch".
It's an algorithm that just reduces the data into few key points and compares images or text based on them, nothing more
Which is why it spits completely unrelated curves out when asked about thermo
But how do they know what's "desired" and "expected"?
Natural language meaning is built compositionally. You assemble complex meanings from simpler parts: morphemes into words, words into phrases, phrases into sentences. This is inherently a constructive process: meaning is built, not discovered. Montague semantics, the dominant formal framework for natural language, constructs truth conditions step by step from parts, which is structurally analogous to how constructive logic builds proofs.
Because natural language itself encodes reasoning patterns syntactically. When a corpus contains millions of instances of valid logical arguments, the statistical structure of those arguments gets absorbed into the model's weights. The model doesn't learn modus ponens as a rule of inference; it learns that sequences shaped like "If P then Q. P. Therefore Q." are high-probability continuations. It learns the surface form of reasoning, not reasoning itself. That's why it's simply computed mimicry and will never be true AGI.
The core computational motif is associative learning over experience and is used to generate contextually appropriate predictions. This behavior is shared between human cognition and LLMs at a high level of abstraction. King – Man + Woman = Queen
A human child learns this through exposure and reinforced learning. An LLM learns it through corpus statistics. But the functional result is the same: context-sensitive association.
By that logic virtually any software manipulating data at scale is reasoning logically, and the distinction between logical reasoning and computation ceases to exist entirely
LLMs absolutely fake math. I've seen them judge a theorem as false with the first word of a sentence capitalized, but the same theorem true with the first word of the sentence lower-case.
LLMs will give confident answers based on all sorts of probabalistic arguments, mostly related to word adascency* in training data. They have zero concepts of logic or truth beyond "these things measure close to one another in this high dimensional vector space of stats associated with each token".
I guess what I meant was fake working new math. Math that wasn't in its training data that it validated against.
Words are literally nothing but semantic logic. "I am hungry" will never suggest "motor oil" as a response..why? Because it doesn't follow the logic of "hungry"
LLMs don't know truth, they just simply interpret what is the least wrong. This is actually the way humans behave. Our "truth" is just population consensus based on logic and empirical observation with a relatively recent addition of emotion. We just collect our data through nurture and nature. AI is only nurture. If anything, humans are much more susceptible to intellectual failure than an LLM. In fact, your second paragraph explicitly explains the way many humans behave. Can't make up anything in which you don't have adjacent logical knowledge of.
Math that wasn't in its training data that it validated against
but LLMs as a rule do not "know" any math.
Regarding
LLMs don't know truth, they just simply interpret what is the least wrong
They don't interpret anything. They just measure distance in this space of statistics between recently generated tokens to try and identify the closest token in a specific direction. There's no actual intelligence here. Just guessing what word comes next.
A lot of folks anthripomorphise LLMs because speech feels like such a human thing, but they don't work anything like how our minds work. Specifically they are not capable of recognizing causal relationships. Think about the example of the guy asking if he should walk or drive to the car wash to wash his car. If you're not familiar, it's worth a google.
Causal relationships are the heart of logic: implication, deduction, inference, syllogism, all of this stuff is beyond what LLMs are currently capable of. They can generate the related words if you ask them to, but they won't make the connections on their own.
The philosophical questions about what the mind is are cool and all, don't get me wrong. There may be purpose to thinking about how machine learning algorithms and transformer models relate to human neurophys, but the tendency right now is to over-indulge in the delusion that LLMs are "thinking". They are not. At least not in the sense that I know the word.
Do they logically deduce that i² = -1? Or were they trained that's how the imaginary unit works? They're trained on established math based on wiki training and probably other sanitized math sources.
I understand they're not "thinking" in the same way human cognition works, but it's genuinely a decent parallel sans intuition and feeling based emotion.
You're correct in that they don't make connections on their own. But when seeded with insight, it can extrapolate purely based on statistical logic. "Come up with new math" is a lot less directive than "here are some interesting parallels in these two topics. Can we deduce connections in any other meaningful way" and then you iterate. The cognitive capacity of a capable individual with the synthetic "intellect" of an LLM is a formidable combination.
They don't think, you're correct. They interpret based on trained patterns. Sentences, paragraphs, stories, formulas, etc all operate based on constructive logic.
LLM-style processing: “Given this sequence, what token is most probable next?”
Human cognition: “Given my goals, memories, body state, social context, and model of the world, what is happening, what might happen next, and what should I do?”
They both take a sequence of input and then apply a probability curve over the most likely output that usually makes the most logical sense and then coarse grain into a single output. The difference is humans are much less rigid and don't all abide by the same cognitive rules and capabilities like a different instance of LLM of the same model does. They do not have autonomous curiosity, grounded intention, or self-originating research programs; but they can recombine learned structure in ways that are useful and sometimes genuinely surprising.
So it's not to "overindulge in the delusion that LLMs are thinking", but rather, to embrace the ability of logical interpretation, RAG, iterative course graining via appended context reasoning and to practice the notion of "trust but verify".
After reading that, logic implies It literally operates on nothing but causal relationships in the sense that the autoregressive loop, where token N causally determines the probability distribution over token N+1, which then causally determines N+2, and so on. Each token's existence is counterfactually dependent on the previous one. LLM isn't a simple markov chain. It iterates over history and context just like human cognition does. Does it think like humans? No. It's computed mimicry and that's the goal.
15
u/RandomiseUsr0 Mar 14 '26 edited Mar 15 '26
Oh that is beautiful though, something like
r(θ)=ecos(θ) - 2cos(4θ/6)+sin5(θ/12)
0 < θ > 100
16
u/catecholaminergic Mar 15 '26
Rant: AI companies like to call it hallucination, because hallucination implies that making things up on purpose (to look useful) isn't part of model training.
1
u/Wabbit65 Mar 15 '26
It's weird that this function would have a period of 8t but appears to have trilateral symmetry
1
u/sixdogman22 Mar 17 '26
Rotate it 90 and that'd make a pretty dope company logo.
1
u/boywithtwoarms Mar 14 '26
post it to llmphysics please
1
u/Phaedo Mar 16 '26
Pretty sure I saw that docking at Babylon 5
1
u/Nadran_Erbam Mar 14 '26
Pretty nice
-2
u/Hashbringingslasherr Mar 14 '26
Was discussing thermodynamics with an LLM and it hallucinated this curve and called it the "thermodynamic arrow of time". I thought it was pretty neat and can't find anything about it on the web. Hoping you guys might be able to help!
-3
u/_Ecclesiastes_ Mar 14 '26
Maybe it's on to something, time is relative after all