
Things I like : Mathematics, Machine Learning, Causality, Networks, and Philosophy.
Los Angeles, CA
Joined January 2011
- Tweets11.4K
- Following1.5K
- Followers2.2K
- Likes34.5K
Jev is a large cross-section of communities less familiar with pre-transformer machine learning experiencing NFL for the first time. 😬
1
2
108
I should've included a paper link in the first post but I forgot 🤷♂️ so here it is:
cs.ubc.ca/~hutter/earg/paper…
82
Lots of folks (re)discovering Wolpert & Macready in the "specialized models and tools" camp these days.
95
What it must be like to be the folks @OpenAI working on the application of structural causal models to the chain-of-thought sequences created to by parallelizing the collection process across the ChatGPT user base. Think of the causal chains they're uncovering.
1
1
175
Socratic Models are interesting along a few axes. The first is that the idea that a set of foundation models can share another as a memory construct is, I think, a fascinating direction of research especially wrt multi-modality.
1
147
I want to write about all the cool things I've been building lately but I've taken to giving more of myself to my kids as they approach late teen years and adulthood.
I'm pretty confident I won't care much about tech stuff when I have the opportunity to reflect later in life.
I always thought that emergent communications would yield the substrates we need for efficient and effective agent communication. Turns out tokenized language works pretty well. Though, I still think better substrates are yet to be discovered.
1
201
Cleaned out a set of drawers in the office and stumbled on these. Currently filled with nostalgia for the ML scene of just a few years ago.
5
233
Wow. Looking at the author list, this is an immediate read.
Perspectives on the State and Future of Deep Learning -- 2023
abs: arxiv.org/abs/2312.09323
Leading AI researchers write about their thoughts on the future of deep learning
1
307
It's cool to see the progression of transformers into the function approximator phase. Other transformational (heh) models like CNNs followed a similar progression.
Remember when CNN backed Q learning was a thing? It was so cool to see the ability to approximate (1/4)
1
1
390
value functions mapping pixel intensity values to future rewards? arxiv.org/abs/1312.5602
And then batching capturing structure like trajectories of objects contained in the pixel intensity values? arxiv.org/abs/2209.07550. (2/4)
1
23
Lots of folks in the LLM sphere talking about a recent Google paper showing, empirically, that LLMs cannot generalize to out of distribution examples. Most folks with proper training in ML (or AI or w/e) understand these findings (1/n)
1
3
414
I'm a fan of contrastive approaches, in general, and I cannot wait to dig into this!
1/7 Can we use InfoNCE to learn representations that predict future events? Excited to share our new paper Contrastive Difference Predictive Coding: chongyi-zheng.github.io/td_i…, a temporal difference InfoNCE loss up to 1500x more sample efficient than the standard (MC) version.
273
Living at the intersection of infrastructure and the current push in the space of Transformer models has really started to become fun!
Here we see the ML community discovering lessons learned when building message-passing frameworks requiring sequential control, channel access
1
1
151
In a rather unsurprising turn of events:
theverge.com/2023/9/28/23894…
1
179
It is interesting that LLMs seem to capture things more aligned with syntax and style rather than semantics and concepts. It seems our scribbles (symbols) just don't carry enough of a fidelity of reality. [1][2]
Right substrate, wrong representation? (1/3)
1
221
I've recently discovered a pocket of my subconscious that when activated helps me transition to flow-state. Apparently, this activation happens when listening to 90's JRPG soundtracks.
1
152
This whole prompting craze is about to teach a lot of data science and machine learning teams about the importance of test suites for their code.
203
It will be interesting to see what kinds of speculative execution attacks come out of the woodwork when these approaches become more widespread.
Especially when we connect models to control systems like folks are talking about and building.
Speculative execution for LLMs is an excellent inference-time optimization.
It hinges on the following unintuitive observation: forwarding an LLM on a single input token takes about as much time as forwarding an LLM on K input tokens in a batch (for larger K than you might think). This unintuitive fact is because sampling is heavily memory bound: most of the "work" is not doing compute, it is reading in the weights of the transformer from VRAM into on-chip cache for processing. So if you're going to do all that work of reading in all those weights, you might as well apply them to a whole batch of input vectors. I went into more detail in an earlier thread:
nitter.gq/karpathy/status/…
The reason we can't naively use this fact to sample in chunks of K tokens at a time is that every N-th token depends on what token we sample at time at step N-1. There is a serial dependency, so the baseline implementation just goes one by one left to right.
Now the clever idea is to use a small and cheap draft model to first generate a candidate sequence of K tokens - a "draft". Then we feed all of these together through the big model in a batch. This is almost as fast as feeding in just one token, per the above. Then we go from left to right over the logits predicted by the model and sample tokens. Any sample that agrees with the draft allows us to immediately skip forward to the next token. If there is a disagreement then we throw the draft away and eat the cost of doing some throwaway work (sampling the draft and the forward passing for all the later tokens).
The reason this works in practice is that most of the time the draft tokens get accepted, because they are easy, so even a much smaller draft model gets them. As these easy tokens get accepted, we skip through those parts in leaps. The hard tokens where the big model disagrees "fall back" to original speed, but actually a bit slower because of all the extra work.
So TLDR: this one weird trick works because LLMs are memory bound at inference time, in the "batch size 1" setting of sampling a single sequence of interest, that a large fraction of "local LLM" use cases fall into. And because most tokens are "easy".
References
arxiv.org/abs/2302.01318
arxiv.org/abs/1811.03115
arxiv.org/abs/2211.17192
Speculative execution is the entire reason CPU based attacks, such as Spectre, were successful.
ieeexplore.ieee.org/document…
1
89







