<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:googleplay="http://www.google.com/schemas/play-podcasts/1.0"><channel><title><![CDATA[Normal Thermo Research]]></title><description><![CDATA[See https://blog.normalcomputing.ai/ for more.]]></description><link>https://normalcomputing.substack.com</link><image><url>https://substackcdn.com/image/fetch/$s_!1PqE!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1d4c8be1-d1fd-47c3-8889-dbf38c141394_400x400.jpeg</url><title>Normal Thermo Research</title><link>https://normalcomputing.substack.com</link></image><generator>Substack</generator><lastBuildDate>Thu, 11 Jun 2026 17:31:01 GMT</lastBuildDate><atom:link href="https://normalcomputing.substack.com/feed" rel="self" type="application/rss+xml"/><copyright><![CDATA[Normal Computing]]></copyright><language><![CDATA[en]]></language><webMaster><![CDATA[normalcomputing@substack.com]]></webMaster><itunes:owner><itunes:email><![CDATA[normalcomputing@substack.com]]></itunes:email><itunes:name><![CDATA[Normal Computing Research]]></itunes:name></itunes:owner><itunes:author><![CDATA[Normal Computing Research]]></itunes:author><googleplay:owner><![CDATA[normalcomputing@substack.com]]></googleplay:owner><googleplay:email><![CDATA[normalcomputing@substack.com]]></googleplay:email><googleplay:author><![CDATA[Normal Computing Research]]></googleplay:author><itunes:block><![CDATA[Yes]]></itunes:block><item><title><![CDATA[Exploring Thermodynamic AI]]></title><description><![CDATA[A Playground for interacting with thermodynamic computing, which may be a key component for scaling AI that can reason, and navigate uncertainties.]]></description><link>https://normalcomputing.substack.com/p/exploring-thermodynamic-ai</link><guid isPermaLink="false">https://normalcomputing.substack.com/p/exploring-thermodynamic-ai</guid><dc:creator><![CDATA[Normal Computing Research]]></dc:creator><pubDate>Tue, 22 Aug 2023 22:35:25 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!We_T!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe072f4db-b1b8-4a83-980d-4d4f32498f66_1530x1250.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h5>Authors:<br>Max Hunter Gordon, Adrian Tan, Maxwell Aifer, Kaelan Donatella, Denis Melanson, <br>Gavin Crooks, Patrick J. Coles</h5><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!We_T!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe072f4db-b1b8-4a83-980d-4d4f32498f66_1530x1250.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!We_T!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe072f4db-b1b8-4a83-980d-4d4f32498f66_1530x1250.png 424w, https://substackcdn.com/image/fetch/$s_!We_T!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe072f4db-b1b8-4a83-980d-4d4f32498f66_1530x1250.png 848w, https://substackcdn.com/image/fetch/$s_!We_T!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe072f4db-b1b8-4a83-980d-4d4f32498f66_1530x1250.png 1272w, https://substackcdn.com/image/fetch/$s_!We_T!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe072f4db-b1b8-4a83-980d-4d4f32498f66_1530x1250.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!We_T!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe072f4db-b1b8-4a83-980d-4d4f32498f66_1530x1250.png" width="374" height="305.6730769230769" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/e072f4db-b1b8-4a83-980d-4d4f32498f66_1530x1250.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1190,&quot;width&quot;:1456,&quot;resizeWidth&quot;:374,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!We_T!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe072f4db-b1b8-4a83-980d-4d4f32498f66_1530x1250.png 424w, https://substackcdn.com/image/fetch/$s_!We_T!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe072f4db-b1b8-4a83-980d-4d4f32498f66_1530x1250.png 848w, https://substackcdn.com/image/fetch/$s_!We_T!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe072f4db-b1b8-4a83-980d-4d4f32498f66_1530x1250.png 1272w, https://substackcdn.com/image/fetch/$s_!We_T!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe072f4db-b1b8-4a83-980d-4d4f32498f66_1530x1250.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><h2>A New Computing Paradigm</h2><p>The AI revolution has captured people&#8217;s imagination, but it also has brought to the forefront various issues with the current AI stack. <a href="https://arxiv.org/abs/2306.13063">Hallucinations and overconfidence</a> in large language models are very active fields of <a href="https://blog.normalcomputing.ai/posts/2023-07-27-regex-guided-generation/regex-guided-generation.html">research</a> and have highlighted the need for reliable, adaptive, and auditable AI. However, principled probabilistic reasoning - which is the basis for making AI reliable - <a href="https://arxiv.org/abs/2007.06823">is computationally expensive</a>. This emphasizes the need for probabilistic hardware accelerators.&nbsp;</p><p>Indeed, the need for novel computing hardware has been emphasized by Geoffrey Hinton, who noted the mismatch between modern <a href="https://arxiv.org/abs/2212.13345">AI algorithms and current digital hardware</a>. Hinton proposed a future where <a href="https://www.zdnet.com/article/we-will-see-a-completely-new-type-of-computer-says-ai-pioneer-geoff-hinton-mortal-computation/">hardware and software are inseparable</a>, and where the hardware is variable, stochastic, and &#8220;mortal&#8221;.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://normalcomputing.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Normal Thermo Research is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><p><a href="https://normalcomputing.substack.com/p/thermodynamic-ai-intelligence-from">Thermodynamic AI</a> represents a step towards this vision. It is a new computing architecture where the fundamental building blocks are inherently stochastic. An example of this is shown in the circuit diagram below, involving a resistor, capacitor, and voltage noise source, such that the voltage at point 1 evolves stochastically over time.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!Bij4!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F72811d32-d11e-43a8-83a7-ef5eb79faed2_1458x544.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!Bij4!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F72811d32-d11e-43a8-83a7-ef5eb79faed2_1458x544.png 424w, https://substackcdn.com/image/fetch/$s_!Bij4!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F72811d32-d11e-43a8-83a7-ef5eb79faed2_1458x544.png 848w, https://substackcdn.com/image/fetch/$s_!Bij4!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F72811d32-d11e-43a8-83a7-ef5eb79faed2_1458x544.png 1272w, https://substackcdn.com/image/fetch/$s_!Bij4!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F72811d32-d11e-43a8-83a7-ef5eb79faed2_1458x544.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!Bij4!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F72811d32-d11e-43a8-83a7-ef5eb79faed2_1458x544.png" width="1456" height="543" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/72811d32-d11e-43a8-83a7-ef5eb79faed2_1458x544.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:543,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:179151,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!Bij4!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F72811d32-d11e-43a8-83a7-ef5eb79faed2_1458x544.png 424w, https://substackcdn.com/image/fetch/$s_!Bij4!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F72811d32-d11e-43a8-83a7-ef5eb79faed2_1458x544.png 848w, https://substackcdn.com/image/fetch/$s_!Bij4!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F72811d32-d11e-43a8-83a7-ef5eb79faed2_1458x544.png 1272w, https://substackcdn.com/image/fetch/$s_!Bij4!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F72811d32-d11e-43a8-83a7-ef5eb79faed2_1458x544.png 1456w" sizes="100vw"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Our R&amp;D team at Normal Computing detailed this physics-based computing paradigm in February in this <a href="https://arxiv.org/abs/2302.06584">arxiv paper</a>, and we recently extended the application space of Thermodynamic Hardware to <a href="https://arxiv.org/abs/2308.05660">linear algebra primitives</a>. (See <a href="https://www.youtube.com/watch?v=dd1jURhLR8Y&amp;list=PLOFEBzvs-Vvr0uEoGFo08n4-WrM_8fft2&amp;index=3">this talk</a> for an overview.) Now, we are giving everyone the opportunity to explore these theoretical ideas in a live Playground.</p><h2>The Thermo Playground</h2><p>Here we present our &#8220;Thermo Playground&#8221;, which is the subject of this blog post. The goal of the <a href="https://app.normalcomputing.ai/composer">Thermo Playground</a> is to give the user a feel of what it would be like to interact with the first iteration of Thermodynamic computing hardware.&nbsp; Try out this playground, and enjoy!</p><p>We invite the reader to join us on a journey into the future of computing, where the hardware is inherently uncertain, probabilistic, and physics-based. The Thermo Playground gives a glimpse into this exciting future. It will give you a feel for the various hardware dials and free parameters in Thermodynamic AI Hardware, and hopefully it will also show you how to start thinking thermodynamically, with the end goal of writing software and algorithms for this hardware.</p><p><strong>In addition to illustrating the Thermo Playground, this blog post will highlight a key use-case of Thermodynamic Hardware, namely, for enabling large-scale methods for reliable AI.</strong></p><h2>Unlocking reliable AI</h2><p>Imagine receiving a medical diagnosis from an autonomous AI agent, as depicted below. Complex systems like the human body require nuanced and careful treatment, and AI overconfidence can be catastrophic in situations where human lives are at stake.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!FJ_I!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0202f3c9-7e14-4c42-ab47-10c9750c4619_1600x743.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!FJ_I!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0202f3c9-7e14-4c42-ab47-10c9750c4619_1600x743.png 424w, https://substackcdn.com/image/fetch/$s_!FJ_I!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0202f3c9-7e14-4c42-ab47-10c9750c4619_1600x743.png 848w, https://substackcdn.com/image/fetch/$s_!FJ_I!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0202f3c9-7e14-4c42-ab47-10c9750c4619_1600x743.png 1272w, https://substackcdn.com/image/fetch/$s_!FJ_I!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0202f3c9-7e14-4c42-ab47-10c9750c4619_1600x743.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!FJ_I!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0202f3c9-7e14-4c42-ab47-10c9750c4619_1600x743.png" width="1456" height="676" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/0202f3c9-7e14-4c42-ab47-10c9750c4619_1600x743.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:676,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!FJ_I!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0202f3c9-7e14-4c42-ab47-10c9750c4619_1600x743.png 424w, https://substackcdn.com/image/fetch/$s_!FJ_I!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0202f3c9-7e14-4c42-ab47-10c9750c4619_1600x743.png 848w, https://substackcdn.com/image/fetch/$s_!FJ_I!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0202f3c9-7e14-4c42-ab47-10c9750c4619_1600x743.png 1272w, https://substackcdn.com/image/fetch/$s_!FJ_I!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0202f3c9-7e14-4c42-ab47-10c9750c4619_1600x743.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>The path to reliable AI goes through principled probabilistic reasoning, often called Bayesian reasoning or uncertainty quantification. Uncertainty estimates can inform the AI agent when to defer to human expertise, e.g., in the case of medical diagnosis.</p><p>However, it comes at a price! Adding reliability to AI generally adds computational overhead associated with uncertainty estimation. Often this involves Monte-Carlo methods, which involve sampling from a high-dimensional probability distribution. The challenge of high-accuracy sampling has notoriously been highlighted for Bayesian neural networks, where researchers have essentially argued that high accuracy is both crucial for performance as well as <a href="https://proceedings.mlr.press/v139/izmailov21a.html">computationally intractable with current digital hardware</a>.</p><p><strong>Our vision for Thermodynamic AI hardware aims to solve this key problem, enabling fast sampling of complex, high-dimensional probability distributions, in order to unlock scalable, reliable AI.&nbsp;</strong></p><p>We envision that the introduction of this innovative hardware paradigm will facilitate the development of novel machine learning applications. Through a feedback codesign loop, the collaboration between hardware and software will lead to their synchronized evolution, ultimately giving rise to advanced algorithms that would have been infeasible to execute on alternative hardware platforms. This concerted effort will enable us to explore uncharted territories in the realm of machine learning and push the boundaries of what can be achieved in this field.</p><h2>The Stochastic Processing Unit (SPU)</h2><p>With this motivation in mind, let us shift our attention to viable approaches to Thermodynamic Hardware. Our initial perspective on Thermodynamic Hardware, which we call the Stochastic Processing Unit (SPU), can be viewed as an electrical version of a coupled oscillator system. (See figure below for a mechanical analog.)</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!MxtA!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F63d874ea-735d-4e0e-9f08-049dac4ec2f0_852x410.gif" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!MxtA!,w_424,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F63d874ea-735d-4e0e-9f08-049dac4ec2f0_852x410.gif 424w, https://substackcdn.com/image/fetch/$s_!MxtA!,w_848,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F63d874ea-735d-4e0e-9f08-049dac4ec2f0_852x410.gif 848w, https://substackcdn.com/image/fetch/$s_!MxtA!,w_1272,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F63d874ea-735d-4e0e-9f08-049dac4ec2f0_852x410.gif 1272w, https://substackcdn.com/image/fetch/$s_!MxtA!,w_1456,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F63d874ea-735d-4e0e-9f08-049dac4ec2f0_852x410.gif 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!MxtA!,w_1456,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F63d874ea-735d-4e0e-9f08-049dac4ec2f0_852x410.gif" width="852" height="410" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/63d874ea-735d-4e0e-9f08-049dac4ec2f0_852x410.gif&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:410,&quot;width&quot;:852,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!MxtA!,w_424,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F63d874ea-735d-4e0e-9f08-049dac4ec2f0_852x410.gif 424w, https://substackcdn.com/image/fetch/$s_!MxtA!,w_848,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F63d874ea-735d-4e0e-9f08-049dac4ec2f0_852x410.gif 848w, https://substackcdn.com/image/fetch/$s_!MxtA!,w_1272,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F63d874ea-735d-4e0e-9f08-049dac4ec2f0_852x410.gif 1272w, https://substackcdn.com/image/fetch/$s_!MxtA!,w_1456,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F63d874ea-735d-4e0e-9f08-049dac4ec2f0_852x410.gif 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Each unit cell (as shown at the beginning of this blog) is an electrical oscillator, and they can be coupled together <a href="https://arxiv.org/abs/2302.06584">through resistive or capacitive coupling</a>. The overall dynamics can be understood as a <a href="https://en.wikipedia.org/wiki/Langevin_equation">Langevin process</a> and can be modeled with coupled stochastic differential equations, with free parameters that correspond to the particulars of the underlying electrical components.&nbsp;</p><p>Digital discretizations of Langevin dynamics are commonly used in Markov Chain Monte Carlo (MCMC) <a href="https://dl.acm.org/doi/10.5555/3104482.3104568">sampling algorithms</a>. We are essentially removing the discretization and running the algorithm in continuous time on the SPU hardware. By allowing the SPU hardware&#8217;s parameters to be freely programmed, the user gets to choose the probability distribution that they wish to sample from.&nbsp;</p><p><strong>The key difference with digital hardware is that, within the SPU, the samples are generated through the natural dynamics of the system, meaning they potentially could be generated faster, cheaper, and more energy efficiently.</strong></p><p>With this in mind, let&#8217;s take a look at the playground!</p><h2>Sampling with the Thermo Playground</h2><p>Having introduced the SPU, let us now explore the results that it produces in the playground!&nbsp;</p><p>Suppose that you wish to sample from a Gaussian distribution, which is a crucial task for reliable AI (not to mention other fields like finance and forecasting). In the case of a 2D Gaussian, our playground allows you to choose the covariance matrix of the distribution, as well as the SPU hardware parameters like sampling time, temperature, resistance, and inductance.&nbsp;</p><p>The overall <a href="https://app.normalcomputing.ai/composer/playground">interface</a> looks like this:</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!0daV!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd85fa3a6-b7d4-4186-a79d-4625529cbca7_560x320.gif" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!0daV!,w_424,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd85fa3a6-b7d4-4186-a79d-4625529cbca7_560x320.gif 424w, https://substackcdn.com/image/fetch/$s_!0daV!,w_848,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd85fa3a6-b7d4-4186-a79d-4625529cbca7_560x320.gif 848w, https://substackcdn.com/image/fetch/$s_!0daV!,w_1272,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd85fa3a6-b7d4-4186-a79d-4625529cbca7_560x320.gif 1272w, https://substackcdn.com/image/fetch/$s_!0daV!,w_1456,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd85fa3a6-b7d4-4186-a79d-4625529cbca7_560x320.gif 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!0daV!,w_1456,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd85fa3a6-b7d4-4186-a79d-4625529cbca7_560x320.gif" width="646" height="369.14285714285717" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/d85fa3a6-b7d4-4186-a79d-4625529cbca7_560x320.gif&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:320,&quot;width&quot;:560,&quot;resizeWidth&quot;:646,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!0daV!,w_424,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd85fa3a6-b7d4-4186-a79d-4625529cbca7_560x320.gif 424w, https://substackcdn.com/image/fetch/$s_!0daV!,w_848,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd85fa3a6-b7d4-4186-a79d-4625529cbca7_560x320.gif 848w, https://substackcdn.com/image/fetch/$s_!0daV!,w_1272,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd85fa3a6-b7d4-4186-a79d-4625529cbca7_560x320.gif 1272w, https://substackcdn.com/image/fetch/$s_!0daV!,w_1456,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd85fa3a6-b7d4-4186-a79d-4625529cbca7_560x320.gif 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>This interface consists of three key pieces, which are broken down below: (1) the knobs, (2) the 2D sampling plot, and (3) the 1D time-series traces. Let&#8217;s first start with the knobs:&nbsp;</p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!Bkk1!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faee66074-28c6-46d5-9e2e-08b27bc5c1bf_553x34.gif" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!Bkk1!,w_424,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faee66074-28c6-46d5-9e2e-08b27bc5c1bf_553x34.gif 424w, https://substackcdn.com/image/fetch/$s_!Bkk1!,w_848,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faee66074-28c6-46d5-9e2e-08b27bc5c1bf_553x34.gif 848w, https://substackcdn.com/image/fetch/$s_!Bkk1!,w_1272,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faee66074-28c6-46d5-9e2e-08b27bc5c1bf_553x34.gif 1272w, https://substackcdn.com/image/fetch/$s_!Bkk1!,w_1456,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faee66074-28c6-46d5-9e2e-08b27bc5c1bf_553x34.gif 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!Bkk1!,w_1456,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faee66074-28c6-46d5-9e2e-08b27bc5c1bf_553x34.gif" width="553" height="34" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/aee66074-28c6-46d5-9e2e-08b27bc5c1bf_553x34.gif&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:34,&quot;width&quot;:553,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!Bkk1!,w_424,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faee66074-28c6-46d5-9e2e-08b27bc5c1bf_553x34.gif 424w, https://substackcdn.com/image/fetch/$s_!Bkk1!,w_848,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faee66074-28c6-46d5-9e2e-08b27bc5c1bf_553x34.gif 848w, https://substackcdn.com/image/fetch/$s_!Bkk1!,w_1272,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faee66074-28c6-46d5-9e2e-08b27bc5c1bf_553x34.gif 1272w, https://substackcdn.com/image/fetch/$s_!Bkk1!,w_1456,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faee66074-28c6-46d5-9e2e-08b27bc5c1bf_553x34.gif 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><p>The user can adjust the sampling time, which is the time the hardware waits between gathering a new sample. Choosing the sampling time to be too short can lead to correlated samples, which is generally undesirable, since the samples should ideally be independent. The user can also adjust the temperature, which is directly related to the amplitude of the stochastic noise. As one can see in the animation, higher temperature leads to more stochastic jumping, which often leads to better sampling since it tends to lead to samples which are less correlated. The resistance and inductance knobs allow the user to adjust the parameters of the SPU circuit. Resistance tends to damp out stochastic fluctuations, so increasing resistance can lead to more deterministic trajectories, and hence more correlated samples. Inductance is analogous to mass or inertia, and tends to slow down the overall dynamics.</p><p>The 2D sampling plot gives a visual representation of the target distribution (the solid red circle represents the covariance matrix) and the generated samples (shown as black dots). In addition, the projections of the 2D samples onto the 1D axes are shown as histograms on the top and side of the plot. For comparison, the marginals (i.e., the 1D distributions) associated with the target distribution are shown as solid curves, overlaid with the histograms.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!DLFG!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc6e559e0-ca86-4e89-b6aa-91047b97c558_282x253.gif" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!DLFG!,w_424,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc6e559e0-ca86-4e89-b6aa-91047b97c558_282x253.gif 424w, https://substackcdn.com/image/fetch/$s_!DLFG!,w_848,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc6e559e0-ca86-4e89-b6aa-91047b97c558_282x253.gif 848w, https://substackcdn.com/image/fetch/$s_!DLFG!,w_1272,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc6e559e0-ca86-4e89-b6aa-91047b97c558_282x253.gif 1272w, https://substackcdn.com/image/fetch/$s_!DLFG!,w_1456,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc6e559e0-ca86-4e89-b6aa-91047b97c558_282x253.gif 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!DLFG!,w_1456,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc6e559e0-ca86-4e89-b6aa-91047b97c558_282x253.gif" width="354" height="317.59574468085106" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/c6e559e0-ca86-4e89-b6aa-91047b97c558_282x253.gif&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:253,&quot;width&quot;:282,&quot;resizeWidth&quot;:354,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!DLFG!,w_424,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc6e559e0-ca86-4e89-b6aa-91047b97c558_282x253.gif 424w, https://substackcdn.com/image/fetch/$s_!DLFG!,w_848,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc6e559e0-ca86-4e89-b6aa-91047b97c558_282x253.gif 848w, https://substackcdn.com/image/fetch/$s_!DLFG!,w_1272,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc6e559e0-ca86-4e89-b6aa-91047b97c558_282x253.gif 1272w, https://substackcdn.com/image/fetch/$s_!DLFG!,w_1456,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc6e559e0-ca86-4e89-b6aa-91047b97c558_282x253.gif 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>The 1D time-series traces show the two components of the samples in real time. A maximum of 1000 samples are allowed in the time window. Hence once this threshold is reached, old samples are discarded as new ones come in. In addition, there is a shaded box overlaying with the time-series trace, which illustrates the theoretical correlation time, i.e., the time over which samples are correlated. For ideal behavior (independent samples), one would want this shaded box to be small.</p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!is1T!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F171c301b-50be-4821-b4c6-1f6efad313a4_249x198.gif" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!is1T!,w_424,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F171c301b-50be-4821-b4c6-1f6efad313a4_249x198.gif 424w, https://substackcdn.com/image/fetch/$s_!is1T!,w_848,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F171c301b-50be-4821-b4c6-1f6efad313a4_249x198.gif 848w, https://substackcdn.com/image/fetch/$s_!is1T!,w_1272,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F171c301b-50be-4821-b4c6-1f6efad313a4_249x198.gif 1272w, https://substackcdn.com/image/fetch/$s_!is1T!,w_1456,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F171c301b-50be-4821-b4c6-1f6efad313a4_249x198.gif 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!is1T!,w_1456,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F171c301b-50be-4821-b4c6-1f6efad313a4_249x198.gif" width="359" height="285.4698795180723" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/171c301b-50be-4821-b4c6-1f6efad313a4_249x198.gif&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:198,&quot;width&quot;:249,&quot;resizeWidth&quot;:359,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!is1T!,w_424,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F171c301b-50be-4821-b4c6-1f6efad313a4_249x198.gif 424w, https://substackcdn.com/image/fetch/$s_!is1T!,w_848,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F171c301b-50be-4821-b4c6-1f6efad313a4_249x198.gif 848w, https://substackcdn.com/image/fetch/$s_!is1T!,w_1272,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F171c301b-50be-4821-b4c6-1f6efad313a4_249x198.gif 1272w, https://substackcdn.com/image/fetch/$s_!is1T!,w_1456,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F171c301b-50be-4821-b4c6-1f6efad313a4_249x198.gif 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><p>So that is the heart of the Thermo Playground! Now let us put this in the broader context of reliable AI.</p><h2>Overconfidence of traditional AI approaches</h2><p>Employing Large Language Models (LLMs) to high-stakes use cases such as medical/legal advice or enterprise workflows has yet to be fully unlocked due to their overconfidence and lack of reliability.&nbsp;</p><p>To get some appreciation of what overconfidence looks like in AI, let us consider a simple toy example of classifying the well-known 'two moons' dataset, a dataset of two intertwined half-circular shapes, resembling two crescent moons. The task is to train a classifier to distinguish between the 'left moon' and the 'right moon.' In the figure below, these are represented as blue and orange dots.</p><p><a href="https://arxiv.org/abs/1512.03385">ResNet</a>, a popular convolutional neural network, can solve this task with high accuracy. When presented with in-distribution data points (those that lie on the crescents), it classifies them accurately, as seen in the figure below (left plot).&nbsp;</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!IZ0q!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F860ecf38-d837-4887-89a7-7aebd9e78785_1557x629.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!IZ0q!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F860ecf38-d837-4887-89a7-7aebd9e78785_1557x629.png 424w, https://substackcdn.com/image/fetch/$s_!IZ0q!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F860ecf38-d837-4887-89a7-7aebd9e78785_1557x629.png 848w, https://substackcdn.com/image/fetch/$s_!IZ0q!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F860ecf38-d837-4887-89a7-7aebd9e78785_1557x629.png 1272w, https://substackcdn.com/image/fetch/$s_!IZ0q!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F860ecf38-d837-4887-89a7-7aebd9e78785_1557x629.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!IZ0q!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F860ecf38-d837-4887-89a7-7aebd9e78785_1557x629.png" width="658" height="265.7307692307692" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/860ecf38-d837-4887-89a7-7aebd9e78785_1557x629.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:588,&quot;width&quot;:1456,&quot;resizeWidth&quot;:658,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!IZ0q!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F860ecf38-d837-4887-89a7-7aebd9e78785_1557x629.png 424w, https://substackcdn.com/image/fetch/$s_!IZ0q!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F860ecf38-d837-4887-89a7-7aebd9e78785_1557x629.png 848w, https://substackcdn.com/image/fetch/$s_!IZ0q!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F860ecf38-d837-4887-89a7-7aebd9e78785_1557x629.png 1272w, https://substackcdn.com/image/fetch/$s_!IZ0q!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F860ecf38-d837-4887-89a7-7aebd9e78785_1557x629.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>However, challenges arise when we consider out-of-distribution (OOD) data points, those that do not lie on either of the two moons but in the empty space around them. The ResNet model will still make a confident prediction on OOD data, attributing them to one of the two moons with high certainty. This is shown in the figure above, where the test points in red are predicted with zero uncertainty to belong to the same class as the orange moon.</p><p>Let us now see how to resolve this issue of overconfidence on OOD data.</p><h2>State-of-the-art Uncertainty Quantification</h2><p>For classification with neural networks, a promising solution for dealing with the overconfidence is Spectral Normalized Gaussian Processes (SNGPs), which provide distance awareness (i.e., awareness of how far data points are from one another). SNGPs are an innovation on traditional Gaussian Process (GP) models that bring the benefits of uncertainty estimation without a significant increase in computational complexity. GPs express uncertainty naturally - they do not just predict a single outcome but rather a distribution of potential outcomes. However, GPs can be computationally expensive, limiting their practical applications. For more details on SNGPs, check out <a href="https://www.tensorflow.org/tutorials/understanding/sngp">this tutorial</a>.</p><p>A key subroutine in SNGP is the evaluation of the softmax Gaussian posterior, using either the mean field approximation or Monte Carlo estimation. In many applications the mean-field approximation is utilized. In this tutorial however, we use Gaussian sampling and Monte Carlo to evaluate the posterior, as our hardware is naturally suited to this task.</p><p>Below, we see that in our 'two moons' classification task, using SNGPs lead to a different outcome. For in-distribution data, the model makes confident predictions; however, for OOD data, rather than making an overconfident and likely incorrect prediction as a ResNet model might, the SNGP outputs a high uncertainty, as we can see for the region with the red points.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!Bwhy!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2df85c8b-7d17-4a19-8cbd-61e06b4d6180_1600x571.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!Bwhy!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2df85c8b-7d17-4a19-8cbd-61e06b4d6180_1600x571.png 424w, https://substackcdn.com/image/fetch/$s_!Bwhy!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2df85c8b-7d17-4a19-8cbd-61e06b4d6180_1600x571.png 848w, https://substackcdn.com/image/fetch/$s_!Bwhy!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2df85c8b-7d17-4a19-8cbd-61e06b4d6180_1600x571.png 1272w, https://substackcdn.com/image/fetch/$s_!Bwhy!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2df85c8b-7d17-4a19-8cbd-61e06b4d6180_1600x571.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!Bwhy!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2df85c8b-7d17-4a19-8cbd-61e06b4d6180_1600x571.png" width="1456" height="520" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/2df85c8b-7d17-4a19-8cbd-61e06b4d6180_1600x571.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:520,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!Bwhy!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2df85c8b-7d17-4a19-8cbd-61e06b4d6180_1600x571.png 424w, https://substackcdn.com/image/fetch/$s_!Bwhy!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2df85c8b-7d17-4a19-8cbd-61e06b4d6180_1600x571.png 848w, https://substackcdn.com/image/fetch/$s_!Bwhy!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2df85c8b-7d17-4a19-8cbd-61e06b4d6180_1600x571.png 1272w, https://substackcdn.com/image/fetch/$s_!Bwhy!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2df85c8b-7d17-4a19-8cbd-61e06b4d6180_1600x571.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><h2>SNGPs in the Thermo Playground</h2><p>Now check this out: the SNGP example (discussed above) is integrated into the <a href="https://app.normalcomputing.ai/composer/applications">Thermo Playground</a>! This allows the user to play with the parameters of the SPU hardware and directly see the impact on the SNGP performance! The following animation shows how the user can play with the SNGP example inside of the Thermo Playground:</p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!j-RT!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F096d9968-3e8c-4249-9a7b-8b8575546e8d_1834x1110.gif" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!j-RT!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F096d9968-3e8c-4249-9a7b-8b8575546e8d_1834x1110.gif 424w, https://substackcdn.com/image/fetch/$s_!j-RT!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F096d9968-3e8c-4249-9a7b-8b8575546e8d_1834x1110.gif 848w, https://substackcdn.com/image/fetch/$s_!j-RT!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F096d9968-3e8c-4249-9a7b-8b8575546e8d_1834x1110.gif 1272w, https://substackcdn.com/image/fetch/$s_!j-RT!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F096d9968-3e8c-4249-9a7b-8b8575546e8d_1834x1110.gif 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!j-RT!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F096d9968-3e8c-4249-9a7b-8b8575546e8d_1834x1110.gif" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/096d9968-3e8c-4249-9a7b-8b8575546e8d_1834x1110.gif&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:null,&quot;width&quot;:null,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:2393365,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/gif&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!j-RT!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F096d9968-3e8c-4249-9a7b-8b8575546e8d_1834x1110.gif 424w, https://substackcdn.com/image/fetch/$s_!j-RT!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F096d9968-3e8c-4249-9a7b-8b8575546e8d_1834x1110.gif 848w, https://substackcdn.com/image/fetch/$s_!j-RT!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F096d9968-3e8c-4249-9a7b-8b8575546e8d_1834x1110.gif 1272w, https://substackcdn.com/image/fetch/$s_!j-RT!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F096d9968-3e8c-4249-9a7b-8b8575546e8d_1834x1110.gif 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><p>For example, the user can adjust the temperature of the stochastic noise. Increasing the temperature will reduce the correlations between samples and lead to a better overall performance of SNGP. Conversely one can see the performance starting to break down when lowering the temperature. We can also adjust the number of samples gathered, with more samples also leading to better SNGP performance.</p><p>Note that, here, we are using a simulator of the SPU to generate the samples required by the SNGP. Specifically, these are samples from a gaussian distribution whose covariance matrix is the output from the GP applied during SNGP. These samples are then used to estimate the uncertainty in predictions. So, we have shown how the SPU can be used in the context of machine learning to predict uncertainty in a simple classification task.</p><p><strong>Below, we will discuss the exciting possibility of speedup for this type of application.&nbsp;</strong></p><h2>Expected Performance Advantage with SPUs</h2><p>We now focus on the possible speedup one could expect from using Thermodynamic Hardware relative to state-of-the-art GPUs. Here we consider the ideal case of precise electrical components and assume the unit cells in the SPU are fully connected<strong>.</strong></p><p>To quantify the runtime and energy consumption of the Thermodynamic Hardware, we consider the effect of three key stages: <strong>digital compilation</strong>, <strong>loading/readout</strong> and the <strong>integration time</strong> of the physical dynamics needed to generate the samples. We assume the SPU is constructed from standard electrical components operating at room temperature. For this analysis, the user provides a precision matrix (the inverse of the covariance matrix), which is then compiled to the SPU in a digital pre-processing step, and then the dynamics of the SPU are run for the time needed to generate 10,000 samples.</p><p>To get a realistic picture of the potential advantage of the SPU it needs to be compared against some of the best available digital counterparts. Therefore, digital timing/energy results below were obtained using <a href="https://jax.readthedocs.io/en/latest/index.html">JAX</a> run on an A100 GPU.<br>Below we show how the time taken to produce samples from a multivariate Gaussian scales with dimension. One can see that the SPU performance is expected to outperform the GPU at all dimensions. This speedup becomes exciting for high dimensional problems where we see an order of magnitude improvement.</p><p>The right hand side shows the breakdown in timings for the model of Thermodynamic Hardware when generating 20,000 dimensional samples. Interestingly, we expect the dominant step to be digital compilation. Improvements in this step would further increase the expected speedup.</p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!y0u0!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6c18df23-67f1-42ab-865f-98c6e52f6882_749x224.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!y0u0!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6c18df23-67f1-42ab-865f-98c6e52f6882_749x224.png 424w, https://substackcdn.com/image/fetch/$s_!y0u0!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6c18df23-67f1-42ab-865f-98c6e52f6882_749x224.png 848w, https://substackcdn.com/image/fetch/$s_!y0u0!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6c18df23-67f1-42ab-865f-98c6e52f6882_749x224.png 1272w, https://substackcdn.com/image/fetch/$s_!y0u0!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6c18df23-67f1-42ab-865f-98c6e52f6882_749x224.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!y0u0!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6c18df23-67f1-42ab-865f-98c6e52f6882_749x224.png" width="749" height="224" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/6c18df23-67f1-42ab-865f-98c6e52f6882_749x224.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:224,&quot;width&quot;:749,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!y0u0!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6c18df23-67f1-42ab-865f-98c6e52f6882_749x224.png 424w, https://substackcdn.com/image/fetch/$s_!y0u0!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6c18df23-67f1-42ab-865f-98c6e52f6882_749x224.png 848w, https://substackcdn.com/image/fetch/$s_!y0u0!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6c18df23-67f1-42ab-865f-98c6e52f6882_749x224.png 1272w, https://substackcdn.com/image/fetch/$s_!y0u0!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6c18df23-67f1-42ab-865f-98c6e52f6882_749x224.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><p>Speedup is not the only thing to consider. Using the natural dynamics of a physical system massively reduces the expected energy requirements. Below we show how the energy of generating these samples is expected to scale with dimension relative to the JAX implementation.&nbsp;</p><p>Here we see that the performance of the SPU really begins to shine: several orders-of-magnitude in energy cost improvement are expected for high dimensional problems.</p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!qP07!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3443a790-cc7f-42bc-a050-00ded18ee527_729x224.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!qP07!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3443a790-cc7f-42bc-a050-00ded18ee527_729x224.png 424w, https://substackcdn.com/image/fetch/$s_!qP07!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3443a790-cc7f-42bc-a050-00ded18ee527_729x224.png 848w, https://substackcdn.com/image/fetch/$s_!qP07!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3443a790-cc7f-42bc-a050-00ded18ee527_729x224.png 1272w, https://substackcdn.com/image/fetch/$s_!qP07!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3443a790-cc7f-42bc-a050-00ded18ee527_729x224.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!qP07!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3443a790-cc7f-42bc-a050-00ded18ee527_729x224.png" width="729" height="224" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/3443a790-cc7f-42bc-a050-00ded18ee527_729x224.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:224,&quot;width&quot;:729,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!qP07!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3443a790-cc7f-42bc-a050-00ded18ee527_729x224.png 424w, https://substackcdn.com/image/fetch/$s_!qP07!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3443a790-cc7f-42bc-a050-00ded18ee527_729x224.png 848w, https://substackcdn.com/image/fetch/$s_!qP07!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3443a790-cc7f-42bc-a050-00ded18ee527_729x224.png 1272w, https://substackcdn.com/image/fetch/$s_!qP07!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3443a790-cc7f-42bc-a050-00ded18ee527_729x224.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><p>Overall, a simple model of the SPU, the timings involved in its end to end operation, and the energy cost during these processes lead to <strong>a potential speedup of an order of magnitude and energy savings of several orders of magnitude or more for this task.</strong></p><h2>Algorithmic Co-Design</h2><p>We emphasize that the SNGP approach and other uncertainty-quantification (UQ) approaches were developed and optimized for deployment on digital hardware, and it is not surprising that only modest speedups are expected for these digital algorithms. <strong>This suggests an exciting possibility of co-designing the AI algorithms together with the Thermodynamic Hardware.</strong> This co-design could unlock larger speedups and energy savings than those predicted for standard digital algorithms.</p><p>In what follows, we emphasize that looking beyond SNGP towards more complicated forms of uncertainty quantification, such as Bayesian neural networks, will likely unlock even larger speedups.</p><h2>The Non-Gaussian Frontier</h2><p>Moving beyond Gaussian sampling one can imagine using thermodynamic hardware to produce samples from more complicated distributions, such as the posteriors of <a href="https://arxiv.org/abs/2104.14421">Bayesian neural networks</a>.</p><p>In Bayesian deep learning, the model's weights follow intricate probability distributions that need constant updating during training. This process requires generating multiple samples, which makes training Bayesian neural networks computationally demanding. Considering large models with millions of parameters, sampling from such high-dimensional and complex probability distributions becomes an arduous task. In practice, <a href="https://arxiv.org/abs/2104.14421">hundreds of Tensor Processing Units (TPUs)</a> may be required for accurate sampling, e.g., with Hamiltonian Monte Carlo (HMC).</p><p>We can use similar timing models to those above to investigate when one would expect a &#8216;thermodynamic advantage&#8217; for this application. Using our timing model and a JAX implementation of HMC leads to the following expected speedup from an SPU tailored to beyond-Gaussian sampling.</p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!iOgQ!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feb04962e-54fc-49a9-b181-8b6e3383fe8e_317x224.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!iOgQ!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feb04962e-54fc-49a9-b181-8b6e3383fe8e_317x224.png 424w, https://substackcdn.com/image/fetch/$s_!iOgQ!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feb04962e-54fc-49a9-b181-8b6e3383fe8e_317x224.png 848w, https://substackcdn.com/image/fetch/$s_!iOgQ!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feb04962e-54fc-49a9-b181-8b6e3383fe8e_317x224.png 1272w, https://substackcdn.com/image/fetch/$s_!iOgQ!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feb04962e-54fc-49a9-b181-8b6e3383fe8e_317x224.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!iOgQ!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feb04962e-54fc-49a9-b181-8b6e3383fe8e_317x224.png" width="317" height="224" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/eb04962e-54fc-49a9-b181-8b6e3383fe8e_317x224.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:224,&quot;width&quot;:317,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!iOgQ!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feb04962e-54fc-49a9-b181-8b6e3383fe8e_317x224.png 424w, https://substackcdn.com/image/fetch/$s_!iOgQ!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feb04962e-54fc-49a9-b181-8b6e3383fe8e_317x224.png 848w, https://substackcdn.com/image/fetch/$s_!iOgQ!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feb04962e-54fc-49a9-b181-8b6e3383fe8e_317x224.png 1272w, https://substackcdn.com/image/fetch/$s_!iOgQ!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Feb04962e-54fc-49a9-b181-8b6e3383fe8e_317x224.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><p>Our model suggests that for this application, one could achieve a speedup of several orders of magnitude, with the speedup generally increasing with dimension. The potential implications would be unlocking large-scale approximation-free Bayesian deep learning. This would be a key step towards the <a href="https://www.youtube.com/watch?v=aPDOZfu_Fyk">vision of the automated statistician</a> and automated deep learning, transforming standard deep learning into a reliable, trustworthy application.</p><h2>Outlook for Thermodynamic Advantage</h2><p>Generative AI technologies like Large Language Models (LLMs) suffer from hallucinations and overconfidence. This prevents GenAI from being deployed in high-stakes use cases, such as enterprise workflows or applications where human lives are at stake, like medicine, transportation, or national security.&nbsp;</p><p>Principled probabilistic reasoning (Bayesian methods), as we&#8217;ve discussed above, can solve these issues for GenAI. Bayesian methods output a probability distribution instead of a specific answer. Using that distribution we can compute the uncertainty of a text, say, in the context of text generation.&nbsp; It turns out that high uncertainty implies a likely hallucination. This gives us a direct way to detect hallucinations for LLMs or other GenAI technologies.</p><p>In this blog, we have illustrated uncertainty quantification with simple methods on a toy dataset. But ultimately, a key technological breakthrough would be large-scale reliable AI, including reliable LLMs. Achieving this goal will ultimately involve increasing the complexity of uncertainty awareness, involving methods that go beyond mean-field approximations. This is where Thermodynamic Hardware is so crucial. Simplistic, approximate methods for uncertainty quantification can be employed on today&#8217;s digital computers. <strong>But complex, high-accuracy methods are prohibitively slow, and Thermodynamic Hardware could unlock these methods.</strong></p><p>In the figure below, we illustrate the idea of a hierarchy of uncertainty awareness. This hierarchy includes, in order of increasing complexity: mean-field variational inference (MFVI), SNGP, stochastic gradient Markov chain monte carlo (SGMCMC), and HMC. As we increase the complexity of uncertainty awareness, the potential performance gain (runtime speedup and energy savings) from Thermodynamic Hardware increases.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!NqjD!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F40210fca-6f7f-434d-9690-72ea263f4de4_819x363.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!NqjD!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F40210fca-6f7f-434d-9690-72ea263f4de4_819x363.png 424w, https://substackcdn.com/image/fetch/$s_!NqjD!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F40210fca-6f7f-434d-9690-72ea263f4de4_819x363.png 848w, https://substackcdn.com/image/fetch/$s_!NqjD!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F40210fca-6f7f-434d-9690-72ea263f4de4_819x363.png 1272w, https://substackcdn.com/image/fetch/$s_!NqjD!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F40210fca-6f7f-434d-9690-72ea263f4de4_819x363.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!NqjD!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F40210fca-6f7f-434d-9690-72ea263f4de4_819x363.png" width="819" height="363" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/40210fca-6f7f-434d-9690-72ea263f4de4_819x363.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:363,&quot;width&quot;:819,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!NqjD!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F40210fca-6f7f-434d-9690-72ea263f4de4_819x363.png 424w, https://substackcdn.com/image/fetch/$s_!NqjD!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F40210fca-6f7f-434d-9690-72ea263f4de4_819x363.png 848w, https://substackcdn.com/image/fetch/$s_!NqjD!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F40210fca-6f7f-434d-9690-72ea263f4de4_819x363.png 1272w, https://substackcdn.com/image/fetch/$s_!NqjD!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F40210fca-6f7f-434d-9690-72ea263f4de4_819x363.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>We emphasize that this is just a schematic plot, and there remain significant engineering challenges to be overcome to realize the large-scale hardware required for complex uncertainty awareness.&nbsp;</p><p>Nevertheless, the future is bright for Thermodynamic Hardware and reliable AI.</p><h2>Step into the Future with Normal Computing</h2><p>We invite you to try out the <a href="https://app.normalcomputing.ai/composer/playground">Thermo Playground</a>! We hope this gives you a feel for programming actual Thermodynamic Hardware. Finally, we hope that our vision of reliable AI resonates with you.&nbsp;&nbsp;</p><p>We thank you for taking the time to read this blog post! Be sure to sign up for updates at Normal Computing&#8217;s <a href="https://normalcomputing.ai/">website</a>.</p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!FIC-!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff5dffddc-e8ef-47cd-a381-e89e26853379_604x124.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!FIC-!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff5dffddc-e8ef-47cd-a381-e89e26853379_604x124.png 424w, https://substackcdn.com/image/fetch/$s_!FIC-!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff5dffddc-e8ef-47cd-a381-e89e26853379_604x124.png 848w, https://substackcdn.com/image/fetch/$s_!FIC-!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff5dffddc-e8ef-47cd-a381-e89e26853379_604x124.png 1272w, https://substackcdn.com/image/fetch/$s_!FIC-!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff5dffddc-e8ef-47cd-a381-e89e26853379_604x124.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!FIC-!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff5dffddc-e8ef-47cd-a381-e89e26853379_604x124.png" width="198" height="40.64900662251656" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/f5dffddc-e8ef-47cd-a381-e89e26853379_604x124.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:124,&quot;width&quot;:604,&quot;resizeWidth&quot;:198,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!FIC-!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff5dffddc-e8ef-47cd-a381-e89e26853379_604x124.png 424w, https://substackcdn.com/image/fetch/$s_!FIC-!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff5dffddc-e8ef-47cd-a381-e89e26853379_604x124.png 848w, https://substackcdn.com/image/fetch/$s_!FIC-!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff5dffddc-e8ef-47cd-a381-e89e26853379_604x124.png 1272w, https://substackcdn.com/image/fetch/$s_!FIC-!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff5dffddc-e8ef-47cd-a381-e89e26853379_604x124.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://normalcomputing.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Normal Thermo Research is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[Full Steam Ahead: Mortal Engines for Linear Algebra]]></title><description><![CDATA[Two fields, each with a rich history, collide to make Thermodynamic Linear Algebra, providing the first theoretical speedups for Thermodynamic Computing]]></description><link>https://normalcomputing.substack.com/p/full-steam-ahead-mortal-engines-for</link><guid isPermaLink="false">https://normalcomputing.substack.com/p/full-steam-ahead-mortal-engines-for</guid><dc:creator><![CDATA[Patrick J. Coles]]></dc:creator><pubDate>Wed, 16 Aug 2023 17:38:09 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!oq3K!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6982da57-5a48-42ef-8897-70645e60591b_512x315.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!oq3K!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6982da57-5a48-42ef-8897-70645e60591b_512x315.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!oq3K!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6982da57-5a48-42ef-8897-70645e60591b_512x315.png 424w, https://substackcdn.com/image/fetch/$s_!oq3K!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6982da57-5a48-42ef-8897-70645e60591b_512x315.png 848w, https://substackcdn.com/image/fetch/$s_!oq3K!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6982da57-5a48-42ef-8897-70645e60591b_512x315.png 1272w, https://substackcdn.com/image/fetch/$s_!oq3K!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6982da57-5a48-42ef-8897-70645e60591b_512x315.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!oq3K!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6982da57-5a48-42ef-8897-70645e60591b_512x315.png" width="582" height="358.06640625" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/6982da57-5a48-42ef-8897-70645e60591b_512x315.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:315,&quot;width&quot;:512,&quot;resizeWidth&quot;:582,&quot;bytes&quot;:296776,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!oq3K!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6982da57-5a48-42ef-8897-70645e60591b_512x315.png 424w, https://substackcdn.com/image/fetch/$s_!oq3K!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6982da57-5a48-42ef-8897-70645e60591b_512x315.png 848w, https://substackcdn.com/image/fetch/$s_!oq3K!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6982da57-5a48-42ef-8897-70645e60591b_512x315.png 1272w, https://substackcdn.com/image/fetch/$s_!oq3K!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6982da57-5a48-42ef-8897-70645e60591b_512x315.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Our preprint <a href="https://arxiv.org/abs/2308.05660">Thermodynamic Linear Algebra</a>, submitted on August 10th, drew a warm response from the broader tech community, stimulating <a href="https://news.ycombinator.com/item?id=37106789">thoughtful questions</a> on Hacker News. Yann LeCun also apparently <a href="https://twitter.com/ylecun/status/1691159764057694210">found it &#8220;Fun&#8221;</a>, and some people <a href="https://manifold.markets/Thomas42/will-we-see-a-practical-implementat?r=UXVhbnR1bU9ic2VydmVy">started betting</a> on a hardware implementation of our proposal.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!xyY2!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F510888ab-bd62-4cb3-83e6-b17c5a6f612e_1200x363.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!xyY2!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F510888ab-bd62-4cb3-83e6-b17c5a6f612e_1200x363.png 424w, https://substackcdn.com/image/fetch/$s_!xyY2!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F510888ab-bd62-4cb3-83e6-b17c5a6f612e_1200x363.png 848w, https://substackcdn.com/image/fetch/$s_!xyY2!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F510888ab-bd62-4cb3-83e6-b17c5a6f612e_1200x363.png 1272w, https://substackcdn.com/image/fetch/$s_!xyY2!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F510888ab-bd62-4cb3-83e6-b17c5a6f612e_1200x363.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!xyY2!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F510888ab-bd62-4cb3-83e6-b17c5a6f612e_1200x363.png" width="1200" height="363" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/510888ab-bd62-4cb3-83e6-b17c5a6f612e_1200x363.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:363,&quot;width&quot;:1200,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:305118,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!xyY2!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F510888ab-bd62-4cb3-83e6-b17c5a6f612e_1200x363.png 424w, https://substackcdn.com/image/fetch/$s_!xyY2!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F510888ab-bd62-4cb3-83e6-b17c5a6f612e_1200x363.png 848w, https://substackcdn.com/image/fetch/$s_!xyY2!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F510888ab-bd62-4cb3-83e6-b17c5a6f612e_1200x363.png 1272w, https://substackcdn.com/image/fetch/$s_!xyY2!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F510888ab-bd62-4cb3-83e6-b17c5a6f612e_1200x363.png 1456w" sizes="100vw"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://normalcomputing.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Normal Thermo Research is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><p>This blog post will cover several highlights from the paper, including:</p><ul><li><p>Novel thermodynamic algorithms for four different linear algebra primitives.</p></li><li><p>The first asymptotic scaling analysis for the thermodynamic computing paradigm, and the first theoretically predicted speedup for a thermodynamic algorithm.</p></li><li><p>The predicted speedups grow with the difficulty of the problem, i.e., with the matrix dimension and matrix condition number, and hence the speedups can be increased by considering more difficult problems.</p></li><li><p>Numerics with a detailed timing model for thermodynamic hardware, allowing comparison of predicted runtimes in practice, and indeed these numerics show that speedup is possible with realistic hardware in realistic situations.</p></li><li><p>A fundamental relation that captures the tradeoff between energy and time in algorithmic complexity of thermodynamic algorithms. This tradeoff may be relevant more broadly (e.g., for digital methods) and impacts the cost and sustainability of AI services.</p></li><li><p>The potential for using thermodynamics as a lens on computational complexity, which is a new perspective on the optimal performance of algorithms.</p></li></ul><p>In this blog post, we dive deep into these results, and provide context for their interpretation. This includes a historical context, since after all, thermodynamics and linear algebra are two iconic fields, each with their own complex histories. In what follows we first discuss this epic history.</p><h2><strong>Linear algebra, from application to hardware</strong></h2><h3><strong>Ancient History</strong></h3><p>The ancient text <em><a href="https://en.wikipedia.org/wiki/The_Nine_Chapters_on_the_Mathematical_Art">Jiushang Suanshu</a></em> (The Nine Chapters on the Mathematical Art) was compiled in the span of 800 years beginning in the 10th century BC, and contains the following problem (the details of which are non-essential, but we include for the interested reader):</p><blockquote><p>Suppose we have 3 bundles of high-quality cereals, 2 bundles of medium-quality cereals and one box of poor-quality cereals, amounting to 39 <em>dou</em> of grain; [suppose we also have] 2 bundles of high-quality cereals, 3 of medium-quality and one of poor quality, amounting to 34 <em>dou</em> of grain; one bundle of high-quality cereals, 2 of medium quality and 3 of poor-quality, amounting to 26 <em>dou</em> of grain. Question: how many <em>dou</em> of grain in 1 bundle of high-, medium- and poor-quality cereals, respectively?</p><p>Answer: 1 bundle of high-quality cereals: 9 <em>dou</em> 1/4; 1 bundle of medium-quality cereals: 4 <em>dou</em> 1/4; 1 bundle of poor-quality cereals: 2 <em>dou</em> 3/4.</p></blockquote><p>This problem is, in modern terminology, a linear system of three equations, which represent constraints on the amount of grain contained in a single package, for various grades of cereal. Its solution may be depicted as the intersection of three planes, as shown in the animation below.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!5n7D!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa587f370-e4e0-47c7-b96f-aa4570331b98_750x582.gif" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!5n7D!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa587f370-e4e0-47c7-b96f-aa4570331b98_750x582.gif 424w, https://substackcdn.com/image/fetch/$s_!5n7D!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa587f370-e4e0-47c7-b96f-aa4570331b98_750x582.gif 848w, https://substackcdn.com/image/fetch/$s_!5n7D!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa587f370-e4e0-47c7-b96f-aa4570331b98_750x582.gif 1272w, https://substackcdn.com/image/fetch/$s_!5n7D!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa587f370-e4e0-47c7-b96f-aa4570331b98_750x582.gif 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!5n7D!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa587f370-e4e0-47c7-b96f-aa4570331b98_750x582.gif" width="618" height="479.568" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/a587f370-e4e0-47c7-b96f-aa4570331b98_750x582.gif&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:582,&quot;width&quot;:750,&quot;resizeWidth&quot;:618,&quot;bytes&quot;:4405408,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/gif&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!5n7D!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa587f370-e4e0-47c7-b96f-aa4570331b98_750x582.gif 424w, https://substackcdn.com/image/fetch/$s_!5n7D!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa587f370-e4e0-47c7-b96f-aa4570331b98_750x582.gif 848w, https://substackcdn.com/image/fetch/$s_!5n7D!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa587f370-e4e0-47c7-b96f-aa4570331b98_750x582.gif 1272w, https://substackcdn.com/image/fetch/$s_!5n7D!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa587f370-e4e0-47c7-b96f-aa4570331b98_750x582.gif 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">A system of three linear equations (from <em>Jiushang Suanshu</em>), representing constraints on grain quantities, drawn as planes. The solution (blue dot) is the intersection of the three planes. The equations are written in the bottom left.</figcaption></figure></div><p>In <em>Jiushang</em>, methods involving a set of bamboo &#8220;counting rods&#8221; are presented, which were used to implement a set of algorithms that formed the <a href="https://en.wikipedia.org/wiki/Rod_calculus">rod calculus</a>. Using these methods, a clever farmer might ascertain the content of a box of grain without measuring, and maybe save time. The text therefore exemplifies some of the earliest applications, hardware, and algorithms for solving linear systems of equations.</p><h3><strong>From cubic to quadratic scaling</strong></h3><p>Nowadays agriculture is just one of many places where linear systems appear. The applications for linear algebra problems have multiplied over the years, and so have the means of solving them. <em>Homo Sapiens</em>, as a species, has a reputation for its innovative use of tools, and, in a way, the tools used in different times even define the eras of civilization. Bamboo rods worked well for linear systems with only a few unknown quantities, but quickly became impractical as the number of variables grew.</p><p>The standard method used to solve linear systems with counting rods seems to have been equivalent to <a href="https://en.wikipedia.org/wiki/Gaussian_elimination">Gaussian elimination</a>, meaning the number of steps in the calculation was proportional to the cube of the number of variables. Currently, the state-of-the-art tool is a digital computer with a Graphics Processing Unit (GPU), a chip which is specifically designed to quickly perform linear algebraic operations. Instead of using Gaussian elimination, other algorithms are available (such as <a href="https://en.wikipedia.org/wiki/Conjugate_gradient_method">conjugate gradients</a>) to be run on the GPUs which only require a number of steps proportional to the square of the number of variables, a great improvement over the ancient methods.</p><h3><strong>Linear algebra in machine learning</strong></h3><p>One area where GPUs have massively contributed to accelerating linear algebra primitives is machine learning. One of the many examples of solving a linear system of equations in machine learning is in <a href="https://en.wikipedia.org/wiki/Support_vector_machine">support vector machines</a>. There, one must find the hyperplane that best separates two classes of features. Below is a figure where the plane corresponding to the solution of the linear system is shown, that best separates blue and green sets of points which are often extracted features of a dataset.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!ZDwR!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5435b87e-fa95-4a95-b527-17b8429bdb54_1920x1866.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!ZDwR!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5435b87e-fa95-4a95-b527-17b8429bdb54_1920x1866.png 424w, https://substackcdn.com/image/fetch/$s_!ZDwR!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5435b87e-fa95-4a95-b527-17b8429bdb54_1920x1866.png 848w, https://substackcdn.com/image/fetch/$s_!ZDwR!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5435b87e-fa95-4a95-b527-17b8429bdb54_1920x1866.png 1272w, https://substackcdn.com/image/fetch/$s_!ZDwR!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5435b87e-fa95-4a95-b527-17b8429bdb54_1920x1866.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!ZDwR!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5435b87e-fa95-4a95-b527-17b8429bdb54_1920x1866.png" width="520" height="505.35714285714283" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/5435b87e-fa95-4a95-b527-17b8429bdb54_1920x1866.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1415,&quot;width&quot;:1456,&quot;resizeWidth&quot;:520,&quot;bytes&quot;:400150,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!ZDwR!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5435b87e-fa95-4a95-b527-17b8429bdb54_1920x1866.png 424w, https://substackcdn.com/image/fetch/$s_!ZDwR!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5435b87e-fa95-4a95-b527-17b8429bdb54_1920x1866.png 848w, https://substackcdn.com/image/fetch/$s_!ZDwR!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5435b87e-fa95-4a95-b527-17b8429bdb54_1920x1866.png 1272w, https://substackcdn.com/image/fetch/$s_!ZDwR!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5435b87e-fa95-4a95-b527-17b8429bdb54_1920x1866.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Another example is <a href="http://scikit-learn.org/stable/modules/gaussian_process.html">Gaussian process regression</a> (GPR), which is an important algorithm that includes uncertainty estimates. In GPR, one must invert the kernel matrix to obtain the mean and covariance of the posterior probability density function. There, matrix inversion is one of the more costly subroutines of the algorithms. A third linear algebra primitive we focus on in our paper is estimating the determinant, which is also an important subroutine in <a href="https://arxiv.org/abs/1711.03481">Bayesian learning</a>.</p><h3><strong>Evolution of hardware</strong></h3><p>What our paper is about is a new physics-based tool for solving linear-algebraic problems, along with new algorithms to use with it. This physics-based system can be viewed as a <a href="https://arxiv.org/abs/1911.01968">thermodynamic computer</a>.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!ir_P!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffd6f67a2-5cf9-41a5-9b8b-d50d71367248_1999x699.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!ir_P!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffd6f67a2-5cf9-41a5-9b8b-d50d71367248_1999x699.png 424w, https://substackcdn.com/image/fetch/$s_!ir_P!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffd6f67a2-5cf9-41a5-9b8b-d50d71367248_1999x699.png 848w, https://substackcdn.com/image/fetch/$s_!ir_P!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffd6f67a2-5cf9-41a5-9b8b-d50d71367248_1999x699.png 1272w, https://substackcdn.com/image/fetch/$s_!ir_P!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffd6f67a2-5cf9-41a5-9b8b-d50d71367248_1999x699.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!ir_P!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffd6f67a2-5cf9-41a5-9b8b-d50d71367248_1999x699.png" width="1456" height="509" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/fd6f67a2-5cf9-41a5-9b8b-d50d71367248_1999x699.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:509,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:267272,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!ir_P!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffd6f67a2-5cf9-41a5-9b8b-d50d71367248_1999x699.png 424w, https://substackcdn.com/image/fetch/$s_!ir_P!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffd6f67a2-5cf9-41a5-9b8b-d50d71367248_1999x699.png 848w, https://substackcdn.com/image/fetch/$s_!ir_P!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffd6f67a2-5cf9-41a5-9b8b-d50d71367248_1999x699.png 1272w, https://substackcdn.com/image/fetch/$s_!ir_P!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffd6f67a2-5cf9-41a5-9b8b-d50d71367248_1999x699.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><h2><strong>The thermodynamic computer</strong></h2><p>Thermodynamics is often called a theory of work and heat, which it is. But as conceived by its &#8220;father&#8221; Sadi Carnot, it was a theory about steam: in particular, of how to harness its power, to capture steam in a piston and use it to drive hulking locomotives across Europe. The subject does not find its origins in intellectual curiosity, and definitely not in a philosophical investigation of time&#8217;s arrow, but in the need to solve a practical problem. For this reason, thermodynamics has a different flavor than other physical theories, because it is more about how a system responds to a procedure conducted by an external operator, rather than the behavior of the system in isolation. As Herbert Callen writes in <em><a href="https://en.wikipedia.org/wiki/Thermodynamics_and_an_Introduction_to_Thermostatistics">Thermodynamics and an introduction to thermostatistics</a></em>:</p><blockquote><p>The single, all-encompassing problem of thermodynamics is the determination of the equilibrium state that eventually results after the removal of internal constraints in a closed, composite system.</p></blockquote><p>In fact, much of the theory can be interpreted as relating the inputs and outputs of a system undergoing an engine cycle, which is a sequence of operations that are performed on the system, one after another. Consider, though, that a sequence of operations performed on a device, resulting in a particular relation between its inputs and outputs, is nothing other than an algorithm. In other words, thermodynamics is the study of physically realized algorithms operating on macroscopic systems.</p><p>How, then, do we design a thermodynamic device to implement algorithms that are useful? One way is to use the minimum energy principle: that a system in thermal equilibrium with its surroundings is in a macroscopic state where the energy is minimized with respect to all external constraints on the system (including temperature). If the microscopic state of the device is described by a vector of coordinates x and the potential energy of the system is given by a function V(x), then at thermal equilibrium the coordinate vector x is a random variable, whose density function is the Boltzmann distribution</p><div class="latex-rendered" data-attrs="{&quot;persistentExpression&quot;:&quot;f(x) = \\frac{1}{Z}e^{-V(x)/k_BT}&quot;,&quot;id&quot;:&quot;LGDYHRKBRL&quot;}" data-component-name="LatexBlockToDOM"></div><p>where <em>Z</em> (the partition function) is a normalization factor. Then we need only engineer the potential energy <em>V</em>(<em>x</em>) such that this equilibrium distribution somehow contains the solution to the problem we would like to solve. Suppose that we take a potential energy function of the following form</p><div class="latex-rendered" data-attrs="{&quot;persistentExpression&quot;:&quot;V(x) = \\frac{1}{2}x^\\intercal Ax - b^\\intercal x&quot;,&quot;id&quot;:&quot;CTIAYZBSCV&quot;}" data-component-name="LatexBlockToDOM"></div><p>where the (positive definite) matrix <em>A</em> and vector <em>b</em> are chosen by the user. In this case, the Boltzmann distribution is a normal distribution, or Gaussian</p><div class="latex-rendered" data-attrs="{&quot;persistentExpression&quot;:&quot;x \\sim \\mathcal{N}[A^{-1}b, k_BTA^{-1}]&quot;,&quot;id&quot;:&quot;JIWDTMFWRD&quot;}" data-component-name="LatexBlockToDOM"></div><p>The mean of this distribution is the solution to the linear system <em>Ax</em> = <em>b</em>. We also see that the covariance matrix is proportional to the inverse of the matrix <em>A</em>. Using these two facts, we can devise a protocol for solving linear systems and inverting matrices based on the thermodynamics of this system, which physically corresponds to a set of harmonic oscillators that are coupled to each other.</p><p>The method is illustrated in the figure below. One simply sets the matrix <em>A</em> and vector <em>b</em> to those appearing in the equation <em>Ax</em> = <em>b</em>, then, after waiting for equilibration, one can average the value of the vector x over time using, for example using an electrical circuit, where the components of x might be the voltages at different points in a circuit. This average will be the solution of a linear system, and similarly the covariance matrix of <em>x</em> can be estimated by an analog device.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!VHXG!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbccd0875-35ab-43d3-ae9d-8416172ee7f3_1348x398.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!VHXG!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbccd0875-35ab-43d3-ae9d-8416172ee7f3_1348x398.png 424w, https://substackcdn.com/image/fetch/$s_!VHXG!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbccd0875-35ab-43d3-ae9d-8416172ee7f3_1348x398.png 848w, https://substackcdn.com/image/fetch/$s_!VHXG!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbccd0875-35ab-43d3-ae9d-8416172ee7f3_1348x398.png 1272w, https://substackcdn.com/image/fetch/$s_!VHXG!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbccd0875-35ab-43d3-ae9d-8416172ee7f3_1348x398.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!VHXG!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbccd0875-35ab-43d3-ae9d-8416172ee7f3_1348x398.png" width="1348" height="398" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/bccd0875-35ab-43d3-ae9d-8416172ee7f3_1348x398.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:398,&quot;width&quot;:1348,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:84415,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!VHXG!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbccd0875-35ab-43d3-ae9d-8416172ee7f3_1348x398.png 424w, https://substackcdn.com/image/fetch/$s_!VHXG!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbccd0875-35ab-43d3-ae9d-8416172ee7f3_1348x398.png 848w, https://substackcdn.com/image/fetch/$s_!VHXG!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbccd0875-35ab-43d3-ae9d-8416172ee7f3_1348x398.png 1272w, https://substackcdn.com/image/fetch/$s_!VHXG!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbccd0875-35ab-43d3-ae9d-8416172ee7f3_1348x398.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>While it may be interesting in an academic way that this is possible, it is not immediately clear that there is any reason to attempt to solve these problems using networks of coupled oscillators, especially given that the SOTA GPUs are so effective. Remarkably, the simple method described above can be theoretically shown to be more efficient than existing digital methods in the limit of a large number of variables.</p><h2><strong>Achieving thermodynamic advantage</strong></h2><h3><strong>Thermodynamic speedups</strong></h3><p>Efficient ways to solve linear algebra problems were largely discovered in the 20th century, motivated by the need to solve larger problems with the limited hardware available at the time. These include, for example, the <a href="https://en.wikipedia.org/wiki/Conjugate_gradient_method">conjugate gradient</a> method for solving linear systems and the <a href="https://en.wikipedia.org/wiki/Cholesky_decomposition">Cholesky decomposition</a>, which can be applied to linear systems, matrix inversion, and other problems. Even with these methods, the demand grew for faster and faster calculations; the live rendering of the three-dimensional environments needed for modern video games was especially taxing, spurring the invention of the GPU. Modern GPUs accelerate the evaluation of linear functions significantly, but the number of algorithmic steps needed to solve a linear system of equations has remained asymptotically proportional to the square of the number of variables, while inverting a matrix has required a cubically-growing number of steps.</p><p>This is often expressed using big <em>O</em> notation. When we write that a runtime is in <em>O</em>(<em>d</em>), it means that the runtime scales linearly with dimensionality, omitting any prefactors in what the actual runtime is, that can depend on other factors such as parallelization.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!WuDR!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F40348ba1-50a8-488f-bb60-112fd6fea2b8_1999x537.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!WuDR!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F40348ba1-50a8-488f-bb60-112fd6fea2b8_1999x537.png 424w, https://substackcdn.com/image/fetch/$s_!WuDR!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F40348ba1-50a8-488f-bb60-112fd6fea2b8_1999x537.png 848w, https://substackcdn.com/image/fetch/$s_!WuDR!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F40348ba1-50a8-488f-bb60-112fd6fea2b8_1999x537.png 1272w, https://substackcdn.com/image/fetch/$s_!WuDR!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F40348ba1-50a8-488f-bb60-112fd6fea2b8_1999x537.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!WuDR!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F40348ba1-50a8-488f-bb60-112fd6fea2b8_1999x537.png" width="1456" height="391" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/40348ba1-50a8-488f-bb60-112fd6fea2b8_1999x537.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:391,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:172794,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!WuDR!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F40348ba1-50a8-488f-bb60-112fd6fea2b8_1999x537.png 424w, https://substackcdn.com/image/fetch/$s_!WuDR!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F40348ba1-50a8-488f-bb60-112fd6fea2b8_1999x537.png 848w, https://substackcdn.com/image/fetch/$s_!WuDR!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F40348ba1-50a8-488f-bb60-112fd6fea2b8_1999x537.png 1272w, https://substackcdn.com/image/fetch/$s_!WuDR!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F40348ba1-50a8-488f-bb60-112fd6fea2b8_1999x537.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">In this table, the digital state-of-the-art (SOTA) runtime of the four different linear algebra primitives we consider is compared to our algorithms for the overdamped and underdamped cases. Here overdamped and underdamped refer to different regimes of the thermodynamic hardware. <em>d</em> is the dimension, &#954; is the condition number, and &#949; is the error.</figcaption></figure></div><p>The thermodynamic algorithm for solving linear systems outlined previously takes advantage of the physical equilibration process in the hardware, which can be thought of as performing matrix-vector multiplications in constant time. This enables us to prove that a linear system of equations can be solved in an amount of time proportional to the number of variables using a thermodynamic computer. We derived similar algorithms for solving other common problems in linear algebra: inverting a matrix, solving the Lyapunov equation, and evaluating the determinant of the matrix. In each case, the asymptotic time-complexity of the thermodynamic algorithm is better than the best known digital algorithm by a factor on the order of the number of variables, which can probably be explained as stemming from a constant-time matrix-vector multiplication achieved by the hardware.</p><h3><strong>Time and energy</strong></h3><p>It could be argued that the number of steps taken by a digital algorithm is not the right metric, given that these algorithms may be parallelized sometimes, so the physical time necessary is not limited by the number of elementary operations. Another cost of computation is the necessary energy expenditure though, which should also be taken into account. If parallelizing an algorithm across two processors decreases the time, it may also increase the energy, so the product of energy and time is of special importance. The thermodynamic algorithm for solving a linear system has energy-time product scaling with the number of variables, whereas all existing digital algorithms we are aware of have energy-time product scaling with at least the square of the number of variables. Our paper gives the energy-time complexity for solving linear systems is as</p><div class="latex-rendered" data-attrs="{&quot;persistentExpression&quot;:&quot;\\mathcal{E} \\tau \\geq \\frac{2\\kappa ^2 d}{\\varepsilon_x^2(1-P_\\varepsilon)}\\beta^{-1}\\tau_r&quot;,&quot;id&quot;:&quot;EPESJZOXJW&quot;}" data-component-name="LatexBlockToDOM"></div><p>where <em>d</em> is the number of variables, &#954; is the condition number of <em>A</em> (its largest eigenvalue divided by its smallest eigenvalue), and the other quantities are physical constants and tolerance parameters specifying the degree of accuracy of the solution.</p><h3><strong>Harder, better, faster, stronger</strong></h3><p>We&#8217;ve reached a milestone in this story&#8211;the thermodynamic computer is a new piece of hardware that can solve linear algebra problems faster than conventional digital computers, under mild assumptions. Will there be further progress, or is this paradigm the optimal model of linear algebraic computation? It is easy to imagine a future in which incremental improvements in efficiency continue, relegating the thermodynamic computer to the hardware graveyard alongside bamboo counting rods. But underlying this question is a deeper one about the fundamental hardness, or complexity, of solving the problem at hand. It is relatively straightforward to prove that a particular problem can be solved with an amount of resources limited by some upper bound; one must simply provide the algorithm. But lower bounds on computational hardness are far more elusive, and finding such bounds remains a sticking point of computational complexity theory.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!N9qs!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faa333817-3ea8-490c-abd3-c20033205a5e_756x894.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!N9qs!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faa333817-3ea8-490c-abd3-c20033205a5e_756x894.png 424w, https://substackcdn.com/image/fetch/$s_!N9qs!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faa333817-3ea8-490c-abd3-c20033205a5e_756x894.png 848w, https://substackcdn.com/image/fetch/$s_!N9qs!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faa333817-3ea8-490c-abd3-c20033205a5e_756x894.png 1272w, https://substackcdn.com/image/fetch/$s_!N9qs!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faa333817-3ea8-490c-abd3-c20033205a5e_756x894.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!N9qs!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faa333817-3ea8-490c-abd3-c20033205a5e_756x894.png" width="444" height="525.047619047619" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/aa333817-3ea8-490c-abd3-c20033205a5e_756x894.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:894,&quot;width&quot;:756,&quot;resizeWidth&quot;:444,&quot;bytes&quot;:130850,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!N9qs!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faa333817-3ea8-490c-abd3-c20033205a5e_756x894.png 424w, https://substackcdn.com/image/fetch/$s_!N9qs!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faa333817-3ea8-490c-abd3-c20033205a5e_756x894.png 848w, https://substackcdn.com/image/fetch/$s_!N9qs!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faa333817-3ea8-490c-abd3-c20033205a5e_756x894.png 1272w, https://substackcdn.com/image/fetch/$s_!N9qs!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faa333817-3ea8-490c-abd3-c20033205a5e_756x894.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">The Carnot engine produces work by exchanging heat with two reservoirs, and attains optimal efficiency.</figcaption></figure></div><p>In thermodynamics, proven lower bounds on the resources necessary to accomplish some task are commonplace, for example the minimum energy which must be dissipated in order to produce a certain amount of work from two heat reservoirs is the seminal result of Carnot&#8217;s study of engine efficiency. In fact, thermodynamics is the only branch of physics where we have a definite notion of irrecoverable cost, and the general format of these results is that to do a given thing in a shorter period of time, one has to spend more energy. So, perhaps, the thermodynamic computing paradigm can shed light on the complexity of computations. This idea goes hand in hand with the study of optimality for thermodynamic algorithms. In calculating the efficiency of his engine cycle, Carnot found that this result was not just relevant to steam engines, but in fact was a general limit on the efficiency of any device which produces work from heat. Similarly, we conjecture that the limit we have found on energy and time costs may be generalizable to other models of computation. Because our results can be stated in terms of the energy-time product necessary for a computation, it is natural to investigate whether thermodynamic algorithms exist that achieve a lower energy-time product (in which case our algorithms would not be optimal), or otherwise to prove that none exist.</p><p>This line of thinking connects to the &#8220;<a href="https://www.youtube.com/watch?v=sghvwkXV3VU">mortal computation</a>&#8221; advocated by Geoff Hinton (which inspired the title of this post). While cutting-edge artificial intelligence algorithms consume great quantities of energy, it is not known whether they may be carried out at reduced cost, and to what extent, by analog hardware that offloads some or all of the algorithm to naturally-occurring physical processes. It seems important, then, to ask whether thermodynamic formulations can identify the optimal efficiencies of AI algorithms, and ultimately provide protocols for achieving optimal performance.</p><h3><strong>Speedups: in practice</strong></h3><p>You may also be curious of what speedups we can actually get in practice, other than bounds, that may not be tight and which put aside prefactors. To investigate this, we compared our method&#8217;s performance by measuring the error obtained by running it on ideal hardware (with no imperfections, that we leave for future work) to the performance obtained for other digital methods. To solve linear systems, the conjugate gradient method and the Cholesky decomposition are used. We also estimated the runtime of the thermodynamic hardware by constructing a timing model that takes into account all the operations involved to obtain a solution, such as digital-to-analog and analog-to-digital conversions, and other digital overhead. This model is based on an RC circuit implementation that only involves passive electrical components, and is discussed in the next section. The results are that even for modest dimensions (around 1000) and condition numbers, we obtain solutions competitive to conjugate gradients. We see that this advantage grows with dimension, as expected from the analytic bounds we obtain. We also see that by lowering the temperature, even better results can be obtained, hence showing the thermodynamic nature of the device.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!9je8!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F30c8df03-9b0f-48e1-a151-350842e03c65_1999x841.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!9je8!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F30c8df03-9b0f-48e1-a151-350842e03c65_1999x841.png 424w, https://substackcdn.com/image/fetch/$s_!9je8!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F30c8df03-9b0f-48e1-a151-350842e03c65_1999x841.png 848w, https://substackcdn.com/image/fetch/$s_!9je8!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F30c8df03-9b0f-48e1-a151-350842e03c65_1999x841.png 1272w, https://substackcdn.com/image/fetch/$s_!9je8!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F30c8df03-9b0f-48e1-a151-350842e03c65_1999x841.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!9je8!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F30c8df03-9b0f-48e1-a151-350842e03c65_1999x841.png" width="1456" height="613" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/30c8df03-9b0f-48e1-a151-350842e03c65_1999x841.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:613,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:176019,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!9je8!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F30c8df03-9b0f-48e1-a151-350842e03c65_1999x841.png 424w, https://substackcdn.com/image/fetch/$s_!9je8!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F30c8df03-9b0f-48e1-a151-350842e03c65_1999x841.png 848w, https://substackcdn.com/image/fetch/$s_!9je8!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F30c8df03-9b0f-48e1-a151-350842e03c65_1999x841.png 1272w, https://substackcdn.com/image/fetch/$s_!9je8!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F30c8df03-9b0f-48e1-a151-350842e03c65_1999x841.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>This is even more exciting, as it shows that a simple thermodynamic hardware proposal can yield speedup advantages for simple problems for which GPUs were optimized for. Hence we expect this to be optimized a lot in the future.</p><h2><strong>A potential hardware realization</strong></h2><p>The discussion up to this point may seem very abstract&#8211;what does a thermodynamic computer actually look like &#8220;in the flesh&#8221;? Below is a circuit diagram of one possible implementation of a single component (or cell) of the thermodynamic computer, taken from our <a href="https://arxiv.org/abs/2302.06584">previous work</a> (see also <a href="https://www.youtube.com/watch?v=dd1jURhLR8Y">this talk</a>). </p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!wcv5!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9294f4d6-8b9b-4e91-be03-e7d11871c722_640x602.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!wcv5!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9294f4d6-8b9b-4e91-be03-e7d11871c722_640x602.png 424w, https://substackcdn.com/image/fetch/$s_!wcv5!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9294f4d6-8b9b-4e91-be03-e7d11871c722_640x602.png 848w, https://substackcdn.com/image/fetch/$s_!wcv5!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9294f4d6-8b9b-4e91-be03-e7d11871c722_640x602.png 1272w, https://substackcdn.com/image/fetch/$s_!wcv5!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9294f4d6-8b9b-4e91-be03-e7d11871c722_640x602.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!wcv5!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9294f4d6-8b9b-4e91-be03-e7d11871c722_640x602.png" width="388" height="364.9625" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/9294f4d6-8b9b-4e91-be03-e7d11871c722_640x602.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:602,&quot;width&quot;:640,&quot;resizeWidth&quot;:388,&quot;bytes&quot;:45172,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!wcv5!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9294f4d6-8b9b-4e91-be03-e7d11871c722_640x602.png 424w, https://substackcdn.com/image/fetch/$s_!wcv5!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9294f4d6-8b9b-4e91-be03-e7d11871c722_640x602.png 848w, https://substackcdn.com/image/fetch/$s_!wcv5!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9294f4d6-8b9b-4e91-be03-e7d11871c722_640x602.png 1272w, https://substackcdn.com/image/fetch/$s_!wcv5!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9294f4d6-8b9b-4e91-be03-e7d11871c722_640x602.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>To solve a linear system that has <em>d</em> variables, <em>d</em> of these cells would be needed, with each cell coupled to all the others (for <em>d</em>&#178; total connections). A single cell contains a resistor and a capacitor, and a noise source in series (the resistor also produces voltage fluctuations due to <a href="https://en.wikipedia.org/wiki/Johnson%E2%80%93Nyquist_noise">Johnson-Nyquist noise</a> at finite temperature, which may be effectively included in the noise source). There is also a constant DC bias applied to each cell, which encodes the components of the vector <em>b</em>. The entries of the matrix <em>A</em> are encoded in the couplings between cells, which may be either resistive or capacitive. Of course this is just one possible version of the thermodynamic computer; recall that the definition of the device is at the level of the potential energy function <em>V</em>(<em>x</em>), and the vector <em>x</em> may represent essentially any measurable physical degree of freedom. As all physical systems have energy functions (Hamiltonians), this is a very general level of description, which could be applied, for example, to engineering similar models with <a href="https://arxiv.org/abs/2308.00088">optical hardware</a>.</p><p>We thank you for taking the time to read this blog! </p><h2><strong>A bright future</strong></h2><p>At the core of Normal Computing&#8217;s mission is bridging artificial intelligence, particularly generative AI, to high stakes enterprise decision-making applications. We are approaching these problems with a mix of interdisciplinary approaches across the full stack, from hardware and physics to software infrastructure and algorithms. Future physics-based hardware may allow for a step change in AI reliability and scale, in part by admitting new co-developed algorithms. If you are interested in pushing the boundaries of reliability in AI with us, get in touch at <a href="mailto:info@normalcomputing.ai">info@normalcomputing.ai</a>!<br></p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://normalcomputing.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Normal Thermo Research is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[The Unreasonable Effectiveness of Physics in AI]]></title><description><![CDATA[Physics keeps popping up in AI algorithms, and it&#8217;s not a coincidence.]]></description><link>https://normalcomputing.substack.com/p/the-unreasonable-effectiveness-of</link><guid isPermaLink="false">https://normalcomputing.substack.com/p/the-unreasonable-effectiveness-of</guid><dc:creator><![CDATA[Patrick J. Coles]]></dc:creator><pubDate>Tue, 08 Aug 2023 19:22:30 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!GiJa!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F84ed6225-6ceb-4388-a331-afc8203ec616_1600x600.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!GiJa!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F84ed6225-6ceb-4388-a331-afc8203ec616_1600x600.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!GiJa!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F84ed6225-6ceb-4388-a331-afc8203ec616_1600x600.png 424w, https://substackcdn.com/image/fetch/$s_!GiJa!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F84ed6225-6ceb-4388-a331-afc8203ec616_1600x600.png 848w, https://substackcdn.com/image/fetch/$s_!GiJa!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F84ed6225-6ceb-4388-a331-afc8203ec616_1600x600.png 1272w, https://substackcdn.com/image/fetch/$s_!GiJa!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F84ed6225-6ceb-4388-a331-afc8203ec616_1600x600.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!GiJa!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F84ed6225-6ceb-4388-a331-afc8203ec616_1600x600.png" width="1456" height="546" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/84ed6225-6ceb-4388-a331-afc8203ec616_1600x600.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:546,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!GiJa!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F84ed6225-6ceb-4388-a331-afc8203ec616_1600x600.png 424w, https://substackcdn.com/image/fetch/$s_!GiJa!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F84ed6225-6ceb-4388-a331-afc8203ec616_1600x600.png 848w, https://substackcdn.com/image/fetch/$s_!GiJa!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F84ed6225-6ceb-4388-a331-afc8203ec616_1600x600.png 1272w, https://substackcdn.com/image/fetch/$s_!GiJa!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F84ed6225-6ceb-4388-a331-afc8203ec616_1600x600.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><h2>Unreasonably effective?</h2><p>Eugene Wigner famously stated that mathematics is unreasonably effective in the natural sciences. He noted that, <em>&#8220;the enormous usefulness of mathematics in the natural sciences is something bordering on the mysterious and that there is no rational explanation for it&#8221;.</em></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!XUTR!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc797b680-ad8f-4cd0-bd82-65cbdeac28c1_602x536.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!XUTR!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc797b680-ad8f-4cd0-bd82-65cbdeac28c1_602x536.png 424w, https://substackcdn.com/image/fetch/$s_!XUTR!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc797b680-ad8f-4cd0-bd82-65cbdeac28c1_602x536.png 848w, https://substackcdn.com/image/fetch/$s_!XUTR!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc797b680-ad8f-4cd0-bd82-65cbdeac28c1_602x536.png 1272w, https://substackcdn.com/image/fetch/$s_!XUTR!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc797b680-ad8f-4cd0-bd82-65cbdeac28c1_602x536.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!XUTR!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc797b680-ad8f-4cd0-bd82-65cbdeac28c1_602x536.png" width="602" height="536" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/c797b680-ad8f-4cd0-bd82-65cbdeac28c1_602x536.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:536,&quot;width&quot;:602,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!XUTR!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc797b680-ad8f-4cd0-bd82-65cbdeac28c1_602x536.png 424w, https://substackcdn.com/image/fetch/$s_!XUTR!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc797b680-ad8f-4cd0-bd82-65cbdeac28c1_602x536.png 848w, https://substackcdn.com/image/fetch/$s_!XUTR!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc797b680-ad8f-4cd0-bd82-65cbdeac28c1_602x536.png 1272w, https://substackcdn.com/image/fetch/$s_!XUTR!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc797b680-ad8f-4cd0-bd82-65cbdeac28c1_602x536.png 1456w" sizes="100vw"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>In machine learning and AI, it could similarly be argued that physics-based models are unreasonably effective. Foundational principles from thermodynamics and classical physics are routinely leveraged in modern AI and statistical learning algorithms such as diffusion generative models [1], Monte Carlo sampling methods based on Hamiltonian dynamics [2], and optimization algorithms inspired by physical annealing [3]. When referring to AI here, we note that we broadly encompass classical statistical algorithms in addition to, e.g., contemporary deep learning-based AI methods.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://normalcomputing.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Normal Research&#8217;s Substack is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><p>In this blog post, we will take a closer look into why there seems to be a mysterious synergy between physics and AI. Why are some of the more successful AI algorithms inspired by physics? Is this just a coincidence, or does it reveal a more profound, fundamental connection between the two?</p><h2>Our main goals</h2><p>It is clear that many modern AI models are not explicitly motivated by physics, such as transformers for language modeling (however, see <a href="https://mcbal.github.io/post/transformers-are-secretly-collectives-of-spin-systems/">here</a> for a compelling connection). Hence, physics is clearly not <em>necessary</em> for performant AI. On the other hand, in many contexts, physics-based models are competitive with non physics-based ones, suggesting that physics may often be <em>sufficient</em> as a guiding principle. For example, state-space models, which were originally employed for control engineering, draw inspiration from physics and were recently shown to be competitive for language modeling [30]. Such sufficiency would nevertheless be compelling, since it motivates the development of highly physical approaches to AI algorithms with implications, e.g., for designing physics-based AI hardware. Thus, one goal of this blog is to highlight several examples where physics-based reasoning led to the development of new AI algorithms or new perspectives on existing algorithms.</p><p>The second goal is to provide explanations for why physical reasoning is often empirically helpful in providing high-level guiding principles for AI algorithm development. We will highlight features of physics-based models, such as continuity, interpretability, symmetry, and simplicity, which make them useful in certain real-world applications.</p><h2>Some features of physics-based models</h2><h3>Simplicity as a feature </h3><p><strong>Occam&#8217;s razor: </strong>Physics-inspired models are often inherently simple and parsimonious, since physics is concerned with revealing simple universal truths; this has led to the description of physics as a &#8220;search for simplicity&#8221;. The simplicity of physics-based models is often considered a feature rather than a bug, which one can understand from the perspective of Occam&#8217;s razor: the guiding principle that advocates for seeking explanations constructed using the fewest possible components. The effectiveness of Occam's razor has been demonstrated time and again across various disciplines, as simpler explanations often prove to be more robust, reliable, and generalizable.</p><p>One can similarly apply Occam&#8217;s razor to machine learning models, where the goal is often to seek high-level explanations for seemingly complicated datasets that nevertheless generalize well. Physics-inspired modeling can therefore be viewed as an attempt to implicitly leverage Occam&#8217;s razor in the context of machine learning.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!YFiu!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3e6456d0-bcab-4b18-b958-91d0ea35e50d_1080x540.gif" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!YFiu!,w_424,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3e6456d0-bcab-4b18-b958-91d0ea35e50d_1080x540.gif 424w, https://substackcdn.com/image/fetch/$s_!YFiu!,w_848,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3e6456d0-bcab-4b18-b958-91d0ea35e50d_1080x540.gif 848w, https://substackcdn.com/image/fetch/$s_!YFiu!,w_1272,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3e6456d0-bcab-4b18-b958-91d0ea35e50d_1080x540.gif 1272w, https://substackcdn.com/image/fetch/$s_!YFiu!,w_1456,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3e6456d0-bcab-4b18-b958-91d0ea35e50d_1080x540.gif 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!YFiu!,w_1456,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3e6456d0-bcab-4b18-b958-91d0ea35e50d_1080x540.gif" width="702" height="351" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/3e6456d0-bcab-4b18-b958-91d0ea35e50d_1080x540.gif&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:540,&quot;width&quot;:1080,&quot;resizeWidth&quot;:702,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!YFiu!,w_424,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3e6456d0-bcab-4b18-b958-91d0ea35e50d_1080x540.gif 424w, https://substackcdn.com/image/fetch/$s_!YFiu!,w_848,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3e6456d0-bcab-4b18-b958-91d0ea35e50d_1080x540.gif 848w, https://substackcdn.com/image/fetch/$s_!YFiu!,w_1272,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3e6456d0-bcab-4b18-b958-91d0ea35e50d_1080x540.gif 1272w, https://substackcdn.com/image/fetch/$s_!YFiu!,w_1456,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3e6456d0-bcab-4b18-b958-91d0ea35e50d_1080x540.gif 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p><em>Caption: Natural data (left) is often embedded in a lower-dimensional manifold (right) in a structured but non-obvious way. Physics-grounded methods can be effective in unearthing this structure.</em></p><p><strong>Low-dimensional manifolds: </strong>The <em>manifold hypothesis</em> [4] can be seen as a manifestation of Occam&#8217;s razor. The statement is that most natural datasets lie close to a low-dimensional manifold, which happens to be embedded in a higher dimensional space in a structured way. (See figure above where the data lie on a torus manifold embedded in 3D space.) The hypothesis alludes to the existence of simpler explanations of the data, waiting to be found.</p><p>In this context, the manifold hypothesis provides further motivation for physics-based models: physical laws give rise to low-dimensional manifolds of natural data, and physics-inspired models serve as powerful tools to effectively unearth explanations behind real-world datasets.</p><h3><strong>Smoothness as a feature</strong></h3><p>Mathematics is the Wild Wild West, where anything goes. Discontinuous and non-differentiable functions abound. In principle, one could search over the space of such pathological (colloquially speaking) functions during the learning process in the context of AI.&nbsp;</p><p>Oftentimes, explicitly regularizing the learning process to prefer smooth, continuous function is desirable. Physics-based methods tend to be biased towards well-behaved functions since they have a correspondence to the natural world. Thus, choosing a model inspired by physics can be seen as applying an inductive bias to the statistical learning process, which can be useful for speeding up training and inference as well as improving the generalizability of models. Indeed, the smooth and well-behaved properties of physics-based models have recently been exploited to construct novel classes of physics-based generative AI models [5].</p><h3><strong>Symmetry and scale separation as features</strong></h3><p>As mentioned above, natural datasets often live in structured, low-dimensional manifolds. The use of physically-informed inductive biases can place powerful priors on the space of functions that AI models process, helping effectively break the curse of dimensionality associated with complex real-world data. Two such physics-informed inductive biases are <em>symmetry</em> and <em>scale separation</em>. Scale separation enforces a multi-scale, hierarchical structure ubiquitous in the real world, common examples being the pooling operation in convolutional neural networks and the philosophy behind wavelet-based approaches to data analysis.</p><p>Phil Anderson famously said that <em>&#8220;it is only slightly overstating the case to say that physics is the study of symmetry&#8221;.</em> Symmetry priors are used as guiding principles behind many neural network models today [11]. Convolutional neural networks, for example, naturally emerge through enforcing translational symmetry [12]. Another prominent example is AlphaFold 2, where the use of 3-D symmetry was instrumental to achieving its paradigm-shifting performance for protein structure prediction [13].&nbsp;</p><p>Physics-based inductive biases are especially useful when analyzing data from physical systems, and this has motivated neural networks based on Hamiltonian [14] and Lagrangian [15] dynamics. Taking this one step further, one can literally use a physical system as the neural network, as in deep physical neural networks [16]. All of these ideas can be exploited from an inductive bias perspective.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!Ha1J!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2e065e36-07a3-47a7-938f-7850c52e83ef_960x296.gif" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!Ha1J!,w_424,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2e065e36-07a3-47a7-938f-7850c52e83ef_960x296.gif 424w, https://substackcdn.com/image/fetch/$s_!Ha1J!,w_848,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2e065e36-07a3-47a7-938f-7850c52e83ef_960x296.gif 848w, https://substackcdn.com/image/fetch/$s_!Ha1J!,w_1272,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2e065e36-07a3-47a7-938f-7850c52e83ef_960x296.gif 1272w, https://substackcdn.com/image/fetch/$s_!Ha1J!,w_1456,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2e065e36-07a3-47a7-938f-7850c52e83ef_960x296.gif 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!Ha1J!,w_1456,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2e065e36-07a3-47a7-938f-7850c52e83ef_960x296.gif" width="960" height="296" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/2e065e36-07a3-47a7-938f-7850c52e83ef_960x296.gif&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:296,&quot;width&quot;:960,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!Ha1J!,w_424,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2e065e36-07a3-47a7-938f-7850c52e83ef_960x296.gif 424w, https://substackcdn.com/image/fetch/$s_!Ha1J!,w_848,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2e065e36-07a3-47a7-938f-7850c52e83ef_960x296.gif 848w, https://substackcdn.com/image/fetch/$s_!Ha1J!,w_1272,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2e065e36-07a3-47a7-938f-7850c52e83ef_960x296.gif 1272w, https://substackcdn.com/image/fetch/$s_!Ha1J!,w_1456,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2e065e36-07a3-47a7-938f-7850c52e83ef_960x296.gif 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p><em>Caption: Symmetry-preserving models (right) can faithfully incorporate physical transformations of the data (left) unlike vanilla models (middle).</em></p><h3><strong>Interpretability as a feature</strong></h3><p>Interpretability is often a desirable feature of AI models. Since humans have strong intuition for physical systems, the parameters of a physics-based model can carry conceptual meaning. Closely related to the concept of symmetry priors above, restricting the nature of message passing in graph neural networks in a domain-specific manner can result in learning interpretable features, as in <a href="https://arxiv.org/abs/2006.11287">this example</a> of learning the dynamics of gravitationally-bound multi-particle systems using symbolic expressions for message passing. Interpretability thus&nbsp; provides another motivator for physics-based models, further highlighted in [6,7].</p><p>Besides feature interpretability, physics-based algorithms can also aid in <em>model</em> interpretability. Algorithms used to fit AI models frequently have complex behaviors and physics can be a key tool in understanding how they work. For instance, the physics-based intuition that adding momentum to a model will aid in exploration is born out in both the popular Nesterov-type extensions to stochastic gradient descent [31], and in the success of Hamiltonian Monte Carlo [2]. In the latter case, the simple physics-based intuition that the Hamiltonian should stay constant when generating a proposal leads to both an extremely effective algorithm for sampling from a general probability distribution, but also a natural model diagnostic (has the value of the Hamiltonian diverged from its initial value?) that can successfully indicate that your model has problematic features.</p><h3><strong>Dynamical modeling as a feature</strong></h3><p>Explicitly modeling the learning process as a continuous dynamical system opens up a range of new possibilities, such as leveraging powerful differential equation solvers and being able to effectively model continuous underlying latent processes. A canonical example is that of Neural Ordinary Differential Equations (Neural ODEs) [8], which introduced a class of AI models where a pass through the network involves a continuous transformation -- the network is explicitly modeled as a dynamical system (Figure below from [8]).</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!qnc5!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa1c95f7f-b3bb-4652-a7fb-57a5c463f7bb_1600x1127.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!qnc5!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa1c95f7f-b3bb-4652-a7fb-57a5c463f7bb_1600x1127.png 424w, https://substackcdn.com/image/fetch/$s_!qnc5!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa1c95f7f-b3bb-4652-a7fb-57a5c463f7bb_1600x1127.png 848w, https://substackcdn.com/image/fetch/$s_!qnc5!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa1c95f7f-b3bb-4652-a7fb-57a5c463f7bb_1600x1127.png 1272w, https://substackcdn.com/image/fetch/$s_!qnc5!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa1c95f7f-b3bb-4652-a7fb-57a5c463f7bb_1600x1127.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!qnc5!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa1c95f7f-b3bb-4652-a7fb-57a5c463f7bb_1600x1127.png" width="654" height="460.8543956043956" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/a1c95f7f-b3bb-4652-a7fb-57a5c463f7bb_1600x1127.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1026,&quot;width&quot;:1456,&quot;resizeWidth&quot;:654,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!qnc5!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa1c95f7f-b3bb-4652-a7fb-57a5c463f7bb_1600x1127.png 424w, https://substackcdn.com/image/fetch/$s_!qnc5!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa1c95f7f-b3bb-4652-a7fb-57a5c463f7bb_1600x1127.png 848w, https://substackcdn.com/image/fetch/$s_!qnc5!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa1c95f7f-b3bb-4652-a7fb-57a5c463f7bb_1600x1127.png 1272w, https://substackcdn.com/image/fetch/$s_!qnc5!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa1c95f7f-b3bb-4652-a7fb-57a5c463f7bb_1600x1127.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p><em>Caption: Neural ODEs can explicitly model neural networks as dynamical systems (from [8])</em></p><p>A key motivator was computational: differential equation solvers, which had been developed and fine-tuned over many decades, could be leveraged for much of the computational heavy lifting. Neural ODEs and their variants show promising performance on a variety of tasks across domains and enable principled inference for datasets that are challenging to analyze with traditional methods, such as irregularly-sampled time series.</p><p>Since physical processes are often governed by differential equations, neural ODEs encourage an analogy between neural networks and continuous-time, physical dynamical processes. This can allow for the discretization of the underlying differential equations in a way that can be used to efficiently realize neural networks at the hardware level.</p><p>A recent, related line of work explicitly <a href="https://thegradient.pub/graph-neural-networks-beyond-message-passing-and-weisfeiler-lehman/">re-interprets graph neural networks and associated learning processes</a> as continuous dynamical systems inspired by physics. This provides deep insights into the nature of learning on graphs that are otherwise difficult to address with traditional graph frameworks by, e.g., drawing direct analogies between different types of GNNs and diffusion PDEs solved by specific numerical schemes.</p><h3><strong>Probabilistic nature a feature</strong></h3><p>Probabilistic machine learning [9] is becoming increasingly prevalent, given the need for principled uncertainty quantification across domains as well as the real-world impact of generative modeling over complex data distributions, from natural images to biomolecules. A probabilistic approach to AI allows for principled uncertainty quantification and increases the reliability and trustworthiness of the model&#8217;s predictions while leveraging powerful concepts from traditional statistical inference, such as latent variable modeling.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!GsAg!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F46097c9c-bf22-4d87-a9e7-bb9185025461_442x360.gif" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!GsAg!,w_424,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F46097c9c-bf22-4d87-a9e7-bb9185025461_442x360.gif 424w, https://substackcdn.com/image/fetch/$s_!GsAg!,w_848,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F46097c9c-bf22-4d87-a9e7-bb9185025461_442x360.gif 848w, https://substackcdn.com/image/fetch/$s_!GsAg!,w_1272,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F46097c9c-bf22-4d87-a9e7-bb9185025461_442x360.gif 1272w, https://substackcdn.com/image/fetch/$s_!GsAg!,w_1456,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F46097c9c-bf22-4d87-a9e7-bb9185025461_442x360.gif 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!GsAg!,w_1456,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F46097c9c-bf22-4d87-a9e7-bb9185025461_442x360.gif" width="442" height="360" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/46097c9c-bf22-4d87-a9e7-bb9185025461_442x360.gif&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:360,&quot;width&quot;:442,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!GsAg!,w_424,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F46097c9c-bf22-4d87-a9e7-bb9185025461_442x360.gif 424w, https://substackcdn.com/image/fetch/$s_!GsAg!,w_848,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F46097c9c-bf22-4d87-a9e7-bb9185025461_442x360.gif 848w, https://substackcdn.com/image/fetch/$s_!GsAg!,w_1272,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F46097c9c-bf22-4d87-a9e7-bb9185025461_442x360.gif 1272w, https://substackcdn.com/image/fetch/$s_!GsAg!,w_1456,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F46097c9c-bf22-4d87-a9e7-bb9185025461_442x360.gif 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p><em>Caption: Probabilistic methods (here: Gaussian processes) can effectively model distributions over quantities of interest, including uncertainties.</em></p><p>Not surprisingly, the field of probabilistic AI in particular has benefitted from many physics-inspired models (some of which we discuss below). This is partly because probabilistic reasoning is prevalent in physics, especially in statistical mechanics, thermodynamics, and quantum mechanics. These subfields of physics therefore offer both intuition and formal frameworks for formulating models for probabilistic AI.</p><h2>Examples of physics-inspired models </h2><p>Having outlined several features of physics-based approaches, let us highlight some key examples where these approaches have yielded powerful AI and statistical learning algorithms in practice.</p><h3><strong>Energy-based models </strong></h3><p>It may be evident, but energy-based models (EBMs) [19] draw substantial inspiration from physics. Specifically, Hopfield networks and Boltzmann machines were originally inspired by spin-glass models, which are Ising spin models with random couplings. EBMs like Boltzmann machines can be used for sampling&nbsp; in generative AI applications, highlighting a more general trend of physics-based being especially useful for generative AI.</p><h3><strong>Diffusion models </strong></h3><p>Perhaps more than any other model, diffusion models [1] embody the spirit of this message: they are probabilistic, they are continuous in time [21], and of course, they are physics-inspired. Originally inspired by non-equilibrium thermodynamics [1], diffusion models incorporate noise into the learning process, effectively smoothing the distribution to facilitate learning. This is particularly useful given the manifold hypothesis (see above), which suggests that learning natural data distributions would be challenging due to their complex structure.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!CJKZ!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2bbbb588-76ab-4b3e-b697-62cab93f4efd_1600x873.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!CJKZ!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2bbbb588-76ab-4b3e-b697-62cab93f4efd_1600x873.png 424w, https://substackcdn.com/image/fetch/$s_!CJKZ!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2bbbb588-76ab-4b3e-b697-62cab93f4efd_1600x873.png 848w, https://substackcdn.com/image/fetch/$s_!CJKZ!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2bbbb588-76ab-4b3e-b697-62cab93f4efd_1600x873.png 1272w, https://substackcdn.com/image/fetch/$s_!CJKZ!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2bbbb588-76ab-4b3e-b697-62cab93f4efd_1600x873.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!CJKZ!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2bbbb588-76ab-4b3e-b697-62cab93f4efd_1600x873.png" width="1456" height="794" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/2bbbb588-76ab-4b3e-b697-62cab93f4efd_1600x873.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:794,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!CJKZ!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2bbbb588-76ab-4b3e-b697-62cab93f4efd_1600x873.png 424w, https://substackcdn.com/image/fetch/$s_!CJKZ!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2bbbb588-76ab-4b3e-b697-62cab93f4efd_1600x873.png 848w, https://substackcdn.com/image/fetch/$s_!CJKZ!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2bbbb588-76ab-4b3e-b697-62cab93f4efd_1600x873.png 1272w, https://substackcdn.com/image/fetch/$s_!CJKZ!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2bbbb588-76ab-4b3e-b697-62cab93f4efd_1600x873.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p><em>Caption: Diffusion models are a class of physics-inspired generative models that can learn to iteratively generate complex data starting from noise.</em></p><p>Samples are then drawn by reversing the diffusion process, providing a state-of-the-art algorithm for generative AI that is used for applications including molecular docking [22], protein folding [23], and crystal design [24]. Recently, the connection to physics has been pushed even further [5], extending the generative AI paradigm to other physics-inspired models such as the Poisson equation in electrostatics.</p><h3><strong>Markov Chain Monte Carlo </strong></h3><p>In probabilistic AI and Bayesian inference more broadly, Markov chain Monte Carlo (MCMC) [25] is a workhorse for various learning tasks. The history of sampling algorithms like MCMC is closely intertwined with physics. The modern version of Markov Chain Monte Carlo was invented at Los Alamos in the 1940s by Stanis&#322;aw Ulam while studying neutron diffusion in nuclear weapon cores, and further fleshed out in work with John von Neumann and Nicholas Metropolis.&nbsp;</p><p>An important criterion in MCMC is detailed balance, connected to the invertibility of the sampling proposal distribution. Physics yields simple and elegant ways to enforce detailed balance, e.g. through energy conservation. Inspiration from physics has continued to yield rich classes of techniques for both <a href="https://arxiv.org/abs/2201.11137">optimization</a> and <a href="https://arxiv.org/abs/2212.08549">sampling</a> in recent years.</p><p><strong>Hamiltonian Monte Carlo: </strong>A state-of-the-art MCMC algorithm is Hamiltonian Monte Carlo (HMC), which is based on introducing an auxiliary variable (&#8220;momentum&#8221;) and evolving particles in time according to Hamiltonian dynamics [2]. These dynamics, which stem from classical mechanics and are intimately related to the principles governing the motion of physical systems, facilitate inference by proposing samples that effectively explore the parameter space in a much more efficient manner than traditional MCMC algorithms like Metropolis-Hastings-Rosenbluth (Figure below).</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!nMRy!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdc4de6d2-2abf-405d-b786-522699e29efe_1600x1600.gif" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!nMRy!,w_424,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdc4de6d2-2abf-405d-b786-522699e29efe_1600x1600.gif 424w, https://substackcdn.com/image/fetch/$s_!nMRy!,w_848,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdc4de6d2-2abf-405d-b786-522699e29efe_1600x1600.gif 848w, https://substackcdn.com/image/fetch/$s_!nMRy!,w_1272,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdc4de6d2-2abf-405d-b786-522699e29efe_1600x1600.gif 1272w, https://substackcdn.com/image/fetch/$s_!nMRy!,w_1456,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdc4de6d2-2abf-405d-b786-522699e29efe_1600x1600.gif 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!nMRy!,w_1456,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdc4de6d2-2abf-405d-b786-522699e29efe_1600x1600.gif" width="462" height="462" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/dc4de6d2-2abf-405d-b786-522699e29efe_1600x1600.gif&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1456,&quot;width&quot;:1456,&quot;resizeWidth&quot;:462,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!nMRy!,w_424,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdc4de6d2-2abf-405d-b786-522699e29efe_1600x1600.gif 424w, https://substackcdn.com/image/fetch/$s_!nMRy!,w_848,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdc4de6d2-2abf-405d-b786-522699e29efe_1600x1600.gif 848w, https://substackcdn.com/image/fetch/$s_!nMRy!,w_1272,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdc4de6d2-2abf-405d-b786-522699e29efe_1600x1600.gif 1272w, https://substackcdn.com/image/fetch/$s_!nMRy!,w_1456,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdc4de6d2-2abf-405d-b786-522699e29efe_1600x1600.gif 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!o0x_!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcc0bf252-757a-4f2e-a1fa-11987568a9c7_1600x1600.gif" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!o0x_!,w_424,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcc0bf252-757a-4f2e-a1fa-11987568a9c7_1600x1600.gif 424w, https://substackcdn.com/image/fetch/$s_!o0x_!,w_848,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcc0bf252-757a-4f2e-a1fa-11987568a9c7_1600x1600.gif 848w, https://substackcdn.com/image/fetch/$s_!o0x_!,w_1272,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcc0bf252-757a-4f2e-a1fa-11987568a9c7_1600x1600.gif 1272w, https://substackcdn.com/image/fetch/$s_!o0x_!,w_1456,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcc0bf252-757a-4f2e-a1fa-11987568a9c7_1600x1600.gif 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!o0x_!,w_1456,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcc0bf252-757a-4f2e-a1fa-11987568a9c7_1600x1600.gif" width="446" height="446" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/cc0bf252-757a-4f2e-a1fa-11987568a9c7_1600x1600.gif&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1456,&quot;width&quot;:1456,&quot;resizeWidth&quot;:446,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!o0x_!,w_424,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcc0bf252-757a-4f2e-a1fa-11987568a9c7_1600x1600.gif 424w, https://substackcdn.com/image/fetch/$s_!o0x_!,w_848,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcc0bf252-757a-4f2e-a1fa-11987568a9c7_1600x1600.gif 848w, https://substackcdn.com/image/fetch/$s_!o0x_!,w_1272,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcc0bf252-757a-4f2e-a1fa-11987568a9c7_1600x1600.gif 1272w, https://substackcdn.com/image/fetch/$s_!o0x_!,w_1456,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcc0bf252-757a-4f2e-a1fa-11987568a9c7_1600x1600.gif 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p><em>Caption: Sampling algorithms based on Hamiltonian dynamics (top) can sample complex distributions much more efficiently than traditional MCMC methods (bottom).</em></p><p>Bolstering the theme of physics roots for sampling techniques, HMC (also known as Hybrid Monte Carlo) was originally proposed in the <a href="https://www.sciencedirect.com/science/article/abs/pii/037026938791197X">late 1980s</a> in the context of studying lattice chromodynamics, a theoretical framework for describing the strong nuclear force that binds quarks and gluons together into protons, neutrons, and other particles.</p><p><strong>Stochastic gradient HMC: </strong>Diving deeper, there is an esoteric but useful MCMC algorithm called stochastic gradient Hamiltonian Monte Carlo (SGHMC) [26]. Here, noisy estimates of the gradient are employed, which introduces stochastic fluctuations into the dynamics. These fluctuations are undesirable: they perturb the dynamics, and to deal with this dissipation was introduced into the equations to damp out the noise. In this case, fluctuations alone were detrimental, but combining fluctuations with dissipation leads to good properties in the solution.&nbsp;</p><p>Intriguingly there is a theorem in thermodynamics called the <em>fluctuation-dissipation theorem</em>, which is typical of say Brownian motion, stating that fluctuations and dissipation always go hand-in-hand, like two peas in a pod. So it could be argued that the SGHMC algorithm is physics inspired, and in particular thermodynamics inspired.</p><h3><strong>Variational inference algorithms</strong></h3><p>Variational inference is a complementary method to MCMC for approximating complex posterior distributions, turning posterior inference into an optimization rather than sampling problem. Instead of trying to compute a complex distribution directly, the method defines a simpler, typically parameterized family of distributions, and then finds the member of that family which is closest to the target distribution.</p><p>There is a direct analogy with variational methods from quantum mechanics, where the idea is to find variational approximations to ground state wavefunctions of a system by minimizing the expectation value of the energy. On a historic note, exploiting the connection Ising models and Boltzmann machines initially <a href="https://www.complex-systems.com/abstracts/v01_i05_a06/">introduced variational methods</a> to the field of AI in the late 1980s, which are a cornerstone of today's probabilistic AI toolkit; see <a href="https://jaan.io/how-does-physics-connect-machine-learning/">here</a> for a deeper exploration of this connection.</p><h2>Caveats</h2><p>Now that we have presented some arguments and examples, in the spirit of steelmanning let us offer some caveats, to the skeptics out there, regarding the connection between physics and AI.</p><h3><strong>Historical and psychological effects</strong></h3><p>Since the field of physics was developed before AI, it could be argued that historical effects play a role. Indeed, physics has a long history even before the term AI was coined in 1955. As a result, researchers may be using their past experience in physics as their starting point for how to formulate models in AI. Moreover, human psychology plays a role: we have great intuition for physical processes since we interact with the physical world. Hence, our own intuition lends itself to physics-based modeling..</p><h3><strong>Is math the intermediary?</strong></h3><p>The fundamental underpinnings of both physics and AI are naturally formulated in the language of mathematics, including concepts from geometry, linear algebra, and information theory. Perhaps it is their mutual connection to these subfields of mathematics that effectively connects physics and AI?</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!_IfG!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa39fe7d3-a9c6-4f1f-9413-67bcd7f859b6_900x645.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!_IfG!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa39fe7d3-a9c6-4f1f-9413-67bcd7f859b6_900x645.jpeg 424w, https://substackcdn.com/image/fetch/$s_!_IfG!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa39fe7d3-a9c6-4f1f-9413-67bcd7f859b6_900x645.jpeg 848w, https://substackcdn.com/image/fetch/$s_!_IfG!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa39fe7d3-a9c6-4f1f-9413-67bcd7f859b6_900x645.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!_IfG!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa39fe7d3-a9c6-4f1f-9413-67bcd7f859b6_900x645.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!_IfG!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa39fe7d3-a9c6-4f1f-9413-67bcd7f859b6_900x645.jpeg" width="900" height="645" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/a39fe7d3-a9c6-4f1f-9413-67bcd7f859b6_900x645.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:645,&quot;width&quot;:900,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!_IfG!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa39fe7d3-a9c6-4f1f-9413-67bcd7f859b6_900x645.jpeg 424w, https://substackcdn.com/image/fetch/$s_!_IfG!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa39fe7d3-a9c6-4f1f-9413-67bcd7f859b6_900x645.jpeg 848w, https://substackcdn.com/image/fetch/$s_!_IfG!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa39fe7d3-a9c6-4f1f-9413-67bcd7f859b6_900x645.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!_IfG!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa39fe7d3-a9c6-4f1f-9413-67bcd7f859b6_900x645.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>When it comes to statistical learning, we are usually still grounded in the natural world, relying on concepts like geometric data types (scalars, vectors, tensors, &#8230;) and probability densities&#8212;even if we work with abstract models that obfuscate this connection. It may therefore not be entirely surprising if concepts that are ubiquitous in formulating physical principles, like geometry and linear algebra, work well in the realm of inference.</p><p>Similarly, the concept of entropy shows up in a central way in both thermodynamics and machine learning. But it could be argued that this is because both thermodynamics and machine learning are mutually connected to a third field: information theory, a mathematical framework for quantifying and propagating information. One can see how machine learning is connected to information theory since, e.g., data compression, latent variable modeling, and the information bottleneck are central concepts here. Hence, the unifying language of information theory happens to be a useful lens for both physics and machine learning.</p><h3><strong>A good starting point?</strong></h3><p>Physics-based models are clearly effective for building inference strategies. However, they may be most effective as starting points, with engineering and practical considerations taking over at some point. For example, Hamiltonian Monte Carlo is notoriously hard to tune in many cases, with domain- and problem-specific engineering and insight often needed to get it working well.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!0v7j!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1e45a37b-087c-4d57-a54f-43d63e4d049b_1456x816.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!0v7j!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1e45a37b-087c-4d57-a54f-43d63e4d049b_1456x816.png 424w, https://substackcdn.com/image/fetch/$s_!0v7j!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1e45a37b-087c-4d57-a54f-43d63e4d049b_1456x816.png 848w, https://substackcdn.com/image/fetch/$s_!0v7j!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1e45a37b-087c-4d57-a54f-43d63e4d049b_1456x816.png 1272w, https://substackcdn.com/image/fetch/$s_!0v7j!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1e45a37b-087c-4d57-a54f-43d63e4d049b_1456x816.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!0v7j!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1e45a37b-087c-4d57-a54f-43d63e4d049b_1456x816.png" width="1456" height="816" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/1e45a37b-087c-4d57-a54f-43d63e4d049b_1456x816.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:816,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!0v7j!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1e45a37b-087c-4d57-a54f-43d63e4d049b_1456x816.png 424w, https://substackcdn.com/image/fetch/$s_!0v7j!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1e45a37b-087c-4d57-a54f-43d63e4d049b_1456x816.png 848w, https://substackcdn.com/image/fetch/$s_!0v7j!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1e45a37b-087c-4d57-a54f-43d63e4d049b_1456x816.png 1272w, https://substackcdn.com/image/fetch/$s_!0v7j!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1e45a37b-087c-4d57-a54f-43d63e4d049b_1456x816.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>The above image was generated by the text-to-image diffusion model Midjourney, and hence diffusion models are clearly useful! The diffusion process in these models gives one way to destroy and create information, but there are many others, some physics-based (e.g. based on electrostatics), some not really (e.g. cold diffusion). The jury is still out on which types of models will strike a good balance in the end between all the relevant axes.&nbsp;</p><p>There is clearly something very fundamental in why physics-based models work well for statistical inference and for AI. But they may be best as starting points and as ways to guide strategies for building models -- otherwise one could get stuck in a local minimum. However new physics-based strategies often lead to qualitative leaps in performance and understanding, providing fundamental breakthroughs at the conceptual level.</p><h2>Hardware Implications</h2><p>While algorithmic developers have been quick to pick up on the connection between physics and AI, the implications for designing AI hardware have not been fully appreciated. All computing hardware naturally obeys the laws of physics, including digital hardware. But in theory one could exploit the laws of physics more directly with analog hardware, where physical evolution is exploited as part of the computation. We therefore leave the intriguing question open: how can one exploit the aforementioned connections between physics and AI to better design AI hardware? Some recent work along these lines includes probabilistic hardware with p-bits [27,28] and thermodynamic hardware with stochastic units coupled to an entropy regulator [29], both of which have applications for probabilistic AI and generative AI.</p><h2>Conclusion</h2><p>In summary, we highlighted several positive features of physics-inspired models that make them a good fit for use in AI.</p><ul><li><p>Their parsimonious nature allows for an elegant trade off between expressivity and simplicity;</p></li><li><p>Incorporating domain-specific parameterization can allow for greater interpretability of physics-based models;</p></li><li><p>They allow one to naturally incorporate inductive biases such as symmetries and scale separation;</p></li><li><p>Continuous-time formulations enabled by physics-based models inherit computational and other benefits; and</p></li><li><p>They provide a compact, intuitive framework for probabilistic reasoning.</p></li></ul><p>We provided numerous examples of the marriage of physics and AI, from energy-based models to diffusion models to Hamiltonian Monte Carlo to annealing-based optimization. We also pointed out some caveats like historical efforts that may exaggerate the impact of physics in AI.&nbsp;</p><p>We thank you for taking the time to read this blog post! We hope this post stimulates discussion around the intersection of physics and AI. Be sure to sign up for updates at Normal Computing&#8217;s <a href="https://normalcomputing.ai/">website</a>.</p><h2>Acknowledgments</h2><p>We thank Anna Golubeva for helpful conversations and feedback.</p><h2>References</h2><p>[1] Sohl-Dickstein, J., Weiss, E., Maheswaranathan, N., &amp; Ganguli, S. (2015, June). Deep unsupervised learning using nonequilibrium thermodynamics. In <em>International Conference on Machine Learning</em> (pp. 2256-2265). PMLR.</p><p>[2] Neal, R. M. (2011). MCMC using Hamiltonian dynamics. Handbook of markov chain monte carlo, 2(11), 2.</p><p>[3] Kirkpatrick, S., Gelatt Jr, C. D., Vecchi, M. P. (1983). Optimization by Simulated Annealing. <em>Science</em>. <strong>220</strong> (4598): 671&#8211;680.</p><p>[4] Fefferman, C., Mitter, S., Narayanan, H. (2016). Testing the manifold hypothesis. <em>Journal of the American Mathematical Society</em>. <strong>29</strong> (4): 983&#8211;1049.</p><p>[5] Liu, Z., Luo, D., Xu, Y., Jaakkola, T., Tegmark, M. (2023). GenPhys: From Physical Processes to Generative Models. <em>arXiv preprint arXiv:2304.02637</em>.</p><p>[6] Takeishi, N., Kalousis, A. (2021). Physics-integrated variational autoencoders for robust and interpretable generative modeling. <em>Advances in Neural Information Processing Systems</em>. <strong>34</strong>: 14809&#8211;14821.</p><p>[7] Zehtabiyan-Rezaie, N., Iosifidis, A., Abkar, M. (2023). Physics-guided machine learning for wind-farm power prediction: Toward interpretability and generalizability. <em>PRX Energy</em>. APS. <strong>2 </strong>(1): 013009.</p><p>[8] Chen, R. T. Q., Rubanova, Y., Bettencourt, J., Duvenaud, D. K. (2018). Neural ordinary differential equations. <em>Advances in neural information processing systems</em>. <strong>31</strong>.</p><p>[9] Murphy, K. P. (2022). Probabilistic machine learning: an introduction. <em>MIT press</em>.</p><p>[10] Steinruecken, C., Smith, E., Janz, D., Lloyd, J., Ghahramani, Z. (2019). The automatic statistician. <em>Automated machine learning: Methods, systems, challenges</em>. Springer International Publishing. 161&#8211;173.</p><p>[11] Bronstein, M. M., Bruna, J., Cohen, T., Velickovic, P. (2021). Geometric deep learning: Grids, groups, graphs, geodesics, and gauges. <em>arXiv preprint arXiv:2104.13478</em>.</p><p>[12] O'Shea, K., Nash, R. (2015). An introduction to convolutional neural networks. <em>arXiv preprint arXiv:1511.08458</em>.</p><p>[13] Jumper, J. et al. (2021). Highly accurate protein structure prediction with AlphaFold. <em>Nature</em>. Nature Publishing Group UK London. <strong>596</strong> (7873): 583&#8211;589.</p><p>[14] Greydanus, S., Dzamba, M., Yosinski, J. (2019). Hamiltonian neural networks. <em>Advances in neural information processing systems</em>. <strong>32</strong>.</p><p>[15] Cranmer, M., Greydanus, S., Hoyer, S., Battaglia, P., Spergel, D., Ho, S. (2020). Lagrangian neural networks. <em>arXiv preprint arXiv:2003.04630</em>.</p><p>[16] Wright, L. G., Onodera, T., Stein, M. M., Wang, T., Schachter, D. T., Hu, Z., McMahon, P. L. (2022). Deep physical neural networks trained with backpropagation. <em>Nature</em>. Nature Publishing Group UK London. <strong>601</strong> (7894): 549--555.</p><p>[17] Morris, E. R., Searle, M. S. (2012). Overview of protein folding mechanisms: experimental and theoretical approaches to probing energy landscapes. <em>Current protocols in protein science</em>. Wiley Online Library. <strong>68</strong> (1): 28&#8211;2.</p><p>[18] Ortega, P. A., Braun, D. A. (2013). Thermodynamics as a theory of decision-making with information-processing costs. <em>Proceedings of the Royal Society A: Mathematical, Physical and Engineering Sciences</em>. The Royal Society Publishing. <strong>469</strong> (2153): 20120683.</p><p>[19] LeCun, Y., Chopra, S., Hadsell, R., Ranzato, M., Huang, F. (2006). A tutorial on energy-based learning. <em>Predicting structured data</em>. <strong>1</strong> (0).</p><p>[20] Marullo, C., Agliari, E. (2020). Boltzmann machines as generalized Hopfield networks: a review of recent results and outlooks. <em>Entropy</em>. MDPI. <strong>23</strong> (1): 34.</p><p>[21] Song, Y., Sohl-Dickstein, J., Kingma, D. P., Kumar, A., Ermon, S., Poole, B. (2020). Score-based generative modeling through stochastic differential equations. <em>arXiv preprint arXiv:2011.13456.</em></p><p>[22] Corso, G., St&#228;rk, H., Jing, B., Barzilay, R., &amp; Jaakkola, T. (2022). Diffdock: Diffusion steps, twists, and turns for molecular docking. <em>arXiv preprint arXiv:2210.01776</em>.&nbsp;</p><p>[23] Wu, K. E., Yang, K. K., Berg, R. V. D., Zou, J. Y., Lu, A. X., &amp; Amini, A. P. (2022). Protein structure generation via folding diffusion. <em>arXiv preprint arXiv:2209.15611</em>.</p><p>[24] Xie, T., Fu, X., Ganea, O. E., Barzilay, R., &amp; Jaakkola, T. (2021). Crystal diffusion variational autoencoder for periodic material generation. <em>arXiv preprint arXiv:2110.06197</em>.</p><p>[25] Andrieu, C., De Freitas, N., Doucet, A., Jordan, M. I. (2003). An introduction to MCMC for machine learning. <em>Machine learning</em>. Springer. <strong>50</strong>: 5&#8211;43.</p><p>[26] Chen, T., Fox, E., Guestrin, C. (2014). Stochastic gradient Hamiltonian Monte Carlo. <em>International conference on machine learning</em>. PMLR. 1683&#8211;1691.</p><p>[27] Camsari, K. Y., Sutton, B. M., &amp; Datta, S. (2019). P-bits for probabilistic spin logic. <em>Applied Physics Reviews</em>, <em>6</em>(1), 011305.</p><p>[28] Camsari, K. Y., Faria, R., Sutton, B. M., &amp; Datta, S. (2017). Stochastic p-bits for Invertible Logic. <em>Physical Review X</em>, <em>7</em>, 031014.</p><p>[29] Coles, P. J. (2023). Thermodynamic AI and the fluctuation frontier. <em>arXiv preprint arXiv:2302.06584</em>.</p><p>[30] Dao, Tri, Daniel Y Fu, Khaled K Saab, Armin W Thomas, Atri Rudra, and Christopher R&#233;. 2022. &#8220;Hungry Hungry Hippos: Towards Language Modeling with State Space Models.&#8221; <em>arXiv Preprint arXiv:2212.14052</em>.</p><p>[31] Liu, Chaoyue, and Mikhail Belkin. 2018. &#8220;Accelerating Sgd with Momentum for over-Parameterized Learning.&#8221; <em>arXiv Preprint arXiv:1810.13395</em>.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://normalcomputing.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Normal Research&#8217;s Substack is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[Thermodynamic AI: intelligence from nature]]></title><description><![CDATA[Leveraging natural fluctuations may be the key to scaling AI that is capable of native, reliable reasoning]]></description><link>https://normalcomputing.substack.com/p/thermodynamic-ai-intelligence-from</link><guid isPermaLink="false">https://normalcomputing.substack.com/p/thermodynamic-ai-intelligence-from</guid><dc:creator><![CDATA[Normal Computing Research]]></dc:creator><pubDate>Tue, 14 Feb 2023 01:40:45 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!01a-!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6f031bde-6859-4a77-96ad-afc467b5df09_1600x915.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!9_Ak!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fffd1e9bc-ad24-4d60-bed5-ba39d61b6677_288x216.gif" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!9_Ak!,w_424,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fffd1e9bc-ad24-4d60-bed5-ba39d61b6677_288x216.gif 424w, https://substackcdn.com/image/fetch/$s_!9_Ak!,w_848,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fffd1e9bc-ad24-4d60-bed5-ba39d61b6677_288x216.gif 848w, https://substackcdn.com/image/fetch/$s_!9_Ak!,w_1272,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fffd1e9bc-ad24-4d60-bed5-ba39d61b6677_288x216.gif 1272w, https://substackcdn.com/image/fetch/$s_!9_Ak!,w_1456,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fffd1e9bc-ad24-4d60-bed5-ba39d61b6677_288x216.gif 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!9_Ak!,w_1456,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fffd1e9bc-ad24-4d60-bed5-ba39d61b6677_288x216.gif" width="320" height="240" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/ffd1e9bc-ad24-4d60-bed5-ba39d61b6677_288x216.gif&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:216,&quot;width&quot;:288,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!9_Ak!,w_424,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fffd1e9bc-ad24-4d60-bed5-ba39d61b6677_288x216.gif 424w, https://substackcdn.com/image/fetch/$s_!9_Ak!,w_848,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fffd1e9bc-ad24-4d60-bed5-ba39d61b6677_288x216.gif 848w, https://substackcdn.com/image/fetch/$s_!9_Ak!,w_1272,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fffd1e9bc-ad24-4d60-bed5-ba39d61b6677_288x216.gif 1272w, https://substackcdn.com/image/fetch/$s_!9_Ak!,w_1456,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fffd1e9bc-ad24-4d60-bed5-ba39d61b6677_288x216.gif 1456w" sizes="100vw" fetchpriority="high"></picture><div></div></div></a></figure></div><h2>Overview</h2><p>This blog post motivates a potential marriage between artificial intelligence (AI) and physics, especially thermodynamics. Furthermore, we discuss how building at this software and hardware intersection may be pre-requisite to democratizing fast, massively energy-efficient, and reliable AI.</p><p>Check out the <a href="https://arxiv.org/abs/2302.06584">pre-print</a> for more! And <a href="https://normalcomputing.ai">join our mailing list</a> to keep up with what we&#8217;re building at this intersection.</p><p>Thinking of AI algorithms from the perspective of physics has proven fruitful, and can allow one to unify seemingly unrelated algorithms (as we discuss below). Moreover, once AI algorithms are cast in the language of physics, one can design physics-based hardware to scale up such algorithms. Accordingly, in this blog, we build up to a full-stack paradigm that we believe will be crucial for achieving <em>ubiquitous</em> reliability in AI at the necessary problem (data and resource) scales.</p><p>At the heart of this full-stack is Thermodynamic AI hardware &#8212; a novel computing architecture based on fundamental building blocks that are inherently stochastic &#8212; and so casting AI software and hardware as <a href="https://www.zdnet.com/article/we-will-see-a-completely-new-type-of-computer-says-ai-pioneer-geoff-hinton-mortal-computation/">inseparable</a><sup>[1]</sup>&nbsp;. In contrast to other paradigms like Quantum or Analog Computing, noise becomes a crucial resource for computation. </p><p>Beyond scaling up AI, we believe this new paradigm will also deepen our understanding of the connection between physics and intelligence.</p><div class="captioned-button-wrap" data-attrs="{&quot;url&quot;:&quot;https://normalcomputing.substack.com/p/thermodynamic-ai-intelligence-from?utm_source=substack&utm_medium=email&utm_content=share&action=share&quot;,&quot;text&quot;:&quot;Share&quot;}" data-component-name="CaptionedButtonToDOM"><div class="preamble"><p class="cta-caption">This post is public so feel free to share it.</p></div><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://normalcomputing.substack.com/p/thermodynamic-ai-intelligence-from?utm_source=substack&utm_medium=email&utm_content=share&action=share&quot;,&quot;text&quot;:&quot;Share&quot;}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://normalcomputing.substack.com/p/thermodynamic-ai-intelligence-from?utm_source=substack&utm_medium=email&utm_content=share&action=share"><span>Share</span></a></p></div><div><hr></div><h2>Modern AI Algorithms</h2><p>Modern AI has moved away from the absolute, deterministic procedures of early machine learning models. Nowadays, probability and randomness are fully embraced and utilized in AI. Some simple examples of this are avoiding overfitting by randomly dropping out neurons (i.e., dropout), and escaping local minima during training thanks to noisy gradient estimates (i.e., stochastic gradient descent). A deeper example is Bayesian neural networks<sup>[2]</sup>, where the network&#8217;s weights are sampled from a probability distribution and Bayesian inference is employed to update the distribution in the presence of data, and so deal with data noise and uncertainty in principled fashion.<br><br>Another deep example is generative modeling with diffusion models<sup>[3]</sup>. Diffusion models add noise to data in a forward process, and then reverse the process to generate a new datapoint (see figure illustrating this for generating an image of a leaf). These models have been extremely successful not only in image generation, but also in generating molecules<sup>[4]</sup>, proteins<sup>[5]</sup> and chemically stable materials<sup>[6]</sup>.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!01a-!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6f031bde-6859-4a77-96ad-afc467b5df09_1600x915.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!01a-!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6f031bde-6859-4a77-96ad-afc467b5df09_1600x915.png 424w, https://substackcdn.com/image/fetch/$s_!01a-!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6f031bde-6859-4a77-96ad-afc467b5df09_1600x915.png 848w, https://substackcdn.com/image/fetch/$s_!01a-!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6f031bde-6859-4a77-96ad-afc467b5df09_1600x915.png 1272w, https://substackcdn.com/image/fetch/$s_!01a-!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6f031bde-6859-4a77-96ad-afc467b5df09_1600x915.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!01a-!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6f031bde-6859-4a77-96ad-afc467b5df09_1600x915.png" width="1456" height="833" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/6f031bde-6859-4a77-96ad-afc467b5df09_1600x915.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:833,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!01a-!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6f031bde-6859-4a77-96ad-afc467b5df09_1600x915.png 424w, https://substackcdn.com/image/fetch/$s_!01a-!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6f031bde-6859-4a77-96ad-afc467b5df09_1600x915.png 848w, https://substackcdn.com/image/fetch/$s_!01a-!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6f031bde-6859-4a77-96ad-afc467b5df09_1600x915.png 1272w, https://substackcdn.com/image/fetch/$s_!01a-!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6f031bde-6859-4a77-96ad-afc467b5df09_1600x915.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>AI is currently booming with breakthroughs largely because of these <em>modern AI algorithms</em> that are inherently random. At the same time, it is clear that AI is not reaching its full potential, because of a mismatch between software and hardware. For example, sample generation rate can be relatively slow for diffusion models<sup>[3]</sup>, and Bayesian neural networks require approximations for their posterior distributions to generate samples in reasonable time<sup>[7]</sup>. There&#8217;s no inherent reason why digital hardware is well suited for modern AI, and indeed digital hardware is handicapping these exciting algorithms at the moment.</p><p>For production AI systems, Bayesianism in particular has been stifled from evolving beyond a relative niche because of its <a href="https://twitter.com/roydanroy/status/1588468474103595009">lack of mesh</a> with digital hardware, despite general consensus regarding its benefits towards reliability. Indeed, today&#8217;s methods for leveraging Bayesian inference typically require exceptional mathematical sophistication given the highly technical literature around approximate (practical) Bayesian computation. Next generation production-ready software may be able to significantly reduce this gap in the near-term.</p><p>Nevertheless, the next hardware paradigm should be specifically tailored to the randomness in modern AI. Specifically, we must start viewing stochasticity as a computational resource. In doing so, we could build a hardware that uses the stochastic fluctuations produced by nature, and these fluctuations would naturally drive the computations necessary in modern AI applications. Let us now dive deeper into the building blocks of computing hardware to see what kind of hardware is needed for modern AI.</p><h2>Building Blocks of Current Computers</h2><p>The invention of transistors led to digital computation, where the fundamental building block is the classical bit. At an abstract level, a bit can either be in the state 0 or 1. Recent decades have seen the introduction of novel building blocks that go beyond bits. See the figure below<sup>[8]</sup> for a comparison of bits with alternative paradigms.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!gjL7!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F69c928bd-7606-41f2-a401-9711162744a9_1095x742.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!gjL7!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F69c928bd-7606-41f2-a401-9711162744a9_1095x742.jpeg 424w, https://substackcdn.com/image/fetch/$s_!gjL7!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F69c928bd-7606-41f2-a401-9711162744a9_1095x742.jpeg 848w, https://substackcdn.com/image/fetch/$s_!gjL7!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F69c928bd-7606-41f2-a401-9711162744a9_1095x742.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!gjL7!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F69c928bd-7606-41f2-a401-9711162744a9_1095x742.jpeg 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!gjL7!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F69c928bd-7606-41f2-a401-9711162744a9_1095x742.jpeg" width="612" height="414.7068493150685" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/69c928bd-7606-41f2-a401-9711162744a9_1095x742.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:742,&quot;width&quot;:1095,&quot;resizeWidth&quot;:612,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!gjL7!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F69c928bd-7606-41f2-a401-9711162744a9_1095x742.jpeg 424w, https://substackcdn.com/image/fetch/$s_!gjL7!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F69c928bd-7606-41f2-a401-9711162744a9_1095x742.jpeg 848w, https://substackcdn.com/image/fetch/$s_!gjL7!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F69c928bd-7606-41f2-a401-9711162744a9_1095x742.jpeg 1272w, https://substackcdn.com/image/fetch/$s_!gjL7!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F69c928bd-7606-41f2-a401-9711162744a9_1095x742.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>Allowing the state space of a bit to be a continuum between 0 and 1 leads to probabilistic bits (p-bits)<sup>[9]</sup>. In p-bits, all convex combinations between 0 and 1 are allowed, with the coefficients being the probabilities of the p-bit holding value 0 or 1. Such p-bits are well suited to various applications such as optimization, Ising models<sup>[10]</sup>, and other randomized algorithms. Magnetic tunnel junctions provide a potential hardware architecture for p-bits<sup>[9][11]</sup>, as do Field-Programmable Gate Arrays (FPGAs)<sup>[12]</sup>.<br><br>A further extension of state space allows for complex linear combinations of 0 and 1, that is, quantum superpositions. This extension is employed in quantum computers with the building block called a quantum bit or qubit. Qubits can be measured in different bases, with the complex square of the amplitudes in the linear combination giving the outcome probabilities.&nbsp;Qubits can be built from atoms, ions, electron spins, or superconducting circuits. Quantum computers<sup>[13][14]</sup> have tremendous promise for simulating quantum materials, designing pharmaceuticals, and analyzing quantum data.&nbsp;&nbsp;&nbsp;</p><p>One can see that there is a trend of moving closer towards physics-based computing, with both p-bits and qubits arguably being more physics-inspired than classical bits. Indeed, additional physics-based approaches have been developed for Boltzmann machines<sup>[15]</sup>, combinatorial optimization<sup>[16]</sup> and neural networks<sup>[17] </sup>. In the same spirit as this trend, we introduce a new physics-inspired approach in what follows.</p><h2>A New Building Block</h2><p>The aforementioned building blocks are inherently static<sup>[18]</sup>. Ideally, the state does not change over time unless it is intentionally acted upon by a gate, in these paradigms.</p><p>However, modern AI applications involve <em>accidental</em> time evolution, or in other words, <em>stochasticity</em>. This raises the question of whether we can construct a building block whose state randomly fluctuates over time. This would be useful for naturally simulating the fluctuations in diffusion models, Bayesian inference, and other algorithms.&nbsp;</p><p>The key is to introduce a new axis when plotting the state space: time. Let us define a stochastic bit (s-bit) as a bit whose state stochastically evolves over time according to a continuous time Markov chain (CTMC). CTMC is a technical term for what is essentially a random jumping process in continuous time. We can then illustrate an s-bit by plotting the state versus time, as shown in the figure below.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!kstK!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F872eeba8-0c3d-4fd9-b7cb-6e4113a37175_876x255.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!kstK!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F872eeba8-0c3d-4fd9-b7cb-6e4113a37175_876x255.png 424w, https://substackcdn.com/image/fetch/$s_!kstK!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F872eeba8-0c3d-4fd9-b7cb-6e4113a37175_876x255.png 848w, https://substackcdn.com/image/fetch/$s_!kstK!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F872eeba8-0c3d-4fd9-b7cb-6e4113a37175_876x255.png 1272w, https://substackcdn.com/image/fetch/$s_!kstK!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F872eeba8-0c3d-4fd9-b7cb-6e4113a37175_876x255.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!kstK!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F872eeba8-0c3d-4fd9-b7cb-6e4113a37175_876x255.png" width="876" height="255" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/872eeba8-0c3d-4fd9-b7cb-6e4113a37175_876x255.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:255,&quot;width&quot;:876,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!kstK!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F872eeba8-0c3d-4fd9-b7cb-6e4113a37175_876x255.png 424w, https://substackcdn.com/image/fetch/$s_!kstK!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F872eeba8-0c3d-4fd9-b7cb-6e4113a37175_876x255.png 848w, https://substackcdn.com/image/fetch/$s_!kstK!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F872eeba8-0c3d-4fd9-b7cb-6e4113a37175_876x255.png 1272w, https://substackcdn.com/image/fetch/$s_!kstK!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F872eeba8-0c3d-4fd9-b7cb-6e4113a37175_876x255.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>However, there is no reason the fundamental building block needs to be a bit. In fact, most modern AI algorithms employ continuous spaces. For example, the weights in a neural network are continuous, and feature values of data are often continuous. This motivates our proposal of a continuous, stochastic building block.&nbsp;</p><p>Let us define a stochastic unit (s-unit) in an abstract sense as a real, continuous variable that undergoes Brownian motion, also known as a Wiener process in mathematics. The figure above shows how the state of an s-unit could evolve over time. We say that s-units are the fundamental building blocks of <em>Thermodynamic AI hardware</em>, which is the term we broadly use for this new hardware paradigm<sup>[19]</sup>.&nbsp;</p><p>Ultimately this involves a shift in perspective. Certain computing paradigms, such as quantum and analog computing, view random noise as a nuisance. Noise is currently the biggest roadblock to realizing ubiquitous commercial impact for quantum computing. On the other hand, Thermodynamic AI views noise as an essential ingredient of its operation. Stochasticity is a valuable commodity<sup>[20]</sup>, the key resource for Thermodynamic AI.</p><h2>Physical Realization of Stochastic Units</h2><p>An s-unit represents a continuous stochastic variable whose dynamics are governed by diffusion, drift, or drag (akin to a Brownian particle). At the heart of any physical implementation of such a variable will be a source of stochasticity. A natural starting point for implementing Thermodynamic AI hardware is analog electrical circuits<sup>[21]</sup>, as these circuits have inherent fluctuations that could be harnessed for computation.&nbsp;</p><p>The most ubiquitous source of noise in electrical circuits is thermal noise, also called Johnson-Nyquist noise<sup>[22]</sup>. This noise comes from the random thermal agitation of the charge carriers in a conductor, resulting in fluctuations in voltage or current inside the conductor.</p><p>The s-unit can be represented through the dynamics of any degree of freedom of an electrical circuit (voltage, current, charge, etc.). If we choose the voltage on a particular node in a circuit as our degree of freedom of choice, we can implement an s-unit using a noisy resistor, illustrated in the following figure.</p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!aUGJ!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F60069a3b-5018-4b63-b3cb-969917cc1d95_346x352.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!aUGJ!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F60069a3b-5018-4b63-b3cb-969917cc1d95_346x352.png 424w, https://substackcdn.com/image/fetch/$s_!aUGJ!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F60069a3b-5018-4b63-b3cb-969917cc1d95_346x352.png 848w, https://substackcdn.com/image/fetch/$s_!aUGJ!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F60069a3b-5018-4b63-b3cb-969917cc1d95_346x352.png 1272w, https://substackcdn.com/image/fetch/$s_!aUGJ!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F60069a3b-5018-4b63-b3cb-969917cc1d95_346x352.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!aUGJ!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F60069a3b-5018-4b63-b3cb-969917cc1d95_346x352.png" width="233" height="237.04046242774567" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/60069a3b-5018-4b63-b3cb-969917cc1d95_346x352.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:352,&quot;width&quot;:346,&quot;resizeWidth&quot;:233,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!aUGJ!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F60069a3b-5018-4b63-b3cb-969917cc1d95_346x352.png 424w, https://substackcdn.com/image/fetch/$s_!aUGJ!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F60069a3b-5018-4b63-b3cb-969917cc1d95_346x352.png 848w, https://substackcdn.com/image/fetch/$s_!aUGJ!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F60069a3b-5018-4b63-b3cb-969917cc1d95_346x352.png 1272w, https://substackcdn.com/image/fetch/$s_!aUGJ!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F60069a3b-5018-4b63-b3cb-969917cc1d95_346x352.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><p><br>Here we modeled the noisy resistor as a combination of a stochastic voltage source (representing the thermal voltage fluctuations inside the noisy resistor), &#120575;<em>v,</em> an ideal noiseless resistor of resistance, <em>R</em>,&nbsp; and a capacitor of capacitance, <em>C</em>.&nbsp;</p><p>The stochastic dynamics of the s-unit in this circuit are constrained by the effect of the resistor and capacitor in the form of a drift (analogous to a force pushing a particle undergoing a random walk in a particular direction). In order for the s-units to be more expressive for computation, their inherent stochastic dynamics must be constrained to the properties of an algorithm. In general, one can add other electrical components, such as inductors or non-linear elements, to further constrain the evolution of the s-unit.</p><p>We note that one will need a means of coupling a system of s-units to generate correlations between them. There are a variety of options for this purpose, such as capacitive or resistive bridges that connect the s-units. Moreover, the bridges allow one to account for the geometry of the AI problem, and choosing a particular geometry for the couplings amounts to choosing an inductive bias for the AI model. In this sense, the couplings between s-units allow one to tailor the system to different problem geometries.</p><h2>Unifying Algorithms via Thermodynamics</h2><p>Let us now see why s-units are useful, but first we need to understand the common features that unify the AI algorithms of interest.</p><p>In physics, unifications are very powerful. For example, in the 19th century, James Clerk Maxwell unified three phenomena: electricity, magnetism, and light, under the same umbrella. Maxwell&#8217;s equations for electromagnetism showed that these seemingly unrelated phenomena were different aspects of one underlying physical force.&nbsp;</p><p>Our goal is to unify <em>modern AI algorithms.</em> The key to unifying these algorithms is recognizing similarities between them. Namely, many of them: (1) use stochasticity and (2) are inspired by classical physics. The branch of classical physics that involves stochasticity is known as Thermodynamics. Hence, it is natural to propose Thermodynamics as a field that could unify modern AI algorithms.</p><p>Since &#8220;modern&#8221; is a vague term, let us use the term <em>Thermodynamic AI algorithms</em> to describe the type of algorithms that we are interested in. Here we mention a few examples of Thermodynamic AI algorithms<em>, </em>although this is not a complete list:</p><ol><li><p>Generative diffusion models&nbsp;</p></li><li><p>Hamiltonian Monte Carlo&nbsp;</p></li><li><p>Simulated Annealing&nbsp;</p></li></ol><p>Note that each of these algorithms is physics-inspired. Generative diffusion models are inspired by classical diffusion, such as the Brownian motion of particles in a liquid or gas. Hamiltonian Monte Carlo<sup>[23]</sup>, which is an algorithm sampling from a distribution, is inspired by Hamilton&#8217;s equation for position and momentum in classical mechanics. Simulated annealing is an optimization algorithm that is inspired by annealing in materials science, whereby heating and then cooling a material allows the atoms to rearrange so that the system progresses towards its equilibrium state.</p><p>Through careful consideration, one can formulate a mathematical framework that encompasses all of the aforementioned algorithms as special cases. Just as Maxwell proposed a system of differential equations to unify electromagnetism, we propose the following system of differential equations as being the <em>fundamental equations of Thermodynamic AI algorithms:</em></p><div class="latex-rendered" data-attrs="{&quot;persistentExpression&quot;:&quot;d \\mathbf{p} = [\\mathbf{f} - BM^{-1}\\mathbf{p}]dt + Dd\\mathbf{w}&quot;,&quot;id&quot;:&quot;WFZQYIKFBB&quot;}" data-component-name="LatexBlockToDOM"></div><div class="latex-rendered" data-attrs="{&quot;persistentExpression&quot;:&quot;d\\mathbf{x} = M^{-1}\\mathbf{p} dt &quot;,&quot;id&quot;:&quot;VDTMNGBBCR&quot;}" data-component-name="LatexBlockToDOM"></div><div class="latex-rendered" data-attrs="{&quot;persistentExpression&quot;:&quot;\\mathbf{f} = -\\nabla_{\\mathbf{x}}U&quot;,&quot;id&quot;:&quot;BBPIEXGWJE&quot;}" data-component-name="LatexBlockToDOM"></div><p>For those who are versed in classical physics, these equations should look familiar. Here, <strong>p</strong> corresponds to the momentum vector, <strong>x</strong> is the position vector, <strong>f</strong> is the force vector, <em>U</em> is the potential energy function, and M is the mass matrix. The matrices <em>B</em> and <em>D</em> are hyper-parameters, e.g., <em>D</em> can be viewed as a diffusion matrix. The term d<strong>w</strong> represents Brownian motion (also known as a Wiener process), and hence this is the source of stochasticity. Note that these equations are essentially Newton&#8217;s laws of motion, with the addition of a friction term and a diffusion term. Mathematically, the first equation is a stochastic differential equation, the second is an ordinary differential equation, and the third is a partial differential equation.<br><br>We argue that the aforementioned algorithms are special cases of the above set of equations. In practice, essentially all of the application-specific information about the problem is encoded in the potential energy function <em>U</em>. In simulated annealing, <em>U</em> corresponds to the loss function that one would like to optimize. In Hamiltonian Monte Carlo, <em>U</em> is the logarithm of the probability distribution that one would like to sample from. In Diffusion Models, U is the logarithm of the noise-perturbed probability distribution (i.e., the data distribution with noise added).</p><p>The implications of this unification are significant. First, this unification implies that a single software view can be used to benchmark and implement all Thermodynamic AI algorithms. Second, and more importantly, it implies that a single <em>hardware</em> platform could be used to accelerate all such algorithms. Third, it implies that this hardware can be based on classical physics. Again, we call the latter: <em>Thermodynamic AI hardware</em>.</p><h2>James Clerk Maxwell&#8217;s Demon</h2><p>Let us give some intuition for how one can build this hardware based on classical physics. As one can imagine, the momentum vector <strong>p</strong> corresponds to the state variable of the stochastic units (s-units) described above, since <strong>p</strong> evolves according to a stochastic equation. But the s-units are only half the story.&nbsp;</p><p>We still need to introduce a system to evolve the position <strong>x</strong> in time, a system to compute the force <strong>f</strong>, and a system to apply the force as a drift term in the differential equation for <strong>p</strong>. It turns out that there is a system that can accomplish all of that, and it was introduced in the field of Thermodynamics once again by Maxwell. Maxwell considered an experiment where an intelligent observer monitors the gas particles in a box with two chambers and selectively opens the door for only fast moving particles, resulting in a separation of fast and slow particles over time (see figure). This reduces the entropy of the gas system over time, although it does not violate the 2nd law of thermodynamics since entropy is created elsewhere. The intelligent observer is dubbed Maxwell&#8217;s demon, and this demon has been experimentally realized in various physical systems<sup>[24][25]</sup>, including electrical circuits<sup>[26]</sup>.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!ZXPn!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F389527ba-ac5c-4497-ade2-32b1444fe2db_856x1202.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!ZXPn!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F389527ba-ac5c-4497-ade2-32b1444fe2db_856x1202.png 424w, https://substackcdn.com/image/fetch/$s_!ZXPn!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F389527ba-ac5c-4497-ade2-32b1444fe2db_856x1202.png 848w, https://substackcdn.com/image/fetch/$s_!ZXPn!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F389527ba-ac5c-4497-ade2-32b1444fe2db_856x1202.png 1272w, https://substackcdn.com/image/fetch/$s_!ZXPn!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F389527ba-ac5c-4497-ade2-32b1444fe2db_856x1202.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!ZXPn!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F389527ba-ac5c-4497-ade2-32b1444fe2db_856x1202.png" width="400" height="561.6822429906542" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/389527ba-ac5c-4497-ade2-32b1444fe2db_856x1202.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1202,&quot;width&quot;:856,&quot;resizeWidth&quot;:400,&quot;bytes&quot;:80013,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!ZXPn!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F389527ba-ac5c-4497-ade2-32b1444fe2db_856x1202.png 424w, https://substackcdn.com/image/fetch/$s_!ZXPn!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F389527ba-ac5c-4497-ade2-32b1444fe2db_856x1202.png 848w, https://substackcdn.com/image/fetch/$s_!ZXPn!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F389527ba-ac5c-4497-ade2-32b1444fe2db_856x1202.png 1272w, https://substackcdn.com/image/fetch/$s_!ZXPn!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F389527ba-ac5c-4497-ade2-32b1444fe2db_856x1202.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>The demon has the goal of separating the particles, and choosing this goal corresponds to choosing the application-specific potential energy function <em>U</em>. The demon computes the force <strong>f</strong> required and then applies it to the gas. One can therefore see that the device that we need in Thermodynamic AI is a Maxwell&#8217;s demon.&nbsp;</p><p>Going back to Thermodynamic AI algorithms, we can provide a simple, conceptual definition of such algorithms as one consisting of at least two subroutines:</p><p>&nbsp;&nbsp;&nbsp;&nbsp;(1) A subroutine in which a stochastic differential equation (SDE) is evolved over time.</p><p>&nbsp;&nbsp;&nbsp;&nbsp;(2) A subroutine in which a Maxwell's demon observes the state variable in the SDE and applies a drift term in response.</p><p>Hence, in addition to a physical device consisting of s-units, Thermodynamic AI hardware must also include a physical device corresponding to a Maxwell&#8217;s demon.</p><h2>Computational Advantages Through Physics</h2><p>Let us highlight three key subroutines where Thermodynamic AI hardware is expected to provide a speedup or advantage over standard digital computers for Thermodynamic AI algorithms:</p><ol><li><p><strong>Generating stochasticity</strong>: Simulating random noise on a digital device is somewhat unnatural; computers expend a significant amount of energy to prepare and keep deterministic states, which become the object of all computations, including those with random subroutines. In the language of physics, the computational state of a digital computer has zero-entropy throughout any program, even for the case of generating pseudo-random noise.&nbsp; In contrast,&nbsp; Thermodynamic AI hardware is driven by noisy physical systems that produce states with non-zero entropy. The s-unit system provides stochastic noise on demand, while digital hardware would need to expend computational effort to produce such noise. Given that Modern AI algorithms are hungry for stochasticity and entropy, Thermodynamic AI hardware can provide an advantage here.&nbsp;</p></li></ol><ol start="2"><li><p><strong>Integrating dynamics</strong>: Stochastic differential equations are generally difficult to integrate digitally, as they can be numerically unstable especially in high dimensions, and they require careful scheduling of time step choices. With s-unit systems, on the other hand, there is no need to choose a time step and no instability, since the integration happens via physical evolution. In addition, digital approaches necessarily involve large matrix multiplications at every time step (e.g., computing <em>BM</em><sup>-1</sup><strong>p</strong>). In contrast, the physical evolution of s-units requires no matrix multiplications. Also, digital approaches would need to simultaneously evolve the differential equations for <strong>p</strong> and <strong>x</strong> as coupled equations. However, the physical approach taken by Thermodynamic AI hardware would have <strong>p</strong> and <strong>x </strong>corresponding to conjugate variables of the same physical system<strong>. </strong>These variables naturally evolve together over time in physical systems; this is known as phase space dynamics. For example, the figure below illustrates the phase space dynamics of a damped harmonic oscillator. Thus, no extra effort is needed to couple the <strong>p</strong> and <strong>x </strong>equations in physical systems, since they are naturally coupled.&nbsp;</p></li></ol><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!GP80!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F367ac96a-6e92-47ac-bc62-c1050ceb0204_1024x964.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!GP80!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F367ac96a-6e92-47ac-bc62-c1050ceb0204_1024x964.png 424w, https://substackcdn.com/image/fetch/$s_!GP80!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F367ac96a-6e92-47ac-bc62-c1050ceb0204_1024x964.png 848w, https://substackcdn.com/image/fetch/$s_!GP80!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F367ac96a-6e92-47ac-bc62-c1050ceb0204_1024x964.png 1272w, https://substackcdn.com/image/fetch/$s_!GP80!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F367ac96a-6e92-47ac-bc62-c1050ceb0204_1024x964.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!GP80!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F367ac96a-6e92-47ac-bc62-c1050ceb0204_1024x964.png" width="416" height="391.625" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/367ac96a-6e92-47ac-bc62-c1050ceb0204_1024x964.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:964,&quot;width&quot;:1024,&quot;resizeWidth&quot;:416,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!GP80!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F367ac96a-6e92-47ac-bc62-c1050ceb0204_1024x964.png 424w, https://substackcdn.com/image/fetch/$s_!GP80!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F367ac96a-6e92-47ac-bc62-c1050ceb0204_1024x964.png 848w, https://substackcdn.com/image/fetch/$s_!GP80!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F367ac96a-6e92-47ac-bc62-c1050ceb0204_1024x964.png 1272w, https://substackcdn.com/image/fetch/$s_!GP80!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F367ac96a-6e92-47ac-bc62-c1050ceb0204_1024x964.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><ol start="3"><li><p><strong>Computing forces</strong>: A digital computer would need to compute the gradient of the potential energy at every time step in order to obtain the force <strong>f</strong>. In contrast, Thermodynamic AI hardware could, in principle, just measure this force instead of computing it. To elaborate, a physics-based Maxwell&#8217;s demon would essentially set up a (physical) potential energy surface U(x) for the position variable <strong>x</strong>. If we assume that <strong>x</strong> and <strong>p</strong> are conjugate variables of the same physical system, namely the s-unit system, then the Maxwell&#8217;s demon is tasked with setting up the potential energy surface for this s-unit system. But once this potential energy surface is set up, the dynamics of the s-unit system will naturally happen and the force (associated with the Maxwell&#8217;s demon) will naturally occur without any additional effort. In this sense, forces are an automatic byproduct of physical potential energy surfaces, i.e., they come for free. This is illustrated in the figure below.&nbsp;</p></li></ol><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!ut6s!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F60a7fb8f-f84e-4092-a8fe-ca7e59148bbe_1576x1050.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!ut6s!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F60a7fb8f-f84e-4092-a8fe-ca7e59148bbe_1576x1050.png 424w, https://substackcdn.com/image/fetch/$s_!ut6s!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F60a7fb8f-f84e-4092-a8fe-ca7e59148bbe_1576x1050.png 848w, https://substackcdn.com/image/fetch/$s_!ut6s!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F60a7fb8f-f84e-4092-a8fe-ca7e59148bbe_1576x1050.png 1272w, https://substackcdn.com/image/fetch/$s_!ut6s!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F60a7fb8f-f84e-4092-a8fe-ca7e59148bbe_1576x1050.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!ut6s!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F60a7fb8f-f84e-4092-a8fe-ca7e59148bbe_1576x1050.png" width="522" height="347.760989010989" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/60a7fb8f-f84e-4092-a8fe-ca7e59148bbe_1576x1050.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:970,&quot;width&quot;:1456,&quot;resizeWidth&quot;:522,&quot;bytes&quot;:148985,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!ut6s!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F60a7fb8f-f84e-4092-a8fe-ca7e59148bbe_1576x1050.png 424w, https://substackcdn.com/image/fetch/$s_!ut6s!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F60a7fb8f-f84e-4092-a8fe-ca7e59148bbe_1576x1050.png 848w, https://substackcdn.com/image/fetch/$s_!ut6s!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F60a7fb8f-f84e-4092-a8fe-ca7e59148bbe_1576x1050.png 1272w, https://substackcdn.com/image/fetch/$s_!ut6s!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F60a7fb8f-f84e-4092-a8fe-ca7e59148bbe_1576x1050.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p></p><h2>A New Full-Stack Paradigm&nbsp;</h2><p>This brings us to the conclusion of this blog post. As a final remark, we mention a key technological implication of the above discussion: a single, unified, full-stack paradigm can be utilized for all Thermodynamic AI algorithms. Here is a simple schematic diagram for this full-stack perspective:&nbsp;</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!6PkL!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9e59bc2b-5803-4ed2-b270-a5b54e7400f3_815x879.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!6PkL!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9e59bc2b-5803-4ed2-b270-a5b54e7400f3_815x879.png 424w, https://substackcdn.com/image/fetch/$s_!6PkL!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9e59bc2b-5803-4ed2-b270-a5b54e7400f3_815x879.png 848w, https://substackcdn.com/image/fetch/$s_!6PkL!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9e59bc2b-5803-4ed2-b270-a5b54e7400f3_815x879.png 1272w, https://substackcdn.com/image/fetch/$s_!6PkL!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9e59bc2b-5803-4ed2-b270-a5b54e7400f3_815x879.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!6PkL!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9e59bc2b-5803-4ed2-b270-a5b54e7400f3_815x879.png" width="528" height="569.4625766871166" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/9e59bc2b-5803-4ed2-b270-a5b54e7400f3_815x879.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:879,&quot;width&quot;:815,&quot;resizeWidth&quot;:528,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" title="" srcset="https://substackcdn.com/image/fetch/$s_!6PkL!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9e59bc2b-5803-4ed2-b270-a5b54e7400f3_815x879.png 424w, https://substackcdn.com/image/fetch/$s_!6PkL!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9e59bc2b-5803-4ed2-b270-a5b54e7400f3_815x879.png 848w, https://substackcdn.com/image/fetch/$s_!6PkL!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9e59bc2b-5803-4ed2-b270-a5b54e7400f3_815x879.png 1272w, https://substackcdn.com/image/fetch/$s_!6PkL!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9e59bc2b-5803-4ed2-b270-a5b54e7400f3_815x879.png 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg role="img" width="20" height="20" viewBox="0 0 20 20" fill="none" stroke-width="1.5" stroke="var(--color-fg-primary)" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><g><title></title><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>The stack is composed of a digital layer and a physical analog layer. At the top of the stack are applications and software, which will ultimately be used to program the hardware. Below the software layer is a training and optimization layer, whose job is to train the Entropy Regulator. Here we use the technical term Entropy Regulator in place of the casual term Maxwell&#8217;s demon that we used above. The Entropy Regulator is one component of the physical analog stack, and its job is to regulate the entropy of the stochastic unit system. The Entropy Regulator acts to guide the stochastic process in the right direction to solve the problem of interest. At the bottom of the stack is the stochastic unit system, which is analog hardware consisting of s-units evolving over time according to stochastic differential equations, as we describe above.</p><h2>Conclusion</h2><p>We hope this post stimulates discussion around Thermodynamic AI, including concepts like viewing stochasticity as a resource, and viewing AI algorithms from the lens of physics.&nbsp;</p><p>Stay tuned for more about how we&#8217;re building out this future at Normal Computing &#8212; join our <a href="https://normalcomputing.ai">waitlist</a> for the Normal Computing AI platform! </p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://normalcomputing.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Normal&#8217;s Substack! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><div><hr></div><h2>References</h2><p>[1] Hinton, G. (2022). The forward-forward algorithm: Some preliminary investigations. arXiv preprint arXiv:2212.13345.</p><p>[2] Goan, E., &amp; Fookes, C. (2020). Bayesian neural networks: An introduction and survey. <em>Case Studies in Applied Bayesian Data Science: CIRM Jean-Morlet Chair, Fall 2018</em>, 45-87.</p><p>[3] Ho, J., Jain, A., &amp; Abbeel, P. (2020). Denoising diffusion probabilistic models. <em>Advances in Neural Information Processing Systems</em>, <em>33</em>, 6840-6851.&nbsp;</p><p>[4] Corso, G., St&#228;rk, H., Jing, B., Barzilay, R., &amp; Jaakkola, T. (2022). Diffdock: Diffusion steps, twists, and turns for molecular docking. <em>arXiv preprint arXiv:2210.01776</em>.&nbsp;</p><p>[5] Wu, K. E., Yang, K. K., Berg, R. V. D., Zou, J. Y., Lu, A. X., &amp; Amini, A. P. (2022). Protein structure generation via folding diffusion. <em>arXiv preprint arXiv:2209.15611</em>.</p><p>[6] Xie, T., Fu, X., Ganea, O. E., Barzilay, R., &amp; Jaakkola, T. (2021). Crystal diffusion variational autoencoder for periodic material generation. <em>arXiv preprint arXiv:2110.06197</em>.</p><p>[7] Izmailov, P., Vikram, S., Hoffman, M. D., &amp; Wilson, A. G. G. (2021). What are Bayesian neural network posteriors really like?. <em>International conference on machine learning</em>, 4629-4640.</p><p>[8] Knill, E., Laflamme R., Barnum, H. N., Dalvit, D. A., Dziarmaga, J.&nbsp; J., Gubernatis, J. E., Gurvits, L., Ortiz, G., Viola, L., and Zurek, W. H. (2002). "Quantum Information Processing: A hands-on primer." Los Alamos Science, no. 27.</p><p>[9] Camsari, K. Y., Sutton, B. M., &amp; Datta, S. (2019). P-bits for probabilistic spin logic. <em>Applied Physics Reviews</em>, <em>6</em>(1), 011305.</p><p>[10] Chou, J., Bramhavar, S., Ghosh, S., &amp; Herzog, W. (2019). Analog coupled oscillator based weighted Ising machine. <em>Scientific reports</em>, <em>9</em>(1), 14786.</p><p>[11] Camsari, K. Y., Faria, R., Sutton, B. M., &amp; Datta, S. (2017). Stochastic p-bits for Invertible Logic. <em>Physical Review X</em>, <em>7</em>, 031014.</p><p>[12] Aadit, N. A., Grimaldi, A., Carpentieri, M., Theogarajan, L., Martinis, J. M., Finocchio, G., &amp; Camsari, K. Y. (2022). Massively parallel probabilistic computing with sparse Ising machines. <em>Nature Electronics</em>, <em>5</em>(7), 460-468.</p><p>[13] Preskill, J. (2012). Quantum computing and the entanglement frontier. <em>arXiv preprint arXiv:1203.5813</em>.</p><p>[14] Nielsen, M. A., &amp; Chuang, I. L. (2011). <em>Quantum Computation and Quantum Information: 10th Anniversary Edition</em>. Cambridge University Press.</p><p>[15] Amin, M. H., Andriyash, E., Rolfe, J., Kulchytskyy, B., &amp; Melko, R. (2018). Quantum boltzmann machine. <em>Physical Review X</em>, <em>8</em>(2), 021050.</p><p>[16] King, A. D., Suzuki, S., Raymond, J., Zucca, A., Lanting, T., Altomare, F., ... &amp; Amin, M. H. (2022). Coherent quantum annealing in a programmable 2,000 qubit Ising chain. <em>Nature Physics</em>, <em>18</em>(11), 1324-1328.</p><p>[17] Wright, L. G., Onodera, T., Stein, M. M., Wang, T., Schachter, D. T., Hu, Z., &amp; McMahon, P. L. (2022). Deep physical neural networks trained with backpropagation. <em>Nature</em>, <em>601</em>(7894), 549-555.</p><p>[18] Some implementations of p-bits are inherently stochastic<sup>[9][11]</sup>, although in this case, the stochasticity is not the end goal but rather a means to create a stream of random bits for p-bit construction.</p><p>[19] Stochastic fluctuations naturally occur in thermodynamics, and hence this explains our coining of the term Thermodynamic AI.</p><p>[20] Mansinghka, V. K. (2009). Natively Probabilistic Computation. Ph.D. Thesis, Citeseer.</p><p>[21] We remark that digital stochastic circuits were previously considered<sup>[20]</sup>, although that differs from our analog approach.</p><p>[22] Horowitz, P., Hill, W., (2015). <em>The art of electronics; 3rd ed.</em>. Cambridge University Press.</p><p>[23] Neal, R. M. (2011). MCMC using Hamiltonian dynamics. Handbook of markov chain monte carlo, 2(11), 2.</p><p>[24] Vidrighin, M. D., Dahlsten, O., Barbieri, M., Kim, M. S., Vedral, V., &amp; Walmsley, I. A. (2016). Photonic Maxwell&#8217;s demon. <em>Physical review letters</em>, <em>116</em>(5), 050401.</p><p>[25] Lloyd, S. (1997). Quantum-mechanical Maxwell&#8217;s demon. <em>Physical Review A</em>, <em>56</em>(5), 3374.</p><p>[26] Kish LB &amp; Granqvist C.-G., (2012). Electrical Maxwell Demon and Szilard Engine Utilizing Johnson Noise, Measurement, Logic and Control. PLoS ONE 7(10): e46800.</p><p></p>]]></content:encoded></item><item><title><![CDATA[Coming soon]]></title><description><![CDATA[This is Normal Thermo Research.]]></description><link>https://normalcomputing.substack.com/p/coming-soon</link><guid isPermaLink="false">https://normalcomputing.substack.com/p/coming-soon</guid><dc:creator><![CDATA[Normal Computing Research]]></dc:creator><pubDate>Fri, 10 Feb 2023 16:35:19 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!1PqE!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1d4c8be1-d1fd-47c3-8889-dbf38c141394_400x400.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>This is Normal Thermo Research.</p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://normalcomputing.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe now&quot;,&quot;action&quot;:null,&quot;class&quot;:null}" data-component-name="ButtonCreateButton"><a class="button primary" href="https://normalcomputing.substack.com/subscribe?"><span>Subscribe now</span></a></p>]]></content:encoded></item></channel></rss>