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

推荐订阅源

D
Docker
I
InfoQ
L
LangChain Blog
阮一峰的网络日志
阮一峰的网络日志
Y
Y Combinator Blog
博客园_首页
Martin Fowler
Martin Fowler
宝玉的分享
宝玉的分享
A
About on SuperTechFans
Apple Machine Learning Research
Apple Machine Learning Research
Vercel News
Vercel News
T
The Blog of Author Tim Ferriss
C
Check Point Blog
B
Blog RSS Feed
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Engineering at Meta
Engineering at Meta
B
Blog
爱范儿
爱范儿
Stack Overflow Blog
Stack Overflow Blog
aimingoo的专栏
aimingoo的专栏
WordPress大学
WordPress大学
F
Fortinet All Blogs
月光博客
月光博客
GbyAI
GbyAI

The System Design Newsletter

Claude code claude.md best practices Types of API testing with examples System Design Tradeoffs API Testing Types How does a CI/CD pipeline work LLM fine-tuning guide with LoRA and QLoRA Durable AI Agents Prompt Engineering - A Deep Dive How to build an AI research agent with MCP System Design Patterns Fine-tuning Small Language Models API Performance Microservices Design Patterns How to use NotebookLM Fine Tuning AI Models 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
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?