• davidgro@lemmy.world
    link
    fedilink
    English
    arrow-up
    12
    arrow-down
    1
    ·
    4 days ago

    No, it’s a direct consequence of the structure of an LLM. You may have heard them called “fancy autocorrect” and that’s because in a very real way, that’s what an LLM does: based on the text in its conversation (the user’s, its own, the system prompt, search results, etc) it picks one of the most likely next words. Then starts over with that new word included.
    “Most likely” in this case is based on the weights from training, but the important thing is that it’s inherently statistical in nature, there’s no enforcing of hard facts possible, and even limiting it to only the very most likely next word each time causes unnatural text and problems such as loops - while still not being 100% accurate.

    • foodandart@lemmy.zip
      link
      fedilink
      English
      arrow-up
      4
      ·
      4 days ago

      Thank you for the clarification! I have a layperson’s understanding of LLMs as I just do not use any of the ai tools that are showing up in front of me.

      I try to stay up on it, rather than just rejecting the technology outright.

      Don’t use it, don’t plan to, but still want to understand it’s strengths and shortcomings.

      • bigmclargehuge@lemmy.zip
        link
        fedilink
        English
        arrow-up
        4
        ·
        4 days ago

        Yea the great weakness with LLM’s is that statistically a hallucination is inevitable. So its output always should be human verified.

        • foodandart@lemmy.zip
          link
          fedilink
          English
          arrow-up
          2
          ·
          3 days ago

          So… not to go too far down the rabbit hole on this topic… my question is, how does the hallucination occur?

          Is it a function of the language syntax within the data set or the contextual meanings of the words being lost as the LLM is compiling whatever answer it’s been asked to give?

          Just from looking at some of the more humorous screengrabs of ai answers that get posted here… I can see that a lot of it appears to be poisoned data scraped from shit sources…

          However, I have also seen a video of a guy trying to get the ai he was talking to, to tell him how many letter r’s appear in the word “strawberry” and it could not get it right… even as the guy was walking the ai through the spelling of the word and literally counting aloud each letter r as the machine spelled it out.

          How does that breakdown happen in a machine model that was probably fed an Oxford dictionary of the English language before anything else?

          • bigmclargehuge@lemmy.zip
            link
            fedilink
            English
            arrow-up
            2
            ·
            3 days ago

            So LLM’s are basically fancy auto correct. You type a phrase and it guesses what comes next, based on training and weights, etc.

            Hallucinations happen when the guess is wrong. And then you iterate on the wrong guess. So the initial guess can be minor, it can guess “how can I drive a car” instead of “how can I drive a tractor”. Which on its own is a small deviation, but after looping on that wrong guess, the outcome is much different.

            This is a high level view but I hope it makes sense.

            • foodandart@lemmy.zip
              link
              fedilink
              English
              arrow-up
              2
              ·
              3 days ago

              That does make sense… the hallucinations arise from guesses… but if the query is “How can I drive a tractor?” and not a car, then that would be down to it’s not reading the inputs correctly… or the query itself wasn’t concise enough, no?

              Hm.

              So could the hallucinations be better prevented by framing the queries with more strict language and syntax rules?

              • bigmclargehuge@lemmy.zip
                link
                fedilink
                English
                arrow-up
                3
                ·
                3 days ago

                If you enforce syntax instead of using natural language, then what you’re making is a programming language.

                There are strategies to reducing hallucinations but you’re just kicking the can down the road. They will still happen.

                The only true fix is human confirmation of output. This will always be the limit of LLMs