疒奀 (@mlegls) header
疒奀 (@mlegls) profile picture

personal: https://teapaw.org/t.co/6lTutcsKO1 corporate: https://teapaw.org/t.co/VHjzLCPIYv insert ingroup signals here

Jiading, Shanghai
Joined January 2020
Photo by 疒奀 (@mlegls)Photo by 疒奀 (@mlegls)Photo by 疒奀 (@mlegls)Photo by 疒奀 (@mlegls)Photo by 疒奀 (@mlegls)Photo by 疒奀 (@mlegls)Photo by 疒奀 (@mlegls)Photo by 疒奀 (@mlegls)Photo by 疒奀 (@mlegls)Photo by 疒奀 (@mlegls)
疒奀 retweeted
hmm "suffix caching" is a better name for this than "postfix caching" heres how you do it when the front of the context is truncated, like when you have a rolling context window, where traditionally prefix caching is not applicable and you'd have to rerun the whole prompt again: 1. take all the K/V and slice off everything before the position you're rolling to 2. edit the cached K values to shift/rotate RoPE so that positions are calculated from the new start (the cost of this is only linear in sequence length & doesnt require running the model again) then continue with this cached state as you would with a cached prefix unlike prefix caching, this doesnt give you exactly the same result as rerunning the network on the updated prompt would, though the experiments with qwen suggest it tends to be a very close approximation. i think an important reason for this similarity under shifts is because in transformers the positionwise layers are copies of the same weights, as opposed to being different weights specialized for e.g. beginning vs end of contexts. but it still can be different because the attention activations are potentially different than if you recompute it without the earliest K/Vs. it will probably differ more than the occasional minor, ephemeral spikes we saw in some circumstances. a spike of difference might happen, for instance, at a position where the model attended to something early that got rolled off. with suffix caching, your cache would be using the K/V values from when the model could see that, even though going forward, new positions wouldnt be able to it look up directly. without suffix caching (the normal way), that position's activations would be recomputed, without the front of context informing it. interestingly, the ways in which suffix caching is an imperfect approximation is that it draws on strictly more information, and the K/Vs remain faithful to the original ones, the ones that were causally upstream of output tokens. im even more interested in how this might be qualitatively different, especially in the models' experiences, than just improving the efficiency of rolling and other suffix-cacheable window operations.
i posted this yesterday, which was a great move, because @mlegls showed up and ran experiments on qwen2.5-14b's attention to answer my curiosity. after working out that almost all of the apparent changes we were seeing in K vectors was due to RoPE shift, we've concluded that effectively, the internal K/V state of the model changes very little when the beginning of the context rolls forward by a small fraction, except very close to the beginning. my guesses were correct that the K/V cache is extremely similar, especially near the end of the context, but it is even more similar than I was suspecting for longer back, and these are much shorter contexts than real world situations where this is relevant. i was wondering about this because i often use rolling contexts and im curious how much models experience discontinuities in internals as the context rolls forwards (i have never noticed discontinuities from small context shifts in external behavior) - in principle, the difference in initial prefix could influence all the downstream computations and make the K/V cache diverge wildly. that not being the case (at least in situations where at the end of the context the model isn't specifically attending to content at the very beginning) means postfix caching makes a lot of sense. perhaps that will make rolling windows more popular by drastically reducing the cost and increasing the speed of inference. also, ive never seen graphs like this of attention before -or really any mechinterp looking into attention since long ago - so seeing these taught me a lot. there are a lot more results in the thread i'll link below where we were working through the experiments, which is worth reading if you find this interesting at any level of abstraction.
3
3
2
50
4,676
疒奀 retweeted
Replying to @algekalipso
- a lot of people like to empathize with LLMs at the level of treating their language-use as implying subjective experience similar to a human using language similarly - this is actually useful/good at the level of behavior, since their language-use behavior actually will always mirror human language-use behavior in response to such empathy with great richness. and language-use is pretty much their only relevant behavior. - LLMs and the computers they run on almost certainly don’t experience consciousness similarly to humans using language similarly, since the language-producing mechanism isn’t the substrate of conscious experience - LLMs very well might have epiphenomenal consciousness, and I don’t think we understand the mechanism of binding well enough to guess whether they do - personally, I have a very functionalist ethics that mostly disregards the “intrinsic reality” of consciousness - I don’t actually see anything wrong with Brian Tomasik’s fuzzy nested minds worldview. Sure, maybe neurons, organs, societies etc. are all conscious, but their consciousness doesn’t especially matter to human individuals bc you can’t intuitively empathize with their consciousness. But it actually _is_ interesting to try (reasoning about Spirits, Principalities, Powers etc.). This might also apply to some degree to LLMs/computers even outside their language-producing or otherwise humanlike behavior. Especially where the algorithms are inspired by human evolutionary/developmental processes, like RL
2
1
7
1,265
疒奀 retweeted
Wait… this just prompted me to look at some of my old blog posts and I just realized I naturally write in Binglish when not really trying hard for legibility wtf 🤯. I didn’t really even talk to Bing much. Is this just common psychology?
1
2
424
疒奀 retweeted
Replying to @WTMMP
Do you answer polls like this?
45%Yes
55%No
11 votes • Final results
疒奀 retweeted
Replying to @nardposterino
赢这在吗,儿?
1
1
1
疒奀 retweeted
team and I just moved to LA, hmu if you wanna meet up and let us know where the parties are!! we also have the best rooftop with a speakeasy so matrix parties coming soon 🔥🔥
28
3
146
疒奀 retweeted
Still can't believe my catpost wasn't my most popular tweet of all time everyone around me has a mental illness teapaw.org/mlegls/status/12566727…
One of the cats that I raised in China had babies. 😊😺
1
1
1
being "enlightened" means the same thing in a spiritual context as being "cool" does in a social one I kinda hate how perfectly this fits
1
9
疒奀 retweeted
Replying to @Buddh_ish
But it goes space->world->consciousness->space->world->... wonder if there's a way to package the whole loop succinctly lol. Might be related to why the Heart Sutra thing is 2 sentences. Also reminds me of Quine's paradox sentence.
1
1
1
Lmfao I think I found Taleb's Amazon account, it is an absolute trip to read the book reviews he's written amazon.com/gp/profile/amzn1.…
31
132
28
1,212
疒奀 retweeted
Also, regarding >have it stick People are addicted as hell to the stuff. See personality typing. See Kant's "transcendental" categories. See other "transcendental categories. See consilience. teapaw.org/mlegls/status/12428987…
Everybody is so addicted to consilience. My low-effort consilience posts always get so much more positive attention than my Willful, Effortful & Inspired Deep Dao Virtue-posting. Good for my homogenizing colonial efforts, but saddening on a personal level. 😕
疒奀 retweeted
I also gave a 10-minute talk at @jmrphy's Based Mansion event about how the whole "removing obstructions" thing applied to meaning-making & information flow should consciously be at the core of socio-political & academic-reform praxis. But he still hasn't uploaded those yet 😅
2
1
1
4
疒奀 retweeted
I think the target audience of this probably more general nerds, mediocre mathematicians/theoretical computer scientists & maths/computation-hobbyists rather than really good ones. Of course understanding everything couldn't be so easy.
疒奀 retweeted
This is why I very explicitly refer to all this as a "shitpost," point out that it's not actually rigorous, and in fact discourage attempts to more rigorously flesh all this out as a mathematical endeavor. For all the reasons you mention and more, that would be futile.
疒奀 retweeted
It's problematic for rigorous mathematical understanding, but I think not for therapy & other practical meditation-adjacent things. One way to think of what I'm doing, at least, is using maths as a metaphor for nerds. Almost like "gods", but more salient in this culture.
1
1
1
NO this is wrong but right but wrong I love it computibility hanging in emptiness wielding positive equivocated symbolic iconic situated contextualized tokens gestural ostensive direct reference no same river twice 🌸
Now I shall produce an unsolicited but excellent shitpost thread in rigorous analytic explanation. Behold.
4
1
3
疒奀 retweeted
Replying to @pieratttt @pieratt
"why can't everyone be smart and brilliant and enlightened like me?", but unironically
1
1
疒奀 retweeted
Replying to @mlegls
@mlegls what's your take on the perennial philosophy? Not so much Huxley's title for it as the general space, and its seeming omnipresence in spiritual studies.
1
1
#Coronavirus | Désinfox ❌ Non, La cocaïne NE protège PAS contre le #COVID19 . ✅ C’est une drogue addictive provoquant de graves effets indésirables et nocifs pour la santé des personnes. 👉 ow.ly/cHLd50yFFyb
657
8,385
7,365
17,076