2 ms·
1. You write and prove the correctness preserving transforms yourself. They are low-level, so you only need to do a small number of them. 2. The aim is to appl
by amelius 3y ago
1. You write and prove the correctness preserving transforms yourself. They are low-level, so you only need to do a small number of them.
2. The aim is to apply the transforms in such a way that you get different code, which is still efficient, or maybe even more efficient. This is where you rely on the "intuition" of the LLMs. No guarantees there, that's why it was a question.
- dark-star 3y ago...but that is exactly what optimizing compilers (and re-compilers) do since forever, and they are already quite good at that. I fail to see how an LLM could magically improve that.
- amelius 3y agoBecause LLMs have shown that they can reason about code on a higher, more abstract level than a typical compiler.
- ang_cire 3y agoThat's just not true. They're not "reasoning" anything, they're assembling code that appears similar to something they were trained on, within whatever additional language training constraints they're given. I've never had an LLM spit out code that didn't need fixing, which defeats the purpose of preferring them over a re-compiler anyways.