惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
Docker
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
C
Cisco Blogs
Scott Helme
Scott Helme
Know Your Adversary
Know Your Adversary
NISL@THU
NISL@THU
C
Cyber Attacks, Cyber Crime and Cyber Security
D
Darknet – Hacking Tools, Hacker News & Cyber Security
C
CXSECURITY Database RSS Feed - CXSecurity.com
S
Schneier on Security
I
Intezer
Spread Privacy
Spread Privacy
AWS News Blog
AWS News Blog
V
Vulnerabilities – Threatpost
Cloudbric
Cloudbric
V2EX - 技术
V2EX - 技术
Google Online Security Blog
Google Online Security Blog
L
Lohrmann on Cybersecurity
Recent Commits to openclaw:main
Recent Commits to openclaw:main
L
LINUX DO - 热门话题
S
Secure Thoughts
T
The Exploit Database - CXSecurity.com
博客园 - 【当耐特】
Recent Announcements
Recent Announcements
Security Archives - TechRepublic
Security Archives - TechRepublic
Stack Overflow Blog
Stack Overflow Blog
罗磊的独立博客
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
K
Kaspersky official blog
阮一峰的网络日志
阮一峰的网络日志
博客园_首页
Latest news
Latest news
B
Blog
F
Full Disclosure
大猫的无限游戏
大猫的无限游戏
博客园 - 叶小钗
L
LangChain Blog
GbyAI
GbyAI
Last Week in AI
Last Week in AI
S
Security Affairs
Apple Machine Learning Research
Apple Machine Learning Research
N
Netflix TechBlog - Medium
Security Latest
Security Latest
Vercel News
Vercel News
Y
Y Combinator Blog
G
GRAHAM CLULEY
S
Securelist
T
Troy Hunt's Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
雷峰网
雷峰网

The System Design Newsletter

Kubernetes Architecture Graph based Agent Memory How does CDN work Agent to Agent Protocol Claude Folder System Design Mobile What is AI Infrastructure Agentic Engineering How do Docker containers work Design a Payment System OpenClaw Architecture AI Based Knowledge Management System Agentic AI Use Cases Virtualization Architecture AI Agent Memory - A Deep Dive Machine Learning System Design Interview Mobile System Design Interview AI chat assistant Multi Agent System LLM Evals What is a Vector Database Agentic Design Patterns Software Engineer Resume AI Concepts Generative AI System Design AWS S3 System Design Mobile System Design Mobile System Design Interview How RAG Works How Do AI Agents Work System Design Fundamentals
What Is Reinforcement Learning
Neo Kim, Dr. Ashish Bamania · 2026-03-14 · via The System Design Newsletter

Reinforcement learning (RL) is making a comeback and becoming mainstream.

From humanoid robots and game-playing AIs that beat world champions to the LLMs you chat with every day, all are trained using RL, which lets them learn from experience and get better through feedback.

Contrary to many tutorials that can make it look so hard, RL is actually pretty intuitive, and you really don’t need a PhD to understand how it works.

In this newsletter, we will go through 21 key RL concepts to build a solid foundation from the ground up. These terms are all explained in plain language without using any fancy math equations.

Let’s start from the very beginning…

AI is writing more production code than ever, but it also introduces more risk.

CodeRabbit’s research found that AI-generated code contains 1.7x more issues, including 75% more logic errors.

That’s exactly why you should grab a copy of the Ultimate Prompting Cheat Sheet.

Here’s what you get:

  • Proven prompting techniques to reduce AI coding errors.

  • Actionable workflows for AI-assisted development.

  • Clear frameworks for safer AI-generated code.

  • Practical examples you can apply immediately.

And many more!

These techniques reduce defects without slowing velocity, regardless of which AI coding tool you use.

Sign up and get access to the ultimate prompting cheat sheet right now:

GET INSTANT ACCESS

(Thanks to CodeRabbit for partnering on this post & sharing the ultimate prompting cheat sheet.)

I want to reintroduce Ashish Bamania as a guest author.

He’s a self-taught software engineer and an emergency physician. He is also the editor and primary author of the newsletters Into AI and Into Quantum.

The images used in this newsletter come from his books:

  • Reinforcement Learning in 100 Images (upcoming)

Grab the book at 20% discount today with the discount code NEO20, pre-applied to the link above!

Let’s start with the definition of Reinforcement Learning (RL).

RL is a type of machine learning (besides Supervised and Unsupervised learning) that deals with an entity called an ‘Agent’, trying to learn to perform a task better in its ‘Environment’ through trial and error.

For example, a deer (Agent) foraging in a forest (Environment) to survive, avoiding being eaten by its predators.

We will soon move to more AI-related examples, I promise, but first, let’s better understand what the terms ‘Agent’ and ‘Environment’ mean.

An agent is the central entity in RL.

It is one that studies and interacts with its environment, makes decisions, takes actions, and learns from its outcomes.

In our previous case, we used a deer as an agent example, but from now on, we will discuss concepts assuming an LLM as the agent as well.

The environment is everything outside the agent with which it interacts.

The function of an environment is to:

  • Get affected by an agent’s actions

  • Change its state (or maybe hold its state constant) depending on the agent’s actions

  • Give the agent a reward or punishment based on its actions, so that the agent can modify its intent the next time it takes an action

In the first case, the deer was functioning in a forest as its environment. Based on the deer’s actions (moving around in different directions), either the forest (environment) lets it progress towards food (reward) or it exposes it to a cheetah (punishment).

In the case of an LLM as an agent, everything outside it, such as the following, is part of its environment:

  • User inputs

  • System prompt

  • Tools / APIs it can call

  • System responses (tool results, API outputs, error messages)

  • Context (documents, conversation history, files)

A State is a snapshot of an environment at a time. It is everything an agent sees at a given moment that it can use to make its next decision.

For a deer agent, it could be its current location in the forest, nearby predators, and the time of day.

For an LLM agent, it is all the context it has access to at a moment, which it can use to decide its next action.

But what’s action?