nunosempere.com/blog/2023/02/04/just-in-time-bayesianism/.src/build/index.html

164 lines
12 KiB
HTML

<h1>Just-in-time Bayesianism</h1>
<h2>Summary</h2>
<p>I propose a variant of subjective Bayesianism that I think captures some important aspects of how humans<sup id="fnref:1"><a href="#fn:1" rel="footnote">1</a></sup> reason in practice given that Bayesian inference is normally too computationally expensive. I compare it to some theories in the philosophy of science and briefly mention possible alternatives. In conjuction with Laplace&rsquo;s law, I claim that it might be able to explain some aspects of <a href="https://astralcodexten.substack.com/p/trapped-priors-as-a-basic-problem">trapped priors</a>.</p>
<h2>A motivating problem in subjective Bayesianism</h2>
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
<!-- Note: to correctly render this math, compile this markdown with
/usr/bin/markdown -f fencedcode -f ext -f footnote -f latex $1
where /usr/bin/markdown is the discount markdown binary
https://github.com/Orc/discount
http://www.pell.portland.or.us/~orc/Code/discount/
-->
<p>Bayesianism as an epistemology has elegance and parsimony, stemming from its inevitability as formalized by <a href="https://en.wikipedia.org/wiki/Cox's_theorem">Cox&rsquo;s</a> <a href="https://nunosempere.com/blog/2022/08/31/on-cox-s-theorem-and-probabilistic-induction/">theorem</a>. For this reason, it has a certain magnetism as an epistemology.</p>
<p>However, consider the following example: a subjective Bayesian which has only two hypothesis about a coin:</p>
<p>\[
\begin{cases}
\text{it has bias } 2/3\text{ tails }1/3 \text{ heads }\\
\text{it has bias } 1/3\text{ tails }2/3 \text{ heads }
\end{cases}
\]</p>
<p>Now, as that subjective Bayesian observes a sequence of coin tosses, he might end up very confused. For instance, if he only observes tails, he will end up assigning almost all of his probability to the first hypothesis. Or if he observes 50% tails and 50% heads, he will end up assigning equal probability to both hypotheses. But in neither case are his hypotheses a good representation of reality.</p>
<p>Now, this could be fixed by adding more hypotheses, for instance some probability density to each possible bias. This would work for the example of a coin toss, but might not work for more complex real-life examples: representing many hypothesis about the war in Ukraine or about technological progress in their fullness would be too much for humans.<sup id="fnref:2"><a href="#fn:2" rel="footnote">2</a></sup></p>
<p><img src="https://i.imgur.com/vqc48uT.png" alt="" />
<strong>Original subjective Bayesianism</strong></p>
<p>So on the one hand, if our set of hypothesis is too narrow, we risk not incorporating a hypothesis that reflects the real world. But on the other hand, if we try to incorporate too many hypothesis, our mind explodes because it is too tiny. Whatever shall we do?</p>
<h2>Just-in-time Bayesianism by analogy to just-in-time compilation</h2>
<p><a href="https://en.wikipedia.org/wiki/Just-in-time_compilation">Just-in-time compilation</a> refers to a method of executing programs such that their instructions are translated to machine code not at the beginning, but rather as the program is executed.</p>
<p>By analogy, I define just-in-time Bayesianism as a variant of subjective Bayesian where inference is initially performed over a limited number of hypothesis, but if and when these hypothesis fail to be sufficiently predictive of the world, more are searched for and past Bayesian inference is recomputed.</p>
<p><img src="https://i.imgur.com/bptVgcS.png" alt="" />
<strong>Just-in-time Bayesianism</strong></p>
<p>I intuit that this method could be used to run a version of Solomonoff induction that converges to the correct hypothesis that describes a computable phenomenon in a finite (but still enormous) amount of time. More generally, I intuit that just-in-time Bayesianism will have some nice convergence guarantees.</p>
<h2>As this relates to the philosophy of science</h2>
<p>The <a href="https://en.wikipedia.org/wiki/Strong_programme">strong programme</a> in the sociology of science aims to explain science only with reference to the sociological conditionst that bring it about. There are also various accounts of science which aim to faithfully describe how science is actually practiced.</p>
<p>Well, I&rsquo;m more attracted to trying to explain the workings of science with reference to the ideal mechanism from which they fall short. And I think that just-In-Time Bayesianism parsimoniously explains some aspects with reference to:</p>
<ol>
<li>Bayesianism as the optimal/rational procedure for assigning degrees of belief to statements.</li>
<li>necessary patches which result from the lack of infinite computational power.</li>
</ol>
<p>As a result, just-in-time Bayesianism not only does well in the domains in which normal Bayesianism does well:
- It smoothly processes the distinction between background knowledge and new revelatory evidence
- It grasps that both confirmatory and falsificatory evidence are important&mdash;which inductionism/confirmationism and naïve forms of falsificationism both fail at
- It parsimoniously dissolves the problem of induction: one never reaches certainty, and instead accumulates Bayesian evidence.</p>
<p>But it is also able to shed some light in some phenomena where alternative theories of science have traditionally fared better:</p>
<ul>
<li>It interprets the difference between scientific revolutions (where the paradigm changes) and normal science (where the implications of the paradigm are fleshd out) as a result of finite computational power</li>
<li>It does a bit better at explaining the problem of priors, where the priors are just the hypothesis that humanity has had enough computing power to generate.</li>
</ul>
<p>Though it is still not perfect</p>
<ul>
<li>the &ldquo;problem of priors&rdquo; is still not really dissolved to a nice degree of satisfaction.</li>
<li>the step of acquiring more hypotheses is not really explained, and it is also a feature of other philosophies of science, so it&rsquo;s unclear that this is that much of a win for just-in-time Bayesianism.</li>
</ul>
<p>So anyways, in philosophy of science the main advantages that just-in-time Bayesianism has is being able to keep some of the more compelling features of Bayesianism, while at the same time also being able to explain some features that other philosophy of science theories have.</p>
<h2>As it relates to ignoring small probabilities</h2>
<p><a href="https://philpapers.org/archive/KOSTPO-18.pdf">Kosonen 2022</a> explores a setup in which an agent ignores small probabilities of vast value, in the context of trying to deal with the &ldquo;fanaticism&rdquo; of various ethical theories.</p>
<p>Here is my perspective on this dilemma:</p>
<ul>
<li>On the one hand, neglecting small probabilities has the benefit of making expected calculations computationally tractable: if we didn&rsquo;t ignore at least some probabilities, we would never finish these calculations.</li>
<li>But on the other hand, the various available methods for ignoring small probabilities are not robust. For example, they are not going to be robust to situations in which these probabilities shift (see p. 181, &ldquo;The Independence Money Pump&rdquo;, <a href="https://philpapers.org/archive/KOSTPO-18.pdf">Kosonen 2022</a>)
<ul>
<li>For example, one could have been very sure that the Sun orbits the Earth, which could have some theological and moral implications. In fact, one could be so sure that one could assign some very small&mdash;if not infinitesimal&mdash;probability to the Earth orbitting the sun instead. But if one ignores very small probabilities ex-ante, one might not able to update in the face of new evidence.</li>
</ul>
</li>
</ul>
<p>Just-in-time Bayesianism might solve this problem by indeed ignoring small probabilities at the beginning, but expanding the search for hypotheses if current hypotheses aren&rsquo;t very predictive of the world we observe.</p>
<h2>Some other related theories and alternatives.</h2>
<ul>
<li>Non-Bayesian epistemology: e.g., falsificationism, positivism, etc.</li>
<li><a href="https://www.alignmentforum.org/posts/Zi7nmuSmBFbQWgFBa/infra-bayesianism-unwrapped">Infra-Bayesianism</a>, a theory of Bayesianism which, amongst other things, is robust to adversaries filtering evidence</li>
<li><a href="https://intelligence.org/files/LogicalInduction.pdf">Logical induction</a>, which also seems uncomputable on account of considering all hypotheses, but which refines itself in finite time</li>
<li>Predictive processing, in which an agent changes the world so that it conforms to its internal model.</li>
<li>etc.</li>
</ul>
<h2>As this relates to the trapped problem of priors</h2>
<p>In <a href="https://astralcodexten.substack.com/p/trapped-priors-as-a-basic-problem">Trapped Priors As A Basic Problem Of Rationality</a>, Scott Alexander considers the case of a man who was previously unafraid of dogs, and then had a scary experience related to a dog&mdash;for our purposes imagine that they were bitten by a dog.</p>
<p>Just-in-time Bayesianism would explain this as follows.</p>
<ul>
<li>At the beginning, the man had just one hypothesis, which is &ldquo;dogs are fine&rdquo;</li>
<li>The man is bitten by a dog. Society claims that this was a freak accident, but this doesn&rsquo;t explain the man&rsquo;s experiences. So the man starts a search for new hypotheses</li>
<li>After the search, the new hypotheses and their probabilities might be something like:</li>
</ul>
<p>\[
\begin{cases}
\text{Dogs are fine, this was just a freak accident }\\
\text{Society is lying. Dogs are not fine, but rather they bite with a frequency of } \frac{2}{n+2}\text{, where n is the number of total encounters the man has had}
\end{cases}
\]</p>
<p>The second estimate is the estimate produced by <a href="https://en.wikipedia.org/wiki/Rule_of_succession">Laplace&rsquo;s law</a>&mdash;an instance of Bayesian reasoning given an ignorance prior&mdash;given one &ldquo;success&rdquo; (a dog biting a human) and \(n\) &ldquo;failures&rdquo; (a dog not biting a human).</p>
<p>Now, because the first hypothesis assigns very low probability to what the man has experienced, most of the probability goes to the second hypothesis.</p>
<p>But now, with more and more encounters, the probability assigned by the second hypothesis, will be as \(\frac{2}{n+2}\), where \(n\) is the number of times the man interacts with a dog. But this goes down very slowly:</p>
<p><img src="https://imgur.com/nIbnexh.png" alt="" /></p>
<p>In particular, you need to experience around as many interactions as you previously have without a dog for \(p(n) =\frac{2}{n+2}\) to halve. But note that this in expectation produces another dog bite! Hence the trapped priors.</p>
<h2>Conclusion</h2>
<p>In conclusion, I sketched a simple variation of subjective Bayesianism that is able to deal with limited computing power. I find that it sheds some clarity in various fields, and considered cases in the philosophy of science, discounting small probabilities in moral philosophy, and the applied rationality community.</p>
<div class="footnotes">
<hr/>
<ol>
<li id="fn:1">
I think that the model has more explanatory power when applied to groups of humans that can collectively<a href="#fnref:1" rev="footnote">&#8617;</a></li>
<li id="fn:2">
In the limit, we would arrive at Solomonoff induction, a model of perfect inductive inference that assigns a probability to all computable hypothesis. <a href="http://www.vetta.org/documents/legg-1996-solomonoff-induction.pdf">Here</a> is an explanation of Solomonoff induction<sup id="fnref:3"><a href="#fn:3" rel="footnote">3</a></sup>.<a href="#fnref:2" rev="footnote">&#8617;</a></li>
<li id="fn:3">
The author appears to be the <a href="https://en.wikipedia.org/wiki/Shane_Legg">cofounder of DeepMind</a>.<a href="#fnref:3" rev="footnote">&#8617;</a></li>
</ol>
</div>