Sahil Thaker (@_sahilt) header
Sahil Thaker (@_sahilt) profile picture

♥️ Machines, Math, Sports, Music. Co-Founder @hyperline_xyz Past: @Glean, @Facebook News Feed AI, Video AI, @Uber marketplace optimization

San Francisco, CA
Joined January 2014
Photo by Sahil Thaker (@_sahilt)Photo by Sahil Thaker (@_sahilt)Photo by Sahil Thaker (@_sahilt)Photo by Sahil Thaker (@_sahilt)Photo by Sahil Thaker (@_sahilt)Photo by Sahil Thaker (@_sahilt)Photo by Sahil Thaker (@_sahilt)Photo by Sahil Thaker (@_sahilt)
Sahil Thaker retweeted
IMO, just as today we think of codegen AI as a 10x productivity multiplier for CS degrees (or equivalent), in a year or two we will be thinking of CS degrees as 10x productivity multipliers over codegen AI.
Replying to @mlevchin
do you think AI can teach people to code or they should still go through books, courses and school?
22
8
7
262
47,102
Sahil Thaker retweeted
I took 100g of creatine and now i’m doing LLM inference in my head
119
363
45
8,886
389,579
Sahil Thaker retweeted
TL;DR: We built a transformer-based payments foundation model. It works. For years, Stripe has been using machine learning models trained on discrete features (BIN, zip, payment method, etc.) to improve our products for users. And these feature-by-feature efforts have worked well: +15% conversion, -30% fraud. But these models have limitations. We have to select (and therefore constrain) the features considered by the model. And each model requires task-specific training: for authorization, for fraud, for disputes, and so on. Given the learning power of generalized transformer architectures, we wondered whether an LLM-style approach could work here. It wasn’t obvious that it would—payments is like language in some ways (structural patterns similar to syntax and semantics, temporally sequential) and extremely unlike language in others (fewer distinct ‘tokens’, contextual sparsity, fewer organizing principles akin to grammatical rules). So we built a payments foundation model—a self-supervised network that learns dense, general-purpose vectors for every transaction, much like a language model embeds words. Trained on tens of billions of transactions, it distills each charge’s key signals into a single, versatile embedding. You can think of the result as a vast distribution of payments in a high-dimensional vector space. The location of each embedding captures rich data, including how different elements relate to each other. Payments that share similarities naturally cluster together: transactions from the same card issuer are positioned closer together, those from the same bank even closer, and those sharing the same email address are nearly identical. These rich embeddings make it significantly easier to spot nuanced, adversarial patterns of transactions; and to build more accurate classifiers based on both the features of an individual payment and its relationship to other payments in the sequence. Take card-testing. Over the past couple of years traditional ML approaches (engineering new features, labeling emerging attack patterns, rapidly retraining our models) have reduced card testing for users on Stripe by 80%. But the most sophisticated card testers hide novel attack patterns in the volumes of the largest companies, so they’re hard to spot with these methods. We built a classifier that ingests sequences of embeddings from the foundation model, and predicts if the traffic slice is under an attack. It leverages transformer architecture to detect subtle patterns across transaction sequences. And it does this all in real time so we can block attacks before they hit businesses. This approach improved our detection rate for card-testing attacks on large users from 59% to 97% overnight. This has an instant impact for our large users. But the real power of the foundation model is that these same embeddings can be applied across other tasks, like disputes or authorizations. Perhaps even more fundamentally, it suggests that payments have semantic meaning. Just like words in a sentence, transactions possess complex sequential dependencies and latent feature interactions that simply can’t be captured by manual feature engineering. Turns out attention was all payments needed!
175
543
236
5,190
1,304,249
Sahil Thaker retweeted
FROM MAGA TO CHINA Here are four things MAGA is getting wrong, and why it's handing over the world to China. (1) First, MAGA correctly understands that America’s economic position is in decline but thinks this is due to economic competition itself, rather than lack of competitiveness. (2) Second, MAGA also understands that the US has wasted trillions abroad in foreign wars, but thinks the problem is global leadership itself rather than poor leadership. (3) Third, MAGA knows that their Blue American enemies have allies abroad, but has incorrectly overreacted to this by treating every non-Red-American as an enemy. (4) Fourth, MAGA sees the billions of dollars flowing from the US to foreign recipients, but isn't grasping that the US can only print those dollars in the first place so long as it's the hub of a global empire. When you put these together you can both understand MAGA's actions and understand why they will not lead to the intended result. Basically: MAGA is hyperfocused on cutting off any apparent flow of funds from Red Americans to Blue Americans and non-Americans. And they only have ~500 days in power. So they're trying to quickly shut off imports, close down institutions, and exit all wars. OK. Except the reason the imports exist in the first place is because US products aren't competitive relative to Chinese products (or Fed printing). The reason those institutions exist is because the US set them up to run the world. And the reason those wars are happening is not because of American leadership per se, but because of the absence of good leadership. If you shut all of that down at once — if you abandon global competition and global leadership — you shut down American Empire, and with it the ability to print money. And then everyone in that empire has a very bad time.
803
2,067
511
13,571
2,975,368
Sahil Thaker retweeted
The (true) story of development and inspiration behind the "attention" operator, the one in "Attention is All you Need" that introduced the Transformer. From personal email correspondence with the author @DBahdanau ~2 years ago, published here and now (with permission) following some fake news about how it was developed that circulated here over the last few days. Attention is a brilliant (data-dependent) weighted average operation. It is a form of global pooling, a reduction, communication. It is a way to aggregate relevant information from multiple nodes (tokens, image patches, or etc.). It is expressive, powerful, has plenty of parallelism, and is efficiently optimizable. Even the Multilayer Perceptron (MLP) can actually be almost re-written as Attention over data-indepedent weights (1st layer weights are the queries, 2nd layer weights are the values, the keys are just input, and softmax becomes elementwise, deleting the normalization). TLDR Attention is awesome and a *major* unlock in neural network architecture design. It's always been a little surprising to me that the paper "Attention is All You Need" gets ~100X more err ... attention... than the paper that actually introduced Attention ~3 years earlier, by Dzmitry Bahdanau, Kyunghyun Cho, Yoshua Bengio: "Neural Machine Translation by Jointly Learning to Align and Translate". As the name suggests, the core contribution of the Attention is All You Need paper that introduced the Transformer neural net is deleting everything *except* Attention, and basically just stacking it in a ResNet with MLPs (which can also be seen as ~attention per the above). But I do think the Transformer paper stands on its own because it adds many additional amazing ideas bundled up all together at once - positional encodings, scaled attention, multi-headed attention, the isotropic simple design, etc. And the Transformer has imo stuck around basically in its 2017 form to this day ~7 years later, with relatively few and minor modifications, maybe with the exception better positional encoding schemes (RoPE and friends). Anyway, pasting the full email below, which also hints at why this operation is called "attention" in the first place - it comes from attending to words of a source sentence while emitting the words of the translation in a sequential manner, and was introduced as a term late in the process by Yoshua Bengio in place of RNNSearch (thank god? :D). It's also interesting that the design was inspired by a human cognitive process/strategy, of attending back and forth over some data sequentially. Lastly the story is quite interesting from the perspective of nature of progress, with similar ideas and formulations "in the air", with a particular mentions to the work of Alex Graves (NMT) and Jason Weston (Memory Networks) around that time. Thank you for the story @DBahdanau !
132
973
145
6,639
866,609
The benefits of caloric restriction for primate lifespans (including our own!) are probably overrated. We have two rhesus monkey studies, and they do not support big benefits🧵 First, take a look at this diagram:
23
37
8
417
104,869
Sahil Thaker retweeted
What’s the difference between reason, intelligence and understanding? Reason is all methods of criticism that improve ideas. Intelligence is how fast we create ideas that solve problems. Understanding is the ability to address criticisms of an idea. Rationality is seeking to improve ideas and using the best ones. Judgment is anticipating the long-term consequences of actions. Conjecture is the unexplained process of creating ideas. Creativity is making ideas that are not predetermined by the evolution of a system. Science is ideas that can be tested through repeatable experiments. Knowledge is ideas that are useful. Did I miss anything?
32
19
2
138
10,026
Sahil Thaker retweeted
“Experience is what you get when you didn't get what you wanted.” “When you're screwing up and nobody's saying anything to you anymore, that means they gave up.” Video: youtube.com/watch?v=ji5_Mqic… Book: amazon.com/Last-Lecture-Rand… 2/4
1
8
1
174
12,569
Sahil Thaker retweeted
Elon Musk open-sourced all of Tesla's patents for other car companies to copy. Wall Street called it 'dumb' and thought Tesla will be crushed. Elon was right. Everyone was wrong. Every entrepreneur needs to understand why he did it and why it worked:🧵
1,467
4,188
445
35,904
7,238,664
I'm shocked. Just shocked that continually averaging a data corpus without exogenous inputs results in degraded information quality. Doomer ouroboros arguments were always silly. But they get demonstrably sillier as the research continues. nature.com/articles/s41586-0…
13
12
3
179
22,778
My google exp reinforced a few learnings for me: (1) consumers buy products; enterprises buy platforms. (2) distribution advantages overtake product / tech advantages and (3) companies that reach PMF & then under-invest in S&M risk staying niche players or worse: get taken down.
1
29
3
218
18,367
200x compression is mathematically impossible for this data. Given the specs of Neuralink's chip, you cannot do better than 5.3x compression. Here's why 🧵 (1/10)
Neuralink started a compression challenge. They're asking for people to find methods to losslessly (!!) compress files to 1/200th (!) the size but the files are extremely noisy so thats certainly not possible 🙁 (spectrogram of one randomly chosen file for illustration)
39
51
12
800
519,080
In the late 1960s top airplane speeds were increasing dramatically. People assumed the trend would continue. Pan Am was pre-booking flights to the moon. But it turned out the trend was about to fall off a cliff. I think it's the same thing with AI scaling — it's going to run out; the question is when. I think more likely than not, it already has.
150
428
133
2,520
1,051,814
Sahil Thaker retweeted
American exceptionalism, insofar as it exists, derives from the First Amendment and Second Amendment, which are the means of error correction.
4
4
47
4,028
Sahil Thaker retweeted
1/ Today in Science, we train a neural net from scratch through the eyes and ears of one child. The model learns to map words to visual referents, showing how grounded language learning from just one child's perspective is possible with today's AI tools. science.org/doi/10.1126/scie…
50
664
131
2,451
1,005,010
Generative AI is a pretty incredible technology -- it's a tool to navigate the in-between space of all human cultural artifacts. That's new and powerful. But most people are excited about it (or fearful of it) for the wrong reasons -- they project on it their own delusional visions of AGI.
17
66
11
537
84,858
Given that all the big tech companies are either trimming their workforce or not hiring right now, the next few years are going to be a golden age for startups.
26
74
5
690
Sahil Thaker retweeted
some thoughts I put together on DAO legislation in the U.S.: thedefiant.io/starting-a-dao… @DefiantNews @DAOResearchCo
3
21
5
57
Sahil Thaker retweeted
one of the greatest breaks you will ever have the pleasure of watching a horse make. all heart
357
2,496
836
20,603
Sahil Thaker retweeted
My AI prediction: Training will look like researchers/practitioners offloading large-scale training jobs to specialized “training” companies: a state of the world that resembles chip design & fabrication. (1/n)
27
59
16
520