r/MachineLearning • u/EvilHackFar Researcher • Oct 19 '26
Discussion Maxwell: a new model that speeds up AI models like Whisper and LTX-2 by rewriting their binaries [D]
Came across this today and haven't seen it discussed here yet. It's apparently a new type of model (called Maxwell) that sits under a running program and speeds it up on the fly based on what it sees (hardware and data). The cool thing is that it doesn't change the source code, but instead it modifies the binaries (during runtime!). So kind of like a JIT, except it's a model working out what to change instead of a fixed set of compiler heuristics.
What got me is that they seem to be using formal verification to prove the optimized version still does the same thing, which I guess is the only way you could let something like this loose with no one checking it. No idea how that holds up with floating point or anything nondeterministic, to be honest
19
u/Remote-Telephone-682 Oct 19 '26
The only real issue that I have with this is just that you could use the profiler to find additional heuristics that can be implemented at compile time but then why are we adding additional stages instead of adding these improvements to the compiler.. instead we optimize every version of the binary that is ever built but in a separate stage in our pipelines?
I think this makes sense from a business model perspective but from an engineering perspective this should be used to improve the compilers directly instead of adding more stages and stuff
4
u/techwizrd Oct 19 '26
This is extremely cool, but I also feel like this would be a compliance and assurance nightmare.
1
u/kmaork Oct 19 '26
Really a new type of model?
2
u/Next-Angle-3111 Oct 19 '26
Cool!
0
u/EvilHackFar Researcher Oct 19 '26
That's the LTX speedup and that's the link:
https://heymaxwell.ai/
1
u/Flyward_Aerospace Oct 22 '26
The security angle keeps coming up but I think the sharper problem is that input output equivalence is the wrong property to be proving. Their own framing explicitly allows the two versions to differ in timing, and the fallback guards mean execution time becomes data dependent at runtime: same workload, two different code paths depending on whether a precondition still holds. On anything where you qualified one specific binary and did worst case timing analysis against it, that's a downgrade even at 3x average speedup, because you improved the mean and made the tail unanalyzable. Completely fine for a batch Whisper job, which is presumably the actual target, I just wouldn't let it near a control loop.
1
u/miklec Oct 26 '26 edited Oct 26 '26
This is very very similar to how Java “Hotspot” Virtual Machines do JIT compilation and rewrite the application binary at runtime based on the runtime behaviour it observes in the application
it compiles hotspots to native machine code using adaptive optimizations