Lil'Log
Lilian Weng's long-form technical surveys of machine learning research topics such as LLM agents, diffusion models, and reinforcement learning.
Lilian Weng's long-form technical surveys of machine learning research topics such as LLM agents, diffusion models, and reinforcement learning.
The concept of recursive self-improvement (RSI) dates back to I. J. Good (1965) , where he defined an “ultraintelligent machine” as a system that can surpass humans in all intel...
Scaling laws are one of the most critical empirical findings in deep learning. The observation is simple in form: the training loss $L$ decreases predictably as we scale up mode...
Special thanks to John Schulman for a lot of super valuable feedback and direct edits on this post. Test time compute ( Graves et al. 2016 , Ling, et al. 2017 , Cobbe et al. 202...
Reward hacking occurs when a reinforcement learning (RL) agent exploits flaws or ambiguities in the reward function to achieve high rewards, without genuinely learning or comple...
Hallucination in large language models usually refers to the model generating unfaithful, fabricated, inconsistent, or nonsensical content. As a term, hallucination has been som...
How to measure an LLM in 2026, from perplexity, BLEU and pass@k to RAG faithfulness, LLM-as-a-judge, agent reliability and error bars, with worked examples.
· 36 min read
10 advanced prompt engineering techniques for LLM apps, including self-consistency, ReAct, structured outputs, context engineering and evals, with code.
· 14 min read
20 copy-ready AI prompts for developers, covering planning, debugging, tests, code review, refactoring, SQL, regex, security and coding agent rules.
· 8 min read