News for hackers. Stuff that matters.
Re:How to make LLMs go fast by logicchains on Friday December 22, 2023 @12:59PM (#38736718)
Theoretically transformers are fundamentally more powerful than stuff like Mamba and RWKV because they don't "forget"; the newest token can attend perfectly to the oldest token if it wants. Mamba and RWKV on the other hand compress the old state, based on information available at the time of compression. If it turns out the new token wants some information from the old token that during the compression was excluded due to the compression thinking it wouldn't be needed, the new token has no way to access it.
Re:How to make LLMs go fast by visarga on Friday December 22, 2023 @01:47PM (#38737176)
Yet this all-to-all approach of transformers is bottlenecked on compute, while Mamba can take in a context length of a million tokens, that might have a positive effect on long range tasks.
Re:How to make LLMs go fast by maleldil on Friday December 22, 2023 @02:19PM (#38737537)
What use is to have infinite context if new tokens can only access a lossy compression of past tokens?

There is definitely a use for this kind of model, but this also shows why Transformers are still the main architecture we use today.

Re:How to make LLMs go fast by seo-speedwagon on Friday December 22, 2023 @03:27PM (#38738266)
I know almost nothing about this space but “lossy compression of millions of past tokens” feels a lot more like how actual human memory works than “perfect access to a small number of recent tokens”.
Re:How to make LLMs go fast by thentherewere2 on Friday December 22, 2023 @03:41PM (#38738434)
RNNs and LSTMs from the past did this as well (but cannot be trained in parallel as each token has to be compressed sequentially). Transformers ate their cake.

Newer methods are going back to similar concepts but trying to get past previous bottlenecks given what we've learned since then about transformers.

Re:How to make LLMs go fast by throwup238 on Friday December 22, 2023 @05:03PM (#38739203)
> feels a lot more like how actual human memory works

Beware of feel-good traps like this.

If you were to map the human connectome to a computational neural network down to the ion channel, it'd be at least 500 quadrillion parameters*. That's at least 5-6 orders of magnitude beyond what is currently possible with SOTA ML which means that even if the human brain was 99% devoted to compressing those tokens, that 1% that could actually do work with them is still a thousand times bigger than GPT4. There be emergent dragons.

* This is a fascile argument to begin with since biological neuron signals aren't quantized and ion channels are far too complex to map to a single static parameter

Re:How to make LLMs go fast by bbor on Friday December 22, 2023 @08:26PM (#38740787)
Maybe against HN rules, but: thank you. Very helpful comment!
Re:How to make LLMs go fast by fwip on Friday December 22, 2023 @06:00PM (#38739617)
> biological neuron signals aren't quantized

Perhaps, but they inherently have imprecision due the nature of being biological. Expose the same neuron to the same input N times, and you'll get a range of output. The effect of noisy analog data is, broadly speaking, similar to the effect of low-resolution digital data.

Re:How to make LLMs go fast by throwup238 on Saturday December 23, 2023 @03:34AM (#38742611)
Expose the same neuron to the same input N times and you won't get a randomly distributed range of outputs, you'll get a signal that is either attenuated or potentiated. That's not noise, that's the simplest form of neuroplasticity at work (which is why static parameters can never represent ion channels).
Re:How to make LLMs go fast by nickpsecurity on Friday December 22, 2023 @06:01PM (#38739628)
I didn’t know those alternatives had those weaknesses. I did have a whole list of alternatives to check out. Having already looked at some, do you know any transformer alternatives that don’t forget things but were still sub-quadratic? What rabbit holes are worth digging deeper into?
Re:How to make LLMs go fast by deepnotderp on Friday December 22, 2023 @06:29PM (#38739920)
Doesn't sub-quadratic attention fundamentally imply forgetting things?
Re:How to make LLMs go fast by evnc on Friday December 22, 2023 @09:02PM (#38740961)
This is fair -- the newest token can attend perfectly to the oldest token, within the context window.

but also, on a broader scale, if a transformer model is presented with a long input that does not fit in its context (e.g.: you are building a chatbot, and you have a very long chat history), it must "compress" or "forget" some of that information (e.g.: repeatedly summarizing historical messages, dropping them and appending the summary at the beginning of the input).

Mamba/RWKV/other "recurrent" architectures, can theoretically operate on unbounded input lengths; they "forget" information from earlier tokens over time, but is that not comparable to what a transformer must do with input lengths greater than their context window?

Re:How to make LLMs go fast by D0TheMath on Friday December 22, 2023 @09:08PM (#38740994)
The jury very much still seems out on this. Computationally speaking, I believe Mamba is Turing complete, while transformers aren't (they can't do loops), so technically Mamba is more expressive. But of course, the question is always whether it ends up with lower loss.
Re:How to make LLMs go fast by D0TheMath on Friday December 22, 2023 @09:09PM (#38741003)
(well actually its not turing complete, but it definitely seems closer)