<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Reinforcement Learning on Bharath's Blog</title><link>https://bharathbhushan1.github.io/blog/tags/reinforcement-learning/</link><description>Recent content in Reinforcement Learning on Bharath's Blog</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Tue, 30 Jun 2026 08:30:00 +0530</lastBuildDate><atom:link href="https://bharathbhushan1.github.io/blog/tags/reinforcement-learning/index.xml" rel="self" type="application/rss+xml"/><item><title>Qwen-AgentWorld: A Language World Model for Agents</title><link>https://bharathbhushan1.github.io/blog/posts/2026-06-30-qwen-agentworld/</link><pubDate>Tue, 30 Jun 2026 08:30:00 +0530</pubDate><guid>https://bharathbhushan1.github.io/blog/posts/2026-06-30-qwen-agentworld/</guid><description>&lt;p&gt;The Qwen team &lt;a href="https://qwen.ai/blog?id=qwen-agentworld"&gt;released&lt;/a&gt; Qwen-AgentWorld
on 2026-06-24. I came to know more about language world models via this post. It is
also related to &lt;a href="https://bharathbhushan1.github.io/blog/posts/2026-06-24-ai-agents/"&gt;agents&lt;/a&gt;, and
&lt;a href="https://bharathbhushan1.github.io/blog/posts/2026-06-13-offline-rl/"&gt;offline RL&lt;/a&gt;. This post is a short summary
of my understanding.&lt;/p&gt;
&lt;h2 id="context"&gt;Context&lt;/h2&gt;
&lt;p&gt;To train an agent with RL, you need an environment in which it can learn by trying
out various actions and observing the result. But real environments are slow and
sometimes irreversible.&lt;/p&gt;
&lt;p&gt;A &lt;strong&gt;language world model&lt;/strong&gt; predicts the new state of the environment given
(current-state, agent-action). Interestingly, the observation is emitted as XML/HTML
allow even GUI environments to be modelled by a text-only LLM.&lt;/p&gt;</description></item><item><title>A Tiny Q-learning Example in Python</title><link>https://bharathbhushan1.github.io/blog/posts/2026-06-29-simple-q-learning/</link><pubDate>Mon, 29 Jun 2026 08:30:00 +0530</pubDate><guid>https://bharathbhushan1.github.io/blog/posts/2026-06-29-simple-q-learning/</guid><description>&lt;p&gt;I wanted to get a better sense of the temporal-difference update rule. So took some help
from Claude and wrote a small Q-learning program. Just uses the python stdlib.
The code lives in &lt;a href="https://github.com/bharathbhushan1/ai-learning/tree/main/q-learning"&gt;&lt;code&gt;q-learning&lt;/code&gt;&lt;/a&gt;,
managed with &lt;a href="https://docs.astral.sh/uv/"&gt;uv&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img alt="A 1D line of six cells, 0 through 5; the agent starts at cell 0 and the learned policy points right at every step toward the goal at cell 5, with Q-values discounted back from the goal" loading="lazy" src="https://bharathbhushan1.github.io/blog/images/q-learning.svg"&gt;&lt;/p&gt;</description></item><item><title>The Bitter Lesson</title><link>https://bharathbhushan1.github.io/blog/posts/2026-06-17-bitter-lesson/</link><pubDate>Wed, 17 Jun 2026 10:00:00 +0000</pubDate><guid>https://bharathbhushan1.github.io/blog/posts/2026-06-17-bitter-lesson/</guid><description>&lt;p&gt;This post is a short summary of Rich Sutton&amp;rsquo;s &lt;a href="http://www.incompleteideas.net/IncIdeas/BitterLesson.html"&gt;Bitter Lesson&lt;/a&gt; essay.&lt;/p&gt;
&lt;h3 id="context"&gt;Context&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Cost of computation reduces exponentially with time.&lt;/li&gt;
&lt;li&gt;&amp;ldquo;Brute force&amp;rdquo; approaches which use compute win over human-aided or human-like problem solving over a medium/long time horizon.&lt;/li&gt;
&lt;li&gt;Search is one such computation technique. This helped in Deep Blue winning chess.&lt;/li&gt;
&lt;li&gt;Learning is another. Learning with self-play is yet another. This helped in AlphaGo winning in Go.&lt;/li&gt;
&lt;li&gt;A Hidden Markov model which models sequential processes is yet another computation technique. This helped in speech recognition.&lt;/li&gt;
&lt;li&gt;Deep learning for speech recognition is another step in this direction of using computation instead of human-modeled features.&lt;/li&gt;
&lt;li&gt;Convolutional Neural networks solved image recognition and other vision problems.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="bitter-lesson"&gt;Bitter Lesson&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;The bitter lesson is that building systems based on our understanding of
human knowledge and specifics of problem solving does not work in the long
run. AI researchers build knowledge into their agents and this helps in the
short term. In the long term, progress plateaus and even slows down. A
breakthrough happens by using search/learning along with scaled compute.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="learnings"&gt;Learnings&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Learning 1: General methods like &lt;code&gt;search&lt;/code&gt; and &lt;code&gt;learning&lt;/code&gt; are very powerful and highly scalable with compute.&lt;/li&gt;
&lt;li&gt;Learning 2: The world is very complex. The content of our minds reflects this
extreme complexity. But the mental processes and meta-methods that we use to
capture and represent this arbitrary complexity should we built into AI
systems. We want AI agents to use our discovering process and not need the
knowledge we have discovered.&lt;/li&gt;
&lt;/ul&gt;</description></item><item><title>Offline Reinforcement Learning</title><link>https://bharathbhushan1.github.io/blog/posts/2026-06-13-offline-rl/</link><pubDate>Sat, 13 Jun 2026 10:00:00 +0000</pubDate><guid>https://bharathbhushan1.github.io/blog/posts/2026-06-13-offline-rl/</guid><description>&lt;p&gt;A really nice insight about offline RL algorithms is that off-policy (but online)
algorithms can also be used for offline RL use cases. Structurally they have the same
inputs and same kind of outputs. But there is a fatal flaw.&lt;/p&gt;
&lt;p&gt;For out-of-distribution (OOD) actions, the estimated Q value for off-policy algorithms
can never be corrected. These actions are never present in the dataset and can never
really be learnt from. So there is catastrophic overestimation for OOD actions.&lt;/p&gt;</description></item></channel></rss>