10 comments

  • dimtion1 hour ago
    I&#x27;m not sure why people struggle with the fact that an abstraction can be built on top of a non-deterministic and stochastic system. Many such abstractions already exist in the world we live.<p>Take sending a packet over a noisy, low SNR cell network. A high number of packets may be lost. This doesn&#x27;t prevent me, as a software developer, from building an abstraction on top of a &quot;mostly-reliable&quot; TCP connection to deliver my website.<p>There are times when the service doesn&#x27;t work, particularly when the packet loss rate is too high. I can still incorporate these failures into my mental model of the abstraction (e.g through TIMEOUTs, CONN_ERRs…).<p>Much of engineering and reliability history revolves around building mathematical models on top of an unpredictable world. We are far from solving this problem with LLMs, but this doesn&#x27;t prevent me from thinking of LLMs as a new level of abstraction that can edit and transform code.
    • evrydayhustling1 hour ago
      Besides deeply unpredictable factors (like signal transmission), most users of higher-level abstractions do so without certainty about how the translation will be executed. For example, one of the main selling points of C when I was growing up was that you could write code independent of architecture, and leave the architecture-specific translation to assembly to the compiler!<p>Abstractions often embrace nondeterministic translation because lower level details are unknown at time of expression -- which is the moivation for many LLM queries.
    • zadikian42 minutes ago
      I&#x27;m fine with that. The part that makes it not really an abstraction is, you still deliver code in the end. It&#x27;d be different if your deliverable were prompt+conversation, and the code were merely an intermediate build artifact. Usually people throw away the convo. Some have tried making markdown files the deliverable instead, so far that doesn&#x27;t really work.<p>It makes even less sense when people compare an LLM to a compiler. Imagine making a pull request that&#x27;s just adding a binary because you threw the source code away.
      • mpyne37 minutes ago
        The whole field of reproducible builds is only a field because compilers also have had trouble historically of producing binary artifacts with guaranteed provenance and binary compatibility even when built from the same source codes.<p>If I assign a bug fix ticket to a human developer on my team, I won&#x27;t be able to precisely replicate how they go about solving the bug but for many bugs I can at least be assured that the bug will get solved, and that I understand the basic approach the assigned dev would use to troubleshoot and resolve the ticket.<p>This is an organizational abstraction but it&#x27;s an abstraction just the same, leaky as it is.
    • distalx1 hour ago
      A transmission error has a strictly contained, predictable blast radius. If a packet drops, the system knows exactly how to handle it: it throws a timeout, drops a connection, or asks for a retry. The worst-case scenario is known.<p>A reasoning error has an infinite, unpredictable blast radius. When an LLM hallucinates, it doesn&#x27;t fail safely but it writes perfectly compiling code that does the wrong thing. That &quot;wrong thing&quot; might just render a button incorrectly, or it might silently delete your production database, or open a security backdoor.<p>You can build reliable abstractions over failures that are predictable and contained. You cannot abstract away unpredictable destruction.
      • yunwal57 minutes ago
        &gt; A reasoning error has an infinite, unpredictable blast radius.<p>Says who? It’s quite easy to limit the blast radius of a reasoning error.
        • amazingamazing15 minutes ago
          How so?<p>Suppose you had:<p>Math() Add() Subtract()<p>Program() Math(“calculate rate”)<p>This is intentionally written vaguely. How do you limit that these implementations ensure Program() runs and does the right thing when there is no guarantee Math() or its components are correct?<p>Normally you could use a typed programming language, unit tests, etc, but if LLM is the ultimate abstraction programs will be written line above. At some point traditional software engineering principles will need to apply.
      • td250 minutes ago
        I mean if your talking about packets, your already one abstraction over the real data Transmission, in wich is noisy. So bits can randomly flip, noise could be interpreted as bits, and bits could get lost. A much larger blast radius
    • dominotw54 minutes ago
      that would make sense if ai said &quot;fail. i dont know&quot; . Its active deception is what makes it difficult.
  • yongjik1 hour ago
    It&#x27;s orthogonal to whether LLMs can be a useful abstraction layer, but ...<p>I have a feeling that if LLMs were built on a deterministic technology, a lot of the current AI-is-not-intelligent crowd would be saying &quot;These LLMs can only generate one answer given a question, which means they lack human creativity and they&#x27;ll never be intelligent!&quot;
  • madisonmay1 hour ago
    LLMs are not inherently non-deterministic during inference. I don&#x27;t believe non-determinism implies lack of abstraction. Abstraction is simply hiding detail to manage complexity.
    • danpalmer50 minutes ago
      Non-determinism is configurable at the level of the mathematical model, but current production systems do not support deterministic evaluation of LLMs.
  • Legend24401 hour ago
    I don&#x27;t agree with this take. Determinism is a nice property for abstractions to have, but it isn&#x27;t necessary to be an abstraction.<p>And LLMs can handle very abstract concepts that could not possibly be encoded in C++, like the user&#x27;s goal in using software.
    • farmdawgnation10 minutes ago
      I think you could also make the case that the existing abstractions aren&#x27;t actually fully deterministic themselves. The compiler or interpreter may not behave as it should. Therefore, for any correct C code, there&#x27;s probability that the GCC compiler will turn it into correctly formed machine code. But it may not!<p>Is the probability much higher with GCC? Sure. But it&#x27;s still a probability.
  • bigstrat20032 hours ago
    You&#x27;re right, but the reality is that the people who are excited about LLMs don&#x27;t care about determinism. They are happy to hand off the thinking to a third party, even if it will give wrong answers they don&#x27;t notice.
  • calf1 hour ago
    There are a few things being confused because people are having to learn&#x2F;re-learn&#x2F;re-discover basic computer science classes, but both formal specifications and informal specifications - such as pseudocode (I balk imagining how many AI users might not know this term), or natural language documentation - are all forms of abstraction. Programming languages and underlying models of computation all enable varying degrees of hiding details or emphasizing important ideas&#x2F;information. Human thought and language, and mathematics, are already examples of abstraction in general. LLMs thus also purport to provide a (via computational model alternative to Turing machines) higher kind of abstraction, the debate is whether it is a good one, if its hallucinations make it unreliable, etc.
  • jqpabc1237 hours ago
    In other words, LLMs are probabilistic, not deterministic.
    • sscaryterry6 hours ago
      Dare I say, so are humans?
      • jqpabc1235 hours ago
        This used to be a big reason why we used computers --- to help eliminate the probability of error.<p>But apparently, not so much any more.
        • mpyne35 minutes ago
          Digital computers were named after the humans whose jobs they automated out of existence.<p>They were invented to reduce cost of computation, not to eliminate the probability of error per se. Ask a Windows 11 user, they&#x27;ll tell you computers still make errors.
        • somewhereoutth3 hours ago
          Right, it was the perfect match: Humans for fuzzy touchy feely stuff, computers for hard edged correct calculations. How have we managed to screw this up so badly?
          • irishcoffee1 hour ago
            I think the big unmentioned elephant in the room is the gambling&#x2F;dopamine aspect of using an LLM. It’s to the point where people at $dayjob joke about it… but they’re not joking. That’s how it got screwed up so badly.<p>We have a bunch of engineers paying money to open loot boxes and they get visibly upset when they run out of tokens.<p>LLM companies have done an absolutely brilliant job of figuring out how to burn more tokens quickly, couch it as “more advanced” and people throw money at them.<p>I realize this wasn’t the thrust of your point, but tangentially, we fucked it up so badly because people desperately want to ignore this bit, and instead of looking at these tools analytically, there are the ardent defenders and the staunchly opposed… much like every other topic under the sun these days.<p>I use the free stuff work pays for, and I’ve never hit any token limit or anything like that. But I’m also trying extremely hard to ensure my skillsets don’t atrophy. I just use the web interface and ask questions. I have no interest in tying my development experience directly into an LLM, not after what I’ve seen at work over the last few weeks.
  • cyanydeez3 hours ago
    This makes sense, but you need to understand that you&#x27;re ignoring the compiler once you&#x27;re past the machine code level which isn&#x27;t an abstraction right, it&#x27;s the root. So ignoring that part of the missive, goin from C to Python, different compilers do add different machine code.<p>C and Python have a bunch of different compilers, so you don&#x27;t if you take the same code, the f&#x27; output can be different. There&#x27;s determinism within the same compiler. Add in different architectures, and the machine code output definitely is more varied than presented.<p>But that&#x27;s still a manageable; then what if you add in all the dependencies, well you get a more florid complexity.<p>So really, it&#x27;s a shitty abstraction rather than an inaccurate analogy. If you lined them up in levels, there could be some universe where they are a valid abstraction. But it&#x27;s not the current universe, because we know the models function on non-determinism.<p>I&#x27;d posit if there was a &#x27;turtles all the way down&#x27; abstraction for the LLM, it&#x27;s simply coming from the other end, the one where human mind might start entering the picture.
  • legerdemain2 hours ago
    This is absurd. The author misrepresents the type of &quot;abstraction&quot; that people mean. This abstraction ladder goes as follows:<p><pre><code> - contributing individually - contributing as a tech lead - contributing as a technical manager - leaving the occupation to open a vanity business, such as a gastropub or horse shoeing service</code></pre>
    • maplethorpe1 hour ago
      Abstraction has a specific meaning in computer programming. I don&#x27;t think he&#x27;s misrepresenting it.<p><a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Abstraction_(computer_science)" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Abstraction_(computer_science)</a>
      • LeCompteSftware1 hour ago
        OP is being a bit tongue-in-cheek, I believe they mean that some vibe coders really want to be abstracted away from their own jobs, and are very much not interested in computer-scientific abstraction.
  • conorbergin2 hours ago
    LLMs are deterministic, the same model under the same conditions will produce the same output, unless some randomness is purposefully injected. Neural networks in general can be thought of as universal function approximators.
    • mrob1 hour ago
      Whenever somebody calls LLMs &quot;non-deterministic&quot;, assume they meant &quot;chaotic&quot;, in the informal sense of being a system where small changes of input can cause large changes to output, and the only way to find out if it will happen is by running the full calculation.<p>For many applications, this is equally troublesome as true non-determinism.
      • conorbergin10 minutes ago
        I don&#x27;t think LLMs are that chaotic, you can replace words in an input at get a similar answer, and they are very good at dealing with typos.<p>They are definitely not interpretable, I was reading some stuff from mechanistic interpretability researchers saying they&#x27;ve given up trying to build a bottom up model of how they work.
    • 2ndorderthought1 hour ago
      That&#x27;s not really true. If you turn a few knobs you can make them deterministic. Namely setting temperature to zero, and turning off all history. But none of the cloud providers do this. Because it&#x27;s not a product as far as they are concerned. So in practice - not so much.
      • maplethorpe1 hour ago
        Can someone explain why this is? Do LLMs somehow contain a true random number generator? Why wouldn&#x27;t they produce the same outputs given the same inputs (even temperature)?<p>edit: I&#x27;m not talking about an LLM as accessed through a provider. I&#x27;m just talking about using a model directly. Why wouldn&#x27;t that be deterministic?
        • anon3738391 hour ago
          The model outputs a probability distribution for the next token, given the sequence of all previous tokens in the context window. It’s just a list of floats in the same order as the list of tokens that the tokenizer uses.<p>After that, a piece of software that is NOT the LLM chooses the next token. This is called the sampler. There are different sampling parameters and strategies available, but if you want repeatable* outputs, just take the token with the highest probability number.<p>* Perfect determinism in this sense is difficult to achieve because GPU calculations naturally have a minor bit of nondeterminism. But you can get very close.
          • 2ndorderthought1 hour ago
            I&#x27;m not so sold the LLM is an LLM without a sampler but it&#x27;s not worth quibbling over. It&#x27;s part of the statistical model anyways.
        • evrydayhustling1 hour ago
          An LLM model itself -- that is, the weights and the mathematical functions linking them -- does not tell you exactly how to train from data, nor how to generate an output. Instead, it describes a function providing relative likelihood(output | input).<p>Deciding how to pick a particular output given that likelihood function is left as an exercise for the user, which we call inference.<p>One obvious choice is to keep picking the highest likelihood token, feed it into the model, and get another -- on repeat. This is what most algorithms call &quot;temperature=0&quot;. But doing this for token after token can lead boring output, or steer you into pathological low-probability sequences like a set of endless repeats.<p>So, the current SOTA is to intentionally introduce a random factor (temperature&gt;0) to the sampling process -- along with other hacks, like explicit suppression of repeats.
        • 2ndorderthought1 hour ago
          Yea sure. So temperature is baked into these LLM models and when it isn&#x27;t zero it increases the probability of taking a different path to decode the tokens. Whether it&#x27;s at a provider or downloaded on your own machine.<p>Technically even when the temperature is 0 it&#x27;s not deterministic but it&#x27;s more likely to be... You can have ties in probabilities for generating the next words. And floating point noise is real.<p>All these models are doing is guesstimating the next token to say.
      • slashdave39 minutes ago
        Eh, conceptually true, but in practice, it is rather hard to get any decent performance out of a GPU and still produce a deterministic answer.<p>And in any case, setting the temperature to zero will not produce a useful result, unless you don&#x27;t mind your LLM constantly running into infinite loops.
    • alansaber1 hour ago
      Yes theres a good thinking machines lab blog about this
    • 0-_-01 hour ago
      You&#x27;re being downvoted, but you&#x27;re right. Determinism is a different concept and doesn&#x27;t characterise LLMs well. You can have deterministic random number generators for example.