The X Agent will post the previous task output as a tweet. Please make sure a previous task exists and is completed.
10
Michał Jamry retweeted
SIU3R: Simultaneous Scene Understanding and 3D Reconstruction Beyond Feature Alignment
Qi Xu, Dongxu Wei, Lingzhe Zhao, @pu_wen99907, Zhangchi Huang, Shunping Ji, @PeidongLiu_
tl;dr: reconstruction and understanding->pixel-aligned 2D-to-3D lifting->unified learnable queries
arxiv.org/abs/2507.02705
Michał Jamry retweeted
At last.
We are in Hangar 3 at @I_W_M #Duxford for the #VEDay80 Flying Day
Come and say hello to the team and see the Original Artwork ‘Remember The Heroes’ by @Posartaviation
Michał Jamry retweeted
CS224N dropped on YT (2024 spring) full 18 lecture series by none other than @chrmanning
Michał Jamry 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 !
Michał Jamry retweeted
Deep Learning Optimizers from First Principles
Now with more maths!
In this thread, I'll discuss:
1. The difference between 1st order gradient dualizaton approaches and 2nd order optimization approaches.
2. Preconditioning--how to do it and why.
3. How to derive a couple of deep learning optimizers from scratch using both approaches.
(1/n)
Michał Jamry retweeted
When I discussed quitting Google to do a Phd, my manager, Steve Cheng, gave me the advice of "6 shots": Doing something meaningful usually takes about 5 years and we are productive for roughly 30 years. That gives you 6 attempts. So pick each one carefully and give it your best.
Michał Jamry retweeted
Yet another opportunity to point out that reasoning abilities and common sense should not be confused with an ability to store and approximately retrieve many facts.
📌 This paper investigates the dramatic breakdown of state-of-the-art LLMs' reasoning capabilities when confronted with a simple common sense problem called the "Alice In Wonderland (AIW) problem".
This is despite their strong performance on standardized reasoning benchmarks. The key conclusion is that current LLMs lack basic reasoning skills, and existing benchmarks fail to properly detect these deficiencies.
'Alice in Wonderland: Simple Tasks Showing Complete Reasoning Breakdown in State-Of-the-Art Large Language Models'
📌 The AIW problem is a concise natural language task that asks: "Alice has N brothers and she also has M sisters. How many sisters does Alice's brother have?" While easily solvable by humans using common sense reasoning (the correct answer is M+1), most tested LLMs, including GPT-3.5/4, Claude, Gemini, LLaMA, Mistral, and others, show a severe collapse in performance, often providing nonsensical answers and reasoning.
📌 Notably, even when LLMs occasionally provide correct answers, they often express strong overconfidence in their wrong solutions and generate confabulations (persuasive but nonsensical explanations) to justify their incorrect responses. Standard interventions like enhanced prompting or asking models to re-evaluate their answers fail to improve performance.
📌 The authors introduce a harder variation called AIW+, which causes an even stronger performance collapse across all tested models, including GPT-4 and Claude 3 Opus, which performed relatively better on the original AIW problem.
📌 This study highlights a striking discrepancy between LLMs' high scores on standardized reasoning benchmarks (e.g., MMLU, ARC, Hellaswag) and their poor performance on the AIW problem, suggesting that current benchmarks do not adequately reflect models' true reasoning capabilities and weaknesses.
📌 The authors emphasize the need for the ML community to develop new reasoning benchmarks that can properly detect such deficits and guide the improvement of LLMs' reasoning skills. They also stress the importance of fully open and reproducible training pipelines, including dataset composition, to enable proper analysis and progress in this area.
Michał Jamry retweeted
research.colfax-intl.com/tut…
If you learn CUDA, you probably have read the legendary matrix transpose tutorial by Mark Harris.
📚Today, I present to you a CUDA tutorial by friends at @colfaxintl and myself. We explore many CUDA memory concepts like in Mark's tutorial, and more.
Crucially, we show how to implement these concepts in @nvidia's CuTe library. Yes, it's the one that powers Flash Attention⚡️.
I am grateful for friends at @colfaxintl, especially Jay Shah, for inviting me to help them this project.
This collaboration started in December 2023, when I got interested in @nvidia's CuTe library by reading the FlashAttention repo.
Despite my enthusiasm for the the library, learning it was a headache. I literally made no progress after weeks reading CuTe tutorial and code.
Then one day, I stumbled upon Jay's Flash Attention tutorial (nitter.cf/hyhieu226/status/17375…). His writing revealed to me the mathematical elegance in CuTe's design.
Teaser: can you imagine abstract algebra concepts -- like integral modules -- have anything to do with efficient deep learning kernels?!
But I digressed. Since reading Jay's works, I have held so much respect for him that being able to collaborate with his team feels profoundly rewarding.
Anyhow, I hope this CUDA tutorial makes you like CUDA programming and the CuTe library a little bit more.
Please stay tuned. We will be back with more tutorials.
An astonishingly good tutorial and annotation of Flash Attention code.
Recommended for anyone who wants to become a better at neural net programming.
arxiv.org/abs/2312.11918
Michał Jamry retweeted
Jeśli te nowe polskie modele językowe nie będą dawały takich odpowiedzi, to będę srodze rozczarowany
Michał Jamry retweeted
Have you ever done a dense grid search over neural network hyperparameters? Like a *really dense* grid search? It looks like this (!!). Blueish colors correspond to hyperparameters for which training converges, redish colors to hyperparameters for which training diverges.
Michał Jamry retweeted
Exactly.
In AI, the ratio of attention on hypothetical, future, forms of harm to actual, current, realized forms of harm seems out of whack.
Many of the hypothetical forms of harm, like AI "taking over", are based on highly questionable hypotheses about what technology that does not currently exist might do.
Every field should examine both future and current problems. But is there any other engineering discipline where this much attention is on hypothetical problems rather than actual problems?
Michał Jamry retweeted
Tomas Mikolov, the OG and inventor of word2vec, gives this thoughts on the test of time award, and the current state
of NLP, and chatGPT. 🍿
Michał Jamry retweeted
Multi-modal #LLMs understand a lot about humans. But do they understand our 3D pose? We train #PoseGPT to estimate, generate, and reason about 3D human pose (#SMPL) in images and text. This is the first true foundation model for understanding 3D humans. yfeng95.github.io/posegpt/
Michał Jamry retweeted
We've barely scratched the surface of the space of deep learning architectures.
It's a high dimensional space, so the volume is almost entirely contained in the surface.
But we've scratched a tiny subset of the surface.
"Simplifying Transformer Blocks" ranks easily among my favorite research papers that I've read this year.
Here, the authors look into how the standard transformer block, essential to LLMs, can be simplified without compromising convergence properties and downstream task performance.
Based on signal propagation theory and empirical evidence, they find that many parts can be removed to simplify GPT-like decoder architectures as well as encoder-style BERT models:
skip connections
normalization layers (LayerNorm)
projection and value parameters
sequential attention and MLP sub-blocks (in favor of a parallel layout)
The authors also did a great job referencing tons of related work motivating their experiments. I definitely recommend reading this paper just for the references alone: arxiv.org/abs/2311.01906
Michał Jamry retweeted
What are some foundational ML/AI books? I'd like to invest in my fundamentals more. Ideally something students might read during their PhD.










































