<?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[Models and Metrics]]></title><description><![CDATA[Qualitative and quantitative insights in Artificial Intelligence for leaders in tech.]]></description><link>https://www.modelsandmetrics.com</link><image><url>https://www.modelsandmetrics.com/img/substack.png</url><title>Models and Metrics</title><link>https://www.modelsandmetrics.com</link></image><generator>Substack</generator><lastBuildDate>Tue, 05 May 2026 09:01:38 GMT</lastBuildDate><atom:link href="https://www.modelsandmetrics.com/feed" rel="self" type="application/rss+xml"/><copyright><![CDATA[Editor]]></copyright><language><![CDATA[en]]></language><webMaster><![CDATA[modelsandmetrics@substack.com]]></webMaster><itunes:owner><itunes:email><![CDATA[modelsandmetrics@substack.com]]></itunes:email><itunes:name><![CDATA[Ayush Kumar]]></itunes:name></itunes:owner><itunes:author><![CDATA[Ayush Kumar]]></itunes:author><googleplay:owner><![CDATA[modelsandmetrics@substack.com]]></googleplay:owner><googleplay:email><![CDATA[modelsandmetrics@substack.com]]></googleplay:email><googleplay:author><![CDATA[Ayush Kumar]]></googleplay:author><itunes:block><![CDATA[Yes]]></itunes:block><item><title><![CDATA[Metabolic Health and The Future of Personalized Medicine]]></title><description><![CDATA[What gets measured gets managed.]]></description><link>https://www.modelsandmetrics.com/p/metabolic-health-and-the-future-of</link><guid isPermaLink="false">https://www.modelsandmetrics.com/p/metabolic-health-and-the-future-of</guid><dc:creator><![CDATA[Ayush Kumar]]></dc:creator><pubDate>Fri, 26 Sep 2025 07:23:43 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/b03d116b-e26f-4337-a9f3-d9c1f3eef859_1456x1048.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>I wore a Continuous Glucose Monitoring (CGM) device for two weeks to see what my blood sugar was actually doing. The data from the Abbott Lingo app sent me down a rabbit hole about metabolic health, and I ended up doing my own data analysis to better understand how my body handles sugar.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!mE70!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c8f6167-dd9d-4cc0-9808-9af08ba7b286_1080x720.webp" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!mE70!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c8f6167-dd9d-4cc0-9808-9af08ba7b286_1080x720.webp 424w, https://substackcdn.com/image/fetch/$s_!mE70!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c8f6167-dd9d-4cc0-9808-9af08ba7b286_1080x720.webp 848w, https://substackcdn.com/image/fetch/$s_!mE70!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c8f6167-dd9d-4cc0-9808-9af08ba7b286_1080x720.webp 1272w, https://substackcdn.com/image/fetch/$s_!mE70!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c8f6167-dd9d-4cc0-9808-9af08ba7b286_1080x720.webp 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!mE70!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c8f6167-dd9d-4cc0-9808-9af08ba7b286_1080x720.webp" width="1080" height="720" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/2c8f6167-dd9d-4cc0-9808-9af08ba7b286_1080x720.webp&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:720,&quot;width&quot;:1080,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:123784,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/webp&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://www.modelsandmetrics.com/i/172983447?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c8f6167-dd9d-4cc0-9808-9af08ba7b286_1080x720.webp&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!mE70!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c8f6167-dd9d-4cc0-9808-9af08ba7b286_1080x720.webp 424w, https://substackcdn.com/image/fetch/$s_!mE70!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c8f6167-dd9d-4cc0-9808-9af08ba7b286_1080x720.webp 848w, https://substackcdn.com/image/fetch/$s_!mE70!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c8f6167-dd9d-4cc0-9808-9af08ba7b286_1080x720.webp 1272w, https://substackcdn.com/image/fetch/$s_!mE70!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F2c8f6167-dd9d-4cc0-9808-9af08ba7b286_1080x720.webp 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>For the first five days, I was hyper-aware that my glucose was being tracked. I ate cleaner, exercised more deliberately, and paid attention to my sleep. This mirrors the &#8220;<a href="https://www.topendsports.com/weight-loss/diets/flash.htm">Flash Diet</a>&#8221; phenomenon where dieters photograph their food before eating. The act of documenting forces mindfulness, making it easier to skip the late-night snack or say no to the second serving. </p><p>After day five, the novelty wore off and my habits returned to normal.</p><h2><strong>What Even is Metabolic Health?</strong></h2><p>Metabolic health is how well your body turns food into energy without letting blood sugar, cholesterol, or fat storage get out of balance. After you eat, carbohydrates break down into glucose, which enters your bloodstream. Your pancreas responds by releasing insulin, a hormone that acts like a key, unlocking your cells so glucose can enter and be used for energy. When this system works well, blood sugar rises modestly after meals and then returns to baseline. Exercise and stress can also trigger temporary spikes because your liver releases stored glucose to fuel your muscles or prepare for a &#8220;fight or flight&#8221; response.</p><p>A continuous glucose monitor (CGM) is a small sensor inserted under the skin that tracks blood sugar in real time every few minutes. It doesn&#8217;t measure insulin directly, but it shows how your body responds throughout the day to meals, workouts, sleep, and stress. This type of device is commonly used by diabetic patients who need to manage their insulin carefully and provides a much more real-time, digital, and safer alternative to the finger-prick machines that have been around for decades.</p><pre><code><strong>&#128142; Mighty Metric: </strong>Hemoglobin A1C<strong>

</strong>An HbA1c blood test measures the percentage of hemoglobin in red blood cells that has sugar attached. Since red blood cells live for about three months, the HbA1c reflects your average blood sugar over that time.

For a healthy adult, an HbA1c below 5.7% is considered normal. From 5.7% to 6.4% puts you in the pre-diabetic range. Anything over 6.5% is diagnosed as diabetes.</code></pre><h2>Diving into the Data</h2><p>Now for the interesting part: what my body actually revealed.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!H_AQ!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F32764c49-fb24-40de-b7f2-410fb4dc0c2c_2779x1578.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!H_AQ!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F32764c49-fb24-40de-b7f2-410fb4dc0c2c_2779x1578.png 424w, https://substackcdn.com/image/fetch/$s_!H_AQ!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F32764c49-fb24-40de-b7f2-410fb4dc0c2c_2779x1578.png 848w, https://substackcdn.com/image/fetch/$s_!H_AQ!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F32764c49-fb24-40de-b7f2-410fb4dc0c2c_2779x1578.png 1272w, https://substackcdn.com/image/fetch/$s_!H_AQ!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F32764c49-fb24-40de-b7f2-410fb4dc0c2c_2779x1578.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!H_AQ!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F32764c49-fb24-40de-b7f2-410fb4dc0c2c_2779x1578.png" width="1456" height="827" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/32764c49-fb24-40de-b7f2-410fb4dc0c2c_2779x1578.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:827,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:552106,&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;:&quot;https://www.modelsandmetrics.com/i/172983447?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F32764c49-fb24-40de-b7f2-410fb4dc0c2c_2779x1578.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!H_AQ!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F32764c49-fb24-40de-b7f2-410fb4dc0c2c_2779x1578.png 424w, https://substackcdn.com/image/fetch/$s_!H_AQ!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F32764c49-fb24-40de-b7f2-410fb4dc0c2c_2779x1578.png 848w, https://substackcdn.com/image/fetch/$s_!H_AQ!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F32764c49-fb24-40de-b7f2-410fb4dc0c2c_2779x1578.png 1272w, https://substackcdn.com/image/fetch/$s_!H_AQ!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F32764c49-fb24-40de-b7f2-410fb4dc0c2c_2779x1578.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>According to <a href="https://diabetesjournals.org/care/article/42/8/1593/36184/Clinical-Targets-for-Continuous-Glucose-Monitoring">clinical guidelines</a>, you should try to keep your glucose within the 70-140 mg/dL range throughout the day (shown as dotted lines in the chart). Excursions outside this zone are normal but should be minimized.</p><h3><strong>1. Glycemic Variability</strong></h3><p>My mean glucose over the two weeks was 93.1 mg/dL with a standard deviation (SD) of 16.9 mg/dL. While mean and SD give a basic measure of variability, there&#8217;s a better metric for my individual baseline: the Coefficient of Variability (CV).</p><pre><code>Coefficient of Variability (CV) = Standard Deviation (SD) / Mean &#215; 100</code></pre><p>My CV came out to 18.1%. The <a href="https://diabetesjournals.org/care/article/42/8/1593/36184/Clinical-Targets-for-Continuous-Glucose-Monitoring">International consensus on CGM</a> sets CV &lt;36% as the target for stable glucose control. However, <a href="https://pmc.ncbi.nlm.nih.gov/articles/PMC3160264/">research</a> on people with normal glucose metabolism shows reference ranges of SD = 7.9-24.8 mg/dL and CV = 7.74%-22.45% so my numbers fall comfortably within the healthy range.</p><h3><strong>2. Time in Range Analysis</strong></h3><p>Time in Range (TIR) is one of the most intuitive and actionable metrics from CGM data. For people without diabetes, the <a href="https://diabetesjournals.org/care/article/42/8/1593/36184/Clinical-Targets-for-Continuous-Glucose-Monitoring">target range</a> is typically 70-140 mg/dL. My results showed 95.6% time in range, 2.1% above range, and 2.3% below range. <a href="https://academic.oup.com/jcem/article/110/4/1128/7754867?login=false">Large-scale studies</a> show that normoglycemic adults spend about 87% of their time in this range so my tighter control probably reflects the initial mindfulness during the first week of wearing the device.</p><p>Dr. Andrew Huberman, in his <a href="https://www.youtube.com/watch?v=XD1y3LhMk5k">podcast with Dr. Casey Means</a>, discusses how the goal with CGM use should be keeping glucose within this healthy range as much as possible throughout the day rather than chasing perfectly flat readings. <em>This single metric can have the biggest effect on your overall metabolic health.</em></p><h3>3. Mean Amplitude of Glycemic Excursions (MAGE)</h3><p>MAGE is a more nuanced measure of glycemic variability. Instead of looking at all fluctuations, it focuses on the size of major glucose swings. The metric was introduced by <a href="https://diabetesjournals.org/diabetes/article/19/9/644/3599/Mean-Amplitude-of-Glycemic-Excursions-a-Measure-of">Service et al.</a> in 1970 as a measure of &#8220;diabetic instability&#8221; and has since become a standard way to quantify how well your body regulates glucose.</p><pre><code><strong>MAGE Algorithm</strong> 

1. Smooth lightly (5-point centered rolling mean) to reduce sensor noise.

2. Find all local maxima/minima via sign changes in the first derivative.

3. Build consecutive peak/nadir pairs (yellow Xs in image)

4. Keep only excursions with amplitude &#8805; 1&#215; SD of the whole series (red Xs in image)

5. Calculate the mean amplitude of those kept pairs = MAGE.</code></pre><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!s-VO!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3576ede1-24f8-490a-94ec-c6865f8269a2_2779x1979.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!s-VO!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3576ede1-24f8-490a-94ec-c6865f8269a2_2779x1979.png 424w, https://substackcdn.com/image/fetch/$s_!s-VO!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3576ede1-24f8-490a-94ec-c6865f8269a2_2779x1979.png 848w, https://substackcdn.com/image/fetch/$s_!s-VO!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3576ede1-24f8-490a-94ec-c6865f8269a2_2779x1979.png 1272w, https://substackcdn.com/image/fetch/$s_!s-VO!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3576ede1-24f8-490a-94ec-c6865f8269a2_2779x1979.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!s-VO!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3576ede1-24f8-490a-94ec-c6865f8269a2_2779x1979.png" width="1456" height="1037" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/3576ede1-24f8-490a-94ec-c6865f8269a2_2779x1979.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1037,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:588154,&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;:&quot;https://www.modelsandmetrics.com/i/172983447?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3576ede1-24f8-490a-94ec-c6865f8269a2_2779x1979.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!s-VO!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3576ede1-24f8-490a-94ec-c6865f8269a2_2779x1979.png 424w, https://substackcdn.com/image/fetch/$s_!s-VO!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3576ede1-24f8-490a-94ec-c6865f8269a2_2779x1979.png 848w, https://substackcdn.com/image/fetch/$s_!s-VO!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3576ede1-24f8-490a-94ec-c6865f8269a2_2779x1979.png 1272w, https://substackcdn.com/image/fetch/$s_!s-VO!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3576ede1-24f8-490a-94ec-c6865f8269a2_2779x1979.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 key insight is that MAGE measures how big your average &#8220;big&#8221; spike is. This differs from CV or Time in Range because it doesn&#8217;t aggregate all readings. <a href="https://pmc.ncbi.nlm.nih.gov/articles/PMC5524064/">According to the literature</a>, MAGE values in patients without diabetes are nearly 30 to 40 mg/dL, while diabetic patients often see values over 60 mg/dL. My MAGE for the two-week period was ~38 mg/dL, placing me at the upper end of the healthy range but well below concerning levels. Higher MAGE suggests the body struggles to return glucose to baseline smoothly, while lower MAGE indicates more effective regulation.</p><h3>4. Mapping Daily Volatility</h3><p>Now that I understood my overall performance, I wanted to see if the data captured my day-to-day routine and whether any obvious patterns emerged. I started with a heatmap.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!Nfvs!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd0d8ee55-6373-4240-8fa8-d7a34d295e93_2334x1979.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!Nfvs!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd0d8ee55-6373-4240-8fa8-d7a34d295e93_2334x1979.png 424w, https://substackcdn.com/image/fetch/$s_!Nfvs!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd0d8ee55-6373-4240-8fa8-d7a34d295e93_2334x1979.png 848w, https://substackcdn.com/image/fetch/$s_!Nfvs!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd0d8ee55-6373-4240-8fa8-d7a34d295e93_2334x1979.png 1272w, https://substackcdn.com/image/fetch/$s_!Nfvs!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd0d8ee55-6373-4240-8fa8-d7a34d295e93_2334x1979.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!Nfvs!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd0d8ee55-6373-4240-8fa8-d7a34d295e93_2334x1979.png" width="1456" height="1235" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/d0d8ee55-6373-4240-8fa8-d7a34d295e93_2334x1979.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1235,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:208096,&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;:&quot;https://www.modelsandmetrics.com/i/172983447?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd0d8ee55-6373-4240-8fa8-d7a34d295e93_2334x1979.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!Nfvs!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd0d8ee55-6373-4240-8fa8-d7a34d295e93_2334x1979.png 424w, https://substackcdn.com/image/fetch/$s_!Nfvs!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd0d8ee55-6373-4240-8fa8-d7a34d295e93_2334x1979.png 848w, https://substackcdn.com/image/fetch/$s_!Nfvs!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd0d8ee55-6373-4240-8fa8-d7a34d295e93_2334x1979.png 1272w, https://substackcdn.com/image/fetch/$s_!Nfvs!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd0d8ee55-6373-4240-8fa8-d7a34d295e93_2334x1979.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 most obvious finding is that nighttime glucose levels are significantly lower and more stable compared to daytime levels. This aligns with clinical literature and common sense since my body isn&#8217;t using much glucose while I&#8217;m asleep.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!ZWlN!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F080e276f-908b-41c8-9542-5886136a51a5_2379x1180.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!ZWlN!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F080e276f-908b-41c8-9542-5886136a51a5_2379x1180.png 424w, https://substackcdn.com/image/fetch/$s_!ZWlN!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F080e276f-908b-41c8-9542-5886136a51a5_2379x1180.png 848w, https://substackcdn.com/image/fetch/$s_!ZWlN!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F080e276f-908b-41c8-9542-5886136a51a5_2379x1180.png 1272w, https://substackcdn.com/image/fetch/$s_!ZWlN!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F080e276f-908b-41c8-9542-5886136a51a5_2379x1180.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!ZWlN!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F080e276f-908b-41c8-9542-5886136a51a5_2379x1180.png" width="1456" height="722" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/080e276f-908b-41c8-9542-5886136a51a5_2379x1180.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:722,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:307801,&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;:&quot;https://www.modelsandmetrics.com/i/172983447?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F080e276f-908b-41c8-9542-5886136a51a5_2379x1180.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!ZWlN!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F080e276f-908b-41c8-9542-5886136a51a5_2379x1180.png 424w, https://substackcdn.com/image/fetch/$s_!ZWlN!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F080e276f-908b-41c8-9542-5886136a51a5_2379x1180.png 848w, https://substackcdn.com/image/fetch/$s_!ZWlN!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F080e276f-908b-41c8-9542-5886136a51a5_2379x1180.png 1272w, https://substackcdn.com/image/fetch/$s_!ZWlN!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F080e276f-908b-41c8-9542-5886136a51a5_2379x1180.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>In this plot, I show the average glucose at any given time across the two weeks, along with one standard deviation for variance. The daily pattern becomes clearer- my body keeps fasting glucose consistent within a desirable range of 85-100 mg/dL from midnight to 6am. From 6am to 10am, there&#8217;s a slow but very consistent rise without much variation since I don&#8217;t eat during this period. From 11am to 9pm, I&#8217;m eating meals and exercising, so glucose rises and falls with high variation. The meal times weren&#8217;t consistent, nor were the foods I ate, so the high variation makes sense.</p><p></p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://www.modelsandmetrics.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 Models and Metrics! 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><p></p><h3>5. Chasing the Dawn Effect</h3><p>One phenomenon I was particularly curious about was the Dawn Effect.</p><p>Normally, while you sleep, your body keeps blood sugar steady, which I could see in my data. But just before waking up (around 4&#8211;6am), certain hormones like cortisol and growth hormone kick in and tell the liver to release stored sugar into the blood, so you have energy to start the day. <a href="https://diabetes.org/living-with-diabetes/high-morning-blood-glucose">This is the Dawn Effect</a>.</p><p>I usually wake up around 6am, so I looked at the raw data in the 4-7am window. The rises are there but inconsistent and noisy, making it hard to pinpoint the actual rise or quantify it.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!CzMp!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0edbee6f-1cf1-4059-a612-89cea5612c66_2379x1180.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!CzMp!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0edbee6f-1cf1-4059-a612-89cea5612c66_2379x1180.png 424w, https://substackcdn.com/image/fetch/$s_!CzMp!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0edbee6f-1cf1-4059-a612-89cea5612c66_2379x1180.png 848w, https://substackcdn.com/image/fetch/$s_!CzMp!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0edbee6f-1cf1-4059-a612-89cea5612c66_2379x1180.png 1272w, https://substackcdn.com/image/fetch/$s_!CzMp!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0edbee6f-1cf1-4059-a612-89cea5612c66_2379x1180.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!CzMp!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0edbee6f-1cf1-4059-a612-89cea5612c66_2379x1180.png" width="1456" height="722" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/0edbee6f-1cf1-4059-a612-89cea5612c66_2379x1180.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:722,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:418058,&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;:&quot;https://www.modelsandmetrics.com/i/172983447?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0edbee6f-1cf1-4059-a612-89cea5612c66_2379x1180.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!CzMp!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0edbee6f-1cf1-4059-a612-89cea5612c66_2379x1180.png 424w, https://substackcdn.com/image/fetch/$s_!CzMp!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0edbee6f-1cf1-4059-a612-89cea5612c66_2379x1180.png 848w, https://substackcdn.com/image/fetch/$s_!CzMp!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0edbee6f-1cf1-4059-a612-89cea5612c66_2379x1180.png 1272w, https://substackcdn.com/image/fetch/$s_!CzMp!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0edbee6f-1cf1-4059-a612-89cea5612c66_2379x1180.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><strong>First attempt: too noisy.</strong> Since the human body isn&#8217;t perfectly calibrated, the timing of the dip and peak don&#8217;t align naturally across days. Comparing the delta before and after 6am didn&#8217;t show a strong signal. Instead, I anchored each day&#8217;s trend line to the minimum glucose value within the pre-wakeup window (3-5am), aligning them at the same relative timestamp.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!VYMK!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffe575e37-242a-4018-b71a-e7226cf496ab_2379x1180.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!VYMK!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffe575e37-242a-4018-b71a-e7226cf496ab_2379x1180.png 424w, https://substackcdn.com/image/fetch/$s_!VYMK!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffe575e37-242a-4018-b71a-e7226cf496ab_2379x1180.png 848w, https://substackcdn.com/image/fetch/$s_!VYMK!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffe575e37-242a-4018-b71a-e7226cf496ab_2379x1180.png 1272w, https://substackcdn.com/image/fetch/$s_!VYMK!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffe575e37-242a-4018-b71a-e7226cf496ab_2379x1180.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!VYMK!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffe575e37-242a-4018-b71a-e7226cf496ab_2379x1180.png" width="1456" height="722" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/fe575e37-242a-4018-b71a-e7226cf496ab_2379x1180.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:722,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:444184,&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;:&quot;https://www.modelsandmetrics.com/i/172983447?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffe575e37-242a-4018-b71a-e7226cf496ab_2379x1180.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!VYMK!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffe575e37-242a-4018-b71a-e7226cf496ab_2379x1180.png 424w, https://substackcdn.com/image/fetch/$s_!VYMK!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffe575e37-242a-4018-b71a-e7226cf496ab_2379x1180.png 848w, https://substackcdn.com/image/fetch/$s_!VYMK!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffe575e37-242a-4018-b71a-e7226cf496ab_2379x1180.png 1272w, https://substackcdn.com/image/fetch/$s_!VYMK!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ffe575e37-242a-4018-b71a-e7226cf496ab_2379x1180.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><strong>Second attempt: better alignment.</strong> The trend became somewhat clearer, so I used mean and standard deviation to aggregate the data and see if there&#8217;s a consistent rise from the minimum.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!12pe!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd9ec3fed-a3d6-43d0-8c91-2566aa9222a5_2379x1180.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!12pe!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd9ec3fed-a3d6-43d0-8c91-2566aa9222a5_2379x1180.png 424w, https://substackcdn.com/image/fetch/$s_!12pe!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd9ec3fed-a3d6-43d0-8c91-2566aa9222a5_2379x1180.png 848w, https://substackcdn.com/image/fetch/$s_!12pe!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd9ec3fed-a3d6-43d0-8c91-2566aa9222a5_2379x1180.png 1272w, https://substackcdn.com/image/fetch/$s_!12pe!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd9ec3fed-a3d6-43d0-8c91-2566aa9222a5_2379x1180.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!12pe!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd9ec3fed-a3d6-43d0-8c91-2566aa9222a5_2379x1180.png" width="1456" height="722" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/d9ec3fed-a3d6-43d0-8c91-2566aa9222a5_2379x1180.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:722,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:204850,&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;:&quot;https://www.modelsandmetrics.com/i/172983447?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd9ec3fed-a3d6-43d0-8c91-2566aa9222a5_2379x1180.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="https://substackcdn.com/image/fetch/$s_!12pe!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd9ec3fed-a3d6-43d0-8c91-2566aa9222a5_2379x1180.png 424w, https://substackcdn.com/image/fetch/$s_!12pe!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd9ec3fed-a3d6-43d0-8c91-2566aa9222a5_2379x1180.png 848w, https://substackcdn.com/image/fetch/$s_!12pe!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd9ec3fed-a3d6-43d0-8c91-2566aa9222a5_2379x1180.png 1272w, https://substackcdn.com/image/fetch/$s_!12pe!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd9ec3fed-a3d6-43d0-8c91-2566aa9222a5_2379x1180.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><strong>Final result: there it is!</strong> There&#8217;s a clear upward slope, and the difference from nadir to peak is ~10 mg/dL, which matches what <a href="https://pmc.ncbi.nlm.nih.gov/articles/PMC3836163/">clinical studies</a> suggest for the dawn effect. </p><p>The wide variance band reflects normal day-to-day fluctuations rather than measurement error. <a href="https://pmc.ncbi.nlm.nih.gov/articles/PMC3836163/">Studies</a> show median inter-day differences of 15 mg/dL are typical. My 3-5am window for finding the minimum also aligns with the <a href="https://pubmed.ncbi.nlm.nih.gov/6389230/">physiology research</a>, as hormones like cortisol and epinephrine surge from nocturnal nadirs between 4:00 and 6:30 a.m.</p><p>While the hormonal processes behind the dawn effect occur in most people, healthy individuals compensate with insulin secretion to prevent sustained hyperglycemia. The pronounced effect is primarily seen in diabetic patients and my mild rise followed by stabilization suggests normal metabolic function.</p><h2>Conclusion</h2><p>Overall, CGMs are an excellent tool for finding problems in your diet and fixing them proactively. During my two-week experiment, I noticed that red grapes caused a much larger spike compared to blueberries or blackberries despite the published <a href="https://www.healthcentral.com/condition/diabetes/low-glycemic-fruits">Glycemic Index (GI) data</a>. This highlights why individual testing matters more than population averages.</p><pre><code>&#127815; Key Takeaway

Red grapes (GI: 43-59) and blueberries (GI: 53) should theoretically cause similar spikes, but my body responded very differently to red grapes with much larger relative spikes in blood glucose.</code></pre><p>What interests me is the broader potential of this technology at scale.</p><p>CGM companies like <a href="https://diabetesjournals.org/clinical/article/42/4/540/157065/The-Dexcom-Community-Glucose-Monitoring-Project-6">Dexcom</a> and Abbott publish <a href="https://pmc.ncbi.nlm.nih.gov/articles/PMC7957382/">studies</a> showing how device features correlate with improved A1C levels and time-in-range metrics. Wellness companies like <a href="https://ouraring.com/blog/oura-in-research/">Oura</a> and WHOOP have demonstrated early illness detection capabilities, identifying COVID-19 infections up to 2.5 days before symptom onset through continuous biometric monitoring. The future of personalized medicine lies not only in aggregating population health data for trends but in learning from millions of individuals at scale, then applying those insights to optimize interventions for each person.</p><p>This is something I&#8217;ve seen in action with <a href="https://cosmos.epic.com/">Epic&#8217;s Cosmos</a>. Their &#8220;Best Care Choices For My Patient&#8221; tool allows physicians to see how similar patients responded to specific treatments. For instance, when treating a newly diagnosed hypertension patient, a doctor can view real-world outcomes from the 274 million patient dataset based on age, comorbidities, and previous treatments, rather than relying solely on general guidelines.</p><p>Until that future arrives at scale, if you&#8217;re interested in an in-depth analysis of your own CGM data, reach out and I&#8217;ll show you how to better understand your numbers and optimize your health.</p><p></p><div class="directMessage button" data-attrs="{&quot;userId&quot;:193459811,&quot;userName&quot;:&quot;Ayush Kumar&quot;,&quot;canDm&quot;:null,&quot;dmUpgradeOptions&quot;:null,&quot;isEditorNode&quot;:true}" data-component-name="DirectMessageToDOM"></div>]]></content:encoded></item><item><title><![CDATA[Master of all Trades]]></title><description><![CDATA[Why Mixture of Experts (MoE) might be the best architecture to mimic the Human Brain and achieve Artificial General Intelligence.]]></description><link>https://www.modelsandmetrics.com/p/master-of-all-trades</link><guid isPermaLink="false">https://www.modelsandmetrics.com/p/master-of-all-trades</guid><dc:creator><![CDATA[Ayush Kumar]]></dc:creator><pubDate>Sat, 13 Apr 2024 18:41:34 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/08041a04-1ea2-4ebf-a933-d83fb54fecd3_1456x1048.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Innovation occurs in waves. In the current wave of artificial intelligence, one particular architecture of neural networks has created ripples: the Mixture of Experts. Many companies and open-source projects have adopted this framework to launch a variety of new foundational models such as Mixtral, Grok-1, DBRX, Jamba, and many more. In fact, there are even rumors that OpenAI&#8217;s GPT-4 is based on a Mixture of Experts architecture. While the principle behind this architecture is not new&#8212;it was first proposed in the early 1990s&#8212;its resurgence and popularity might help predict the future of artificial intelligence. </p><p></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://www.modelsandmetrics.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://www.modelsandmetrics.com/subscribe?"><span>Subscribe now</span></a></p><p>     </p><p>The intuition behind Mixture of Experts is a simple divide and conquer algorithm. Break down a problem into specific sub-problems; assign tasks to &#8220;experts&#8221; best designed to solve those sub-problems and efficiently combine the results into a final answer. While Adam Smith may have been the first to observe how specialization leads to higher productivity in economics, the concept of division of labor is an integral part of human biology. In some sense, our brain is also a mixture of experts&#8212; consisting of several specialized structures, each one responsible for a specific function while working together to give life to the human experience.</p><p>     </p><p>When you touch the back of your head at the spot where you feel a bump, you are touching the area directly above your occipital lobe. This lobe is one of the four primary segments of the gray matter, or cortex, within your brain, which also includes the Frontal, Parietal, and Temporal lobes. Each of these lobes is tasked with performing specialized functions: decision-making, interpreting sensory information, visualizing images, and understanding spoken language. Similarly, a Mixture of Experts model comprises smaller expert models&#8212;typically eight&#8212;combined together through a "router" which takes the model inputs, selects the appropriate experts, and then produces the final output. This router acts similarly to the Thalamus, which is considered the "relay station" of the brain, connecting sensory nerves to the correct parts of the cortex and carrying return signals to the rest of the body.</p><p>     </p><pre><code>&#128142; <strong>Mighty Metric</strong>

There are roughly 100 billion neurons in the Human Brain. By comparison, Google's Switch Transformer (one of the largest MoE models) has 1.6 trillion parameters!</code></pre><p>     </p><p>The similarities between artificial intelligence models and the human brain don&#8217;t stop at the functional hierarchy of their components. In fact, the fundamental building blocks of all modern AI models are based on a simple processing unit: neurons. Layers of neurons make up a neural network, which is an efficient way to meaningfully represent inputs, store relationships between those inputs, and perform complex mathematical operations. What is commonly referred to as "learning" is simply the process of changing the relationships based on large amounts of training data. Obviously, neurons in computers are inspired by the neurons in our brains, which are living cells and perform a series of electrochemical processes to communicate with other neurons. In our brain, the learning process is continuous but similar&#8212;neurons that consistently communicate with each other form a stronger relationship. Indeed, neurons that fire together wire together.</p><p>     </p><p>While neural networks have been around for a long time and have shown great improvements in performance through different architectures and parameter sizes, Mixture of Experts models add new layers of sophistication beyond basic biology. From a cognitive science perspective, this architecture can be seen as an implementation of a key framework to describe human consciousness&#8212;the Global Workspace Theory. The theory tries to explain the properties of consciousness, whether human or non-human, and lists a set of indicators that are necessary for a system to be considered conscious. From the properties listed in table below, one can see that the Mixture of Experts takes a giant leap towards making artificial intelligence more than just fancy number crunching and set the stage for Artificial General Intelligence.</p><p>    </p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="https://substackcdn.com/image/fetch/$s_!yQc7!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcb0712c1-2a2f-4350-ae33-56007be94eeb_2224x620.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!yQc7!,w_424,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcb0712c1-2a2f-4350-ae33-56007be94eeb_2224x620.png 424w, https://substackcdn.com/image/fetch/$s_!yQc7!,w_848,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcb0712c1-2a2f-4350-ae33-56007be94eeb_2224x620.png 848w, https://substackcdn.com/image/fetch/$s_!yQc7!,w_1272,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcb0712c1-2a2f-4350-ae33-56007be94eeb_2224x620.png 1272w, https://substackcdn.com/image/fetch/$s_!yQc7!,w_1456,c_limit,f_webp,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcb0712c1-2a2f-4350-ae33-56007be94eeb_2224x620.png 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!yQc7!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcb0712c1-2a2f-4350-ae33-56007be94eeb_2224x620.png" width="1456" height="406" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/cb0712c1-2a2f-4350-ae33-56007be94eeb_2224x620.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:406,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:203322,&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_!yQc7!,w_424,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcb0712c1-2a2f-4350-ae33-56007be94eeb_2224x620.png 424w, https://substackcdn.com/image/fetch/$s_!yQc7!,w_848,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcb0712c1-2a2f-4350-ae33-56007be94eeb_2224x620.png 848w, https://substackcdn.com/image/fetch/$s_!yQc7!,w_1272,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcb0712c1-2a2f-4350-ae33-56007be94eeb_2224x620.png 1272w, https://substackcdn.com/image/fetch/$s_!yQc7!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fcb0712c1-2a2f-4350-ae33-56007be94eeb_2224x620.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><h3><strong>Practical Reasons for Mixture of Experts</strong></h3><p>Apart from reorganizing the flow of information in existing large language models, a Mixture of Experts also helps address important technical challenges:</p><ol><li><p>The most important factor in improving model quality is the <a href="https://www.modelsandmetrics.com/p/size-doesnt-matter-or-does-it">size of the model</a>. A Mixture of Experts allows scaling up to a larger parameter size without updating the weights (relationships between neurons) for the entire model but only for individual experts. This sparse representation of the model allows for compute-efficient training.</p></li><li><p>Additionally, the unique structure of a Mixture of Experts model allows for further optimization using a technique known as Expert Parallelism&#8212;allowing experts to run independently on different GPUs.</p></li><li><p>Lastly, a Mixture of Experts model allows for better inference speeds and higher throughput when the models are deployed, since the model only uses a small portion of its total number of parameters at any given time.</p><p>  </p></li></ol><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://www.modelsandmetrics.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 Models and Metrics! 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>]]></content:encoded></item><item><title><![CDATA[The Dragon's Flight]]></title><description><![CDATA[How China may be catching up to the United States in developing the most advanced artificial intelligence.]]></description><link>https://www.modelsandmetrics.com/p/the-dragons-flight</link><guid isPermaLink="false">https://www.modelsandmetrics.com/p/the-dragons-flight</guid><dc:creator><![CDATA[Ayush Kumar]]></dc:creator><pubDate>Mon, 18 Mar 2024 12:01:29 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/75442ea6-37f0-45e5-855d-fbc14f39416a_2240x1260.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>The race for building artificial intelligence runs beyond company boardrooms. Technology has an outsized impact on our quality of life, economy, and military strength&#8212;there is no doubt that the playing field is global. The recent success of American Big Tech firms (Microsoft, Google, NVIDIA, OpenAI, etc.) makes the United States look like an international leader, but with the rate of progress in China, the first-mover advantage may not last very long.</p><p>     </p><p>In the West, China often has a reputation for copying technology rather than leading the way with innovation. This was true in the internet era when the restrictive policies of the Great Firewall allowed Chinese tech giants to emerge and replicate business models similar to those of Google, Amazon, and eBay, in the form of Baidu, Alibaba, and JD.com. Later, in the mobile age, however, Chinese tech companies played a much more dominant role, and Xiaomi, Huawei, and Tencent built products that evolved organically and found large markets for entry-level smartphones and entertainment in developing countries. Now, in the age of artificial intelligence, the gap is getting even narrower, and Chinese companies are leapfrogging the US in many sectors. SenseTime and Megvii are global leaders in facial recognition and deep learning (even though their technology is used for surveillance). DJI is an undisputed leader in the commercial drone market with over a 70% market share and uses artificial intelligence for its autonomous flight and video processing. TikTok&#8217;s addictive but innovative recommendation algorithm is changing how GenZ around the world communicates, consumes content, and shops online.</p><p>     </p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://www.modelsandmetrics.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">Subscribe for free to receive new posts from Models and Metrics!</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>     </p><p></p><p>Progress in artificial intelligence is heavily dependent on research, a domain where China has gradually outpaced and outperformed the United States. A 2021 study by <a href="https://asia.nikkei.com/Business/China-tech/China-trounces-U.S.-in-AI-research-output-and-quality">Nikkei Asia</a> revealed that China contributed about 40% of the global total of AI research papers, whereas the US accounted for only 10%. This trend continues not just for the volume but also for the overall quality of research. Among the top 10% of the most-cited research papers, Chinese papers outnumbered US papers by over 70%. Many of these papers are contributions from elite academic and research institutions such as the Chinese Academy of Sciences and Tsinghua University. This phenomenon can be attributed to China&#8217;s government policies under the Artificial Intelligence Development Plan in 2017, which set an ambitious goal for China to become the world&#8217;s leading AI innovation center by 2030. In the United States, on the other hand, research is led primarily by large tech companies and well-funded startups who, for now, still retain the edge in top-tier research quality. Six of the top ten research institutions from the Nikkei study are large US companies, the remaining four were Chinese.</p><p>    </p><p>In the arms race to develop artificial intelligence, another key frontier is Open Source. While Open Source development by itself is <a href="https://www.modelsandmetrics.com/p/open-source-ai-has-no-moat">not a defensible moat</a>, it allows companies to extend their reach and build ecosystems around their platforms. Once the backyard of large US tech companies, open source is slowly embracing developments by Chinese companies. 01.AI, a startup founded by AI veteran Kai-Fu Lee, released the Yi family of open source foundation models which quickly rose to the top of the leaderboard on HuggingFace. The company is now worth $1 billion, and their GitHub repository has over 6.8k stars at the time of writing. On the flip side, the Yi models are <a href="https://www.nytimes.com/2024/02/21/technology/china-united-states-artificial-intelligence.html">suspiciously similar</a> to the underlying architecture of Meta&#8217;s Llama models and the open source community in China is not nearly as active as that in the US. According to <a href="https://github.blog/2023-11-08-the-state-of-open-source-and-ai/">GitHub&#8217;s annual report</a>, China ranked #9 in creating new generative AI projects, meanwhile, the United States far outranks it at #1.</p><p>    </p><pre><code>&#128142; <strong>Mighty Metric</strong>

China aims to increase its computing capacity to 300 exaflops by 2025. A single exaflop represents roughly the same computing power as 2 million mainstream laptops!</code></pre><p>     </p><p>Even though Chinese policies attempt to lead innovation through research and involvement in open source, a major obstacle is the availability of computing power&#8212;a key ingredient in training large models. In 2022, the United States banned the export of high-performance computing equipment such as GPUs, as well as other hardware, software, and related semiconductor fabrication technology. Since Chinese design and manufacturing capabilities lag significantly behind those of the US and Taiwan, China plans to overcome these restrictions with a $41 billion "Big Fund" aimed at bolstering indigenous chip manufacturing. Furthermore, China has allocated $143 billion, spread over five years, in tax credits and subsidies to stimulate innovation and growth in the industry. The outcome of the race to AI supremacy remains uncertain, but there is no doubt that China intends to compete head-to-head to become a global AI superpower.</p>]]></content:encoded></item><item><title><![CDATA[Size Doesn’t Matter (Or Does It?)]]></title><description><![CDATA[Why large language models are out and small language models are in.]]></description><link>https://www.modelsandmetrics.com/p/size-doesnt-matter-or-does-it</link><guid isPermaLink="false">https://www.modelsandmetrics.com/p/size-doesnt-matter-or-does-it</guid><dc:creator><![CDATA[Ayush Kumar]]></dc:creator><pubDate>Thu, 07 Mar 2024 13:30:38 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/61a1bc8a-6be1-42a9-aea0-0e05522be6ac_1456x1048.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>"Bigger is always better." This statement has been the motto for state-of-the-art language models in the last few years. In 2018, Google released BERT with 340 million parameters. In 2019, OpenAI released GPT-2 with 1.5 billion parameters. In 2020, OpenAI shocked the world by releasing GPT-3 with 175 billion parameters. And in 2022, Google released PaLM with 540 billion parameters. In general, the bigger the model, the better the performance. However, as we are entering the era of widespread adoption of artificial intelligence, the tech world has turned its attention from building ever larger models to getting more out of small language models.  </p><p>         </p><p>Over the decades, researchers have tried many complex approaches to build better language models, but <a href="http://incompleteideas.net/IncIdeas/BitterLesson.html">the bitter truth</a> is that scaling simpler architectures achieves the best outcomes. The intuition behind this approach can be understood by the scaling hypothesis:</p><blockquote><p>&#8220;The strong <em>scaling hypothesis</em> is that, once we find a scalable architecture like self-attention or convolutions, which like the brain can be applied fairly uniformly, we can simply train ever larger neural networks and ever more sophisticated behavior will emerge naturally as the easiest way to optimize for all the tasks &amp; data. More powerful neural networks are &#8216;just&#8217; scaled-up weak neural networks, in much the same way that human brains look much like scaled-up primate brains&#8288;.&#8221;</p></blockquote><p>    </p><p>There has been an increasing amount of evidence supporting this hypothesis&#8212;the most important being the emergence of abilities that the model was not intentionally trained on. In the natural world, emergent phenomena are complex outcomes, patterns, and behaviors that arise due to interactions between simple components. These phenomena exist in all kinds of domains, from the formation of snowflakes to the structuring of an ant colony. Similarly, with larger model sizes, more data, and more compute, language models transition from near-zero performance to nearly state-of-the-art performance at a rapid and unpredictable rate when they reach a critical scale. Interestingly, language models acquire skills that are often unrelated, like arithmetic, creative writing, and humor.</p><p></p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="https://substackcdn.com/image/fetch/$s_!PlSN!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9f7206bc-62e7-46fa-85ca-2aa7c53303b3_1600x583.gif" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="https://substackcdn.com/image/fetch/$s_!PlSN!,w_424,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9f7206bc-62e7-46fa-85ca-2aa7c53303b3_1600x583.gif 424w, https://substackcdn.com/image/fetch/$s_!PlSN!,w_848,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9f7206bc-62e7-46fa-85ca-2aa7c53303b3_1600x583.gif 848w, https://substackcdn.com/image/fetch/$s_!PlSN!,w_1272,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9f7206bc-62e7-46fa-85ca-2aa7c53303b3_1600x583.gif 1272w, https://substackcdn.com/image/fetch/$s_!PlSN!,w_1456,c_limit,f_webp,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9f7206bc-62e7-46fa-85ca-2aa7c53303b3_1600x583.gif 1456w" sizes="100vw"><img src="https://substackcdn.com/image/fetch/$s_!PlSN!,w_1456,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9f7206bc-62e7-46fa-85ca-2aa7c53303b3_1600x583.gif" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/9f7206bc-62e7-46fa-85ca-2aa7c53303b3_1600x583.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;:6854762,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/gif&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_!PlSN!,w_424,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9f7206bc-62e7-46fa-85ca-2aa7c53303b3_1600x583.gif 424w, https://substackcdn.com/image/fetch/$s_!PlSN!,w_848,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9f7206bc-62e7-46fa-85ca-2aa7c53303b3_1600x583.gif 848w, https://substackcdn.com/image/fetch/$s_!PlSN!,w_1272,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9f7206bc-62e7-46fa-85ca-2aa7c53303b3_1600x583.gif 1272w, https://substackcdn.com/image/fetch/$s_!PlSN!,w_1456,c_limit,f_auto,q_auto:good,fl_lossy/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9f7206bc-62e7-46fa-85ca-2aa7c53303b3_1600x583.gif 1456w" sizes="100vw" fetchpriority="high"></picture><div></div></div></a></figure></div><p></p><p>Source: <a href="https://blog.research.google/2022/04/pathways-language-model-palm-scaling-to.html">Google Research</a> &#8212; <em>As the scale of the model increases, the performance improves across tasks while also unlocking new capabilities.</em></p><p></p><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://www.modelsandmetrics.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://www.modelsandmetrics.com/subscribe?"><span>Subscribe now</span></a></p><p>          </p><p>Even though large language models have been monumental in their achievements, surpassing Turing tests, their business applications almost never require the entire gamut of Artificial General Intelligence. Instead, businesses are focused on solving problems through specialized, narrowly focused tasks, coupled with the necessity to handle proprietary data securely. Moreover, the extravagantly high costs of these colossal models (capital, compute, energy) raise an important question: <strong>Can the essence of their advanced capabilities be captured within a smaller model?</strong> Smaller models, apart from offering cheaper training and lower compute requirements, allow for bespoke customization, domain-specific business logic, faster development cycles, and potentially on-premises deployment.</p><p>    </p><p>Since the real value proposition of using large language models stems from a deeper understanding of user intent, smaller language models can still usher in <a href="https://www.modelsandmetrics.com/p/a-new-interaction-paradigm">a new interaction paradigm</a> with businesses employing different models for various tasks. For example, a customer service chatbot used for answering FAQs on a travel website doesn&#8217;t need the same kind of abilities or knowledge as one helping software developers write code faster. Additionally, smaller models allow businesses and hobbyists to easily fine-tune models to specific domains, distill knowledge into workflows, and use Retrieval Augmented Generation to query a secure, proprietary database&#8212;all without the cost of a large language model.</p><p>    </p><pre><code><strong>&#128142; Mighty Metric</strong>

Meta&#8217;s largest Llama-2 model was trained for 1,720,320 GPU hours. This roughly equals 196 years on a single GPU, or using 10,240 GPUs to complete training in 1 week!</code></pre><p>    </p><p>In 2023, Microsoft released <a href="https://www.microsoft.com/en-us/research/blog/phi-2-the-surprising-power-of-small-language-models/">Phi-2</a>, a small language model with only 2.7 billion parameters, trained on highly curated, AI-generated synthetic data to outperform models up to 25 times larger. Several other foundational models now come as a triad of different sizes&#8212;Meta&#8217;s Llama-2, Anthropic&#8217;s Claude 3, and Google&#8217;s Gemini, each sporting a small language model variant. Although the smaller model is eclipsed by its larger siblings in size, its performance is good enough for most people, especially considering that these models require less compute-intensive hardware to run. In fact, Google&#8217;s Gemini Nano is designed to run on mobile devices and powers the <a href="https://store.google.com/intl/en/ideas/articles/pixel-feature-drop-december-2023/">Pixel 8 Pro</a>.</p><p>    </p><p>Amid the flurry of small language models, it is worth noting that the Specialist over Generalist paradigm works only because we have reached a tipping point in understanding natural language through artificial intelligence. What is often cited as the teacher-student paradigm, where training smaller models through synthetic data generated by larger models succeeds, is due to the emergent properties&#8212;showing that language models have learned how to learn. Only after achieving the critical scale and paying the upfront fixed cost of training large language models can we start to scale down and save on the variable costs of deploying small language models.</p><p>     </p><div class="captioned-button-wrap" data-attrs="{&quot;url&quot;:&quot;https://www.modelsandmetrics.com/p/size-doesnt-matter-or-does-it?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">Know someone who should use small language models? Share these insights with them!</p></div><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://www.modelsandmetrics.com/p/size-doesnt-matter-or-does-it?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://www.modelsandmetrics.com/p/size-doesnt-matter-or-does-it?utm_source=substack&utm_medium=email&utm_content=share&action=share"><span>Share</span></a></p></div>]]></content:encoded></item><item><title><![CDATA[Open Source AI Has No Moat]]></title><description><![CDATA[Why the artificial intelligence game is rigged against open source.]]></description><link>https://www.modelsandmetrics.com/p/open-source-ai-has-no-moat</link><guid isPermaLink="false">https://www.modelsandmetrics.com/p/open-source-ai-has-no-moat</guid><dc:creator><![CDATA[Ayush Kumar]]></dc:creator><pubDate>Sat, 24 Feb 2024 11:41:12 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/eab31eb0-348a-4de6-b417-81ef0faef267_1456x1048.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>In early 2023, a <a href="https://www.semianalysis.com/p/google-we-have-no-moat-and-neither">memo</a> from an anonymous researcher at Google was leaked. It stated that neither Google nor OpenAI have a distinct advantage in the development of artificial intelligence. Instead, the open source community has a much better chance of advancing the technology's frontiers. Although the memo is meant to be a call to action for Google to revise its research strategy, it makes several bold statements about open source that unfortunately don&#8217;t always add up. </p><p></p><p></p><div class="embedded-post-wrap" data-attrs="{&quot;id&quot;:119223672,&quot;url&quot;:&quot;https://www.semianalysis.com/p/google-we-have-no-moat-and-neither&quot;,&quot;publication_id&quot;:329241,&quot;publication_name&quot;:&quot;SemiAnalysis&quot;,&quot;publication_logo_url&quot;:&quot;https://substackcdn.com/image/fetch/f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F0150776c-9bf2-4bea-a9c2-41b24b7a0f15_1280x1280.png&quot;,&quot;title&quot;:&quot;Google \&quot;We Have No Moat, And Neither Does OpenAI\&quot;&quot;,&quot;truncated_body_text&quot;:&quot;The text below is a very recent leaked document, which was shared by an anonymous individual on a public Discord server who has granted permission for its republication. It originates from a researcher within Google. We have verified its authenticity. The only modifications are formatting and removing links to internal web pages. The document is only the opinion of a Google employee, not the entire firm. We do not agree with what is written below, nor do other researchers we asked, but we will publish our opinions on this in a separate piece for subscribers. We simply are a vessel to share this document which raises some very interesting points.&quot;,&quot;date&quot;:&quot;2023-05-04T10:07:13.244Z&quot;,&quot;like_count&quot;:673,&quot;comment_count&quot;:10,&quot;bylines&quot;:[{&quot;id&quot;:21783302,&quot;name&quot;:&quot;Dylan Patel&quot;,&quot;handle&quot;:&quot;semianalysis&quot;,&quot;previous_name&quot;:null,&quot;photo_url&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/adcf9d53-769e-4d9e-8982-30c3dc8488dc_501x527.png&quot;,&quot;bio&quot;:&quot;Bridging the gap between business and the worlds most important industry.&quot;,&quot;profile_set_up_at&quot;:&quot;2021-07-02T16:10:19.044Z&quot;,&quot;publicationUsers&quot;:[{&quot;id&quot;:124825,&quot;user_id&quot;:21783302,&quot;publication_id&quot;:329241,&quot;role&quot;:&quot;admin&quot;,&quot;public&quot;:true,&quot;is_primary&quot;:false,&quot;publication&quot;:{&quot;id&quot;:329241,&quot;name&quot;:&quot;SemiAnalysis&quot;,&quot;subdomain&quot;:&quot;semianalysis&quot;,&quot;custom_domain&quot;:&quot;www.semianalysis.com&quot;,&quot;custom_domain_optional&quot;:false,&quot;hero_text&quot;:&quot;Bridging the gap between the world's most important industry, semiconductors, and business.&quot;,&quot;logo_url&quot;:&quot;https://bucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com/public/images/0150776c-9bf2-4bea-a9c2-41b24b7a0f15_1280x1280.png&quot;,&quot;author_id&quot;:21783302,&quot;theme_var_background_pop&quot;:&quot;#67BDFC&quot;,&quot;created_at&quot;:&quot;2021-04-05T17:57:56.139Z&quot;,&quot;rss_website_url&quot;:null,&quot;email_from_name&quot;:&quot;SemiAnalysis&quot;,&quot;copyright&quot;:&quot;SemiAnalysis LLC&quot;,&quot;founding_plan_name&quot;:&quot;Elite subscription&quot;,&quot;community_enabled&quot;:true,&quot;invite_only&quot;:false,&quot;payments_state&quot;:&quot;enabled&quot;,&quot;language&quot;:null,&quot;explicit&quot;:false}}],&quot;twitter_screen_name&quot;:&quot;dylan522p&quot;,&quot;is_guest&quot;:false,&quot;bestseller_tier&quot;:1000},{&quot;id&quot;:112610384,&quot;name&quot;:&quot;Afzal Ahmad&quot;,&quot;handle&quot;:null,&quot;previous_name&quot;:null,&quot;photo_url&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/64252422-2fee-4c48-aaf0-5d30a0deac8e_501x527.png&quot;,&quot;bio&quot;:null,&quot;profile_set_up_at&quot;:&quot;2022-11-23T09:32:35.528Z&quot;,&quot;is_guest&quot;:true,&quot;bestseller_tier&quot;:null}],&quot;utm_campaign&quot;:null,&quot;belowTheFold&quot;:false,&quot;type&quot;:&quot;newsletter&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="EmbeddedPostToDOM"><a class="embedded-post" native="true" href="https://www.semianalysis.com/p/google-we-have-no-moat-and-neither?utm_source=substack&amp;utm_campaign=post_embed&amp;utm_medium=web"><div class="embedded-post-header"><img class="embedded-post-publication-logo" src="https://substackcdn.com/image/fetch/$s_!HwSb!,w_56,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fbucketeer-e05bbc84-baa3-437e-9518-adb32be77984.s3.amazonaws.com%2Fpublic%2Fimages%2F0150776c-9bf2-4bea-a9c2-41b24b7a0f15_1280x1280.png"><span class="embedded-post-publication-name">SemiAnalysis</span></div><div class="embedded-post-title-wrapper"><div class="embedded-post-title">Google "We Have No Moat, And Neither Does OpenAI"</div></div><div class="embedded-post-body">The text below is a very recent leaked document, which was shared by an anonymous individual on a public Discord server who has granted permission for its republication. It originates from a researcher within Google. We have verified its authenticity. The only modifications are formatting and removing links to internal web pages. The document is only the opinion of a Google employee, not the entire firm. We do not agree with what is written below, nor do other researchers we asked, but we will publish our opinions on this in a separate piece for subscribers. We simply are a vessel to share this document which raises some very interesting points&#8230;</div><div class="embedded-post-cta-wrapper"><span class="embedded-post-cta">Read more</span></div><div class="embedded-post-meta">3 years ago &#183; 673 likes &#183; 10 comments &#183; Dylan Patel and Afzal Ahmad</div></a></div><p></p><p></p><p>The core argument of the Google memo is that the worldwide community of open source developers is much more capable than research labs of large tech companies, owing to their speed of execution, adoption of the latest ideas, and sharing of resources. As a result, models developed by open source are often faster, more customizable, and, pound-for-pound, better than those from closed-source companies. While individual hobbyists, academic researchers, and underpaid graduate students have successfully addressed some of the biggest challenges in artificial intelligence, the truth is that they, too, have no moat. To maintain a defensible advantage for the open source model, we should consider three different aspects of artificial intelligence: <strong>development</strong>, <strong>deployment</strong>, and <strong>distribution</strong>.</p><p></p><p></p><ol><li><p><strong>Development</strong> of new AI models, tools, datasets and benchmarks.</p></li></ol><p>Specialized knowledge, the latest research papers, and training datasets are often freely available, and the best ideas can come from anywhere. Tapping into the global talent pool, often at no cost, has proven to be an excellent strategy for innovation, as seen by the timeline of progress in the memo. However, there's a dark side: open-source projects frequently find themselves locked into platforms owned or sponsored by major tech companies, which ultimately stand to benefit the most, whether directly or indirectly. Some notable examples include Chromium, Android, React, PyTorch, and Kubernetes. Specifically, in the context of open-source AI, many models today are built atop the leaked version of Meta&#8217;s Llama. As of this writing, there are over 8.6k forks of their <a href="https://github.com/facebookresearch/llama">GitHub repository</a>, and this extensive development gives Facebook Research the opportunity to explore all the possibilities of their models without having to do all the work. What should have been a moat for open source has become a moat for the company that owns the platform.</p><p></p><p></p><ol start="2"><li><p><strong>Deployment</strong> of AI models as services utilizing expensive compute resources, data centers, and extensive cloud management.</p></li></ol><p>This is the most capital-intensive aspect of producing artificial intelligence, and it's something beyond the reach of not just open source communities but also most companies. Only a few players&#8212;Microsoft Azure, Google Cloud Platform, and Amazon Web Services&#8212;have a strong foothold in this market, in part due to the ongoing GPU shortage. Even the most popular open-source platform for AI development, <a href="https://huggingface.co/">HuggingFace</a>, operates largely because corporations like Google, Amazon, and NVIDIA pay premiums for a private version of the platform, which subsidizes usage for open-source developers. When it comes to deployment, open source not only lacks a competitive edge, but the cost of computing itself also becomes a barrier to entry for training new AI models from scratch.</p><p></p><p></p><ol start="3"><li><p><strong>Distribution</strong> of artificial intelligence in products and services that are used by consumers.</p></li></ol><p>The most exciting aspect of artificial intelligence lies in its ability to perform tasks that were previously considered nearly impossible to do at scale. The <a href="https://www.modelsandmetrics.com/p/a-new-interaction-paradigm">real value proposition</a> of artificial intelligence will fundamentally alter our interaction with the technology around us. Arguably, this represents the most significant force multiplier in the recent history of humankind, and it is easy to understand why there is explosive growth &#8212; ChatGPT reached 1 million users in just 5 days. However, with growth and opportunity comes competition. Historically, many open-source projects have been under-resourced, lacking both funds and community contributors. In such a competitive landscape, open-source projects struggle to organize development, design quality products, and market to customers for widespread adoption and distribution. </p><p></p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://www.modelsandmetrics.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">Love learning about artificial intelligence?Subscribe for free to stay up to date in the business of generative AI.</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></p><p>There is no doubt that open source projects generally do not achieve the same level of success as closed-source companies. This observation shouldn't surprise anyone&#8212; RedHat, the poster child for successful open-source enterprises, pales in comparison to Microsoft. Although an oversimplification, both companies initially created operating systems. In 2018, RedHat was acquired by IBM for $34 billion and Microsoft was worth $780 billion. As of this writing, Microsoft is worth a staggering $3 trillion.</p><p></p><p></p><p>This discussion holds even greater significance today as artificial intelligence increasingly automates and substitutes for human reasoning and judgment. Abundant research highlights the inherent risks and biases in models, including misinformation, racial, and gender discrimination, among others. Theoretically, open-source AI should increase the likelihood that the wisdom of the crowd will identify and correct biases, uncover issues, and suggest enhancements. However, in reality, the incentives are not aligned for open source to succeed or compete with large tech companies. Without organized control over the development, deployment, or distribution of artificial intelligence, the open source artificial intelligence community is going to be at the mercy of Big Tech.</p><p></p><p></p><p>Almost a year since the memo leaked, Google has released its family of small language models, <a href="https://blog.google/technology/developers/gemma-open-models/">Gemma</a>, based on the same work as its flagship Gemini models. With the weights made publicly available, Google is hoping to engage with the open source community for research and development. Only time will tell whether this release will help build a moat for open source or deepen the moat for Google.</p><p></p><div class="captioned-button-wrap" data-attrs="{&quot;url&quot;:&quot;https://www.modelsandmetrics.com/p/open-source-ai-has-no-moat?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">Thank you for reading Models and Metrics. Send this post to someone who wants to learn about artificial intelligence.</p></div><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://www.modelsandmetrics.com/p/open-source-ai-has-no-moat?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://www.modelsandmetrics.com/p/open-source-ai-has-no-moat?utm_source=substack&utm_medium=email&utm_content=share&action=share"><span>Share</span></a></p></div><p></p>]]></content:encoded></item><item><title><![CDATA[A New Interaction Paradigm]]></title><description><![CDATA[The REAL value proposition of large language models.]]></description><link>https://www.modelsandmetrics.com/p/a-new-interaction-paradigm</link><guid isPermaLink="false">https://www.modelsandmetrics.com/p/a-new-interaction-paradigm</guid><dc:creator><![CDATA[Ayush Kumar]]></dc:creator><pubDate>Fri, 16 Feb 2024 09:30:04 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/43dbf446-bdba-4544-83af-a7810162f9bf_1456x1048.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>In 2024, it seems impossible to open your phone without hearing about yet another large language model. Since the launch of OpenAI&#8217;s ChatGPT in November 2022, a flurry of Big Tech companies have launched their own large language models. The demand for compute-intensive hardware has seen NVIDIA&#8217;s market cap more than triple. While every company seems to be building their own "copilot," it is important not to lose sight of the forest for the trees. In the context of the tech industry and society at large, the real value proposition lies beyond chatbots and content generation. </p><p></p><p>The current paradigm of products built with large language models is heavily influenced by Microsoft's paper, <a href="https://arxiv.org/abs/2303.12712">Sparks of Artificial General Intelligence: Early Experiments with GPT-4</a>. More resembling a sales pitch than a technical research paper, it showcases examples of OpenAI's flagship model completing a variety of tasks, from answering simple mathematical questions to generating lines of executable code. Since its release in March 2023, this paper has become standard reading material for corporate strategy on Generative AI. Many companies have simply adopted the examples in the paper for features and products in their own industries, building wrappers around the foundational GPT-4 model.</p><p></p><p>However, taking a long-term view of technology's evolution since the beginning of the computer age, large language models fundamentally changes how humans interact with technology. The journey from punch cards, through typing commands into a terminal, to the advent of point-and-click graphical user interfaces, culminates in our ability to communicate with computers using the same medium we use with other humans: <em><strong>language</strong></em>. While no one knows what the future will look like, we can be certain that our relationship with technology will become much more intuitive, and we will start to see our devices not just as mere tools, but as entities that are more than just extensions of ourselves but also extensions of human society and culture.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://www.modelsandmetrics.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">Separate the wheat from the chaff. Subscribe to Models and Metrics today for insights about Artificial Intelligence.</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[Hello World.]]></title><description><![CDATA[We live in a fascinating time in human history when artificial intelligence is capable of accomplishing feats once considered impossible by computers.]]></description><link>https://www.modelsandmetrics.com/p/coming-soon</link><guid isPermaLink="false">https://www.modelsandmetrics.com/p/coming-soon</guid><dc:creator><![CDATA[Ayush Kumar]]></dc:creator><pubDate>Sat, 30 Dec 2023 23:50:06 GMT</pubDate><enclosure url="https://substack-post-media.s3.amazonaws.com/public/images/9449f958-265f-48b6-936d-57c05e189114_2240x1260.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<blockquote><p>We live in a fascinating time in human history when artificial intelligence is capable of accomplishing feats once considered impossible by computers. However, the technology is still in its infancy and we truly do not know what the future looks like - unless we build it.</p><p></p><p>These essays serve as a collection of great ideas, timeless wisdom and practical insights that any leader can apply to their business to innovate and dominate.</p><div><hr></div><p></p></blockquote><p class="button-wrapper" data-attrs="{&quot;url&quot;:&quot;https://www.modelsandmetrics.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://www.modelsandmetrics.com/subscribe?"><span>Subscribe now</span></a></p>]]></content:encoded></item></channel></rss>