01 / Research & dissections
Technical monographs & RL notes
Deep-dives into State Space Models, reinforcement learning for LLMs, encoder-decoder architectures, and machine learning systems.
- [RL] 2025-04 · 5 min read
RL Bite: Monte Carlo Search Tree
Let's talk a bit about Model-Based Reinforcement Learning. The idea is that our RL Agent not just learns a policy to follow or/and a value function (Q function) but also…
Read →
- [RL] 2025-04 · 4 min read
RL Bite: Monotonic Policy Improvement and Deriving Proximal Policy Optimization (PPO)
A while ago we looked into Policy Gradient and Reinforce. Policy gradient is versatile and under mild conditions it is guaranteed to converge to a local minimum (if we…
Read →
- [RL] 2025-03 · 3 min read
RL Bite: Policy Gradient and Reinforce
Till now we have considered only learning the Value or Q function and estimating the policy from those. In the next few posts, we are going to look into directly…
Read →
- [RL] 2025-03 · 6 min read
RL Bite: Learning the Q Function
We already know how to learn the Value function, however we also know that the Value function by itself is not enough since it averages over all possible actions,…
Read →
- [ML] 2025-02 · 6 min read
TLDR; Graph Contrastive Learning: Representation Scattering
- Paper link: https://openreview.net/pdf?id=R8SolCx62K - Source Code: https://github.com/hedongxiao-tju/SGRL
Read →
- [RL] 2025-02 · 5 min read
RL Bite: Computing the Value Function
In the last RL-Bite I wrote about Bellman's Equations and the Value Function and now we will figure out how we actually apply these equations to compute the Value…
Read →
- [ML] 2025-02 · 4 min read
TLDR; HC-GAE The Hierarchical Cluster-based Graph Auto-Encoder for Graph Representation Learning
- Paper link: https://arxiv.org/abs/2405.14742 - Source Code: https://github.com/JonathanGXu/HC-GAE
Read →
- [RL] 2025-02 · 3 min read
RL Bite: Bellmans Equations and Value Functions
In value based Reinforced Learning we learn a Value Function:
Read →
- [ML] 2025-02 · 5 min read
TLDR; Duplex: Dual GAT for Complex Embeddings of Directed Graphs
- Paper link: https://arxiv.org/abs/2406.05391 - Source Code: https://github.com/alipay/DUPLEX
Read →
- [RL] 2025-02 · 3 min read
RL Bite: Exploitation vs Exploration
In reinforcement learning, we have an agent that has to take actions, for which it receives a reward. Here we have a dilemma: do we choose an action that gives the…
Read →
- [ML] 2024-12 · 9 min read
Graph Neural Networks meet Large Language Models
I am a huge fan of Graph Neural Networks (GNNs), and I am (a bit less) a fan of Large Language Models (LLMs), however they are hard to ignore. Both have different…
Read →
- [SSM] 2024-12 · 6 min read
Hymba, a new breed of SSM-Attention Hybrids
State space models are really close to my heart, I even have a deep-dive articles about them. But when it comes to Language Models they lack some performance and that…
Read →
- [ML] 2024-11 · 12 min read
Transform any LLMs to a powerful Encoder
In the last two years there has been a surge of Large Language Models. This is understandable, since LLMs are amazing at generating text, and a lot of things can be…
Read →
- [ML] 2024-11 · 10 min read
2025 Year of Zig
Programming languages come and go and during my 20 years of coding I have used many of them to at least some degree (more than just hello world). Thanks to ThePrimeagen…
Read →
- [SSM] 2024-10 · 11 min read
Distilling State Space Models from Transformers
It is notoriously expensive to train a Language Model from scratch, making independent research impossible and trying out new architectures extremely risky. Because of…
Read →
- [SSM] 2024-10 · 9 min read
Illusion of State in SSMs like Mamba
Last time we looked into the weak points of State Space Models (Mamba, Mamba2), especially when compared with Attention-Based models (LLama, GPT-like). They lack in…
Read →
- [SSM] 2024-09 · 16 min read
Mamba(2) and Transformer Hybrids: An Overview
We have already looked into Mamba and Mamba2. In terms of efficiency, with their linear complexity and the absence of Key-Value cache, they are a significant improvement…
Read →
- [SSM] 2024-08 · 4 min read
Hydra a Double Headed Mamba
State Space Models are awesome, models like Mamba and Mamba2 boast unparalleled performance especially when it comes to long sequences. The only downside is that they…
Read →
- [SSM] 2024-08 · 17 min read
From Mamba to Mamba-2
This is not my first gig where I write about State Space Models. I already mentioned them here and here. Now what is the deal with this Mamba(2) thing? They are proving…
Read →
- [SSM] 2024-07 · 9 min read
Butterflies, Monarchs, Hyenas, and Lightning Fast BERT
I have been working on a project of creating my own Large Language Model, as I am huge fan of T5, or to be more concrete I recognize the added value of having an…
Read →
- [ML] 2024-06 · 12 min read
BinT5 and HexT5 or T5 and Binary Reverse Engineering
For a while now I have a new passion and that is binary reverse engineering and vulnerability exploitation. This interest has led me to create CodeBreakers a platform…
Read →
- [ML] 2024-06 · 13 min read
CodeT5 and CodeT5+
In a previous post, T5 the Old New Thing, we briefly touched upon CodeT5 and CodeT5+. Now, we aim to dive deeper into these topics.
Read →
- [ML] 2024-04 · 7 min read
Longer Context for T5
In my previous post T5 the Old New Thing we already explored why T5 is awesome. But one downside is its limited context length of 512 tokens. However, it does have a…
Read →
- [ML] 2024-03 · 10 min read
T5 the Old New Thing
A couple of weeks ago I run into the following paper Tiny Titans. It compares multiple smallish (up to 1B parameters) open source LLMs with bigger proprietary ones on…
Read →
- [ML] 2023-09 · 4 min read
Nixos for Hobby Project
Lately, I've embarked on a side project: CodeBreakers. It's nothing too fancy, just a website where I plan to release videos and articles about my latest…
Read →
- [SSM] 2023-02 · 4 min read
Paper overview: Hungry Hungry Hippos: Towards Language Modeling with State Space Models
By combining State Space Models (SSMs) with Attention, we get a model that generates text more efficiently, with a speed increase of approximately 1.6 times.…
Read →
- [ML] 2023-01 · 6 min read
Paper overview: Continuous-Time Modeling of Counterfactual Outcomes Using Neural Controlled Differential Equations
Imagine you have an irregullary sampled time series, where at various time points we perform interventions. These interventions may influence the dynamics of the…
Read →
- [ML] 2020-12 · 6 min read
Hierarchical Probabilistic Matrix Factorization
Hierarchical Probabilistic Matrix Factorization. An example implementation in Pyro.
Read →