some nice followup to my group's (non-LLM) work on generalizing peephole optimizations. the non-LLM side of program synthesis really does seem to be dead at this point.

https://arxiv.org/pdf/2603.18477

@regehr I’m not an expert so if this is too ignorant feel free to just ignore, but I thought with CEGIS kind of techniques LLMs just fill in a “previously missing piece” of how to reasonably pick something to inject to make progress — template based injection was very bespoke and domain specific.
@cdleary @regehr that was "sketches". CEGIS is just "here's a counterexample for what i asked for, make it work on this case too"
@lenary @cdleary right. imo, sketches were a nice idea for certain domains, but in compiler domains where I work, sketches were never even slightly useful.
@regehr @lenary got it, IIRC the peephole work was more “find existence of an improvement and generalize as much as possible” which I imagine is a totally different angle, thanks for the correction, I remember thinking it was super cool!
@cdleary @lenary separately, I've done a few experiments on my own, using a current-generation coding agent to generalize peephole rewrites and they're *very* good at this
@regehr @cdleary you had to do very specific sketches with very specific IRs and it was fun but also a nightmare. I would say in some domains there continues to be less pressure for compilers to be fully general, but for sure not LLVM verification :)

@regehr I still feel pretty conflicted about it given how generally trained *LLMs* seem to be. Someone else here a while ago pointed out the resemblance of this to ML applications in microbiology, which, generally, to my goofy and probably overly anti-AI ass mind, makes sense.

Anyway, to get to the point, do you see specially trained *ML* making greater strides than Chud Jippity? A development of a more specialized algorithm derived from these neural networks would make me feel better, lol. Otherwise it feels like a great homogenization.

@ashguy I haven’t predicted anything about modern AI correctly so far, and I doubt I’m going to be able to start now
@regehr Yeah, I get that. Crazy times we're living in