<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Notes on Saheb&#39;s AI Journey</title>
		<link>https://saheb.github.io/blog/notes/</link>
		<description>Recent content in Notes on Saheb&#39;s AI Journey</description>
		<generator>Hugo</generator>
		<language>en-us</language>
		
		
		
		
			<lastBuildDate>Mon, 20 Jul 2026 00:00:00 +0000</lastBuildDate>
		
			<atom:link href="https://saheb.github.io/blog/notes/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>RL Generalization — Revision Notes</title>
				<link>https://saheb.github.io/blog/notes/rl-generalization-notes/</link>
				<pubDate>Mon, 20 Jul 2026 00:00:00 +0000</pubDate>
				<guid>https://saheb.github.io/blog/notes/rl-generalization-notes/</guid>
				<description>&lt;p&gt;Source: Kirk et al. 2023 ZSG survey (arXiv 2111.09794) + working sessions, July 2026.&lt;/p&gt;&#xA;&lt;h2 id=&#34;1-the-problem-in-one-sentence&#34;&gt;1. The problem in one sentence&lt;/h2&gt;&#xA;&lt;p&gt;Train a policy on a finite sample of contexts drawn from p(c); &lt;strong&gt;freeze it&lt;/strong&gt;; measure expected&#xA;return on contexts never trained on. Zero-shot = &lt;strong&gt;no adaptation at test time&lt;/strong&gt; (no gradient&#xA;updates, no practice episodes — nothing to do with &amp;ldquo;one attempt&amp;rdquo;).&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Generalization gap&lt;/strong&gt; = train return − test return. Always report &lt;strong&gt;two numbers&lt;/strong&gt;: gap&#xA;(overfitting) AND absolute test return (competence). Random agent: gap ≈ 0, useless.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Interpolation&lt;/strong&gt; = test contexts inside the convex hull of training values. &lt;strong&gt;Extrapolation&lt;/strong&gt;&#xA;= outside. &lt;strong&gt;Combinatorial&lt;/strong&gt; = novel combos of seen factor values. Interpolation is a&#xA;favorable prior, not a proof — the test context was still never seen.&lt;/li&gt;&#xA;&lt;li&gt;Difficulty order (Kirk §4): interpolation &amp;lt; combinatorial &amp;lt; extrapolation. Extrapolation:&#xA;&amp;ldquo;unlikely to occur at all with standard RL methods.&amp;rdquo;&lt;/li&gt;&#xA;&lt;li&gt;Why zero-shot matters: the only deployment workflow that exists — train in sim/offline,&#xA;freeze, deploy, must work immediately. Every LLM deployment is zero-shot policy transfer.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;2-cmdp-formalism&#34;&gt;2. CMDP formalism&lt;/h2&gt;&#xA;&lt;p&gt;Tuple: S&amp;rsquo; (underlying state), A, O, phi (observation fn), T, R, C, p(c), p(s&amp;rsquo;|c).&#xA;A CMDP = a POMDP with state (s&amp;rsquo;, c): sample c ~ p(c) per episode, then s&amp;rsquo; ~ p(s&amp;rsquo;|c).&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
