<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>Oscar Heitmann Ruiz: Notes</title>
    <link href="https://oscar.heitmannruiz.org/atom.xml" rel="self" />
    <link href="https://oscar.heitmannruiz.org" />
    <id>https://oscar.heitmannruiz.org/atom.xml</id>
    <author>
        <name>Oscar Heitmann Ruiz</name>
        
    </author>
    <updated>2026-11-04T00:00:00Z</updated>
    <entry>
    <title>Confusion about inaccuracies in “AlphaGo Zero and capability amplification”</title>
    <link href="https://oscar.heitmannruiz.org/notes/alphago-christiano.html" />
    <id>https://oscar.heitmannruiz.org/notes/alphago-christiano.html</id>
    <published>2026-11-04T00:00:00Z</published>
    <updated>2026-11-04T00:00:00Z</updated>
    <summary type="html"><![CDATA[<p>There is this Alignment Forum post by Paul Christiano titled
“<a href="https://www.alignmentforum.org/posts/HA3oArypzNANvXC38/alphago-zero-and-capability-amplification">AlphaGo Zero and capability amplification</a>”,
part of the
<a href="https://www.alignmentforum.org/s/EmDuGeRw749sD3GKd">Iterated Amplification</a>
sequence, that bugged me when I came across it a few years ago. I’d just
previously skimmed
“<a href="https://gwern.net/doc/reinforcement-learning/model/alphago/2017-silver.pdf">Mastering the game of Go without human knowledge</a>”,
henceforth “the AGZ paper”, and felt like Christiano’s post had a few
weird inaccuracies.</p>
<p>Since I’m not an ML person I assumed that I was probably just missing
something context/lingo etc. or misremembering. So I went back to the
AGZ paper but that failed to solve my confusion. I took a few notes and
left it at that. When I came across those notes by chance today I
decided to look into it a bit more.</p>
<p>There are a few pretty minor things that bug me but that are really not
worth the trouble and then two larger ones which I do want to highlight.</p>
<h2 id="supervised-learning">Supervised learning?</h2>
<p>The post begins:</p>
<blockquote>
<p>“AlphaGo Zero is an impressive demonstration of AI capabilities. It also
happens to be a nice proof-of-concept of a promising alignment
strategy.”</p>
</blockquote>
<p>with “AlphaGo Zero” being a link to
<a href="https://deepmind.google/blog/alphago-zero-starting-from-scratch/">a blog post by DeepMind</a>.
Makes sense.</p>
<p>This is followed by a section titled “How AlphaGo Zero works”:</p>
<blockquote>
<p>AlphaGo Zero learns two functions (which take as input the current
board):</p>
<ul>
<li>A prior over moves <strong>p</strong> is trained to predict what AlphaGo will
eventually decide to do.</li>
<li>A value function <strong>v</strong> is trained to predict which player will win (if
AlphaGo plays both sides)</li>
</ul>
<p>Both are trained with supervised learning. Once we have these two
functions, AlphaGo actually picks it[s] moves by using 1600 steps of
Monte Carlo tree search (MCTS), using <strong>p</strong> and <strong>v</strong> to guide the search.
It trains <strong>p</strong> to bypass this expensive search process and directly pick
good moves. As <strong>p</strong> improves, the expensive search becomes more powerful,
and <strong>p</strong> chases this moving target.”</p>
</blockquote>
<p>This section sounds wrong to me. In isolation “Both are trained with
supervised learning” can be read as referring to the inner loop where
“inner loop” is the part where the “weak” policy is improved.<a href="#fn1" class="footnote-ref" id="fnref1" role="doc-noteref"><sup>1</sup></a> That
would be fine.</p>
<p>The problem is the sentence <em>right after</em>, “Once we have these two
functions..”</p>
<p>In AlphaGo Zero, henceforth “AGZ”, there is no point at which we do not
have <strong>p</strong> and <strong>v</strong>! We start with random play! It is ~the defining feature
of AlphaGo <em>Zero</em>, that it starts from <em>Zero</em>!</p>
<p>Thus, to me, the passage reads naturally as something like “*p* and <strong>v</strong>
are first trained using supervised learning followed by RL self-play
using MCTS”, which is <em>not</em> the case.</p>
<p>My next thought was that “Trained by SL, then amplified at game time via
MCTS” would have been a reasonable fit for its predecessor <em>AlphaGo
Fan</em><a href="#fn2" class="footnote-ref" id="fnref2" role="doc-noteref"><sup>2</sup></a> (see the first page of the AGZ paper):</p>
<blockquote>
<p>The policy network was trained initially by supervised learning to
accurately predict human expert moves, and was subsequently refined by
policy-gradient reinforcement learning. The value network was trained to
predict the winner of games played by the policy network against itself.
Once trained, these networks were combined with a Monte-Carlo Tree
Search (MCTS) to provide a lookahead search, using the policy network to
narrow down the search to high-probability moves, and using the value
network (in conjunction with Monte-Carlo rollouts using a fast rollout
policy) to evaluate positions in the tree.</p>
</blockquote>
<p>Maybe the distinction between the two does not really matter for the
analogy the post is making?<a href="#fn3" class="footnote-ref" id="fnref3" role="doc-noteref"><sup>3</sup></a></p>
<p>Maybe those two got mixed up but no harm no foul since they work equally
well?</p>
<p>That is not the case because in <em>AlphaGo Fan</em> MCTS comes in only at play
time. It lacks lookahead via MCTS inside the training loop which was
first introduced, in the AlphaGo lineage, with AGZ. From the AGZ paper
(page 1):</p>
<blockquote>
<p>To achieve these results, we introduce a new reinforcement learning
algorithm that incorporates lookahead search <em>inside</em> the training loop,
resulting in rapid improvement and precise and stable learning.</p>
</blockquote>
<p>See also <em>Reinforcement Learning: An Introduction</em> (second edition,
chapter 16, page. 447,
<a href="http://incompleteideas.net/book/RLbook2020.pdf#page=469">link</a>):</p>
<blockquote>
<p>A significant difference between <em>AlphaGo Zero</em> and <em>AlphaGo</em> is that
<em>AlphaGo Zero</em> used MCTS to select moves throughout self-play
reinforcement learning, whereas <em>AlphaGo</em> used MCTS for live play
after—but not during—learning.”</p>
</blockquote>
<p>It lacks the whole “moving target” idea that makes AGZ interesting to
Christiano here in the first place!</p>
<p>Even setting all this aside, Christiano’s choice represents a clear
clash with the terminology as used by DeepMind and others which insist
on describing AGZ as “trained solely by self-play reinforcement
learning” Again from the AGZ paper:</p>
<blockquote>
<p>Our program, AlphaGo Zero, differs from AlphaGo Fan and AlphaGo Lee in
several important aspects. First and foremost, it is trained solely by
self-play reinforcement learning, starting from random play, without any
supervision or use of human data.</p>
</blockquote>
<p>This insistence on only reinforcement learning is repeated many places:</p>
<blockquote>
<p>Where in addition to reinforcement learning, AlphaGo relied on
supervised learning from a large database of expert human moves, AlphaGo
Zero used only reinforcement learning and no human data or guidance
beyond the basic rules of the game (hence the Zero in its name).</p>
</blockquote>
<h2 id="rollouts">Rollouts?</h2>
<p>Later on, in the section “Iterated capability amplification”, he writes:</p>
<blockquote>
<p>In the case of AlphaGo Zero, <strong>A</strong> is the prior over moves, and the
amplification scheme is MCTS. (More precisely: <strong>A</strong> is the pair (<strong>p</strong>,
<strong>v</strong>), and the amplification scheme is MCTS + using a rollout to see who
wins.)</p>
</blockquote>
<p>“MCTS + using a rollout to see who wins” sounds an awful lot like the
description of <em>AlphaGo Fan</em> I quoted earlier:</p>
<blockquote>
<p>Once trained, these networks were combined with a Monte-Carlo Tree
Search (MCTS) to provide a lookahead search, using the policy network to
narrow down the search to high-probability moves, and using the value
network (in conjunction with Monte-Carlo rollouts using a fast rollout
policy) to evaluate positions in the tree.</p>
</blockquote>
<p>It does not work well as a description of AGZ. Here a description taken
from <em>Reinforcement Learning: An Introduction</em> (second edition, chapter
16, page 447,
<a href="http://incompleteideas.net/book/RLbook2020.pdf#page=469">link</a>):</p>
<blockquote>
<p><em>AlphaGo Zero’s</em> MCTS was simpler than the version used by <em>AlphaGo</em> in
that it did not include rollouts of complete games, and therefore did
not need a rollout policy. Each iteration of <em>AlphaGo Zero’s</em> MCTS ran a
simulation that ended at a leaf node of the current search tree instead
of at the terminal position of a complete game simulation.</p>
</blockquote>
<p>Or another taken from the AGZ paper:</p>
<blockquote>
<p>Finally, it uses a simpler tree search that relies upon this single
neural network to evaluate positions and sample moves, without
performing any Monte Carlo rollouts.</p>
</blockquote>
<p>If he uses “rollout” to refer to something different that is fine but
the blog post by DeepMind that he himself links uses the term as in the
quote above! See
<a href="https://deepmind.google/blog/alphago-zero-starting-from-scratch/#:~:text=AlphaGo%20Zero%20does,to%20evaluate%20positions.">here</a>:</p>
<blockquote>
<p>AlphaGo Zero does not use “rollouts” - fast, random games used by other
Go programs to predict which player will win from the current board
position. Instead, it relies on its high quality neural networks to
evaluate positions.</p>
</blockquote>
<p>where it is listed as one of the notable differences to prior versions.
So at the very least he is breaking with the terminology as it is used
in this context.</p>
<h3 id="what-else-might-rollout-refer-to">what else might “rollout” refer to?</h3>
<p>A thought that occurred to me was that he might take “rollout” to refer
to the fact that the games generated by self-play are played to some
end.<a href="#fn4" class="footnote-ref" id="fnref4" role="doc-noteref"><sup>4</sup></a> This sense of “rollout” belongs to what the AGZ paper calls
the <em>policy evaluation</em> operator part which is then used in the
distillation/optimization step:</p>
<blockquote>
<p>Self-play with search – using the improved MCTS-based policy to select
each move, then using the game winner <span class="math inline"><em>z</em></span> as a sample of the value –
may be viewed as a powerful <em>policy evaluation</em> operator.</p>
</blockquote>
<p>The problem is that this interpretation is ruled out by the immediate
context of the “rollout” in Christiano’s post.</p>
<blockquote>
<p>In the case of AlphaGo Zero, <strong>A</strong> is the prior over moves, and the
amplification scheme is MCTS. (More precisely: <strong>A</strong> is the pair (<strong>p</strong>,
<strong>v</strong>), and the amplification scheme is MCTS + using a rollout to see who
wins.)</p>
</blockquote>
<p>It occurs in a description of the <em>amplification scheme</em> which, in the
Iterated Amplification sequence, is the part where a weak policy <strong>A</strong> is
amplified by some means (see for instance the post
<a href="https://www.alignmentforum.org/s/EmDuGeRw749sD3GKd/p/t3AJW5jP3sk36aGoC">Capability amplification</a>).</p>
<p>The AGZ paper uses the term <em>policy improvement</em> operator:</p>
<blockquote>
<p>The MCTS search outputs probabilities <span class="math inline"><strong>π</strong></span> of playing
each move. These search probabilities usually select much stronger moves
than the raw move probabilities <span class="math inline"><strong>p</strong></span> of the neural network
<span class="math inline"><em>f</em><sub><em>θ</em></sub>(<em>s</em>)</span>; MCTS may therefore be viewed as a powerful <em>policy
improvement</em> operator</p>
</blockquote>
<p>And it is this part which does <em>not</em> use rollouts in AGZ!</p>
<p>(As contrasted with <em>AlphaGo Fan</em> where rollouts <em>are</em> used in the
<em>policy improvement</em> operator//amplification scheme/)</p>
<h2 id="conclusion">Conclusion</h2>
<p>Both of these seem like weird things to get wrong, and weirder still to
remain that way. Even if this sort of stuff is not relevant for the
point the post is trying to make!</p>
<p>But maybe that is because I am simply misunderstanding something? Would
love to know!</p>
<section id="footnotes" class="footnotes footnotes-end-of-document" role="doc-endnotes">
<hr />
<ol>
<li id="fn1"><p>in the case of AGZ, the way the neural network’s parameters are
updated to make <span class="math inline"><strong>p</strong></span> and <span class="math inline"><em>v</em></span> more closely match the
improved search play probabilities and self-play winner
<span class="math inline">(<strong>π</strong>, <em>z</em>)</span>, (using the notation in the AGZ paper)<a href="#fnref1" class="footnote-back" role="doc-backlink">↩︎</a></p></li>
<li id="fn2"><p>though this is also not really a perfect fit!<a href="#fnref2" class="footnote-back" role="doc-backlink">↩︎</a></p></li>
<li id="fn3"><p>this seemed all the more likely at first given the question of
rollouts below<a href="#fnref3" class="footnote-back" role="doc-backlink">↩︎</a></p></li>
<li id="fn4"><p>“both players pass, when the search value drops below a
resignation threshold, or when the game exceeds a maximum
length”, (AGZ paper)<a href="#fnref4" class="footnote-back" role="doc-backlink">↩︎</a></p></li>
</ol>
</section>]]></summary>
</entry>
<entry>
    <title>Broken Glass And Alien Ethical Intuitions</title>
    <link href="https://oscar.heitmannruiz.org/notes/broken-glass-and-alien-ethical-intuitions.html" />
    <id>https://oscar.heitmannruiz.org/notes/broken-glass-and-alien-ethical-intuitions.html</id>
    <published>2026-11-04T00:00:00Z</published>
    <updated>2026-11-04T00:00:00Z</updated>
    <summary type="html"><![CDATA[<p>This is the story of an odd experience, technically two, I had a few years
back.
Before I begin a little Parfit.
In Reasons and Persons<a href="#fn1" class="footnote-ref" id="fnref1" role="doc-noteref"><sup>1</sup></a> Derek Parfit makes us imagine the following:</p>
<blockquote>
<p>Suppose that I leave some broken glass in the undergrowth of a wood.
A hundred years later this glass wounds a child.
My act harms this child.
If I had safely buried the glass, this child would have walked through the wood
unharmed.</p>
</blockquote>
<p>and asks, “Does it make a moral difference that the child whom I harm does not now
exist?”</p>
<p>My intuition is that “No! It does not!”
I mean don’t get me wrong, ethics is hard and confusing see e.g.
<a href="https://joecarlsmith.com/2023/02/16/why-should-ethical-anti-realists-do-ethics/">Why should ethical anti-realists do ethics?</a>, but then also, clearly,
I feel far from neutral about creating happy lives based on
<a href="https://joecarlsmith.com/2021/03/14/against-neutrality-about-creating-happy-lives/">these kinds of intuitions</a>.</p>
<p>Now to the personal story.
So here I am, strolling along a beach, with my girlfriend and one of my closest
friends.
I find a plank half buried in the sand with rusty nails sticking out.
Somebody could step on those nails.
I bend down, grab a big rock and hammer them into the plank.
My girlfriend and friend look at me with an amused expression.
As though I am acting silly.</p>
<p>I ask them about it and they explain that this would <em>not</em> have occurred to
them.
Not the idea to use a rock to hammer the nails into the plank mind you.
It would simply not have occurred to them to do anything at all!
Things don’t stop there.
Seeing me do something about the nails did not make them go,
“oh, yeah, good idea”.
No.
They found it weird.
I respond that this is not about responsibility or fault?!
I just do not want someone to hurt themselves by stepping or, God forbid,
sitting down on those nails!<a href="#fn2" class="footnote-ref" id="fnref2" role="doc-noteref"><sup>2</sup></a></p>
<p>They repeated that sure that’s fine but it <em>still</em> wouldn’t be your fault..</p>
<p>The whole things was <em>bewildering</em> to me!</p>
<p>Then a few years later something very similar happened!
We were on a beach (popular with the locals for swimming)
and I found a bunch of rusty nails in the sand
(probably the result of someone burning wood with nails in it)
Naturally I knelt down and collected them,
combing through the sand to find any stranglers.
The three friends I was with looked at me like a madman.
Again, I heard the same questions, “why bother? Not like it’s your
responsibility” etc.
When done I dropped them in a nearby trash can.</p>
<p>Both times something like the following went through my head:</p>
<blockquote>
<p>What?
Seriously, what?
Oh, I have a great intuition pump for that!
Parfit talks about this! (the child in the forest.. )
When I tell them surely that’ll change their mind..</p>
</blockquote>
<p>But in that intuition pump Parfit isn’t concerned only with temporal distance!
He is concerend with the wellbeing of people that do not exist yet.
And while I can’t say that I can relate I do at least know that there are those
that proudly proclaim that they,
“[are] in favor of making people happy, but neutral about making happy people”</p>
<p>But this is the <em>simple</em> case!</p>
<p>Further, I’d have thought my actions relatively robust to differences in
ethical intuitions, as well as a case where common folk morality should bite,
right?
Though really, I would not even describe my actions as resulting from any sort
of deliberation?
It was clear to me that I did not want someone stepping on those nails and I
could make sure that it wouldn’t happen by bonking the nails with a rock for a
moment.
There was no sense of duty or responsiblity?</p>
<p>It is still weird for me.</p>
<section id="footnotes" class="footnotes footnotes-end-of-document" role="doc-endnotes">
<hr />
<ol>
<li id="fn1"><p>Part Four (“Future Generations”), Chapter 16
(“The Non-Identity Problem”), §121,
“What Weight Should We Give to the Interests of Future People?”,
(<a href="https://pdf.stafforini.com/parfit-1984-reasons-persons.pdf#page=376">link</a>)<a href="#fnref1" class="footnote-back" role="doc-backlink">↩︎</a></p></li>
<li id="fn2"><p>and yeah yeah, I’ve heard of <a href="https://www.lesswrong.com/posts/3p3CYauiX8oLjmwRF/purchase-fuzzies-and-utilons-separately">purchasing fuzzies and utilons separately</a><a href="#fnref2" class="footnote-back" role="doc-backlink">↩︎</a></p></li>
</ol>
</section>]]></summary>
</entry>
<entry>
    <title>Concrete Math In Emacs</title>
    <link href="https://oscar.heitmannruiz.org/notes/concrete-math-in-emacs.html" />
    <id>https://oscar.heitmannruiz.org/notes/concrete-math-in-emacs.html</id>
    <published>2026-11-04T00:00:00Z</published>
    <updated>2026-11-04T00:00:00Z</updated>
    <summary type="html"><![CDATA[<p>I just want to share the Concrete Math font with all the Emacs users out
there!</p>
<p>I love LaTeX and Emacs and with <code>latex-to-svg</code> LaTeX previews in Emacs have
finally gotten really good!
(Big thanks to Karthinks for the org-latex-preview package which I used for a
long time!)</p>
<p>But default LaTeX glyphs are delicate and light.
This usually clashes with the editor font (unless you use an extremely thin font)</p>
<p>I’m a big fan of the Aporetic-Nerd-Font <a href="https://github.com/Echinoidea/Aporetic-Nerd-Font">link</a>,
Prot’s <a href="https://github.com/protesilaos/aporetic">Aporetic Font</a> patched the nerd patcher script.
It’s not a particularly thick editor font but it is noticeably thicker than
LaTeX’s default Computer Modern.</p>
<p>That difference really bugged me for a while until I came across the Concrete
Math font.</p>
<p>Here are some comparisons:</p>
<p>A math friend of mine finds it horribly ugly but this is not about the final
product it is about the look while editing!
I do not typeset final documents with these fonts.</p>
<p>Try it!</p>]]></summary>
</entry>

</feed>
