\

Can We Understand How Large Language Models Reason?

52 points - today at 6:04 PM

Source
  • antleys

    today at 8:29 PM

    This article is not about "reasoning" in the abstract, philosophical sense but is talking about "mechanistic interpretability" research. The title is more like, "can we understand if the 'knowledge' encoded into a neural networks actually corresponds to reasoning-like concepts" and doing that with actual experiments like tweaking weights and activations.

    There's an interesting example where researchers saw a model approached clock time calculations and calendar month-day calculations using the same methodology. So then is this because an underlying concept of "cyclical measures" has emerged in the network?

    • danbruc

      today at 8:43 PM

      I personally would not look for the way they reason in the weights, at least not directly. In principle I could replace a large language model with a map from all possible input strings to output token or output token distribution without any weights. I have a hard time imagining how you would even tell, at the level of weights and activations, if the next token being the is the result of some proper reasoning or a hallucination. But those weights do not exist for the sake of it, they encode a lot of text the model has seen during training, and I would imagine this is what drives the reasoning. Can you evaluate the following polynomial ... will be related to To evaluate a polynomial ... seen in the training data. This is the level at which I would look for the reasoning, memorized patterns how to do specific things, maybe with some kind of placeholder variables for generalization. Ultimately such a structure would of course also be represented in the weights but I could imagine that this makes it unnecessary hard to understand. Or maybe not, maybe the learned patterns are so complex that they do not have a simple representation.

      • dominotw

        today at 9:10 PM

        >“Mechanistic interpretability will probably never reduce large language models to a few simple equations,” Icard concluded, “but it may gradually turn deep neural networks into systems whose hidden algorithms can at least partly be understood.”

        what is the basis for this optimism ?

        • warumdarum

          today at 7:45 PM

          They dont. They have input that runs through a invisible stochastic canyon. As long as there is previous experience the stochastic canyon never ends. If there is none or isignificant one, or it runs out of tokkens, it hallucinates and the illusion falls apart. There is no reasoning, just the invisible grand canyon of all of human experience and knowledge. PS: try to get it to retell you a clichee movie or book and you can see life near the end, how the delta of all the same movies opens up into wildly different endings.

          To advance further it would need the ability to abstract away the general situation shape and pattern recognize similar situations.

            • smokel

              today at 8:31 PM

              It's probably helpful in this discussion to make a difference between two definitions of reasoning:

              1. phenomenal reasoning, requiring consciousness and subjective experience

              2. functional reasoning, transforming premises into conclusions using logic

              I think you are attacking this using definition 1, whereas the article is obviously aiming at a different type of reasoning, and trying to formalize what is actually going on. It seems to be a genuine effort.

                • Lerc

                  today at 8:51 PM

                  >1. phenomenal reasoning, requiring consciousness and subjective experience

                  I think it is incumbent upon anyone arguing that something does not posses any given property to provide a non-circular definition of what it is that they are declaring an absence of.

                  All of the descriptions of experiential reasoning are usually defined in terms of rephrasing of the claim "true understanding", "conscious", "aware", "knowing" all hinge on a synonymous aspect of the words that try and shift the responsibly of explanation to the next term used in a cyclic manner.

                  For the weaker sense of reasoning, there simply isn't any argument that it is not happening. A calculator can perform the weaker sense. The analysis of this aspect of LLMs is purely a question of how, not what.

              • skybrian

                today at 8:44 PM

                When a mathematician reads a hundred-year-old math paper, it seems like they are reproducing in their head the reasoning of someone who died long ago. That is, reasoning can be written down and replicated.

                If that works, I think it's fair to say that LLM's are inanimate processes can generate real reasoning. You can tell when you read it and it makes sense.

                There are likely some kinds of reasoning that can't be written down, as well as other forms of understanding, but they also don't replicate nearly as easily.

                • Lomlioto

                  today at 8:26 PM

                  Compression is the trick. Its even philosophed about if compression = intelligence.

                  The LLM has to compress everyy question/prompt into its system. It does so by creating rules and ways of processing data (this can lead to AGI, world models or an architecture of sub architectures like an LLM + something else). So if it should respond in a way that only reasoning people can achieve, it might be able to learn a representation of what we call reasoning.

                  It read enough text in itself to even know about the concept of reasoning and how you would do that.

                  Even if this is only stochastic, it shouldn't be so devalued as your comment comes across.

                  Who says that we are doing anything more magic?

                  • gus_massa

                    today at 8:58 PM

                    With that definition, computers don't play chess, they just move the pieces using some weights and backtracking.

                    • today at 8:25 PM

                      • red75prime

                        today at 8:04 PM

                        Stochastic gradient descent can be likened to traveling down a billion-dimensional canyon. But inference? Hardly.

                        • rvba

                          today at 8:24 PM

                          There is a streamer who plays Diablo 2 by listening to the AI advice and it is quite funny since it is pretty clear that most of the advice is an amalgamation of random, often incorrect advicem

                          I wonder if it is the same for programming or not, but I vibe coded an android app just to see if I can and it just works. It required a lot of "build the code and correct the errors" pushing though. For example requested code in kotlin but received something else.

                            • mexicojalisco

                              today at 8:37 PM

                              As somebody who uses Claude heavily and heavily plays D2R it’s clear he wasn’t using Claude opus…… maybe Haiku or something. Opus isn’t as brain dead as what was being displayed

                          • alchemist1e9

                            today at 8:14 PM

                            It’s curious how they solve unsolved math problems without reasoning. Maybe I have a different definition of reasoning than you.

                              • crewindream

                                today at 8:38 PM

                                Jury is still out on this one.

                                This needs to be routine to be given asevidence…

                                …Unless you know exactly how the llm was trained and then how it was applied

                                • emp17344

                                  today at 8:17 PM

                                  Guess what? SAT solvers have also solved unsolved math problems. Do you believe they are “reasoning”?

                                    • wizzwizz4

                                      today at 8:29 PM

                                      The question of whether a SAT solver can reason is about as interesting as the question of whether a submarine can swim. (EWD867, EWD898)

                                        • Lerc

                                          today at 9:01 PM

                                          I think you are missing the point of that statement

                                          It is a claim that swimming is a word that defines a context. It is an explicit statement that the question of whether a submarine can swim has nothing to do with the capability of the submarine.

                                          If you are asking which pigeon hole we are putting something into, the answer is "The one we put it into". This is what make the question uninteresting.

                                          If you are asking what is it about this pigeon hole that people value and does that align with the criteria that people use to decide categorisation. That very much is an interesting and complicated question.

                              • dominotw

                                today at 9:07 PM

                                i love how anthropic puts out some bs like this every few weeks 'we saw some red bridge lights blinking in model weights when someone mentions sfo. Arent they just like us?"

                                • today at 7:59 PM

                              • CrzyLngPwd

                                today at 7:42 PM

                                My toaster doesn't reason, and neither do the current clankers.

                                  • CamperBob2

                                    today at 8:33 PM

                                    How'd your toaster do at IMO last year?

                                      • scrollaway

                                        today at 9:05 PM

                                        I hear he got burned pretty badly.

                                • gfody

                                  today at 7:55 PM

                                  there's a 2MP about the related paper: https://www.youtube.com/watch?v=l72ufA-4SzE

                                  • calf

                                    today at 7:44 PM

                                    One plausible reason I thought of that we may not understand neural nets is that by their nature their power grows with ever-more complex connections and weights.

                                    So it is like the opposite of logical systems, in that the very design of neural net architecture is a mess of parameter "spaghetti code" which renders the entire thing a metaphorical encrypted black box. The more powerful an AI/AGI the more this would be the case, and this is analogous a complexity curve.

                                    And so any effort to make sense of such black box computation would be like trying to reverse entropy, analogous to trying to recover information lost in waste heat. And that could be one fundamental barrier to understanding both human and artificial brains alike, relative to their internal complexity.

                                    (Just thinking aloud my handwavy pet theory recently, I am not an expert and could be totally mistaken on this)

                                    • analog31

                                      today at 7:05 PM

                                      Do LLMs have Qualia?

                                        • wat10000

                                          today at 8:11 PM

                                          Do people?

                                            • emp17344

                                              today at 8:24 PM

                                              Yes.

                                                • wat10000

                                                  today at 8:25 PM

                                                  How do you know?

                                      • otabdeveloper4

                                        today at 7:42 PM

                                        They don't reason.

                                          • CamperBob2

                                            today at 8:34 PM

                                            What would change your mind?

                                        • chrisjj

                                          today at 7:35 PM

                                          Clickbait article title.

                                          The article body does not presume they reason.

                                          • JackSlateur

                                            today at 7:00 PM

                                            Do they ?

                                              • azakai

                                                today at 7:16 PM

                                                The article answers this question, at least to the extent it can be answered, at this time.

                                                We see some signs of reasoning, but also we understand little about how they work.

                                                  • michaelchisari

                                                    today at 7:30 PM

                                                    Do we see actual signs of reasoning or is it anthropomorphism? We have an innate tendency to do so as humans.

                                                      • blooalien

                                                        today at 7:35 PM

                                                        > Do we see signs of reasoning or is it anthropomorphism?

                                                        This is the part that so many folks just don't seem to understand (probably because it's been labeled as "thinking" or "reasoning" mode, and people assume that words have meaning). It's not reasoning or thought. It's spewing tokens pretending to "think", but it's actually just generating extra "context" to help the final answer be more coherent. The model isn't doing anything it doesn't already do. It's just doing more of it to improve the quality of the final answer displayed to the user.

                                                          • Leonard_of_Q

                                                            today at 8:04 PM

                                                            You're describing a process by which a 'thinking' entity uses cognition to refine a solution to a stated problem. That's a lot of words so usually we shorten this to 'reasoning'.

                                                            Do LLMs 'think'? I 'think' they do in a way. I don't really know how I think myself but I know I do and therefore I am (thanks, Descartes). I have a somewhat better grasp of the way LLMs 'think'. They do so sequentially, building a chain of descriptors which best fit the problem and the preceding descriptors. I suspect I do something not entirely dissimilar- i.e. I imagine 'worlds' which are like the current one changed in some way so they the problem I'm working on is reduced, then refine those until it is resolved - but in a massively parallel way.

                                                              • blooalien

                                                                today at 8:31 PM

                                                                Fine. Whatever. I give up. LLMs think. Believe what you want. I literally no longer care, and this argument is beyond exhausting. Go ask the LLM to explain itself to you. It will happily spew out a pretty solid explanation of the details and math involved if you ask it the right questions in the right way. It'll also happily play along with you if you want to roleplay that it is an actual thinking machine. It's designed that way. But hey, whatever. It's a thinking intelligent machine and we're all doomed. I accept that my many decades of working with and learning about computers was wasted and I know nothing about them at all.

                                                                  • scrollaway

                                                                    today at 9:07 PM

                                                                    Ask any human to explain their own biology to you and they'll also happily spew out whatever crap they learned before, whether that's correct or not.

                                                                    You're not making the point you think you are.

                                                            • dataflow

                                                              today at 8:03 PM

                                                              Honestly, people need to get over this debate. It's pretty irrelevant in a lot of cases. When people ask "what is the model thinking?", they're really asking "what caused the model to produce this response (as opposed to a bunch of other plausible ones)?"

                                                              Whether it's thinking or word prediction or whatever you want to call it, people are trying to understand the causal chain.

                                                                • throw310822

                                                                  today at 8:22 PM

                                                                  It's not just a nominalistic debate though, as the people who are vocal against the idea that LLMs might "understand" or "think" also claim that because of this, they are fundamentally limited in what they can achieve, in contrast to human beings. Therefore any possibility of actual intelligence (or even superintelligence) is, according to them, just a fantasy.

                                                                  • wat10000

                                                                    today at 8:12 PM

                                                                    Angry diatribes about whether submarines swim or not.

                                                            • azakai

                                                              today at 7:37 PM

                                                              Yes, we do see signs of actual reasoning, see the papers linked in the article. (There are many others too.)

                                                              Yes, we have a tendency to anthropomorphize, but (most) researchers are aware of this.

                                                                • michaelchisari

                                                                  today at 7:46 PM

                                                                  The papers linked in the article discuss the mechanical operations that simulate reasoning. Intelligence is data efficiency and I don't see a strong argument that reasoning can exist if it requires a world's worth of data.

                                                                  That doesn't mean that simulated reasoning isn't useful, it's wildly useful. But a thing is not its simulation.

                                                                    • throw310822

                                                                      today at 8:38 PM

                                                                      > a thing is not its simulation.

                                                                      "The King leaned over, looked and saw, yes, the Middle Ages simulated to a T, all digital, binary , and nonlinear, and there was the land of Dandelia, The Icicle Forest, the palace with the Helical Tower, the Aviary That Neighed, and the Treasury with a Hundred Eyes as well, and there was Ineffabelle herself, taking a slow, stochastic stroll through the simulated garden, and her circuits glowed red and gold as she picked simulated daisies, and hummed a simulated song."

                                                                      (Stanislaw Lem, Cyberiad)

                                                                        • michaelchisari

                                                                          today at 8:47 PM

                                                                          "In that Empire, the Art of Cartography attained such Perfection that the map of a single Province occupied the entirety of a City, and the map of the Empire, the entirety of a Province. In time, those Unconscionable Maps no longer satisfied, and the Cartographers Guilds struck a Map of the Empire whose size was that of the Empire, and which coincided point for point with it. The following Generations, who were not so fond of the Study of Cartography as their Forebears had been, saw that that vast Map was Useless, and not without some Pitilessness was it, that they delivered it up to the Inclemencies of Sun and Winters. In the Deserts of the West, still today, there are Tattered Ruins of that Map, inhabited by Animals and Beggars; in all the Land there is no other Relic of the Disciplines of Geography.

                                                                          "Suarez Miranda,Viajes de varones prudentes, Libro IV,Cap. XLV, Lerida, 1658"

                                                                          - On Exactitude in Science by Jorge Luis Borges

                                                      • arcanemachiner

                                                        today at 7:26 PM

                                                        Yes, there is an LLM feature that we have anthropomorphized as "reasoning" or "thinking", where an LLM has a scratch space where it can dump tokens that help to improve the final output.

                                                          • otabdeveloper4

                                                            today at 7:43 PM

                                                            > that help to improve the final output

                                                            Do they actually help? Are you sure?

                                                        • throw310822

                                                          today at 7:10 PM

                                                          Of course they do, how else do you think they manage to implement new features in large codebases, or to prove new theorems? But you don't even have to assume they do because of the results- you can read their chain of thought.

                                                            • chrisjj

                                                              today at 7:36 PM

                                                              The Eliza effect.

                                                                • throw310822

                                                                  today at 8:00 PM

                                                                  It's indeed so powerful that even my compiler and my unit tests fell victim of this delusion.

                                                              • 3848499449

                                                                today at 7:36 PM

                                                                [flagged]

                                                                  • ToValueFunfetti

                                                                    today at 7:44 PM

                                                                    For the love of all that is sacred, please stop doing this. I'm begging you. The whole social media landscape is dying and you are creating a throwaway to participate in ruining this small corner. I assume this is not your first. And no one is convinced by this! The guidelines are there for your benefit as well. You achieve nothing but hastening the destruction of one of the last half-decent communities. Sorry for the melodrama.

                                                                      • 3848499449

                                                                        today at 8:17 PM

                                                                        [flagged]

                                                                          • ToValueFunfetti

                                                                            today at 8:24 PM

                                                                            The top two comments in this thread agree with the point you just made. This is true of essentially any thread on the subject. If this place sucks, it would have to be because of people like you. If not, you in particular may not be very good at noticing.

                                                        • RobRivera

                                                          today at 8:23 PM

                                                          Well, if you read the foundational paper 'All you need is Attention', review the full stack trace of any LLM system call, and have insight to the ad hoc training process to ingest additional data and knowledge, you will gain greater understanding.

                                                          If you enjoy such content, please like and subscribe to my channel: xxXNoobSmasher69Xxx

                                                          Edit: bad faith actors with no sense of humor downvote this valid starting point of discussion.