Is 'Attention' the Essence of Intelligence?

(quantamagazine.org)

58 points | by bcaulfield 3 hours ago

19 comments

  • antics 1 hour ago
    As an NLP person it's very hard for me to endorse this explanation, because the Vaswani et al transformer (as it is described here) simply does not work until you add the most important ingredient of all: the positional encoding.

    Most of the semantics of a sentence are indicated by the precise order the tokens appear. This is easiest to see in a language like English, since it is visible in two very prominent ways.

    First, the morphology is fairly derivational, meaning you can keep adding suffixes to things and English speakers will generally get what you mean. For example, add some more suffixes to that word: derivational-ish-ly. You've probably never heard this specific variant, but you still probably have some idea of what it means anyway. The transformer can only capture these semantics if it has some representation of the fact that the suffixes inflect the meaning of the word's root (presumably something like `deriv`). English encodes this entirely by the position of the suffixes relative to the root. Without the positional information, there is no way to recover it, and sentences would lose much of their meaning, since English depends heavily on this construction.

    Second, English has relatively few cases, and thus relies very heavily on the order of words to indicate what is the subject and what is the object. English specifically is Subject-Verb-Object, and the instinct of native English speakers to use SVO ordering is so strong, you will find them inserting nouns and pronouns into sentences that do not actually have subjects at all. "It's raining outside" is the most famous example. This sentence has no subject at all, and yet native English speakers feel a strong need to place "it's" at the beginning.

    If the transformer did not have positional encodings it would be completely hopeless to recover what is the subject and what is the object from English sentences. There simply is no other way to reliably tell, other than inspecting the word positions.

    It's worth noting we also do have the counterfactual. Generative language models that explicitly exclude positional information, like Latent Dirichlet Allocation, are only able to (essentially) cluster word co-occurrences. That is not as useless as it sounds—if I say "fire house burning ambulence" you kind of get the point even without a subject or an object—but it certainly does not generate the lucid, provoking sentences that modern LLMs do.

    • okeuro49 22 minutes ago
      > "It's raining outside" is the most famous example. This sentence has no subject at all, and yet native English speakers feel a strong need to place "it's" at the beginning.

      German: es regnet French: Il pluet

      I don't see why English is special here.

      • antics 1 minute ago
        French is interesting because it evolved this so-called "dummy subject" pattern (which is actually called "subject-prominence") for an entirely different reason than English.

        French is descended from Latin, which is "pro-drop" in the sense that you'd drop the "dummy subject" and simply write "pluit." Later, Old French, like English, lost most of its cases. Because of that, many word endings started sounding very similar (a problem known as "agreement syncretization"), and all of that seems to correspond in the record with the pro-drop "null" subject.

        This is an entirely different path than English took, and it's also not a path any other Romance language took. Spanish isn't even subject-prominent. It fully allows the "null" construction, e.g., "llueve", which literally is just "rains."

      • Swizec 16 minutes ago
        Slovenian: Dežuje.

        One word (rains) is the full sentence. Because nothing else needs to be said.

      • adventured 4 minutes ago
        The sentence does have a very obvious subject. The environment is producing rain. The subject is the environment and its condition is being elaborated. It = environment.

        The rain is not magical, the environment is producing it. The environment is raining. It's raining outside means the environment is producing rain outside.

        Who could possibly confuse that as lacking a subject.

        https://www.cambridge.org/core/journals/journal-of-linguisti...

      • psychoslave 9 minutes ago
        Il pleut*

        I guess the author means in contrast to some cases like "Pluvas" in Esperanto, see https://www.youtube.com/watch?v=fOBkKcbJUAE for a nice employ of it.

        Italian, Spanish and Latin (for example) can generally avoid to express explicitly the subject in a dedicated pronoun, as the verb already encode the it through specific flection. In contrast in French and German only in imperative tense one can formally make such an ellipsis (colloquially of course one can encounter more nuances).

        So nothing exceptionnal

    • inkysigma 1 hour ago
      Well, the masking could be causal and I think that's been investigated by several groups.
      • antics 1 hour ago
        Yes, as I mentioned to another commenter, I'm talking about the original formulation because that's what the article talks about. We have more options now, although (as you seem to be suggesting) they do all necessarily model position. They have to—there is no other way to do things like recover the subject in an English sentence without positional information.
    • in-silico 1 hour ago
      I like the enthusiasm but no they actually work fine without positional encodings: https://arxiv.org/abs/2512.12167
      • antics 1 hour ago
        To clarify, I'm talking about the original formulation of the problem, where positional encodings are crucial, because the article is talking about the original formulation of the problem.

        But these days, there are many more options. They all maintain this positional information in one way or another. The one you cite (as I understand it) drops the positional encodings after pretraining, and keeps (e.g.) the causal mask.

        • krackers 16 minutes ago
          >drops the positional encodings after pretraining,

          I thought with NoPE schemes you don't even need it during pretraining

          https://arxiv.org/abs/2305.19466

          https://sebastianraschka.com/llm-architecture-gallery/nope/

          Given the causal mask and the way attention works LLMs can implicitly propagate a signal for ordering

          • antics 12 minutes ago
            You could be right, I have not kept up with the literature very closely! I'm just trying to help people understand that this article does not capture something very important about the Vaswani et al formulation of the transformer architecture. :)
    • cyanydeez 1 hour ago
      The Chinese will eventually test this theory with their 80000 character set.
  • scarmig 46 minutes ago
    The term "attention" confuses more than it reveals, trading well-known terminology for a weak analogy to how the human brain works. Kernel smoothing is all you need.
    • alex_duf 31 minutes ago
      I don't understand the link between attention and kernel smoothing in your analogy, what am I missing?

      I thought both were useful in their own way, it's not like one replaced the other right?

    • antics 36 minutes ago
      For those who are not math people, this comment is referring to the fact that "attention" is formally equivalent[1] to Nadaraya-Watson kernel smoothing, which is a kind of weighted average. Yes! Incredibly, attention is just a weighted average.

      Imagine you have a series of (x,y) coordinates. You receive a new x coordinate, and you'd like to predict the corresponding y. So, the absolute dumbest thing you can do is find the nearest x, and then report its corresponding y as your prediction. The second dumbest thing you can do is find the n closest x coordinates, and then average their y values together, and output that as your predicted value. And the third-dumbest thing you can do is that n-closest-average thing, but give the "closest" x coordinates the most "weight" when you average them. (Technically, not always "closest": you have some "kernel" function which does the weighting, but "closeness" is a good kernel so I will use it here.)

      That third-dumbest thing is Nadaraya-Watson kernel smoothing. And that's what attention does. You have a big list of vectors. You compute a weighted average of those vectors. You now have a new vector. You can do what you want with it, but LLMs will generally turn that into a distribution over token types, from which you'll generally want to select either the top one, or weighted-randomly one from the top k (known as "increasing the temperature").

      With all that said, I'm not sure "Kernel smoothing is all you need" is actually materially better than "attention is all you need" for 99.999% of humans. :)

      [1]: https://arxiv.org/abs/1908.11775

      • krackers 14 minutes ago
        Aren't all of these (including convolution) specific instances of Graph Neural Networks?

        I don't have any specific experience in ML but I always liked the formalism presented in https://www.youtube.com/watch?v=J1YCdVogd14 as a way to unify everything

      • patcon 24 minutes ago
        • antics 18 minutes ago
          kNN imputation is a special case of kernel smoothing: one where the "kernel function" (which prescribes weights to the points) is uniform.
      • nathias 18 minutes ago
        Why are they calling it 'attention' if it's just a weighted average? Human attention is something very different.
        • antics 17 minutes ago
          The authors did not know that it was Nadaraya-Watson kernel smoothing when they wrote the paper. Not recognizing that the novel thing you are doing is secretly another, very old, very common thing, turns out to be an extremely common ailment in modern ML/AI literature. :) I suspect this is true also of physics.
  • andy_ppp 38 minutes ago
    The original paper title is catchy but it’s more like “positional encoding and attention and parallelism across attention heads are all you need…”

    And it turns out you probably need massive compute, about 1/3 RLHF, all the worlds data and millions of people connecting their private data to the AI to learn from amongst other things :-/

  • jvanderbot 1 hour ago
    Rule #1 of reading CS papers - don't trust the anthropomorphized terms. Rule #2 - definitely don't extrapolate those terms to the real mind.

    Of course, attention is almost certainly a heuristic readers use, but to even bring it up as key to intelligence begs so many questions about LLMs and the mind...

    • j16sdiz 1 hour ago
      Sure. but how far can we apply this logic?

      --

      A computer can't read a file, it is just sending electric signal, sensing the voltage, probing the magnetic field, etc.

      "read" a file is anthropomorphized terms for what the machine do when processing a file.

      --

      Maybe we should just stop worrying and embrace the new meaning of those words?

      • KingMob 59 minutes ago
        The problem lies more in #2 than #1. It's fine to repurpose words in new domains, but there's zero guarantee that translates back into anything useful about the original domain.

        As a former perceptual neuroscientist, I can assure you that ML "attention" has very little to do with biological attention.

        • reverius42 30 minutes ago
          I didn't even realize attention was a biological thing! I thought it was more metaphysical.
        • JacobAsmuth 51 minutes ago
          Wow, a guarantee from a neuroscientist! Those are rare!
      • adventured 37 minutes ago
        I'm skeptical it requires embracing new meanings, it only requires being unbiased (non human centric in thinking). If an organic looking alien landed on Earth, circa 1950, with the capabilities of whatever the cutting edge version of eg Mythos is, humanity at the time would have had absolutely zero problem recognizing it as de facto intelligent, even if it only responded when prompted during interactions. People would have merely categorized it as a different type of intelligence. Instead of embracing that intelligence can come in many forms, as sci-fi has proposed about the appearance of alien creatures for many decades, when confronted with the arrival of another type of intelligence, humanity becomes cowardly as it always does when its perceived specialness is challenged.

        People are doing what people do: they're desperately moving the goal post to keep pretending humanity is particularly special and that intelligence is particularly special. Unique snowflakes and all that, we're the center of the universe. It's nothing more than elaborate human weakness & fragility on display.

        We're in the first inning of this, intelligence is not going to end up being special, it's going to be trivial and low cost. See: Chinese models ten years from now.

        Astra, Opus, Fable, Argon - they're all radically beyond the top 1% of humanity intellectually already, and it's going to get a lot worse quickly. The sole aspect the top 1% beat them on, and increasingly rarely, is at hyper specialization, where a person is elite at what they do. For $20-$100-$200 per month I can get access to an omnimath genius intellect far beyond any human that has ever existed, and that AI will work for me like a dog. Humanity should be scared, and the reason HN hates AI so much, is because it will wipe out very large numbers of their lucrative jobs that they imagined would form long-term careers (six figures, stock options, path to wealth, elitism re competition).

    • kelseyfrog 1 hour ago
      Why not? Who has earned a monopoly on anti-anthropomorphism?
      • jvanderbot 1 hour ago
        It's misleading. When it's right, it's right by coincidence, since the vast majority of algorithmic terms that seem like they should provide insight into the human mind, like "attention" could just as easily be called "finger" or "tape head".

        And suddenly we're looking at people who read ticker tape or by following with their finger for insights into neuroscience?

        • kelseyfrog 1 hour ago
          Humans will alway try to conflate mysteries because of our drive toward parsimony.

          We survived comparisons to hydraulics, clockwork, steam, circuits, information processing, and networks. I'm positive we'll survive comparisons to attention and models too.

          If it's an argument from pedantism, let us remind ourselves to be language descriptivist than language prescriptivists. Prescriptivists never win.

          • customguy 36 minutes ago
            Some humans do this, some humans do that. Some people keep things as they found them at best, maybe even smear them together, others refine and differentiate. If all we did was conflate we would have no language at all.
          • KingMob 47 minutes ago
            Yes, but attention is not like the other analogies you highlighted. The word already HAS a meaning in biology.

            So instead of being a useful, if imperfect, analogy from an outside domain, trying to use ML attention to understand biological attention just results in confusion (like this article).

            Neuroscientists aren't going to tell ML researchers they can't use "attention", but nor are they going to pay attention to them (pun intended). Neural networks are almost always too divergent from biology to shed light on real neurons.

        • rfv6723 1 hour ago
          [flagged]
      • parodysbird 1 hour ago
        It's bad metaphysics. If you really want to do bad metaphysics, then you can, but it's also hardly an attack on you if others promote norms of not doing bad metaphysics.
  • bob1029 13 minutes ago
    I think the humble byte pair encoder is doing a lot more heavy lifting than it is being credited for.
  • 0xWTF 1 hour ago
    This is the core insight, some in the original grad student author's own words:

    https://www.quantamagazine.org/is-attention-the-essence-of-i...

    "Sentences with pronouns such as “it” in them illustrate the challenge that attention overcomes. Consider: “The animal didn’t cross the street because it was too tired.” And: “The animal didn’t cross the street because it was too wide.” To translate these sentences correctly into French, an AI model must determine that, in the first one, “it” refers to the animal, which is a masculine word in French, so the translation should use that form of the pronoun, il. But in the second sentence, “it” refers to the street, a feminine word that requires a different pronoun, elle. How can the machine figure this out?"

    "Bahdanau remembered doing translation exercises when he was learning English in school. To write each next word of his translated sentence, he’d have to glance all around the source text to figure out what should come next. “Literally you have your source sentence on the left and your writing on the right, and you’ll be, like, turning your head, left-right, left-right,” he said. “That process is what I expressed as a neural mechanism.”

    That simplicity seems to me the real tell that this is the real insight. The author does a good job of walking the ready past a long list of distractors and conjuring a sense of a path to an insight, and then, there's the insight - a simple encoding of a simple task: "What is the next word? How do I figure that out? Left-right. Left-right"

  • hn_submit 1 hour ago
    The answer is clearly "no." The fact that neural networks can decipher patterns in our language without knowing what the sentence is about or even what the individual words mean makes it obvious that the entire A.I. "boom" is based on quicksand. These A.I. companies may sprinkle in some stuff that makes it look intelligent, but the current transformer/attention system will only get us so far.
    • mhl47 1 hour ago
      And what does that "without knowing what the sentence is even" even mean? Care to elaborate/define it?
    • pinkpall 44 minutes ago
      [dead]
  • wyager 1 hour ago
    An IMO under-appreciated aspect of attention is that it's an ingredient for building a Turing-complete evaluator, since (for example) it lets you implement mutable RAM by treating the attended data as a write log: https://yager.io/neural/turing/turing.html
    • tomrod 1 hour ago
      This IS interesting and nifty!
  • KingMob 1 hour ago
    As a former neuroscientist of visual perception, I always feel compelled to point out that "attention" in the ML sense has very little to do with biological attention.

    "Spreading activation" would be a better analogy.

    ----

    It's mostly harmless, though it occasionally results in head-scratchers from the biological POV. I once saw a ML paper talking about "retinal attention", which is funny, because the retina is one of the few places in the central nervous system where afawk, attention is impossible.

    There's simply no efferent (brain->retina) non-motor nerves capable of biasing photoreceptor output; the retina is largely ballistic. (Eyeball motion is not attention.)

  • readthenotes1 2 hours ago
    Among my peers, some would want to interpret "it was tired" to mean that the road had too many vehicles on it.
    • teekert 1 hour ago
      Too many tires (or perhaps on second thought that was you joke, sorry just woke up).
      • vkazanov 44 minutes ago
        You are just too tired this morning (hit with tires)
  • Razengan 39 minutes ago
    3Blue1Brown - Compression is Intelligence: https://www.youtube.com/watch?v=l6DKRf-fAAM
  • charcircuit 44 minutes ago
    Attention is not the key, if anything is the key to intelligence it is scale. As long as all of the information is there for the model, with sufficient scale you will see intelligence emerge. This premise is core to the belief that the main blocker behind LLMs being "discovered" was not architecture, but in fact compute. Once sufficient compute is available eventually someone will be able to create an LLM that is intelligent.
  • calf 2 hours ago
    I thought it was scaling
  • greenavocado 2 hours ago
    That would be pattern recognition
  • hsavit1 2 hours ago
    barely have enough attention to read through the subtitle
  • BLKNSLVR 1 hour ago
    TLDR
  • lngnmn2 1 hour ago
    [dead]
  • ptidhomme 44 minutes ago
    >> To be sure, the success of LLMs shows how much information about the world is encoded in the statistical patterns of language alone

    How can we still have it so backwards. Language is just a medium to convey information on an underlying reality. LLM do not model the medium, they model the underlying reality (so far as the medium allows it).

    • mbgerring 14 minutes ago
      No, they do not, they very clearly model the medium. Why do you believe otherwise?