>Do you think that Claude Code is doing something like brute force when it writes a computer program for you?
It is 100% brute forcing. It's a more intelligent brute force than trying literally every combination, but that's exactly how it works. Generate millions of permutations, then walk backwards through them to see which matches the pattern most correctly.
In the case of programming there are other logical domain specific checks as well and testing that can all be incorporated.
That's how all of the generative AI works, generate millions of options based on the preceding pattern then test which option is the best fit, add it to the pattern and on to the next step.
It's generating millions of permutations of the next token. Not the entire program, how many complete responses it generates depends on the internal workings of the full program not just the model. But as I stated elsewhere the core of the LLM specifically is a heavily capped, parallelized brute-force search across discrete token spaces, sequence branches, and reasoning paths that relies on exhaustive evaluation within strict mathematical caps.
Now I am open to hear how you interpret it differently, but the I don't think it's possible to abstract it away from a guess and test approach at the most basic level.
Aren't they the same basic concept, except that diffusion, diffuses it over the entire context making even more guesses and longer pattern matches until eventually arriving at an approximation of a best fit? Is it not still billions of guesses and tests?
Autoregression won't change a token once it's landed in context, which is kind of required for "guess and check" like how it sounded like you were describing. Diffusion can do that.
Doesn't diffusion follow the same pattern just from multiple points, in multiple directions, simultaneously, and then discarding the ill-fitting outputs?
Is there some factor where it's not making a huge amount of random, but tightly constrained guesses, where each level of constraint is produced the same way from up streaming guessing and refining where the original categorization of the constraints is from the training data?
Autoregressive models don't "guess and check" on the scale of programs, functions, or any meaningful unit of software. You can argue that they "guess and check" internally for every token, but at the scale of the whole output, that is the equivalent of thinking really hard about every single thing it writes, before writing it, and committing to it once written.
This is in contrast to diffusion models, which basically yeet a bag of tokens at the wall, clean up what doesn't work, and try again. This can kind of be considered guessing and checking.
It is 100% brute forcing. It's a more intelligent brute force than trying literally every combination, but that's exactly how it works. Generate millions of permutations, then walk backwards through them to see which matches the pattern most correctly.
In the case of programming there are other logical domain specific checks as well and testing that can all be incorporated.
That's how all of the generative AI works, generate millions of options based on the preceding pattern then test which option is the best fit, add it to the pattern and on to the next step.
Replies (3)
Perhaps with Riemann or similar that could apply, but I would hardly call it brute-force in the traditional sense of the term.
Replies (1)
Now I am open to hear how you interpret it differently, but the I don't think it's possible to abstract it away from a guess and test approach at the most basic level.
Replies (1)
I'm also confused what you think human software engineers do when they write programs. Don't you also test what you write and iterate on any errors?
Replies (1)
Replies (1)
Replies (1)
Is there some factor where it's not making a huge amount of random, but tightly constrained guesses, where each level of constraint is produced the same way from up streaming guessing and refining where the original categorization of the constraints is from the training data?
Replies (1)
This is in contrast to diffusion models, which basically yeet a bag of tokens at the wall, clean up what doesn't work, and try again. This can kind of be considered guessing and checking.