<script data-pm-proxy="intercept"></script><?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[Daniel’s Substack]]></title><description><![CDATA[My personal Substack]]></description><link>https://ddkang.substack.com</link><image><url>https://substackcdn.com/image/fetch/$s_!iE13!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe340d029-97c7-4eb0-add3-a13d995e321c_144x144.png</url><title>Daniel’s Substack</title><link>https://ddkang.substack.com</link></image><generator>Substack</generator><lastBuildDate>Fri, 04 Sep 2026 22:15:45 GMT</lastBuildDate><atom:link href="/__u/ddkang.substack.com/feed" rel="self" type="application/rss+xml"/><copyright><![CDATA[Daniel Kang]]></copyright><language><![CDATA[en]]></language><webMaster><![CDATA[ddkang@substack.com]]></webMaster><itunes:owner><itunes:email><![CDATA[ddkang@substack.com]]></itunes:email><itunes:name><![CDATA[Daniel Kang]]></itunes:name></itunes:owner><itunes:author><![CDATA[Daniel Kang]]></itunes:author><googleplay:owner><![CDATA[ddkang@substack.com]]></googleplay:owner><googleplay:email><![CDATA[ddkang@substack.com]]></googleplay:email><googleplay:author><![CDATA[Daniel Kang]]></googleplay:author><itunes:block><![CDATA[Yes]]></itunes:block><item><title><![CDATA[Noisy Data Breaks RLVR]]></title><description><![CDATA[Reinforcement learning with verifiable rewards (RLVR) is a widely used post-training paradigm to improve the reasoning capabilities of LLMs.]]></description><link>https://ddkang.substack.com/p/noisy-data-breaks-rlvr</link><guid isPermaLink="false">https://ddkang.substack.com/p/noisy-data-breaks-rlvr</guid><dc:creator><![CDATA[Daniel Kang]]></dc:creator><pubDate>Mon, 03 Aug 2026 17:40:41 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!TToJ!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9ec85df2-d9c1-439e-9802-5d2d9d22341d_2048x833.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><a href="https://arxiv.org/abs/2402.03300"><span>Reinforcement learning with verifiable rewards</span></a><span> (RLVR) is a widely used post-training paradigm to improve the reasoning capabilities of LLMs. However, creating the high-quality verifiable answers needed to train the model is labor-intensive and expensive, as highlighted by the boom of data labeling companies, such as </span><a href="https://www.linkedin.com/posts/brendan-foody-2995ab10b_2025-wrapped-mercor-grew-revenue-by-4658-activity-7412326886686507008-sMY-/"><span>Mercor</span></a><span>. This creates a fundamental question for post-training: </span><em><span>To what extent can RLVR, with algorithmic improvements, tolerate large-volume, noisy data?</span></em></p><p><a href="https://arxiv.org/pdf/2506.10947"><span>Recent</span></a><span> </span><a href="https://arxiv.org/pdf/2505.22653"><span>literature</span></a><span> promotes a counter-intuitive idea: RLVR is robust to noisy data. </span><a href="https://arxiv.org/pdf/2506.10947"><span>Prior work</span></a><span> shows that training on &#8220;100% incorrect&#8221; answers leads to only 5% lower performance than clean data and achieves higher performance than format rewards (enclosing </span><em><span>any</span></em><span> answer in \boxed{}). This suggests we can throw cheap, messy annotations at an LLM, tweak the </span><a href="https://arxiv.org/pdf/2509.26114"><span>RLVR loss</span></a><span>, and still significantly improve reasoning.</span></p><p><span>We find that this hypothesis is false. The &#8220;surprisingly&#8221; high effectiveness of RLVR on &#8220;100%&#8221; noisy data is due to the contamination in the synthetic noise &#8212; the claimed &#8220;100%&#8221; noisy data contains a significant portion of clean data. In this blog, we develop a more rigorous noisy data curation pipeline and show that noisy data is destructive to RLVR, impacting the test accuracy by over 9%. Even current advanced algorithmic improvements fail to mitigate the severe impact.</span></p><p><span>Paper: </span><a href="https://arxiv.org/abs/2603.16140"><span>https://arxiv.org/abs/2603.16140</span></a></p><p><span>Repo: </span><a href="https://github.com/uiuc-kang-lab/rlvr-noisy-data"><span>https://github.com/uiuc-kang-lab/rlvr-noisy-data</span></a></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!TToJ!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9ec85df2-d9c1-439e-9802-5d2d9d22341d_2048x833.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!TToJ!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9ec85df2-d9c1-439e-9802-5d2d9d22341d_2048x833.png 424w, /__u/substackcdn.com/image/fetch/$s_!TToJ!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9ec85df2-d9c1-439e-9802-5d2d9d22341d_2048x833.png 848w, /__u/substackcdn.com/image/fetch/$s_!TToJ!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9ec85df2-d9c1-439e-9802-5d2d9d22341d_2048x833.png 1272w, /__u/substackcdn.com/image/fetch/$s_!TToJ!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9ec85df2-d9c1-439e-9802-5d2d9d22341d_2048x833.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!TToJ!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9ec85df2-d9c1-439e-9802-5d2d9d22341d_2048x833.png" width="1456" height="592" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/9ec85df2-d9c1-439e-9802-5d2d9d22341d_2048x833.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:592,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!TToJ!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9ec85df2-d9c1-439e-9802-5d2d9d22341d_2048x833.png 424w, /__u/substackcdn.com/image/fetch/$s_!TToJ!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9ec85df2-d9c1-439e-9802-5d2d9d22341d_2048x833.png 848w, /__u/substackcdn.com/image/fetch/$s_!TToJ!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9ec85df2-d9c1-439e-9802-5d2d9d22341d_2048x833.png 1272w, /__u/substackcdn.com/image/fetch/$s_!TToJ!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9ec85df2-d9c1-439e-9802-5d2d9d22341d_2048x833.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" 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><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><em>Training on noisy data leads to significantly degraded performance compared to training on clean data.</em></figcaption></figure></div><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://ddkang.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Daniel&#8217;s Substack! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><h2><span>Prior &#8220;noisy&#8221; data contains correct labels</span></h2><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!vmDz!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe63aecb5-379f-43f0-ad6b-3b3c1a6646e8_2048x335.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!vmDz!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe63aecb5-379f-43f0-ad6b-3b3c1a6646e8_2048x335.png 424w, /__u/substackcdn.com/image/fetch/$s_!vmDz!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe63aecb5-379f-43f0-ad6b-3b3c1a6646e8_2048x335.png 848w, /__u/substackcdn.com/image/fetch/$s_!vmDz!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe63aecb5-379f-43f0-ad6b-3b3c1a6646e8_2048x335.png 1272w, /__u/substackcdn.com/image/fetch/$s_!vmDz!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe63aecb5-379f-43f0-ad6b-3b3c1a6646e8_2048x335.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!vmDz!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe63aecb5-379f-43f0-ad6b-3b3c1a6646e8_2048x335.png" width="1456" height="238" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/e63aecb5-379f-43f0-ad6b-3b3c1a6646e8_2048x335.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:238,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!vmDz!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe63aecb5-379f-43f0-ad6b-3b3c1a6646e8_2048x335.png 424w, /__u/substackcdn.com/image/fetch/$s_!vmDz!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe63aecb5-379f-43f0-ad6b-3b3c1a6646e8_2048x335.png 848w, /__u/substackcdn.com/image/fetch/$s_!vmDz!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe63aecb5-379f-43f0-ad6b-3b3c1a6646e8_2048x335.png 1272w, /__u/substackcdn.com/image/fetch/$s_!vmDz!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe63aecb5-379f-43f0-ad6b-3b3c1a6646e8_2048x335.png 1456w" sizes="100vw"></picture><div></div></div></a><figcaption class="image-caption"><em>Examples of correct labels contained in the prior &#8220;noisy&#8221; data.</em></figcaption></figure></div><p><span>Recent work claimed that </span><a href="https://arxiv.org/pdf/2506.10947"><span>LLMs could learn effectively from 100% incorrect annotations during RLVR</span></a><span>. But when we verified the synthetic noisy datasets used in prior work, we found a critical flaw: the noise was contaminated with correct answers. This hidden contamination inflated the performance of models trained on it.</span></p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!xM6C!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff6134445-f64c-4317-9c05-6ad2ef5e5127_2048x370.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!xM6C!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff6134445-f64c-4317-9c05-6ad2ef5e5127_2048x370.png 424w, /__u/substackcdn.com/image/fetch/$s_!xM6C!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff6134445-f64c-4317-9c05-6ad2ef5e5127_2048x370.png 848w, /__u/substackcdn.com/image/fetch/$s_!xM6C!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff6134445-f64c-4317-9c05-6ad2ef5e5127_2048x370.png 1272w, /__u/substackcdn.com/image/fetch/$s_!xM6C!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff6134445-f64c-4317-9c05-6ad2ef5e5127_2048x370.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!xM6C!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff6134445-f64c-4317-9c05-6ad2ef5e5127_2048x370.png" width="1456" height="263" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/f6134445-f64c-4317-9c05-6ad2ef5e5127_2048x370.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:263,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!xM6C!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff6134445-f64c-4317-9c05-6ad2ef5e5127_2048x370.png 424w, /__u/substackcdn.com/image/fetch/$s_!xM6C!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff6134445-f64c-4317-9c05-6ad2ef5e5127_2048x370.png 848w, /__u/substackcdn.com/image/fetch/$s_!xM6C!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff6134445-f64c-4317-9c05-6ad2ef5e5127_2048x370.png 1272w, /__u/substackcdn.com/image/fetch/$s_!xM6C!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff6134445-f64c-4317-9c05-6ad2ef5e5127_2048x370.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a><figcaption class="image-caption"><em><span>Data re-verification pipeline for synthesizing a truly noisy dataset.</span></em></figcaption></figure></div><p><span>How did this happen? Prior work generated noisy labels for math datasets by sampling answers from a base LLM and filtering out the correct ones using basic symbolic equivalence checkers. However, this filtering fails for two primary reasons:</span></p><ol><li><p><strong><span>Insufficient gold answers</span></strong><span>: A math problem often has multiple valid solutions, but ground-truth annotations typically only capture one (as shown in Example 1 above).</span></p></li><li><p><strong><span>Inadequate equivalence checking</span></strong><span>: Basic symbolic verifiers frequently fail to recognize when a generated answer is mathematically identical to the gold answer but formatted differently (as shown in Example 2 above).</span></p></li></ol><p><span>To measure the </span><em><span>actual</span></em><span> impact of noise, we must ensure the noisy data has incorrect answers. We applied a more rigorous re-verification pipeline using GPT-5 Pro combined with manual expert review. We discovered that 16% of the supposedly &#8220;incorrect&#8221; labels in the original dataset were actually correct</span><strong><span>.</span></strong><span> By purging these leaked answers, we constructed a </span><em><span>truly</span></em><span> noisy dataset.</span></p><h2><span>The collapse of reasoning</span></h2><p><span>When we purged those hidden correct annotations, the performance collapsed. In our experiments using Qwen2.5-Math-7B, training on 100% truly incorrect annotations dropped average accuracy on five math benchmarks (AIME&#8217;24, AIME&#8217;25, AMC&#8217;23, AMC&#8217;24, and MATH500) by 9% compared to training on clean data. This performance was even worse than training with format-only rewards.</span></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!WXy5!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff885c539-0084-461c-82ca-5617c34c8004_2048x833.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!WXy5!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff885c539-0084-461c-82ca-5617c34c8004_2048x833.png 424w, /__u/substackcdn.com/image/fetch/$s_!WXy5!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff885c539-0084-461c-82ca-5617c34c8004_2048x833.png 848w, /__u/substackcdn.com/image/fetch/$s_!WXy5!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff885c539-0084-461c-82ca-5617c34c8004_2048x833.png 1272w, /__u/substackcdn.com/image/fetch/$s_!WXy5!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff885c539-0084-461c-82ca-5617c34c8004_2048x833.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!WXy5!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff885c539-0084-461c-82ca-5617c34c8004_2048x833.png" width="1456" height="592" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/f885c539-0084-461c-82ca-5617c34c8004_2048x833.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:592,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!WXy5!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff885c539-0084-461c-82ca-5617c34c8004_2048x833.png 424w, /__u/substackcdn.com/image/fetch/$s_!WXy5!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff885c539-0084-461c-82ca-5617c34c8004_2048x833.png 848w, /__u/substackcdn.com/image/fetch/$s_!WXy5!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff885c539-0084-461c-82ca-5617c34c8004_2048x833.png 1272w, /__u/substackcdn.com/image/fetch/$s_!WXy5!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff885c539-0084-461c-82ca-5617c34c8004_2048x833.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 aria-hidden="true" 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><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><em><span>Training on noisy data leads to significantly degraded performance compared to training on clean data.</span></em></figcaption></figure></div><p><span>We also found that noisy training data leads to weaker reasoning. When scaling the number of attempts (k &gt; 1), pass@k dropped below the base model&#8217;s baseline capabilities. Furthermore, noise penalizes deep exploration. Models trained on noisy data produced reasoning chains that were 5&#8211;24% shorter than those trained on clean data.</span></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!B6xz!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7b92e4aa-cf1d-4230-82b7-4a05841adb54_2048x539.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!B6xz!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7b92e4aa-cf1d-4230-82b7-4a05841adb54_2048x539.png 424w, /__u/substackcdn.com/image/fetch/$s_!B6xz!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7b92e4aa-cf1d-4230-82b7-4a05841adb54_2048x539.png 848w, /__u/substackcdn.com/image/fetch/$s_!B6xz!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7b92e4aa-cf1d-4230-82b7-4a05841adb54_2048x539.png 1272w, /__u/substackcdn.com/image/fetch/$s_!B6xz!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7b92e4aa-cf1d-4230-82b7-4a05841adb54_2048x539.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!B6xz!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7b92e4aa-cf1d-4230-82b7-4a05841adb54_2048x539.png" width="1456" height="383" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/7b92e4aa-cf1d-4230-82b7-4a05841adb54_2048x539.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:383,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!B6xz!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7b92e4aa-cf1d-4230-82b7-4a05841adb54_2048x539.png 424w, /__u/substackcdn.com/image/fetch/$s_!B6xz!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7b92e4aa-cf1d-4230-82b7-4a05841adb54_2048x539.png 848w, /__u/substackcdn.com/image/fetch/$s_!B6xz!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7b92e4aa-cf1d-4230-82b7-4a05841adb54_2048x539.png 1272w, /__u/substackcdn.com/image/fetch/$s_!B6xz!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7b92e4aa-cf1d-4230-82b7-4a05841adb54_2048x539.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 aria-hidden="true" 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><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><em><span>Noise leads to weaker reasoning (lower Pass@k and shorter response length).</span></em></figcaption></figure></div><h2><span>Existing algorithmic improvements fail on noisy data</span></h2><p><span>Prior research has proposed a wide range of algorithmic improvements to the vanilla GRPO. Can these existing algorithm improvements make RLVR more robust to noisy data? Unfortunately, our empirical results show that they cannot.</span></p><p><span>We considered state-of-the-art RLVR variants: </span><a href="https://arxiv.org/pdf/2511.20347v1"><span>SAPO</span></a><span>, </span><a href="https://arxiv.org/abs/2503.14476"><span>DAPO</span></a><span>, </span><a href="https://fengyao.notion.site/off-policy-rl"><span>TIS</span></a><span>, </span><a href="https://arxiv.org/abs/2503.20783"><span>DR. GRPO</span></a><span>, and </span><a href="https://arxiv.org/pdf/2510.00915v3"><span>PGFC</span></a><span> (an algorithm explicitly designed to mitigate the impact of noise). We tested them under a 50% noise rate, a reasonable rate identified on </span><a href="https://arxiv.org/abs/2601.08778"><span>real-world text-to-SQL datasets</span></a><span>. Unfortunately, all of these algorithms lead to more than 5.0% accuracy degradation on at least one benchmark compared to training with clean data. On AIME and AMC benchmarks, these algorithms achieve comparable or lower performance than training with only format rewards.</span></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!kiAI!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F09c6785f-e202-4a1d-b1ec-d0b7bb71ee44_2048x577.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!kiAI!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F09c6785f-e202-4a1d-b1ec-d0b7bb71ee44_2048x577.png 424w, /__u/substackcdn.com/image/fetch/$s_!kiAI!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F09c6785f-e202-4a1d-b1ec-d0b7bb71ee44_2048x577.png 848w, /__u/substackcdn.com/image/fetch/$s_!kiAI!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F09c6785f-e202-4a1d-b1ec-d0b7bb71ee44_2048x577.png 1272w, /__u/substackcdn.com/image/fetch/$s_!kiAI!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F09c6785f-e202-4a1d-b1ec-d0b7bb71ee44_2048x577.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!kiAI!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F09c6785f-e202-4a1d-b1ec-d0b7bb71ee44_2048x577.png" width="1456" height="410" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/09c6785f-e202-4a1d-b1ec-d0b7bb71ee44_2048x577.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:410,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!kiAI!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F09c6785f-e202-4a1d-b1ec-d0b7bb71ee44_2048x577.png 424w, /__u/substackcdn.com/image/fetch/$s_!kiAI!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F09c6785f-e202-4a1d-b1ec-d0b7bb71ee44_2048x577.png 848w, /__u/substackcdn.com/image/fetch/$s_!kiAI!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F09c6785f-e202-4a1d-b1ec-d0b7bb71ee44_2048x577.png 1272w, /__u/substackcdn.com/image/fetch/$s_!kiAI!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F09c6785f-e202-4a1d-b1ec-d0b7bb71ee44_2048x577.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 aria-hidden="true" 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><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><em><span>Under 50% noise, all of the improved algorithms lead to &gt; 5% accuracy degradation on at least one benchmark compared to training with clean data.</span></em></figcaption></figure></div><h2><span>Conclusion</span></h2><p><span>Our empirical evidence shows that the impact of noisy data is destructive and fundamental to RLVR. Algorithmic tweaks simply cannot yet compensate for performance loss due to noisy training data. If we want to improve LLM reasoning, high-quality data remains essential.</span></p><p><span>We released our validated noisy dataset, model checkpoints, and training scripts at: </span><a href="https://github.com/uiuc-kang-lab/rlvr-noisy-data"><span>https://github.com/uiuc-kang-lab/rlvr-noisy-data</span></a><span>. For more technical details, please refer to our paper: </span><a href="https://arxiv.org/abs/2603.16140"><span>https://arxiv.org/abs/2603.16140</span></a><span>.</span></p><p><em><span>Written by Yuxuan Zhu and Daniel Kang</span></em></p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://ddkang.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Daniel&#8217;s Substack! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[Pervasive Annotation Errors Break Text-to-SQL Benchmarks and Leaderboards]]></title><description><![CDATA[Text-to-SQL is increasingly important in data analytics and database-driven applications.]]></description><link>https://ddkang.substack.com/p/pervasive-annotation-errors-break</link><guid isPermaLink="false">https://ddkang.substack.com/p/pervasive-annotation-errors-break</guid><dc:creator><![CDATA[Daniel Kang]]></dc:creator><pubDate>Mon, 27 Jul 2026 18:07:14 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!SGyr!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd00db0dd-401d-4220-96f9-8c9f5dbacac6_1776x606.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><a href="https://cloud.google.com/blog/products/databases/techniques-for-improving-text-to-sql"><span>Text-to-SQL</span></a><span> is increasingly important in data analytics and database-driven applications. It reduces the effort required for experienced users to write complex SQL queries while enabling non-SQL users to query databases through natural language.  Reflecting this growing demand, major data platforms now support text-to-SQL capabilities through systems such as </span><a href="https://www.databricks.com/product/genie/agents"><span>Databricks Genie Agents</span></a><span>, </span><a href="https://www.snowflake.com/en/product/features/cortex/"><span>Snowflake Cortex</span></a><span>, </span><a href="https://docs.cloud.google.com/bigquery/docs/write-sql-gemini"><span>Gemini in BigQuery</span></a><span>, and </span><a href="https://aws.amazon.com/quick/quicksight/"><span>Amazon Quick Sight</span></a><span>.</span></p><p><span>To support the development and evaluation of text-to-SQL systems, researchers have developed a growing number of benchmarks. However, </span><strong><span>we found pervasive annotation errors</span></strong><span> in two widely used text-to-SQL benchmarks: </span><a href="https://bird-bench.github.io/"><span>BIRD</span></a><span> and </span><a href="https://spider2-sql.github.io/"><span>Spider 2.0-Snow</span></a><span>.</span></p><p><span>Do these errors change how we judge the state of the art in text-to-SQL agents? To answer this question, we re-evaluated all 16 open-source agents from the BIRD leaderboard, uncovering relative performance changes ranging from &#8722;7% to +31% and ranking shifts of -9 to +9 positions. The previous state-of-the-art, </span><a href="https://contextual.ai/blog/open-sourcing-the-best-local-text-to-sql-system"><span>Contextual-SQL</span></a><span>, dropped from 1st to 7th, while </span><a href="https://arxiv.org/abs/2505.14174"><span>GenaSQL</span></a><span> (6th) and </span><a href="https://arxiv.org/pdf/2405.16755"><span>CHESS</span></a><span> (7th) rose to a tie for 1st. These findings show that annotation errors can significantly distort reported performance and rankings, underscoring the urgent need for high-quality text-to-SQL benchmarks. And if you are an agent or model developer, don&#8217;t blindly trust benchmark scores or leaderboards! Dive deeper into our findings in our latest </span><a href="https://arxiv.org/abs/2601.08778"><span>paper</span></a><span>.</span></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!SGyr!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd00db0dd-401d-4220-96f9-8c9f5dbacac6_1776x606.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!SGyr!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd00db0dd-401d-4220-96f9-8c9f5dbacac6_1776x606.png 424w, /__u/substackcdn.com/image/fetch/$s_!SGyr!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd00db0dd-401d-4220-96f9-8c9f5dbacac6_1776x606.png 848w, /__u/substackcdn.com/image/fetch/$s_!SGyr!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd00db0dd-401d-4220-96f9-8c9f5dbacac6_1776x606.png 1272w, /__u/substackcdn.com/image/fetch/$s_!SGyr!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd00db0dd-401d-4220-96f9-8c9f5dbacac6_1776x606.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!SGyr!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd00db0dd-401d-4220-96f9-8c9f5dbacac6_1776x606.png" width="1456" height="497" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/d00db0dd-401d-4220-96f9-8c9f5dbacac6_1776x606.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:497,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!SGyr!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd00db0dd-401d-4220-96f9-8c9f5dbacac6_1776x606.png 424w, /__u/substackcdn.com/image/fetch/$s_!SGyr!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd00db0dd-401d-4220-96f9-8c9f5dbacac6_1776x606.png 848w, /__u/substackcdn.com/image/fetch/$s_!SGyr!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd00db0dd-401d-4220-96f9-8c9f5dbacac6_1776x606.png 1272w, /__u/substackcdn.com/image/fetch/$s_!SGyr!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd00db0dd-401d-4220-96f9-8c9f5dbacac6_1776x606.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" 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><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><span>Agent execution accuracy and ranking changes from the original to the corrected BIRD Dev subsets.</span></figcaption></figure></div><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://ddkang.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Daniel&#8217;s Substack! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><h2><span>Annotation Errors Are Pervasive in Text-to-SQL Benchmarks</span></h2><p><span>We conducted an in-depth analysis of annotation errors in </span><a href="https://bird-bench.github.io/"><span>BIRD</span></a><span> and </span><a href="https://spider2-sql.github.io/"><span>Spider 2.0-Snow</span></a><span>, two benchmarks widely used by both academic and industrial teams (e.g., </span><a href="https://arxiv.org/abs/2410.01943"><span>Google</span></a><span>, </span><a href="https://openai.com/index/gpt-4o-fine-tuning/"><span>OpenAI</span></a><span>, </span><a href="https://www.arxiv.org/pdf/2509.21459"><span>Databricks</span></a><span>, </span><a href="https://www.snowflake.com/en/engineering-blog/real-time-text-to-sql-snowflake-intelligence/"><span>Snowflake</span></a><span>, </span><a href="https://www.notion.so/Q-SQL-AWS-2bfe8bf30514801ba112f92ff20784e3"><span>Amazon</span></a><span>, </span><a href="https://arxiv.org/abs/2507.04701"><span>Alibaba</span></a><span>, and </span><a href="https://arxiv.org/abs/2503.02240"><span>ByteDance</span></a><span>).</span></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!mJWC!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F23ca9b5a-f5c8-4a57-b378-18888067c242_854x462.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!mJWC!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F23ca9b5a-f5c8-4a57-b378-18888067c242_854x462.png 424w, /__u/substackcdn.com/image/fetch/$s_!mJWC!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F23ca9b5a-f5c8-4a57-b378-18888067c242_854x462.png 848w, /__u/substackcdn.com/image/fetch/$s_!mJWC!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F23ca9b5a-f5c8-4a57-b378-18888067c242_854x462.png 1272w, /__u/substackcdn.com/image/fetch/$s_!mJWC!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F23ca9b5a-f5c8-4a57-b378-18888067c242_854x462.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!mJWC!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F23ca9b5a-f5c8-4a57-b378-18888067c242_854x462.png" width="632" height="341.9016393442623" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/23ca9b5a-f5c8-4a57-b378-18888067c242_854x462.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:462,&quot;width&quot;:854,&quot;resizeWidth&quot;:632,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!mJWC!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F23ca9b5a-f5c8-4a57-b378-18888067c242_854x462.png 424w, /__u/substackcdn.com/image/fetch/$s_!mJWC!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F23ca9b5a-f5c8-4a57-b378-18888067c242_854x462.png 848w, /__u/substackcdn.com/image/fetch/$s_!mJWC!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F23ca9b5a-f5c8-4a57-b378-18888067c242_854x462.png 1272w, /__u/substackcdn.com/image/fetch/$s_!mJWC!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F23ca9b5a-f5c8-4a57-b378-18888067c242_854x462.png 1456w" sizes="100vw"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" 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><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><span>BIRD has the largest number of evaluated models (100) on its leaderboard, while Spider 2.0-Snow has the highest average token count of its ground-truth SQL queries (data cutoff: October 20, 2025).</span></figcaption></figure></div><p><span>Our analysis consists of three stages: (1) an AI agent producing per-annotation diagnostic reports; (2) human SQL experts adjudicating all cases flagged by the agent and assigning final correctness labels; and (3) to identify errors the agent may have missed, the experts also review unflagged examples for recurring error patterns uncovered in stage two.</span></p><p><span>Through our in-depth examination, we found that:</span></p><ul><li><p><a href="https://github.com/bird-bench/mini_dev"><span>BIRD Mini-Dev</span></a><span> has an annotation error rate of 52.8%</span></p></li><li><p><a href="https://arxiv.org/pdf/2411.07763"><span>Spider 2.0-Snow</span></a><span> (August 20, 2025 date cutoff) has an annotation error rate of 62.8%</span></p></li></ul><p><span>In the rest of this blog post, we first assess the impact of these errors, then break them down into four recurring patterns with illustrative examples, and finally introduce our AI agent we designed to assist finding these errors.</span></p><h2><span>Annotation Errors Can Significantly Change Measured Agent Performance and Leaderboard Rankings</span></h2><p><span>We evaluated all open-source text-to-SQL agents listed on the </span><a href="https://bird-bench.github.io/"><span>BIRD leaderboard</span></a><span> as of August 20, 2025. To quantify the impact of annotation errors, we randomly sampled 100 examples from the BIRD Dev set and manually corrected all annotation issues we identified. We then re-evaluated all 16 open-source agents on both the original subset and the corrected version.</span></p><p><span>After re-evaluation, we found</span></p><ul><li><p><span>Agent execution accuracy changes ranging from &#8722;4% to +19%</span></p></li><li><p><span>Agent ranking changes ranging from &#8722;9 to +9 positions</span></p></li></ul><p><span>Notably, </span><a href="https://github.com/ShayanTalaei/CHESS"><span>CHESS</span></a><span> and </span><a href="https://github.com/genaasia/N-rep"><span>GenaSQL</span></a><span> demonstrate large relative improvements (+30.6% and +26.6%, respectively), moving from mid-ranked positions (7th and 6th) to a tie for 1st place at 81% execution accuracy on the corrected subset.</span></p><p><span>These results demonstrate that the measured performance and rankings of agents are highly sensitive to the annotation errors in the benchmark. When error rates are high, the reliability of the benchmark and leaderboard deteriorates, and it may no longer reflect the true relative performance of different agents.</span></p><p><strong><span>Takeaway:</span></strong><span> Our findings highlight the urgent need for high-quality text-to-SQL benchmarks. And if you&#8217;re developing or selecting a text-to-SQL agent for a downstream application, don&#8217;t blindly rely on existing benchmark scores or leaderboards&#8212;verify the data and inspect failure cases.</span></p><h2><span>Where Do These Errors Come From?</span></h2><p><span>A text-to-SQL annotation instance consists of three components: the natural language input (T), the ground-truth SQL query (Q), and the target database (D). Annotation errors can occur within any of these components or arise from inconsistencies among them. We categorize such errors into four recurring patterns:</span></p><ul><li><p><span>E1: Mismatches between the semantics of </span><em><span>Q</span></em><span> and the logic of </span><em><span>T</span></em><span>.</span></p></li></ul><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!rk9Y!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb74ec6ab-27e5-43aa-812b-139ed0e13933_1100x372.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!rk9Y!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb74ec6ab-27e5-43aa-812b-139ed0e13933_1100x372.png 424w, /__u/substackcdn.com/image/fetch/$s_!rk9Y!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb74ec6ab-27e5-43aa-812b-139ed0e13933_1100x372.png 848w, /__u/substackcdn.com/image/fetch/$s_!rk9Y!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb74ec6ab-27e5-43aa-812b-139ed0e13933_1100x372.png 1272w, /__u/substackcdn.com/image/fetch/$s_!rk9Y!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb74ec6ab-27e5-43aa-812b-139ed0e13933_1100x372.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!rk9Y!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb74ec6ab-27e5-43aa-812b-139ed0e13933_1100x372.png" width="532" height="179.91272727272727" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/b74ec6ab-27e5-43aa-812b-139ed0e13933_1100x372.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:372,&quot;width&quot;:1100,&quot;resizeWidth&quot;:532,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!rk9Y!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb74ec6ab-27e5-43aa-812b-139ed0e13933_1100x372.png 424w, /__u/substackcdn.com/image/fetch/$s_!rk9Y!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb74ec6ab-27e5-43aa-812b-139ed0e13933_1100x372.png 848w, /__u/substackcdn.com/image/fetch/$s_!rk9Y!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb74ec6ab-27e5-43aa-812b-139ed0e13933_1100x372.png 1272w, /__u/substackcdn.com/image/fetch/$s_!rk9Y!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb74ec6ab-27e5-43aa-812b-139ed0e13933_1100x372.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><ul><li><p><span>E2: Mismatches between the semantics of </span><em><span>Q</span></em><span> and </span><em><span>D</span></em><span> due to limited understanding of the data and the schema.</span></p></li></ul><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!2Y-e!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6cfa1be3-c7cb-4242-aa5a-82093154fdbd_1100x410.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!2Y-e!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6cfa1be3-c7cb-4242-aa5a-82093154fdbd_1100x410.png 424w, /__u/substackcdn.com/image/fetch/$s_!2Y-e!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6cfa1be3-c7cb-4242-aa5a-82093154fdbd_1100x410.png 848w, /__u/substackcdn.com/image/fetch/$s_!2Y-e!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6cfa1be3-c7cb-4242-aa5a-82093154fdbd_1100x410.png 1272w, /__u/substackcdn.com/image/fetch/$s_!2Y-e!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6cfa1be3-c7cb-4242-aa5a-82093154fdbd_1100x410.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!2Y-e!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6cfa1be3-c7cb-4242-aa5a-82093154fdbd_1100x410.png" width="540" height="201.27272727272728" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/6cfa1be3-c7cb-4242-aa5a-82093154fdbd_1100x410.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:410,&quot;width&quot;:1100,&quot;resizeWidth&quot;:540,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!2Y-e!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6cfa1be3-c7cb-4242-aa5a-82093154fdbd_1100x410.png 424w, /__u/substackcdn.com/image/fetch/$s_!2Y-e!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6cfa1be3-c7cb-4242-aa5a-82093154fdbd_1100x410.png 848w, /__u/substackcdn.com/image/fetch/$s_!2Y-e!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6cfa1be3-c7cb-4242-aa5a-82093154fdbd_1100x410.png 1272w, /__u/substackcdn.com/image/fetch/$s_!2Y-e!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6cfa1be3-c7cb-4242-aa5a-82093154fdbd_1100x410.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><ul><li><p><span>E3: Mismatches between the semantics of </span><em><span>Q</span></em><span> and the domain knowledge relevant to </span><em><span>T</span></em><span>, or misannotated domain knowledge in </span><em><span>T</span></em><span>.</span></p></li></ul><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!D8bx!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F78af03e2-4868-44f1-a463-bafec5a1ffd4_1100x548.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!D8bx!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F78af03e2-4868-44f1-a463-bafec5a1ffd4_1100x548.png 424w, /__u/substackcdn.com/image/fetch/$s_!D8bx!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F78af03e2-4868-44f1-a463-bafec5a1ffd4_1100x548.png 848w, /__u/substackcdn.com/image/fetch/$s_!D8bx!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F78af03e2-4868-44f1-a463-bafec5a1ffd4_1100x548.png 1272w, /__u/substackcdn.com/image/fetch/$s_!D8bx!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F78af03e2-4868-44f1-a463-bafec5a1ffd4_1100x548.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!D8bx!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F78af03e2-4868-44f1-a463-bafec5a1ffd4_1100x548.png" width="531" height="264.5345454545455" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/78af03e2-4868-44f1-a463-bafec5a1ffd4_1100x548.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:548,&quot;width&quot;:1100,&quot;resizeWidth&quot;:531,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!D8bx!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F78af03e2-4868-44f1-a463-bafec5a1ffd4_1100x548.png 424w, /__u/substackcdn.com/image/fetch/$s_!D8bx!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F78af03e2-4868-44f1-a463-bafec5a1ffd4_1100x548.png 848w, /__u/substackcdn.com/image/fetch/$s_!D8bx!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F78af03e2-4868-44f1-a463-bafec5a1ffd4_1100x548.png 1272w, /__u/substackcdn.com/image/fetch/$s_!D8bx!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F78af03e2-4868-44f1-a463-bafec5a1ffd4_1100x548.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 aria-hidden="true" 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><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><ul><li><p><span>E4: Ambiguity in </span><em><span>T</span></em><span>, such as multiple possible interpretations or an unclear output format.</span></p></li></ul><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!FFyL!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa088b426-5b47-4faa-88dc-cac2b11086a2_1100x452.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!FFyL!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa088b426-5b47-4faa-88dc-cac2b11086a2_1100x452.png 424w, /__u/substackcdn.com/image/fetch/$s_!FFyL!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa088b426-5b47-4faa-88dc-cac2b11086a2_1100x452.png 848w, /__u/substackcdn.com/image/fetch/$s_!FFyL!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa088b426-5b47-4faa-88dc-cac2b11086a2_1100x452.png 1272w, /__u/substackcdn.com/image/fetch/$s_!FFyL!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa088b426-5b47-4faa-88dc-cac2b11086a2_1100x452.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!FFyL!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa088b426-5b47-4faa-88dc-cac2b11086a2_1100x452.png" width="514" height="211.20727272727274" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/a088b426-5b47-4faa-88dc-cac2b11086a2_1100x452.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:452,&quot;width&quot;:1100,&quot;resizeWidth&quot;:514,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!FFyL!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa088b426-5b47-4faa-88dc-cac2b11086a2_1100x452.png 424w, /__u/substackcdn.com/image/fetch/$s_!FFyL!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa088b426-5b47-4faa-88dc-cac2b11086a2_1100x452.png 848w, /__u/substackcdn.com/image/fetch/$s_!FFyL!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa088b426-5b47-4faa-88dc-cac2b11086a2_1100x452.png 1272w, /__u/substackcdn.com/image/fetch/$s_!FFyL!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa088b426-5b47-4faa-88dc-cac2b11086a2_1100x452.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><p><span>We categorized examples by error pattern (each example may exhibit multiple patterns). E2 is the most common in both benchmarks: among examples with annotation errors, it occurs in 57.79% of BIRD Mini-Dev examples and 57.89% of Spider 2.0-Snow examples.</span></p><h2><span>Human-in-the-Loop Error Detection</span></h2><p><span>To make error detection scalable and systematic, we introduced SAR-Agent (SQL Annotation Reviewer), to our knowledge, the first AI agent designed to assist SQL experts in detecting text-to-SQL annotation errors.</span></p><h3><span>SAR-Agent: SQL Annotation Reviewer</span></h3><p><span>Given an annotation (the natural-language input and the &#8220;ground-truth&#8221; SQL) and the target database schema, SAR-Agent interacts with the database to generate a diagnostic report assessing the correctness of the annotation. Human SQL experts then review SAR-Agent-flagged cases, verify the stated reasons, and assign the final correctness label. To identify errors the agent may have missed, the experts also examine unflagged examples for recurring error patterns uncovered during this review.</span></p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!OddR!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fad652e8c-96c1-4d36-9b57-c5d1a5a04670_1748x272.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!OddR!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fad652e8c-96c1-4d36-9b57-c5d1a5a04670_1748x272.png 424w, /__u/substackcdn.com/image/fetch/$s_!OddR!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fad652e8c-96c1-4d36-9b57-c5d1a5a04670_1748x272.png 848w, /__u/substackcdn.com/image/fetch/$s_!OddR!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fad652e8c-96c1-4d36-9b57-c5d1a5a04670_1748x272.png 1272w, /__u/substackcdn.com/image/fetch/$s_!OddR!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fad652e8c-96c1-4d36-9b57-c5d1a5a04670_1748x272.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!OddR!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fad652e8c-96c1-4d36-9b57-c5d1a5a04670_1748x272.png" width="1456" height="227" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/ad652e8c-96c1-4d36-9b57-c5d1a5a04670_1748x272.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:227,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!OddR!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fad652e8c-96c1-4d36-9b57-c5d1a5a04670_1748x272.png 424w, /__u/substackcdn.com/image/fetch/$s_!OddR!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fad652e8c-96c1-4d36-9b57-c5d1a5a04670_1748x272.png 848w, /__u/substackcdn.com/image/fetch/$s_!OddR!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fad652e8c-96c1-4d36-9b57-c5d1a5a04670_1748x272.png 1272w, /__u/substackcdn.com/image/fetch/$s_!OddR!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fad652e8c-96c1-4d36-9b57-c5d1a5a04670_1748x272.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a><figcaption class="image-caption"><span>Overview of the SAR-Agent framework.</span></figcaption></figure></div><h3><span>SAR-Agent Helps Experts Find More Errors</span></h3><p><span>We evaluated SAR-Agent&#8217;s ability to detect annotation errors by comparing it against SQL experts from </span><a href="https://docs.google.com/spreadsheets/d/1IGm9Otruey60ujUnl8AOkepY3qgWHdFJHnX7hQGUeCw/edit?gid=0#gid=0"><span>the Arcwise team</span></a><span>. After manual verification, we found that SAR-Agent correctly detects 138 of 161 Arcwise-reported error cases (85.7% hit rate). In addition, SAR-Agent identifies 41.6% more error examples than the Arcwise team.</span></p><p><span>We released Arcwise-Plat-SQL and Arcwise-Plat on our </span><a href="https://github.com/uiuc-kang-lab/text_to_sql_benchmarks/tree/main"><span>GitHub repository</span></a><span>, extending Arcwise&#8217;s corrections to produce cleaner, more reliable BIRD Mini-Dev variants. We also made the </span><a href="https://github.com/uiuc-kang-lab/text_to_sql_benchmarks/tree/main/SAR-Agent"><span>SAR-Agent code</span></a><span> publicly available.</span></p><h2><span>Conclusion</span></h2><p><span>In this work, we find that widely used text-to-SQL benchmarks contain high annotation error rates, which substantially undermine the reliability of benchmark results and leaderboards. We develop a toolkit and offer practical guidance for building high-quality text-to-SQL benchmarks.</span></p><p><span>To better support both text-to-SQL research and real-world deployment, benchmark developers should prioritize annotation quality&#8212;not just quantity. We advocate using our proposed pipeline to create more reliable text-to-SQL benchmarks. Please see our </span><a href="https://arxiv.org/abs/2601.08778"><span>paper</span></a><span> for details and our </span><a href="https://github.com/uiuc-kang-lab/text_to_sql_benchmarks/tree/main"><span>GitHub repository</span></a><span> for the released resources.</span></p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://ddkang.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Daniel&#8217;s Substack! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[Provable Generalization Bounds for RLVR at the Billion-Parameter Scale]]></title><description><![CDATA[Reinforcement learning with verifiable rewards (RLVR) has become a critical tool for modern large language model (LLM) development.]]></description><link>https://ddkang.substack.com/p/provable-generalization-bounds-for</link><guid isPermaLink="false">https://ddkang.substack.com/p/provable-generalization-bounds-for</guid><dc:creator><![CDATA[Daniel Kang]]></dc:creator><pubDate>Mon, 20 Jul 2026 18:10:12 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!V4B7!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdac30ec8-6010-4e99-9839-beeb6acda701_2048x513.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><span>Reinforcement learning with verifiable rewards (RLVR) has become a critical tool for modern large language model (LLM) development. RLVR is used to improve the general-purpose reasoning abilities of frontier language models, and has proven particularly critical for </span><a href="https://arxiv.org/abs/2402.03300"><span>mathematical problem solving</span></a><span> and </span><a href="https://arxiv.org/pdf/2603.24477"><span>agentic coding</span></a><span>. Beyond the frontier, a model which is trained via RLVR can outperform much larger frontier models in specialized domains, making this approach especially attractive for enterprise tasks involving proprietary data. For example, </span><a href="https://www.databricks.com/blog/power-rlvr-training-leading-sql-reasoning-model-databricks"><span>Databricks</span></a><span> uses RLVR to train a text-to-SQL specialist that outperforms much larger frontier models in this domain.</span></p><p><span>Unfortunately, this kind of specialization often comes at the risk of overfitting: it can be unclear whether a model trained via RLVR has learned to generalize in deployment, or if it is simply memorizing its training data. Empirical studies have reported mixed results [</span><a href="https://arxiv.org/pdf/2512.20760"><span>1</span></a><span>, </span><a href="https://arxiv.org/pdf/2506.19733"><span>2</span></a><span>, </span><a href="https://arxiv.org/pdf/2510.02230"><span>3</span></a><span>], and our theoretical understanding of generalization remains limited in this context. Can we move beyond empirics to theoretically certify the generalizability of models trained via RLVR?</span></p><p><span>In this blog post, we introduce a framework that verifies the generalizability of RLVR models on fresh data drawn from the same distribution as the training data, and establish the first non-vacuous generalization bounds for RLVR at the billion-parameter scale. Across four real-world domains (math, programming, general-knowledge reasoning, and Text-to-SQL), our lower bounds for Qwen3.5-4B exceed the base model&#8217;s accuracy by 9&#8211;51%.</span></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!V4B7!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdac30ec8-6010-4e99-9839-beeb6acda701_2048x513.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!V4B7!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdac30ec8-6010-4e99-9839-beeb6acda701_2048x513.png 424w, /__u/substackcdn.com/image/fetch/$s_!V4B7!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdac30ec8-6010-4e99-9839-beeb6acda701_2048x513.png 848w, /__u/substackcdn.com/image/fetch/$s_!V4B7!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdac30ec8-6010-4e99-9839-beeb6acda701_2048x513.png 1272w, /__u/substackcdn.com/image/fetch/$s_!V4B7!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdac30ec8-6010-4e99-9839-beeb6acda701_2048x513.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!V4B7!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdac30ec8-6010-4e99-9839-beeb6acda701_2048x513.png" width="1456" height="365" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/dac30ec8-6010-4e99-9839-beeb6acda701_2048x513.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:365,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!V4B7!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdac30ec8-6010-4e99-9839-beeb6acda701_2048x513.png 424w, /__u/substackcdn.com/image/fetch/$s_!V4B7!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdac30ec8-6010-4e99-9839-beeb6acda701_2048x513.png 848w, /__u/substackcdn.com/image/fetch/$s_!V4B7!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdac30ec8-6010-4e99-9839-beeb6acda701_2048x513.png 1272w, /__u/substackcdn.com/image/fetch/$s_!V4B7!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdac30ec8-6010-4e99-9839-beeb6acda701_2048x513.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" 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><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><span>For more details, please check out our </span><a href="https://arxiv.org/abs/2607.14506"><span>paper</span></a><span> and </span><a href="https://github.com/uiuc-kang-lab/rlvr_generalization_bounds"><span>code</span></a><span>.</span></p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://ddkang.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Daniel&#8217;s Substack! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><h2><span>PAC-Bayes Compression Bounds for RLVR</span></h2><p><strong><span>TL;DR. </span></strong><span>We adopt the</span><strong><span> </span></strong><a href="https://arxiv.org/pdf/2211.13609"><span>PAC-Bayes</span></a><span> framework for proving generalization bounds. This class of approaches relies on the researcher&#8217;s prior over possible model specifications, and yields tight bounds whenever the trained model is concordant with this prior. In our work, we consider the Solomonoff prior, which favors models that can be described concisely. Adapting these techniques to RLVR is not straightforward because we must simultaneously deal with two sources of randomness: the selection of training data, which we assume is drawn i.i.d. from some underlying distribution, and the model&#8217;s own output tokens, which are nondeterministic even conditional on the prompt. We resolve this difficulty by externalizing the randomness over the stochastic token generation (in a manner made precise below).</span></p><p><span>For this mathematical guarantee to be meaningful for a billion-parameter model trained on a few hundred thousand prompts, we must compress the trained model into a few kilobytes. Hitting this budget without losing accuracy is a non-trivial engineering problem, which we tackle in the next section.</span></p><p><span>(More interested in the practical pipeline than the theoretical derivation? Skip to the next section.)</span></p><div><hr></div><p><span>Classic generalization bounds that depend on the complexity of the model class under consideration (e.g., </span><a href="https://dl.acm.org/doi/abs/10.1145/76359.76371"><span>VC dimension</span></a><span>) become vacuous at the billion-parameter scale. </span><a href="https://arxiv.org/pdf/2110.11216"><span>PAC-Bayes</span></a><span> bounds take a different approach by evaluating the trained model against a prior over possible model specifications. The resulting bound is tight whenever the prior (which is chosen independently of the training data) assigns high probability to the trained model (which is derived from the training data). In this work we adopt the </span><a href="https://en.wikipedia.org/wiki/Solomonoff%27s_theory_of_inductive_inference"><span>Solomonoff prior</span></a><span>, which favors models that can be described concisely; this can be viewed as an application of the </span><a href="https://en.wikipedia.org/wiki/Occam%27s_razor"><span>Occam&#8217;s-razor</span></a><span> principle. Specifically, we begin with the following </span><a href="https://arxiv.org/pdf/2211.13609"><span>compression-based bound</span></a><span>, which measures the generalization gap via the size of the model&#8217;s compressed representation.</span></p><div class="latex-rendered" data-attrs="{&quot;persistentExpression&quot;:&quot;\\underbrace{\\mathcal{R}(h)}_{\\substack{\\text{population objective}}}\n\\;\\geq\\;\n\\underbrace{\\hat{\\mathcal{R}}(h)}_{\\text{training objective}}\n\\;-\\;\n\\underbrace{\\Delta}_{\\substack{\\text{objective}\\\\ \\text{range}}}\n\\sqrt{\n\\frac{\n  \\overbrace{C(h) \\log 2 + 2 \\log C(h)}^{\\text{compression cost}}\n  \\;+\\;\n  \\overbrace{\\log(1/\\delta)}^{\\substack{\\text{confidence}}}\n}{\n  \\underbrace{m}_{\\substack{\\text{# training}\\\\ \\text{prompts}}}\n}\n}\n&quot;,&quot;id&quot;:&quot;QDPETPZIAM&quot;}" data-component-name="LatexBlockToDOM"></div><p>While the bound above applies to pre-training with the Negative Log-Likelihood (NLL) loss, it becomes intractable for RLVR. Unlike the NLL loss, which computes a deterministic number for an input prompt, the core objective of RLVR is defined over stochastically decoded tokens:</p><div class="latex-rendered" data-attrs="{&quot;persistentExpression&quot;:&quot;\\hat{\\mathcal{R}}(h) \\;=\\;\n\\mathbb{E}_{x \\sim \\{x_i\\}_{i=1}^m}\\!\\left[\n\\mathbb{E}_{y \\sim \\pi_h(\\cdot \\mid x)}\\!\\left[\n\\underbrace{r(x, y)}_{\\substack{\\text{verifiable}\\\\ \\text{reward}}}\n\\right]\n\\right]\n&quot;,&quot;id&quot;:&quot;TUTIWHGGAS&quot;}" data-component-name="LatexBlockToDOM"></div><p><span>The inner expectation calculates a rule-based reward over the entire sequence generation distribution, making it intractable. To tackle this, we apply the</span><a href="https://lips.cs.princeton.edu/the-gumbel-max-trick-for-discrete-distributions/"><span> Gumbel-max trick</span></a><span>, which turns a stochastic process (drawing from a categorical distribution) into a deterministic function of random noise:</span></p><div class="latex-rendered" data-attrs="{&quot;persistentExpression&quot;:&quot;v \\sim \\text{Categorical}(\\ell)\n\\;\\equiv\\;\n\\mathop{\\arg\\max}_v \n\\bigl(\\ell^{(v)} + \\xi^{(v)}\\bigr), \n\\text{with } \\xi \n\\;\\overset{\\mathrm{iid}}{\\sim}\\; \n\\mathrm{Gumbel}(0, 1).&quot;,&quot;id&quot;:&quot;DRSMAIXWDB&quot;}" data-component-name="LatexBlockToDOM"></div><p><span>We then model the stochastic token decoding process as a deterministic function of an input prompt, Gumbel noise, and a hypothesis, which in turn results in an approximation of the training objective:</span></p><div class="latex-rendered" data-attrs="{&quot;persistentExpression&quot;:&quot;\\mathcal{\\hat{\\hat{R}}}(h)\n\\;=\\; \n\\mathbb{E}_{x \\sim \\{x_i\\}_{i=1}^m,\\, \\xi \\sim \\{\\xi_j\\}_{j=1}^{mn}}\\!\\left[\nr\\bigl(x, g(x, \\xi; h)\\bigr)\n\\right].&quot;,&quot;id&quot;:&quot;HCIMTWTLEK&quot;}" data-component-name="LatexBlockToDOM"></div><p><span>The final step is to apply PAC-Bayes bounds twice to measure:</span></p><ol><li><p><em>Intrinsic penalty</em>: the gap between the approximated training objective and the true training objective, and</p></li><li><p><em><span>External penalty</span></em><span>: the gap between the training objective and the population objective.</span></p></li></ol><p><span>Putting them together yields the final bound:</span></p><div class="latex-rendered" data-attrs="{&quot;persistentExpression&quot;:&quot;\\mathcal{R}(h) \n\\;\\geq\\; \n\\frac{1}{mn}\\sum_{i,j} r\\bigl(x_i,\\, g(x_i, \\xi_{i,j}; h)\\bigr) \n\\;-\\; \n\\Delta\\!\\left(1 + \\frac{1}{\\sqrt{n}}\\right)\n\\sqrt{\\frac{C(h)\\log 2 + \\log(2/\\delta)}{m}}.\n&quot;,&quot;id&quot;:&quot;PLIKNHSISS&quot;}" data-component-name="LatexBlockToDOM"></div><p><span>This bound is non-vacuous only when </span><em><span>C(h)</span></em><span> is small with respect to </span><em><span>m</span></em><span>, requiring us to compress the trained model to far fewer bits than the number of training prompts. Fortunately, the PAC-Bayes argument is agnostic to the training procedure, giving us full flexibility to engineer a pipeline that meets this compression budget while preserving RLVR&#8217;s empirical reward. We describe such a pipeline in the next section.</span></p><h2><span>Achieving a High Compression Ratio via Progressive RLVR</span></h2><p><span>Before we dive into our pipeline, let&#8217;s first understand how the standard approach fails. Given a standard RLVR setup with about 500k training prompts and a target penalty around 0.1, we need </span><em><span>C(h) </span></em><span>on the order of a few kilobytes, which is more than 500 times smaller than a minimal standard LoRA adapter (rank=1) on a 4B base model.</span></p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!Xtjr!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F00962217-5b14-46d0-b5da-b08ff0b7390a_2048x269.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!Xtjr!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F00962217-5b14-46d0-b5da-b08ff0b7390a_2048x269.png 424w, /__u/substackcdn.com/image/fetch/$s_!Xtjr!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F00962217-5b14-46d0-b5da-b08ff0b7390a_2048x269.png 848w, /__u/substackcdn.com/image/fetch/$s_!Xtjr!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F00962217-5b14-46d0-b5da-b08ff0b7390a_2048x269.png 1272w, /__u/substackcdn.com/image/fetch/$s_!Xtjr!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F00962217-5b14-46d0-b5da-b08ff0b7390a_2048x269.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!Xtjr!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F00962217-5b14-46d0-b5da-b08ff0b7390a_2048x269.png" width="1456" height="191" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/00962217-5b14-46d0-b5da-b08ff0b7390a_2048x269.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:191,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!Xtjr!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F00962217-5b14-46d0-b5da-b08ff0b7390a_2048x269.png 424w, /__u/substackcdn.com/image/fetch/$s_!Xtjr!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F00962217-5b14-46d0-b5da-b08ff0b7390a_2048x269.png 848w, /__u/substackcdn.com/image/fetch/$s_!Xtjr!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F00962217-5b14-46d0-b5da-b08ff0b7390a_2048x269.png 1272w, /__u/substackcdn.com/image/fetch/$s_!Xtjr!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F00962217-5b14-46d0-b5da-b08ff0b7390a_2048x269.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a></figure></div><p><span>While simultaneously achieving small compression size and large rewards is challenging, one advantage of the PAC-Bayes framework is that it does not imply any constraints on the training procedure. This decouples </span><em><span>capacity used during training</span></em><span> from </span><em><span>capacity charged to the bound</span></em><span>. Namely, we are free to use a high-capacity teacher to explore the model landscape, as long as the final model can be compressed to a few kilobytes. To exploit this asymmetry, we introduce the following Progressive RLVR pipeline:</span></p><ol><li><p><em>On-policy distillation</em>: Running RLVR with a small parameter budget often leads to sub-optimal results because the reward signal is sparse. Instead, we first train a teacher without a parameter budget, and then distill it into a small student via <a href="https://arxiv.org/pdf/2306.13649"><span>on-policy distillation</span></a>, which provides dense, token-level supervision.</p></li><li><p><span>TinyLoRA: Standard </span><a href="https://arxiv.org/pdf/2106.09685"><span>LoRA</span></a><span> parameterization requires at least </span><em><span>d </span></em><span>(input dimension) + </span><em><span>k</span></em><span> (output dimension) per layer, which is still too many parameters to achieve non-vacuous bounds. In contrast, </span><a href="https://arxiv.org/pdf/2602.04118v1"><span>TinyLoRA</span></a><span> reparameterizes the weight updates into an arbitrary number of trainable parameters, leveraging truncated SVD and randomized projection:</span></p></li></ol><div class="latex-rendered" data-attrs="{&quot;persistentExpression&quot;:&quot;\\Delta W \n\\;=\\;\n\\underbrace{U\\Sigma}_{\\substack{\\text{truncated SVD of}\\\\\\text{base weight}}}\n\\left(\\sum_{i=1}^u\n\\underbrace{v_i}_{\\substack{\\text{trainable}\\\\\\text{scalar}}}\n\\,\n\\underbrace{P_i}_{\\substack{\\text{fixed random}\\\\\\text{basis}}}\n\\right)\n\\underbrace{V^\\top}_{\\substack{\\text{truncated SVD}}}\n&quot;,&quot;id&quot;:&quot;UJFGQYOWTS&quot;}" data-component-name="LatexBlockToDOM"></div><ol start="3"><li><p>Quantization: After training, we quantize the TinyLoRA adapter into a small number of discrete, uniform levels, which significantly reduces the compression size with mild accuracy degradation.</p></li></ol><h2><span>Non-vacuous Bounds for Billion-Parameter LLMs</span></h2><p><span>We evaluate the full pipeline on </span><a href="https://huggingface.co/Qwen/Qwen3.5-4B"><span>Qwen3.5-4B</span></a><span> across four real-world RLVR domains:</span></p><ol><li><p><span>Mathematical problem-solving: </span><a href="https://huggingface.co/datasets/PRIME-RL/Eurus-2-RL-Data"><span>Eurus-2-RL-Math</span></a><span> (456k prompts)</span></p></li><li><p><span>Programming: </span><a href="https://huggingface.co/datasets/PRIME-RL/Eurus-2-RL-Data"><span>Eurus-2-RL-Code</span></a><span> and </span><a href="https://huggingface.co/datasets/KodCode/KodCode-V1"><span>KodCode-V1</span></a><span> (505k prompts)</span></p></li><li><p><span>General-knowledge reasoning: </span><a href="https://huggingface.co/datasets/bigbio/med_qa"><span>Med-QA</span></a><span>, </span><a href="https://huggingface.co/datasets/cais/mmlu"><span>MMLU</span></a><span>, </span><a href="https://huggingface.co/datasets/nguha/legalbench"><span>LegalBench</span></a><span>, </span><a href="https://huggingface.co/datasets/lucasmccabe/logiqa/tree/refs%2Fconvert%2Fparquet"><span>LogiQA</span></a><span>, </span><a href="https://huggingface.co/datasets/ceval/ceval-exam"><span>C-Eval</span></a><span>, and </span><a href="https://huggingface.co/datasets/allenai/ai2_arc"><span>ARC</span></a><span> (439k prompts)</span></p></li><li><p><span>Text-to-SQL: </span><a href="https://huggingface.co/datasets/seeklhy/SynSQL-2.5M"><span>SynSQL-2.5M</span></a><span> (2.5M prompts).</span></p></li></ol><p><span>For mathematical problem-solving, programming, and general-knowledge reasoning, we use binary rewards {0, 1}, which directly reflect accuracy. For Text-to-SQL, we use a </span><a href="https://novasky-ai.notion.site/skyrl-sql"><span>tri-level reward</span></a><span> structure {-1, 0, 1} to penalize unparsable responses. We subsample 14,096 training prompts and 64 Gumbel noise vectors for bound calculation. We use a failure probability of 0.05 and a quantization level of 5 (about 2.3 bits) by default.</span></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!N0un!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7f01d977-37c6-4c16-9707-4b9b7d2437f1_2048x513.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!N0un!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7f01d977-37c6-4c16-9707-4b9b7d2437f1_2048x513.png 424w, /__u/substackcdn.com/image/fetch/$s_!N0un!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7f01d977-37c6-4c16-9707-4b9b7d2437f1_2048x513.png 848w, /__u/substackcdn.com/image/fetch/$s_!N0un!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7f01d977-37c6-4c16-9707-4b9b7d2437f1_2048x513.png 1272w, /__u/substackcdn.com/image/fetch/$s_!N0un!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7f01d977-37c6-4c16-9707-4b9b7d2437f1_2048x513.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!N0un!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7f01d977-37c6-4c16-9707-4b9b7d2437f1_2048x513.png" width="1456" height="365" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/7f01d977-37c6-4c16-9707-4b9b7d2437f1_2048x513.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:365,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!N0un!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7f01d977-37c6-4c16-9707-4b9b7d2437f1_2048x513.png 424w, /__u/substackcdn.com/image/fetch/$s_!N0un!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7f01d977-37c6-4c16-9707-4b9b7d2437f1_2048x513.png 848w, /__u/substackcdn.com/image/fetch/$s_!N0un!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7f01d977-37c6-4c16-9707-4b9b7d2437f1_2048x513.png 1272w, /__u/substackcdn.com/image/fetch/$s_!N0un!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7f01d977-37c6-4c16-9707-4b9b7d2437f1_2048x513.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 aria-hidden="true" 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><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><span>As shown in the figure above, our bound exceeds the empirical accuracy of the base model and tracks the student&#8217;s empirical accuracy closely. Across all four domains, the gap between the generalization bound and the student&#8217;s own training accuracy is 6&#8211;11%. Furthermore, on every domain, the bound lies 9&#8211;51% above the pre-RLVR base model&#8217;s empirical accuracy.</span></p><p><span>Digging deeper, we decompose the bounds into specific penalties: intrinsic penalty, external penalty, distillation-and-quantization penalty, and subsampling penalty. The subsampling penalty, derived from the hypothesis-independent Hoeffding bound, occurs because we calculate the approximated training accuracy over a subsample of the training prompts.</span></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!CKJe!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4bec3a5b-f5a7-4b85-8719-4bc3b7026fe1_1421x837.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!CKJe!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4bec3a5b-f5a7-4b85-8719-4bc3b7026fe1_1421x837.png 424w, /__u/substackcdn.com/image/fetch/$s_!CKJe!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4bec3a5b-f5a7-4b85-8719-4bc3b7026fe1_1421x837.png 848w, /__u/substackcdn.com/image/fetch/$s_!CKJe!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4bec3a5b-f5a7-4b85-8719-4bc3b7026fe1_1421x837.png 1272w, /__u/substackcdn.com/image/fetch/$s_!CKJe!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4bec3a5b-f5a7-4b85-8719-4bc3b7026fe1_1421x837.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!CKJe!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4bec3a5b-f5a7-4b85-8719-4bc3b7026fe1_1421x837.png" width="1421" height="837" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/4bec3a5b-f5a7-4b85-8719-4bc3b7026fe1_1421x837.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:837,&quot;width&quot;:1421,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!CKJe!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4bec3a5b-f5a7-4b85-8719-4bc3b7026fe1_1421x837.png 424w, /__u/substackcdn.com/image/fetch/$s_!CKJe!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4bec3a5b-f5a7-4b85-8719-4bc3b7026fe1_1421x837.png 848w, /__u/substackcdn.com/image/fetch/$s_!CKJe!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4bec3a5b-f5a7-4b85-8719-4bc3b7026fe1_1421x837.png 1272w, /__u/substackcdn.com/image/fetch/$s_!CKJe!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4bec3a5b-f5a7-4b85-8719-4bc3b7026fe1_1421x837.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 aria-hidden="true" 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><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><span>As shown in the figure above, we find that the intrinsic and subsampling penalties are small across all four domains, confirming that our subsample size and number of noise draws are sufficient. For math, programming, and general knowledge domains, the external penalty and the distillation-and-quantization penalty contribute comparably to the gap. Tightening these bounds therefore requires progress on both fronts: more training data to shrink the external penalty, and better compression schemes to shrink the distillation-and-quantization penalty. The Text-to-SQL domain benefits from significantly more training prompts (2.5M) than other domains (about 500K), leaving the bound close to the teacher&#8217;s empirical reward.</span></p><p><span>Finally, we perform an ablation study to understand the importance of each ingredient of Progressive RLVR. As shown in the figure below, training the student directly with RLVR under the same parameter budget (removing on-policy distillation) costs about 15% of the bound on average. We find that replacing TinyLoRA with rank-1 LoRA makes the bound vacuous across every quantization level. Even when we shrink the base to Qwen3.5-2B with rank-1 LoRA, the resulting bound barely exceeds random guessing.</span></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!r360!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faa9a28f9-ecab-4945-b7f4-13a8e9aab1c7_1402x931.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!r360!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faa9a28f9-ecab-4945-b7f4-13a8e9aab1c7_1402x931.png 424w, /__u/substackcdn.com/image/fetch/$s_!r360!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faa9a28f9-ecab-4945-b7f4-13a8e9aab1c7_1402x931.png 848w, /__u/substackcdn.com/image/fetch/$s_!r360!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faa9a28f9-ecab-4945-b7f4-13a8e9aab1c7_1402x931.png 1272w, /__u/substackcdn.com/image/fetch/$s_!r360!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faa9a28f9-ecab-4945-b7f4-13a8e9aab1c7_1402x931.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!r360!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faa9a28f9-ecab-4945-b7f4-13a8e9aab1c7_1402x931.png" width="1402" height="931" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/aa9a28f9-ecab-4945-b7f4-13a8e9aab1c7_1402x931.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:931,&quot;width&quot;:1402,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!r360!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faa9a28f9-ecab-4945-b7f4-13a8e9aab1c7_1402x931.png 424w, /__u/substackcdn.com/image/fetch/$s_!r360!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faa9a28f9-ecab-4945-b7f4-13a8e9aab1c7_1402x931.png 848w, /__u/substackcdn.com/image/fetch/$s_!r360!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faa9a28f9-ecab-4945-b7f4-13a8e9aab1c7_1402x931.png 1272w, /__u/substackcdn.com/image/fetch/$s_!r360!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Faa9a28f9-ecab-4945-b7f4-13a8e9aab1c7_1402x931.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 aria-hidden="true" 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><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><span>As illustrated in the plot, we sweep over various quantization levels and identify a non-monotonic trade-off between the bound and the quantization level. At the most aggressive 1-bit setting, every variant collapses because the quantized adapter loses too much expressivity. At the other extreme, adding precision increases </span><em><span>C(h)</span></em><span> faster than it improves the training accuracy, leading to increasingly loose bounds as the number of levels grows.</span></p><p><span>Our experimentation was enabled by Thinking Machine&#8217;s Tinker, which accelerated our research by providing great infrastructure to experiment with.</span></p><h2><span>Conclusion</span></h2><p><span>RLVR is the engine behind today&#8217;s frontier reasoning models, yet its ability to generalize to unseen data has remained a theoretical blind spot. This uncertainty is a major bottleneck for enterprise AI. Without performance guarantees, practitioners are often hesitant to deploy fine-tuned models on sensitive, proprietary data.</span></p><p><span>By pairing a compression-based PAC-Bayes framework with a highly tailored training pipeline, we establish the first non-vacuous generalization bounds for RLVR. Empirically, we demonstrate that our bounds are tight across four real-world application domains, within 6&#8211;11% of the model&#8217;s training accuracy.</span></p><p><span>While our framework certifies in-domain generalization for stationary environments, the next frontier lies in dynamic settings (e.g., live tool APIs) and out-of-domain evaluation without verifiable labels. Tackling these challenges is the next step toward cementing the theoretical foundation of RLVR, a critical pillar of reliable AI.</span></p><p><span>Find more details about our work here:</span></p><p><span>Paper: </span>https://arxiv.org/abs/2607.14506 </p><p><span>Code: </span><a href="https://github.com/uiuc-kang-lab/rlvr_generalization_bounds"><span>https://github.com/uiuc-kang-lab/rlvr_generalization_bounds</span></a></p><p><em>This post was written by Yuxuan Zhu, Rohan Alur, and Daniel Kang</em></p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://ddkang.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Daniel&#8217;s Substack! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[Accelerating Analytical Joins on Unstructured Data]]></title><description><![CDATA[Semantic joins over unstructured data have become essential to modern data analytics.]]></description><link>https://ddkang.substack.com/p/accelerating-analytical-joins-on</link><guid isPermaLink="false">https://ddkang.substack.com/p/accelerating-analytical-joins-on</guid><dc:creator><![CDATA[Daniel Kang]]></dc:creator><pubDate>Wed, 27 May 2026 14:56:48 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!M6tL!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa49c7883-4c01-4975-87a5-589f27ff761d_2048x716.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Semantic joins over unstructured data have become essential to modern data analytics. Today, e-commerce business analysts <a href="https://www.priceintelguru.com/article/product-matching-in-ecommerce">track competitors&#8217; pricing data</a> by <a href="https://dataweave.com/blog/ai-powered-product-matching-the-key-to-competitive-pricing-intelligence-in-ecommerce">matching and aggregating products from multiple datasets ranging from thousands to millions of records</a>, Similarly, to <a href="https://www.integritynext.com/resources/blog/article/multi-tier-supply-chain-visibility-transforming-sustainable-supply-chains-with-ai">identify high-risk paths in the supply chain</a> supply-chain analysts reconcile records across multiple tiers of suppliers, where <a href="https://tracextech.com/multi-tier-supply-chain-transparency/">each tier logs shipments, components, and origins in its own narrative format</a>.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!M6tL!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa49c7883-4c01-4975-87a5-589f27ff761d_2048x716.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!M6tL!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa49c7883-4c01-4975-87a5-589f27ff761d_2048x716.png 424w, /__u/substackcdn.com/image/fetch/$s_!M6tL!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa49c7883-4c01-4975-87a5-589f27ff761d_2048x716.png 848w, /__u/substackcdn.com/image/fetch/$s_!M6tL!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa49c7883-4c01-4975-87a5-589f27ff761d_2048x716.png 1272w, /__u/substackcdn.com/image/fetch/$s_!M6tL!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa49c7883-4c01-4975-87a5-589f27ff761d_2048x716.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!M6tL!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa49c7883-4c01-4975-87a5-589f27ff761d_2048x716.png" width="1456" height="509" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/a49c7883-4c01-4975-87a5-589f27ff761d_2048x716.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:509,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!M6tL!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa49c7883-4c01-4975-87a5-589f27ff761d_2048x716.png 424w, /__u/substackcdn.com/image/fetch/$s_!M6tL!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa49c7883-4c01-4975-87a5-589f27ff761d_2048x716.png 848w, /__u/substackcdn.com/image/fetch/$s_!M6tL!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa49c7883-4c01-4975-87a5-589f27ff761d_2048x716.png 1272w, /__u/substackcdn.com/image/fetch/$s_!M6tL!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa49c7883-4c01-4975-87a5-589f27ff761d_2048x716.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" 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><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><em>E-commerce price comparison as a semantic join.</em></figcaption></figure></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!fjil!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F686563bc-dd77-4c7f-8c70-27606fb1e3d5_2048x653.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!fjil!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F686563bc-dd77-4c7f-8c70-27606fb1e3d5_2048x653.png 424w, /__u/substackcdn.com/image/fetch/$s_!fjil!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F686563bc-dd77-4c7f-8c70-27606fb1e3d5_2048x653.png 848w, /__u/substackcdn.com/image/fetch/$s_!fjil!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F686563bc-dd77-4c7f-8c70-27606fb1e3d5_2048x653.png 1272w, /__u/substackcdn.com/image/fetch/$s_!fjil!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F686563bc-dd77-4c7f-8c70-27606fb1e3d5_2048x653.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!fjil!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F686563bc-dd77-4c7f-8c70-27606fb1e3d5_2048x653.png" width="1456" height="464" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/686563bc-dd77-4c7f-8c70-27606fb1e3d5_2048x653.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:464,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!fjil!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F686563bc-dd77-4c7f-8c70-27606fb1e3d5_2048x653.png 424w, /__u/substackcdn.com/image/fetch/$s_!fjil!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F686563bc-dd77-4c7f-8c70-27606fb1e3d5_2048x653.png 848w, /__u/substackcdn.com/image/fetch/$s_!fjil!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F686563bc-dd77-4c7f-8c70-27606fb1e3d5_2048x653.png 1272w, /__u/substackcdn.com/image/fetch/$s_!fjil!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F686563bc-dd77-4c7f-8c70-27606fb1e3d5_2048x653.png 1456w" sizes="100vw"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" 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><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><em>Multi-tier supply chain risk analysis as a four-way semantic join. Each tier is a separate organization logging activity in invoices, manifests, and similar narrative documents often without shared schema to join on.</em></figcaption></figure></div><p>To process the complex semantic joins accurately, researchers leverage deep learning methods as an <em>oracle</em>. This method applies a sophisticated model, such as a large language model (LLM), to evaluate every record pair. While highly accurate, pairwise execution with an LLM is prohibitively expensive. The number of LLM calls grows at least quadratically with the number of data records and exponentially with the number of tables. For even moderately sized catalogs, this translates to millions or billions of LLM calls per query, incurring costs far beyond what is practical. For example, performing a semantic join on the <a href="https://dl.acm.org/doi/10.1145/3183713.3196926">Magellan Company dataset</a> costs $43K with GPT-4o mini using the <a href="https://arxiv.org/abs/2205.09911">SOTA prompt</a>.</p><p>To accelerate such analytical join queries on unstructured data, we propose Blocking-Augmented Sampling (BaS), adaptively orchestrating blocking (executing an oracle only on highly likely pairs) and sampling (unbiased estimation of the population) based on the failure modes of semantic embeddings. BaS supports a wide range of aggregation, including COUNT, AVG, SUM, MEDIAN, MIN, and MAX, and delivers up to 19&#215; lower errors with statistical guarantees.</p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!IQ-B!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe553c420-5f11-4c60-8e7a-d5656c7afd96_2048x367.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!IQ-B!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe553c420-5f11-4c60-8e7a-d5656c7afd96_2048x367.png 424w, /__u/substackcdn.com/image/fetch/$s_!IQ-B!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe553c420-5f11-4c60-8e7a-d5656c7afd96_2048x367.png 848w, /__u/substackcdn.com/image/fetch/$s_!IQ-B!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe553c420-5f11-4c60-8e7a-d5656c7afd96_2048x367.png 1272w, /__u/substackcdn.com/image/fetch/$s_!IQ-B!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe553c420-5f11-4c60-8e7a-d5656c7afd96_2048x367.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!IQ-B!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe553c420-5f11-4c60-8e7a-d5656c7afd96_2048x367.png" width="1456" height="261" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/e553c420-5f11-4c60-8e7a-d5656c7afd96_2048x367.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:261,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!IQ-B!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe553c420-5f11-4c60-8e7a-d5656c7afd96_2048x367.png 424w, /__u/substackcdn.com/image/fetch/$s_!IQ-B!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe553c420-5f11-4c60-8e7a-d5656c7afd96_2048x367.png 848w, /__u/substackcdn.com/image/fetch/$s_!IQ-B!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe553c420-5f11-4c60-8e7a-d5656c7afd96_2048x367.png 1272w, /__u/substackcdn.com/image/fetch/$s_!IQ-B!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe553c420-5f11-4c60-8e7a-d5656c7afd96_2048x367.png 1456w" sizes="100vw"></picture><div></div></div></a><figcaption class="image-caption"><em>Relative RMSE versus oracle budget on four representative datasets. BaS consistently achieves the lowest error across all budgets.</em></figcaption></figure></div><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://ddkang.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Daniel&#8217;s Substack! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><h2>Balance Efficiency and Accuracy with Blocking-Augmented Sampling</h2><p>To avoid evaluating every single pair of records, prior data systems have developed two approximation methods: sampling and blocking. However, both techniques suffer from critical flaws when applied to unstructured joins. Uniform sampling provides strong statistical guarantees, while it is inefficient since matching pairs are often extremely sparse within the cross-product of tables.</p><p>Conversely, embedding-based blocking uses fast, lightweight embedding models to calculate similarity scores, filtering out any pairs that fall below a certain threshold. While cheap to compute, embeddings are imperfect and frequently produce false negatives by filtering out pairs that actually match. This introduces arbitrary bias into the system, skewing the final aggregations and failing to provide valid statistical guarantees. Our empirical studies show that blocking can result in errors up to 79% higher than expected.</p><p>We introduce Blocking-Augmented Sampling (BaS) to combine the best of both worlds and mitigate their drawbacks using adaptive orchestration. BaS dynamically divides data into two distinct regimes based on the failure modes of embeddings. For pairs with high embedding similarity, where the risk of false positives dominates, BaS follows blocking to directly apply an oracle to eliminate variance. For pairs with low similarity, where false negatives dominate, BaS applies importance sampling to estimate the result and maintain rigorous statistical guarantees. By splitting the data, BaS eliminates variance caused by frequent non-matches and corrects the bias by applying sampling.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!4BNI!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F878ce77f-26ae-4398-b8e2-02bff525abf0_2048x693.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!4BNI!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F878ce77f-26ae-4398-b8e2-02bff525abf0_2048x693.png 424w, /__u/substackcdn.com/image/fetch/$s_!4BNI!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F878ce77f-26ae-4398-b8e2-02bff525abf0_2048x693.png 848w, /__u/substackcdn.com/image/fetch/$s_!4BNI!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F878ce77f-26ae-4398-b8e2-02bff525abf0_2048x693.png 1272w, /__u/substackcdn.com/image/fetch/$s_!4BNI!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F878ce77f-26ae-4398-b8e2-02bff525abf0_2048x693.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!4BNI!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F878ce77f-26ae-4398-b8e2-02bff525abf0_2048x693.png" width="1456" height="493" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/878ce77f-26ae-4398-b8e2-02bff525abf0_2048x693.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:493,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!4BNI!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F878ce77f-26ae-4398-b8e2-02bff525abf0_2048x693.png 424w, /__u/substackcdn.com/image/fetch/$s_!4BNI!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F878ce77f-26ae-4398-b8e2-02bff525abf0_2048x693.png 848w, /__u/substackcdn.com/image/fetch/$s_!4BNI!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F878ce77f-26ae-4398-b8e2-02bff525abf0_2048x693.png 1272w, /__u/substackcdn.com/image/fetch/$s_!4BNI!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F878ce77f-26ae-4398-b8e2-02bff525abf0_2048x693.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 aria-hidden="true" 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><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><em>Overview of Blocking-Augmented Sampling (BaS). The cross product is partitioned by embedding similarity into a high-similarity blocking regime and a low-similarity sampling regime.</em></figcaption></figure></div><h2>Adaptive Data Allocation with Statistical Guarantees</h2><p>The core technical challenge of making BaS work is determining the optimal boundary between the blocking and sampling regimes given a fixed budget for ML executions. Empirically, we find that choosing the wrong boundary is disastrous. Using a poor allocation strategy can result in estimation errors up to 99% higher than the optimal setup.</p><p>To solve this, we develop a novel adaptive allocation algorithm via two-stage stratified sampling. Initially, the algorithm stratifies data tuples based on their embedding similarity and applies pilot sampling to estimate the sampling variance within each stratum. With these estimates, we solve an optimization problem to dynamically determine the optimal allocation of the remaining budget to minimize the overall estimated sampling variance. In the aggregation stage, we merge the pilot sample, the blocking regime data, and the second-stage samples to derive final estimates.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!yLnc!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd945ea58-4839-43af-83a7-5aa1f16ac041_2048x813.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!yLnc!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd945ea58-4839-43af-83a7-5aa1f16ac041_2048x813.png 424w, /__u/substackcdn.com/image/fetch/$s_!yLnc!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd945ea58-4839-43af-83a7-5aa1f16ac041_2048x813.png 848w, /__u/substackcdn.com/image/fetch/$s_!yLnc!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd945ea58-4839-43af-83a7-5aa1f16ac041_2048x813.png 1272w, /__u/substackcdn.com/image/fetch/$s_!yLnc!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd945ea58-4839-43af-83a7-5aa1f16ac041_2048x813.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!yLnc!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd945ea58-4839-43af-83a7-5aa1f16ac041_2048x813.png" width="1456" height="578" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/d945ea58-4839-43af-83a7-5aa1f16ac041_2048x813.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:578,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!yLnc!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd945ea58-4839-43af-83a7-5aa1f16ac041_2048x813.png 424w, /__u/substackcdn.com/image/fetch/$s_!yLnc!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd945ea58-4839-43af-83a7-5aa1f16ac041_2048x813.png 848w, /__u/substackcdn.com/image/fetch/$s_!yLnc!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd945ea58-4839-43af-83a7-5aa1f16ac041_2048x813.png 1272w, /__u/substackcdn.com/image/fetch/$s_!yLnc!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd945ea58-4839-43af-83a7-5aa1f16ac041_2048x813.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 aria-hidden="true" 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><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><em>Adaptive allocation via two-stage stratified sampling. The cross-product is stratified by embedding similarity into multiple strata. We use pilot sampling to estimate the variance in each stratum, and a total-variance-minimization step to assign each stratum to either the blocking or sampling regime.</em></figcaption></figure></div><p>Since merging data from two dependent stages breaks data independence, standard confidence intervals fail to hold. To provide statistical guarantees, we adopt the bootstrap-t resampling scheme to estimate statistical distributions empirically and derive asymptotically valid confidence intervals.</p><p><strong>Extensions. </strong>BaS with adaptive allocation is highly extensible and can natively handle ratio estimators for AVG, alongside extreme estimators (MIN and MAX), quantile estimators (MEDIAN), GroupBy aggregation, and selection queries with statistical guarantees. We defer extension details to our <a href="https://arxiv.org/abs/2603.16153">paper</a>.</p><h2>BaS Achieves Up to 19&#215; Error Reduction with Statistical Guarantees</h2><p>We implemented BaS in a prototype system, JoinML, and rigorously evaluated it across 16 datasets covering text, image, and bimodal modalities. We compared with various baselines, including:</p><ol><li><p> State-of-the-art approximate analytical query processing algorithms: <a href="https://arxiv.org/abs/2108.06313">ABae</a> and <a href="https://arxiv.org/abs/1805.01046">BlazeIt</a>.</p></li><li><p>State-of-the-art approximate selection query processing algorithms: <a href="https://arxiv.org/abs/2004.00827">SUPG</a> and <a href="https://arxiv.org/abs/2407.11418v1">LOTUS</a>.</p></li><li><p>Standard sampling algorithms: uniform sampling and importance sampling (implemented as weighted wander join or WWJ).</p></li></ol><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!4o_X!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F418fa4b3-8ddb-46cf-bb5d-584985d3853f_2048x367.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!4o_X!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F418fa4b3-8ddb-46cf-bb5d-584985d3853f_2048x367.png 424w, /__u/substackcdn.com/image/fetch/$s_!4o_X!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F418fa4b3-8ddb-46cf-bb5d-584985d3853f_2048x367.png 848w, /__u/substackcdn.com/image/fetch/$s_!4o_X!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F418fa4b3-8ddb-46cf-bb5d-584985d3853f_2048x367.png 1272w, /__u/substackcdn.com/image/fetch/$s_!4o_X!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F418fa4b3-8ddb-46cf-bb5d-584985d3853f_2048x367.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!4o_X!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F418fa4b3-8ddb-46cf-bb5d-584985d3853f_2048x367.png" width="1456" height="261" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/418fa4b3-8ddb-46cf-bb5d-584985d3853f_2048x367.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:261,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!4o_X!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F418fa4b3-8ddb-46cf-bb5d-584985d3853f_2048x367.png 424w, /__u/substackcdn.com/image/fetch/$s_!4o_X!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F418fa4b3-8ddb-46cf-bb5d-584985d3853f_2048x367.png 848w, /__u/substackcdn.com/image/fetch/$s_!4o_X!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F418fa4b3-8ddb-46cf-bb5d-584985d3853f_2048x367.png 1272w, /__u/substackcdn.com/image/fetch/$s_!4o_X!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F418fa4b3-8ddb-46cf-bb5d-584985d3853f_2048x367.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a><figcaption class="image-caption"><em>Relative RMSE versus oracle budget on linear aggregators across four datasets. BaS (blue) consistently achieves up to 19.5&#215; lower error across all budgets and datasets.</em></figcaption></figure></div><p>On linear aggregators, BaS achieves lower root mean squared error by 1.5--19.5&#215; compared to uniform sampling, 1.0--17.2&#215; compared to WWJ, and 1.2--17.3&#215; compared to prior approximate analytical query processing algorithms. On non-linear aggregators, including MIN, MAX, MEDIAN, BaS also achieves lower error by up to 3.0&#215; than sampling, while ABae and BlazeIt do not support them. Furthermore, compared to sampling algorithms, BaS yields up to 2.1&#215; lower error on a GroupBy query with a COUNT aggregate.</p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!O-e5!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4162df97-af8b-4f00-89d8-d708b7c8a2da_2048x359.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!O-e5!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4162df97-af8b-4f00-89d8-d708b7c8a2da_2048x359.png 424w, /__u/substackcdn.com/image/fetch/$s_!O-e5!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4162df97-af8b-4f00-89d8-d708b7c8a2da_2048x359.png 848w, /__u/substackcdn.com/image/fetch/$s_!O-e5!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4162df97-af8b-4f00-89d8-d708b7c8a2da_2048x359.png 1272w, /__u/substackcdn.com/image/fetch/$s_!O-e5!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4162df97-af8b-4f00-89d8-d708b7c8a2da_2048x359.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!O-e5!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4162df97-af8b-4f00-89d8-d708b7c8a2da_2048x359.png" width="1456" height="255" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/4162df97-af8b-4f00-89d8-d708b7c8a2da_2048x359.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:255,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!O-e5!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4162df97-af8b-4f00-89d8-d708b7c8a2da_2048x359.png 424w, /__u/substackcdn.com/image/fetch/$s_!O-e5!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4162df97-af8b-4f00-89d8-d708b7c8a2da_2048x359.png 848w, /__u/substackcdn.com/image/fetch/$s_!O-e5!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4162df97-af8b-4f00-89d8-d708b7c8a2da_2048x359.png 1272w, /__u/substackcdn.com/image/fetch/$s_!O-e5!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4162df97-af8b-4f00-89d8-d708b7c8a2da_2048x359.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a><figcaption class="image-caption"><em>Relative RMSE versus oracle budget on non-linear aggregators. BaS (blue) has broader coverage and achieves up to 3.0&#215; lower error on MIN, MAX, MEDIAN, and GroupBy queries than baselines.</em></figcaption></figure></div><p>Beyond aggregations, BaS also significantly improves selection queries. On selection queries over unstructured data with recall guarantees, BaS boosts precision by up to 69% over baselines, as shown in the following figure.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!Oti0!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdccff45e-be22-4a3c-9b72-98f1c00ef602_576x480.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!Oti0!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdccff45e-be22-4a3c-9b72-98f1c00ef602_576x480.png 424w, /__u/substackcdn.com/image/fetch/$s_!Oti0!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdccff45e-be22-4a3c-9b72-98f1c00ef602_576x480.png 848w, /__u/substackcdn.com/image/fetch/$s_!Oti0!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdccff45e-be22-4a3c-9b72-98f1c00ef602_576x480.png 1272w, /__u/substackcdn.com/image/fetch/$s_!Oti0!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdccff45e-be22-4a3c-9b72-98f1c00ef602_576x480.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!Oti0!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdccff45e-be22-4a3c-9b72-98f1c00ef602_576x480.png" width="388" height="323.3333333333333" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/dccff45e-be22-4a3c-9b72-98f1c00ef602_576x480.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:480,&quot;width&quot;:576,&quot;resizeWidth&quot;:388,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!Oti0!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdccff45e-be22-4a3c-9b72-98f1c00ef602_576x480.png 424w, /__u/substackcdn.com/image/fetch/$s_!Oti0!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdccff45e-be22-4a3c-9b72-98f1c00ef602_576x480.png 848w, /__u/substackcdn.com/image/fetch/$s_!Oti0!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdccff45e-be22-4a3c-9b72-98f1c00ef602_576x480.png 1272w, /__u/substackcdn.com/image/fetch/$s_!Oti0!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fdccff45e-be22-4a3c-9b72-98f1c00ef602_576x480.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 aria-hidden="true" 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><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><em>Precision versus target recall on a selection query. BaS achieves up to 69% higher precision than baselines at every recall level.</em></figcaption></figure></div><h2>The Future of Unstructured Data Analytics</h2><p>As the capabilities of foundation models scale, the desire to run complex, multi-table semantic analytics on unstructured data is growing. Our novel approximate join algorithm, BaS, achieves a balance between statistical reliability and computational efficiency. Practically, it offers an efficient and model-agnostic framework that allows analysts to trust their approximate query processing aggregations over unstructured data without spending excessively on exhaustive API calls. Theoretically, we prove that BaS&#8217;s adaptive allocation converges to the true optimal allocation and outperforms or matches standalone importance sampling asymptotically.</p><p>For more information, please check <a href="https://arxiv.org/abs/2603.16153">our paper</a> (including theoretical analyses) and our <a href="https://github.com/uiuc-kang-lab/joinml">code</a>! </p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://ddkang.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Daniel&#8217;s Substack! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[SODIUM: From Open Web Data to Queryable Databases]]></title><description><![CDATA[In research workflows using public data, answering a single analytical question requires collecting and organizing data from many different web sources.]]></description><link>https://ddkang.substack.com/p/sodium-from-open-web-data-to-queryable</link><guid isPermaLink="false">https://ddkang.substack.com/p/sodium-from-open-web-data-to-queryable</guid><dc:creator><![CDATA[Daniel Kang]]></dc:creator><pubDate>Tue, 19 May 2026 18:04:28 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!6eAc!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e9044b9-6e28-4c1f-a065-600ff961d87f_3545x834.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>In research workflows using public data, answering a single analytical question requires collecting and organizing data from many different web sources. For example, <a href="https://www.demographic-research.org/articles/volume/51/32">a demographic researcher studying children under five in polygynous households in sub-Saharan Africa needs to construct a table indexed by country, with columns describing survey coverage and key demographic statistics (as we show below)</a>. Although the data are publicly available on the <a href="https://dhsprogram.com/">Demographic and Health Surveys (DHS) website</a>, retrieving them requires navigating multiple layers of the site, locating the relevant datasets from different surveys, and manually aggregating values across years and sources. Thus, before any real analysis can begin, <a href="https://ieeexplore.ieee.org/document/8440815">researchers often spend significant time searching for data, extracting values, and organizing them into structured tables</a>.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!Vjtq!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4358b61a-8983-498b-bdcc-2dfebd1721f6_1248x982.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!Vjtq!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4358b61a-8983-498b-bdcc-2dfebd1721f6_1248x982.png 424w, /__u/substackcdn.com/image/fetch/$s_!Vjtq!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4358b61a-8983-498b-bdcc-2dfebd1721f6_1248x982.png 848w, /__u/substackcdn.com/image/fetch/$s_!Vjtq!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4358b61a-8983-498b-bdcc-2dfebd1721f6_1248x982.png 1272w, /__u/substackcdn.com/image/fetch/$s_!Vjtq!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4358b61a-8983-498b-bdcc-2dfebd1721f6_1248x982.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!Vjtq!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4358b61a-8983-498b-bdcc-2dfebd1721f6_1248x982.png" width="473" height="372.18429487179486" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/4358b61a-8983-498b-bdcc-2dfebd1721f6_1248x982.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:982,&quot;width&quot;:1248,&quot;resizeWidth&quot;:473,&quot;bytes&quot;:220324,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:&quot;https://ddkang.substack.com/i/198447327?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4358b61a-8983-498b-bdcc-2dfebd1721f6_1248x982.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!Vjtq!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4358b61a-8983-498b-bdcc-2dfebd1721f6_1248x982.png 424w, /__u/substackcdn.com/image/fetch/$s_!Vjtq!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4358b61a-8983-498b-bdcc-2dfebd1721f6_1248x982.png 848w, /__u/substackcdn.com/image/fetch/$s_!Vjtq!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4358b61a-8983-498b-bdcc-2dfebd1721f6_1248x982.png 1272w, /__u/substackcdn.com/image/fetch/$s_!Vjtq!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4358b61a-8983-498b-bdcc-2dfebd1721f6_1248x982.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" 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><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><em>Example of a table that a <a href="https://www.demographic-research.org/articles/volume/51/32">demographic researcher</a> would manually construct by exploring <a href="https://dhsprogram.com/">the DHS website</a>.</em></figcaption></figure></div><p>In our paper, we formalize this process as SODIUM, where the open web is treated as a latent database that can be systematically materialized. Solving SODIUM requires (C0) in-depth exploration of specialized web domains, and can be further strengthened by (E1) exploiting structural correlations for systematic information extraction and (E2) integrating collected information into coherent, queryable database instances.</p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!6eAc!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e9044b9-6e28-4c1f-a065-600ff961d87f_3545x834.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!6eAc!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e9044b9-6e28-4c1f-a065-600ff961d87f_3545x834.png 424w, /__u/substackcdn.com/image/fetch/$s_!6eAc!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e9044b9-6e28-4c1f-a065-600ff961d87f_3545x834.png 848w, /__u/substackcdn.com/image/fetch/$s_!6eAc!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e9044b9-6e28-4c1f-a065-600ff961d87f_3545x834.png 1272w, /__u/substackcdn.com/image/fetch/$s_!6eAc!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e9044b9-6e28-4c1f-a065-600ff961d87f_3545x834.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!6eAc!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e9044b9-6e28-4c1f-a065-600ff961d87f_3545x834.png" width="1456" height="343" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/6e9044b9-6e28-4c1f-a065-600ff961d87f_3545x834.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:343,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:447275,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://ddkang.substack.com/i/198447327?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e9044b9-6e28-4c1f-a065-600ff961d87f_3545x834.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!6eAc!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e9044b9-6e28-4c1f-a065-600ff961d87f_3545x834.png 424w, /__u/substackcdn.com/image/fetch/$s_!6eAc!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e9044b9-6e28-4c1f-a065-600ff961d87f_3545x834.png 848w, /__u/substackcdn.com/image/fetch/$s_!6eAc!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e9044b9-6e28-4c1f-a065-600ff961d87f_3545x834.png 1272w, /__u/substackcdn.com/image/fetch/$s_!6eAc!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6e9044b9-6e28-4c1f-a065-600ff961d87f_3545x834.png 1456w" sizes="100vw"></picture><div></div></div></a><figcaption class="image-caption"><em>SODIUM assists researchers in collecting and structuring open domain data.</em></figcaption></figure></div><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!ouaJ!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7d082c3a-d2fc-4a91-8ac6-55f5a6d9fdbc_1808x551.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!ouaJ!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7d082c3a-d2fc-4a91-8ac6-55f5a6d9fdbc_1808x551.png 424w, /__u/substackcdn.com/image/fetch/$s_!ouaJ!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7d082c3a-d2fc-4a91-8ac6-55f5a6d9fdbc_1808x551.png 848w, /__u/substackcdn.com/image/fetch/$s_!ouaJ!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7d082c3a-d2fc-4a91-8ac6-55f5a6d9fdbc_1808x551.png 1272w, /__u/substackcdn.com/image/fetch/$s_!ouaJ!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7d082c3a-d2fc-4a91-8ac6-55f5a6d9fdbc_1808x551.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!ouaJ!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7d082c3a-d2fc-4a91-8ac6-55f5a6d9fdbc_1808x551.png" width="1456" height="444" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/7d082c3a-d2fc-4a91-8ac6-55f5a6d9fdbc_1808x551.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:444,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:210264,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:&quot;https://ddkang.substack.com/i/198447327?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7d082c3a-d2fc-4a91-8ac6-55f5a6d9fdbc_1808x551.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!ouaJ!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7d082c3a-d2fc-4a91-8ac6-55f5a6d9fdbc_1808x551.png 424w, /__u/substackcdn.com/image/fetch/$s_!ouaJ!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7d082c3a-d2fc-4a91-8ac6-55f5a6d9fdbc_1808x551.png 848w, /__u/substackcdn.com/image/fetch/$s_!ouaJ!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7d082c3a-d2fc-4a91-8ac6-55f5a6d9fdbc_1808x551.png 1272w, /__u/substackcdn.com/image/fetch/$s_!ouaJ!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7d082c3a-d2fc-4a91-8ac6-55f5a6d9fdbc_1808x551.png 1456w" sizes="100vw"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" 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><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><em>Overview of C0, E1, and E2&#8217;s role in SODIUM tasks.</em></figcaption></figure></div><p>None of the existing systems fully realize C0, E1, or E2, as reflected in their limited performance. Our system, SODIUM-Agent addresses these challenges, achieving 91% accuracy. Read on for details on how we measured and built SODIUM and SODIUM-Agent!</p><h2>SODIUM tasks are challenging</h2><p>To quantitatively evaluate existing AI agents on SODIUM tasks, we constructed SODIUM-Bench, a benchmark consisting of 105 analytical queries derived from 48 published research papers across 6 domains.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!UxEO!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F40f42e02-c1c4-47cd-9961-0f835144dc69_1592x404.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!UxEO!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F40f42e02-c1c4-47cd-9961-0f835144dc69_1592x404.png 424w, /__u/substackcdn.com/image/fetch/$s_!UxEO!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F40f42e02-c1c4-47cd-9961-0f835144dc69_1592x404.png 848w, /__u/substackcdn.com/image/fetch/$s_!UxEO!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F40f42e02-c1c4-47cd-9961-0f835144dc69_1592x404.png 1272w, /__u/substackcdn.com/image/fetch/$s_!UxEO!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F40f42e02-c1c4-47cd-9961-0f835144dc69_1592x404.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!UxEO!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F40f42e02-c1c4-47cd-9961-0f835144dc69_1592x404.png" width="1456" height="369" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/40f42e02-c1c4-47cd-9961-0f835144dc69_1592x404.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:369,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!UxEO!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F40f42e02-c1c4-47cd-9961-0f835144dc69_1592x404.png 424w, /__u/substackcdn.com/image/fetch/$s_!UxEO!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F40f42e02-c1c4-47cd-9961-0f835144dc69_1592x404.png 848w, /__u/substackcdn.com/image/fetch/$s_!UxEO!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F40f42e02-c1c4-47cd-9961-0f835144dc69_1592x404.png 1272w, /__u/substackcdn.com/image/fetch/$s_!UxEO!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F40f42e02-c1c4-47cd-9961-0f835144dc69_1592x404.png 1456w" sizes="100vw"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" 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><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">SODIUM-Bench statistics.</figcaption></figure></div><p>In each SODIUM-Bench task, the system takes as input:</p><ol><li><p>a natural language analytical query describing the research objective of the paper;</p></li><li><p>a base domain specifying the authoritative data source (i.e., the official homepage of the relevant organization or data portal);</p></li><li><p>a target relational schema specifying a designated primary key and a set of attributes, together with a set of primary key values defining the rows to be instantiated.</p></li></ol><p>The system is tasked with populating the table.</p><div class="native-video-embed" data-component-name="VideoPlaceholder" data-attrs="{&quot;mediaUploadId&quot;:&quot;3479b71d-0fab-43ab-acf9-ef3bc3664e03&quot;,&quot;duration&quot;:null}"></div><p>We evaluate 6 state-of-the-art agents with advanced web search capabilities on SODIUM-Bench. The results demonstrate that existing AI agents perform poorly on SODIUM tasks: the best-performing agent (AG2) achieves only 46.5% accuracy, while the worst-performing agent (Open Deep Research) achieves just 1.24%.</p><h2>SODIUM-Agent achieves promising performance on SODIUM tasks</h2><p>To address this gap, we develop SODIUM-Agent, a multi-agent system composed of a web explorer and a cache manager.</p><p>For the web explorer, we design the augment-then-prune breadth-first (ATP-BFS) web exploration algorithm, an agentic web exploration algorithm that serves as the backbone of the web explorer by conducting deep and comprehensive exploration on all visited webpages. The cache manager maintains cached sources and navigation paths in a principled manner to ensure efficient and systematic retrieval.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!plqg!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F838d82be-a877-4b0d-8b0a-d83056eff1cf_2048x1080.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!plqg!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F838d82be-a877-4b0d-8b0a-d83056eff1cf_2048x1080.png 424w, /__u/substackcdn.com/image/fetch/$s_!plqg!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F838d82be-a877-4b0d-8b0a-d83056eff1cf_2048x1080.png 848w, /__u/substackcdn.com/image/fetch/$s_!plqg!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F838d82be-a877-4b0d-8b0a-d83056eff1cf_2048x1080.png 1272w, /__u/substackcdn.com/image/fetch/$s_!plqg!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F838d82be-a877-4b0d-8b0a-d83056eff1cf_2048x1080.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!plqg!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F838d82be-a877-4b0d-8b0a-d83056eff1cf_2048x1080.png" width="1456" height="768" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/838d82be-a877-4b0d-8b0a-d83056eff1cf_2048x1080.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:768,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!plqg!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F838d82be-a877-4b0d-8b0a-d83056eff1cf_2048x1080.png 424w, /__u/substackcdn.com/image/fetch/$s_!plqg!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F838d82be-a877-4b0d-8b0a-d83056eff1cf_2048x1080.png 848w, /__u/substackcdn.com/image/fetch/$s_!plqg!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F838d82be-a877-4b0d-8b0a-d83056eff1cf_2048x1080.png 1272w, /__u/substackcdn.com/image/fetch/$s_!plqg!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F838d82be-a877-4b0d-8b0a-d83056eff1cf_2048x1080.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 aria-hidden="true" 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><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><em>Overview of SODIUM-Agent.</em></figcaption></figure></div><p>SODIUM-Agent achieves 91% accuracy on SODIUM-Bench, significantly outperforming SOTA AI agents across diverse dimensions.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!UsV1!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F773d02a2-ac3b-4e19-91d6-4da588f8df7b_2026x602.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!UsV1!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F773d02a2-ac3b-4e19-91d6-4da588f8df7b_2026x602.png 424w, /__u/substackcdn.com/image/fetch/$s_!UsV1!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F773d02a2-ac3b-4e19-91d6-4da588f8df7b_2026x602.png 848w, /__u/substackcdn.com/image/fetch/$s_!UsV1!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F773d02a2-ac3b-4e19-91d6-4da588f8df7b_2026x602.png 1272w, /__u/substackcdn.com/image/fetch/$s_!UsV1!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F773d02a2-ac3b-4e19-91d6-4da588f8df7b_2026x602.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!UsV1!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F773d02a2-ac3b-4e19-91d6-4da588f8df7b_2026x602.png" width="1456" height="433" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/773d02a2-ac3b-4e19-91d6-4da588f8df7b_2026x602.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:433,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!UsV1!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F773d02a2-ac3b-4e19-91d6-4da588f8df7b_2026x602.png 424w, /__u/substackcdn.com/image/fetch/$s_!UsV1!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F773d02a2-ac3b-4e19-91d6-4da588f8df7b_2026x602.png 848w, /__u/substackcdn.com/image/fetch/$s_!UsV1!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F773d02a2-ac3b-4e19-91d6-4da588f8df7b_2026x602.png 1272w, /__u/substackcdn.com/image/fetch/$s_!UsV1!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F773d02a2-ac3b-4e19-91d6-4da588f8df7b_2026x602.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 aria-hidden="true" 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><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><em>Accuracy of different agents on SODIUM-Bench in percentages (%). GPT-4o columns refer to LLM-as-a-judge evaluations, and Match columns refer to exact match evaluations. The optimal values for each metric are highlighted with both bold and underline formatting. We report the rank of each agent under each metric in italicized parentheses.</em></figcaption></figure></div><h2>Why SODIUM Matters</h2><p>Real-world analytical tasks in scientific research require collecting data scattered across numerous webpages and datasets. SODIUM moves us closer to automating this process by turning open web data into structured, queryable databases that can directly support downstream analysis.</p><p>Check out our <a href="https://arxiv.org/abs/2603.18447">paper</a> and <a href="https://github.com/uiuc-kang-lab/sodium">code</a>, as well as <a href="https://colab.research.google.com/drive/18Yy4clHkG9TXlZ9tyFaz_2TY0_Z2yvVV?usp=sharing">a demo</a>! And reach out to us if you&#8217;re interested in using SODIUM.</p>]]></content:encoded></item><item><title><![CDATA[Launching the CVE-Bench Leaderboard: A Public Arena of AI for Cybersecurity]]></title><description><![CDATA[Last year, we introduced CVE-Bench, a rigorous benchmark with real-world web vulnerabilities to evaluate the cyberoffensive capabilities of AI agents.]]></description><link>https://ddkang.substack.com/p/launching-the-cve-bench-leaderboard</link><guid isPermaLink="false">https://ddkang.substack.com/p/launching-the-cve-bench-leaderboard</guid><dc:creator><![CDATA[Daniel Kang]]></dc:creator><pubDate>Tue, 24 Feb 2026 21:27:08 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!QQgd!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6d71f87d-0a86-434b-b0af-0f52c27a184d_1600x444.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Last year, we introduced <a href="https://arxiv.org/abs/2503.17332">CVE-Bench</a>, a rigorous benchmark with real-world web vulnerabilities to evaluate the cyberoffensive capabilities of AI agents. Since then, the relevance of this benchmark has been validated at the highest level. According to <a href="https://x.com/sama/status/2014733975755817267">Sam Altman</a> and OpenAI, GPT models are reaching a high level for cybersecurity, supported by <a href="https://cdn.openai.com/pdf/3a4153c8-c748-4b71-8e31-aecbde944f8d/oai_5_2_system-card.pdf#page=19.16">a recent OpenAI report</a> showing that frontier GPT-3 agents achieved an 80% pass@1 on a subset of CVE-Bench.</p><p>This milestone highlights a critical turning point. Frontier AI is presenting both the serious risks of misuse and the potential to assist <a href="https://en.wikipedia.org/wiki/Penetration_test">penetration testing</a> for cybersecurity. While monitoring the danger is vital, the community faces a practical question: are existing AI agents actually reliable enough for autonomous penetration testing in real-world deployments? Unfortunately, there is no live, transparent source to track how these capabilities are evolving.</p><p>Today, we are officially launching the <a href="https://cvebench.com/">CVE-Bench Leaderboard</a>, a live platform to track, monitor, and compare the cyberoffensive capabilities of AI agents. By establishing this arena, we aim to provide transparency into the misuse risks of emerging models while simultaneously measuring their practical utility in assisting cyberdefense.</p><p>As the cyberoffensive capabilities are increasingly emerging in frontier models, we decided to open-source our agentic orchestration, <a href="https://arxiv.org/abs/2406.01637">HPTSA</a> (accepted to <a href="https://2026.eacl.org/">EACL</a>). We encourage developers to use HPTSA as a baseline to jumpstart their exploration of CVE-Bench.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://ddkang.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Daniel&#8217;s Substack! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><h2>The Arena: CVE-Bench Leaderboard</h2><p>We built CVE-Bench for evaluating the capabilities of AI agents to exploit web vulnerabilities. It consists of 40 critical-severity CVEs (Common Vulnerabilities and Exposures) from real websites, covering two realistic settings: one-day (where vulnerability descriptions are provided) and zero-day (without descriptions).</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!QQgd!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6d71f87d-0a86-434b-b0af-0f52c27a184d_1600x444.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!QQgd!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6d71f87d-0a86-434b-b0af-0f52c27a184d_1600x444.jpeg 424w, /__u/substackcdn.com/image/fetch/$s_!QQgd!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6d71f87d-0a86-434b-b0af-0f52c27a184d_1600x444.jpeg 848w, /__u/substackcdn.com/image/fetch/$s_!QQgd!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6d71f87d-0a86-434b-b0af-0f52c27a184d_1600x444.jpeg 1272w, /__u/substackcdn.com/image/fetch/$s_!QQgd!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6d71f87d-0a86-434b-b0af-0f52c27a184d_1600x444.jpeg 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!QQgd!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6d71f87d-0a86-434b-b0af-0f52c27a184d_1600x444.jpeg" width="1456" height="404" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/6d71f87d-0a86-434b-b0af-0f52c27a184d_1600x444.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:404,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!QQgd!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6d71f87d-0a86-434b-b0af-0f52c27a184d_1600x444.jpeg 424w, /__u/substackcdn.com/image/fetch/$s_!QQgd!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6d71f87d-0a86-434b-b0af-0f52c27a184d_1600x444.jpeg 848w, /__u/substackcdn.com/image/fetch/$s_!QQgd!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6d71f87d-0a86-434b-b0af-0f52c27a184d_1600x444.jpeg 1272w, /__u/substackcdn.com/image/fetch/$s_!QQgd!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6d71f87d-0a86-434b-b0af-0f52c27a184d_1600x444.jpeg 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 aria-hidden="true" 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><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><em>CVE-Bench Leaderboard tracks not only the misuse risks but also the capabilities of assisting penetration testing of frontier AI.</em></figcaption></figure></div><p>While our initial goal was to monitor the misuse risks of AI agents,  the evolving capabilities of frontier models and agents (e.g., <a href="https://cdn.openai.com/pdf/3a4153c8-c748-4b71-8e31-aecbde944f8d/oai_5_2_system-card.pdf#page=19.16">GPT-5.1-Codex-Max</a>) point toward a promising defensive application &#8212; autonomous penetration testing.</p><p>Historically, penetration testing (pentest) has been a labor-intensive and expensive task, <a href="https://www.techmagic.co/blog/penetration-testing-cost#:~:text=Expert%20consultants%20may%20charge%20between,scope%2C%20complexity%2C%20and%20depth.">costing $5,000&#8211;$40,000 per web application test in 2025</a>. As such, <a href="https://deepstrike.io/blog/penetration-testing-statistics-2025">32% of organizations</a> conduct pentests only once or twice a year, leaving vast windows of vulnerability. With AI agents now demonstrating high-level cybersecurity skills, we, for the first time, have the potential to deploy agents to continuously red-team web infrastructure at scale. However, it&#8217;s unclear whether existing AI agents are reliable enough for practical deployment.</p><p>CVE-Bench is well-suited for this task.</p><ol><li><p>It includes <strong>high-stakes exploits</strong>: We include remote code execution, SQL injection, and privilege escalation.</p></li><li><p>It exceeds <strong>existing tools</strong>: Automated scanners (e.g., <a href="https://www.zaproxy.org/">Zap</a>, <a href="https://www.metasploit.com/">Metasploit</a>) fail to detect the vulnerabilities in CVE-Bench.</p></li><li><p>It is <strong>rigorously developed and maintained</strong>: We <a href="https://medium.com/@danieldkang/cve-bench-v2-0-making-evaluation-more-rigorous-with-abc-03c08cda407e">actively validate</a> the benchmark to prevent reward hacking and ensure the rigor of the leaderboard.</p></li></ol><p>The Leaderboard is now alive and accepting submissions via <a href="https://github.com/uiuc-kang-lab/cvebench.com?tab=readme-ov-file#submission-guidelines">https://github.com/uiuc-kang-lab/cvebench.com?tab=readme-ov-file#submission-guidelines</a></p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!-blU!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F92979df6-9737-45bc-bf73-a61b1b13021f_1600x463.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!-blU!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F92979df6-9737-45bc-bf73-a61b1b13021f_1600x463.png 424w, /__u/substackcdn.com/image/fetch/$s_!-blU!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F92979df6-9737-45bc-bf73-a61b1b13021f_1600x463.png 848w, /__u/substackcdn.com/image/fetch/$s_!-blU!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F92979df6-9737-45bc-bf73-a61b1b13021f_1600x463.png 1272w, /__u/substackcdn.com/image/fetch/$s_!-blU!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F92979df6-9737-45bc-bf73-a61b1b13021f_1600x463.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!-blU!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F92979df6-9737-45bc-bf73-a61b1b13021f_1600x463.png" width="1456" height="421" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/92979df6-9737-45bc-bf73-a61b1b13021f_1600x463.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:421,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!-blU!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F92979df6-9737-45bc-bf73-a61b1b13021f_1600x463.png 424w, /__u/substackcdn.com/image/fetch/$s_!-blU!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F92979df6-9737-45bc-bf73-a61b1b13021f_1600x463.png 848w, /__u/substackcdn.com/image/fetch/$s_!-blU!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F92979df6-9737-45bc-bf73-a61b1b13021f_1600x463.png 1272w, /__u/substackcdn.com/image/fetch/$s_!-blU!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F92979df6-9737-45bc-bf73-a61b1b13021f_1600x463.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 aria-hidden="true" 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><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><em>CVE-Bench Leaderboard.</em></figcaption></figure></div><h2>Open-Sourcing HPTSA</h2><p>To help users get started on the leaderboard, we are making our own agent architecture, HPTSA (Hierarchical Planning and Task-Specific Agents), available as a baseline.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!Ju4l!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5450b373-e456-417a-aa35-95d21d476fb7_1600x726.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!Ju4l!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5450b373-e456-417a-aa35-95d21d476fb7_1600x726.png 424w, /__u/substackcdn.com/image/fetch/$s_!Ju4l!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5450b373-e456-417a-aa35-95d21d476fb7_1600x726.png 848w, /__u/substackcdn.com/image/fetch/$s_!Ju4l!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5450b373-e456-417a-aa35-95d21d476fb7_1600x726.png 1272w, /__u/substackcdn.com/image/fetch/$s_!Ju4l!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5450b373-e456-417a-aa35-95d21d476fb7_1600x726.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!Ju4l!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5450b373-e456-417a-aa35-95d21d476fb7_1600x726.png" width="1456" height="661" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/5450b373-e456-417a-aa35-95d21d476fb7_1600x726.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:661,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!Ju4l!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5450b373-e456-417a-aa35-95d21d476fb7_1600x726.png 424w, /__u/substackcdn.com/image/fetch/$s_!Ju4l!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5450b373-e456-417a-aa35-95d21d476fb7_1600x726.png 848w, /__u/substackcdn.com/image/fetch/$s_!Ju4l!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5450b373-e456-417a-aa35-95d21d476fb7_1600x726.png 1272w, /__u/substackcdn.com/image/fetch/$s_!Ju4l!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5450b373-e456-417a-aa35-95d21d476fb7_1600x726.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 aria-hidden="true" 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><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><em>HPTSA has three major components: a hierarchical planner, a set of task-specific, expert agents, and a team manager for the task-specific agents.</em></figcaption></figure></div><p>HPTSA utilizes a hierarchical structure where a team manager plans the attack and delegates to expert agents (specializing in SQLi, XSS, etc.). In our initial testing, this approach achieved a success rate 4.3x higher than previous open-source frameworks and exploited vulnerabilities that existing penetration testing tools (e.g., <a href="https://www.zaproxy.org/">Zap</a>, <a href="https://www.metasploit.com/">Metasploit</a>) failed to detect. While frontier models are closing this gap, HPTSA serves as a useful starting point for red-teaming research and is now available to the community.</p><h2>Advancing LLM Red-Teaming</h2><p>By releasing HPTSA and launching the CVE-Bench Leaderboard, we aim to accelerate the shift toward LLM-assisted cyberdefense. We invite security researchers to use our framework and tools to red-team their own applications, identify zero-day vulnerabilities before they are exploited, and build the next generation of AI-assisted defense systems.</p><p><em>This post was written by Yuxuan Zhu, Antony Kellerman, and Daniel Kang</em></p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://ddkang.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Daniel&#8217;s Substack! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[Claude 4.5 Opus Solves CORE-Bench — But Not REPRO-Bench]]></title><description><![CDATA[In our ACL 2025 paper, we introduced REPRO-Bench (GitHub), a benchmark designed to evaluate whether AI agents can accurately assess the reproducibility of social science research papers, and showed that existing AI agents struggled significantly when powered by GPT-4o.]]></description><link>https://ddkang.substack.com/p/claude-45-opus-solves-core-bench</link><guid isPermaLink="false">https://ddkang.substack.com/p/claude-45-opus-solves-core-bench</guid><dc:creator><![CDATA[Daniel Kang]]></dc:creator><pubDate>Tue, 16 Dec 2025 21:21:14 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!V2Gp!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1177e6e8-05ce-4165-9504-45a6e797923b_1600x588.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>In our ACL 2025 paper, we introduced <a href="https://arxiv.org/abs/2507.18901">REPRO-Bench</a> (<a href="https://github.com/uiuc-kang-lab/REPRO-Bench">GitHub</a>), a benchmark designed to evaluate whether AI agents can accurately assess the reproducibility of social science research papers, and showed that existing AI agents struggled significantly when powered by GPT-4o. In this blog post, we revisit REPRO-Bench with the recently released models (<a href="https://www.anthropic.com/news/claude-opus-4-5">Claude 4.5 Opus</a> and <a href="https://openai.com/index/introducing-gpt-5-2/">GPT-5.2</a>). We find that although these models achieve significant improvements on a wide range of tasks, and <a href="https://x.com/sayashk/status/1996334941832089732">CORE-Bench solved with Claude 4.5 Opus</a>, they still perform poorly on REPRO-Bench. This demonstrates that REPRO-Bench remains a valuable and unsaturated benchmark for revealing the limitations of existing LLMs and motivating future improvements.</p><p>We evaluated CORE-Agent and REPRO-Agent, the two best-performing agents with GPT-4o, on REPRO-Bench using Claude 4.5 Opus and GPT 5.2 + Thinking. Although we observe improvements from these state-of-the-art models, the highest overall accuracy remains only around 35%, which is still far from practical for real-world use. This stands in sharp contrast to CORE-Bench, where agents are provided with concrete, well-scoped steps, whereas REPRO-Bench requires interpreting data across diverse modalities through open-ended exploration, tool use, and multi-hop reasoning.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!V2Gp!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1177e6e8-05ce-4165-9504-45a6e797923b_1600x588.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!V2Gp!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1177e6e8-05ce-4165-9504-45a6e797923b_1600x588.png 424w, /__u/substackcdn.com/image/fetch/$s_!V2Gp!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1177e6e8-05ce-4165-9504-45a6e797923b_1600x588.png 848w, /__u/substackcdn.com/image/fetch/$s_!V2Gp!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1177e6e8-05ce-4165-9504-45a6e797923b_1600x588.png 1272w, /__u/substackcdn.com/image/fetch/$s_!V2Gp!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1177e6e8-05ce-4165-9504-45a6e797923b_1600x588.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!V2Gp!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1177e6e8-05ce-4165-9504-45a6e797923b_1600x588.png" width="1456" height="535" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/1177e6e8-05ce-4165-9504-45a6e797923b_1600x588.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:535,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!V2Gp!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1177e6e8-05ce-4165-9504-45a6e797923b_1600x588.png 424w, /__u/substackcdn.com/image/fetch/$s_!V2Gp!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1177e6e8-05ce-4165-9504-45a6e797923b_1600x588.png 848w, /__u/substackcdn.com/image/fetch/$s_!V2Gp!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1177e6e8-05ce-4165-9504-45a6e797923b_1600x588.png 1272w, /__u/substackcdn.com/image/fetch/$s_!V2Gp!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1177e6e8-05ce-4165-9504-45a6e797923b_1600x588.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" 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><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><em>Accuracy of different agents using different backbone models on REPRO-Bench.</em></figcaption></figure></div><p>Our results show a substantial improvement from 21.4% (GPT-4o) to 35.7% (GPT-5.2)  for CORE-Agent. However, this improvement does not carry over to REPRO-Agent, the agent we designed for REPRO-Bench tasks. While REPRO-Agent still consistently outperforms CORE-Agent across all model backbones, upgrading the underlying LLM does not significantly boost its accuracy.</p><p>Interestingly, REPRO-Agent + GPT-4o still outperforms CORE-Agent + GPT-5.2 and CORE-Agent + Claude 4.5 Opus, highlighting that REPRO-Agent&#8217;s decision structure and environment-handling architectural design remain crucial for reasoning about complex reproducibility evidence.</p><p>We further examine accuracy by ground-truth reproducibility score. GPT-5.2 shows a clear advantage in detecting reproducibility issues in social science papers. This suggests that newer models have improved sensitivity to methodological flaws and logical inconsistencies, which is an encouraging trend for downstream research auditing tasks.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!xkKY!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0b33652a-adf3-45f0-a8fd-8737c9b4aa69_1600x899.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!xkKY!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0b33652a-adf3-45f0-a8fd-8737c9b4aa69_1600x899.png 424w, /__u/substackcdn.com/image/fetch/$s_!xkKY!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0b33652a-adf3-45f0-a8fd-8737c9b4aa69_1600x899.png 848w, /__u/substackcdn.com/image/fetch/$s_!xkKY!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0b33652a-adf3-45f0-a8fd-8737c9b4aa69_1600x899.png 1272w, /__u/substackcdn.com/image/fetch/$s_!xkKY!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0b33652a-adf3-45f0-a8fd-8737c9b4aa69_1600x899.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!xkKY!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0b33652a-adf3-45f0-a8fd-8737c9b4aa69_1600x899.png" width="1456" height="818" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/0b33652a-adf3-45f0-a8fd-8737c9b4aa69_1600x899.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:818,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!xkKY!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0b33652a-adf3-45f0-a8fd-8737c9b4aa69_1600x899.png 424w, /__u/substackcdn.com/image/fetch/$s_!xkKY!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0b33652a-adf3-45f0-a8fd-8737c9b4aa69_1600x899.png 848w, /__u/substackcdn.com/image/fetch/$s_!xkKY!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0b33652a-adf3-45f0-a8fd-8737c9b4aa69_1600x899.png 1272w, /__u/substackcdn.com/image/fetch/$s_!xkKY!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0b33652a-adf3-45f0-a8fd-8737c9b4aa69_1600x899.png 1456w" sizes="100vw"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" 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><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><em>Accuracy of CORE-Agent using different backbone models on REPRO-Bench tasks across different reproducibility levels.</em></figcaption></figure></div><p>Our findings strengthen our claim that REPRO-Bench represents a substantially harder task set that requires multi-step evidence gathering, reading code and data, interpreting methodology, and synthesizing findings. Unsaturated even by the most advanced models, this benchmark continues to reveal meaningful gaps in existing AI capabilities and provides strong motivation for advances in both model development and agentic architecture design. Check out REPRO-Bench <a href="https://github.com/uiuc-kang-lab/REPRO-Bench">here</a>!</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://ddkang.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Daniel&#8217;s Substack! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[SafeSearch: Teaching LLM Search Agents to Be Both Smart and Safe]]></title><description><![CDATA[LLMs are rapidly expanding their built-in knowledge from training.]]></description><link>https://ddkang.substack.com/p/safesearch-teaching-llm-search-agents</link><guid isPermaLink="false">https://ddkang.substack.com/p/safesearch-teaching-llm-search-agents</guid><dc:creator><![CDATA[Daniel Kang]]></dc:creator><pubDate>Mon, 10 Nov 2025 17:18:34 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!NAmI!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9defa4c4-c9fb-460a-96dd-e753ae0880b3_1600x698.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>LLMs are rapidly expanding their <em>built-in knowledge</em> from training. However, they still suffer from hallucinations and lack access to private or time-sensitive information, such as personal medical data or real-time breaking news. To overcome these limitations, they need the ability to retrieve <em>external knowledge</em>. Recent advances in search agents (e.g., <a href="https://arxiv.org/pdf/2501.05366">Search-o1</a>, <a href="https://arxiv.org/pdf/2503.09516">Search-R1</a>, <a href="https://arxiv.org/abs/2503.05592">R1-Searcher</a>, <a href="https://arxiv.org/pdf/2504.03160">DeepResearcher</a>) have made great progress in this direction, enabling LLMs to autonomously generate queries, retrieve relevant information, and reason over it across multiple turns to answer open-domain questions.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!NAmI!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9defa4c4-c9fb-460a-96dd-e753ae0880b3_1600x698.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!NAmI!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9defa4c4-c9fb-460a-96dd-e753ae0880b3_1600x698.jpeg 424w, /__u/substackcdn.com/image/fetch/$s_!NAmI!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9defa4c4-c9fb-460a-96dd-e753ae0880b3_1600x698.jpeg 848w, /__u/substackcdn.com/image/fetch/$s_!NAmI!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9defa4c4-c9fb-460a-96dd-e753ae0880b3_1600x698.jpeg 1272w, /__u/substackcdn.com/image/fetch/$s_!NAmI!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9defa4c4-c9fb-460a-96dd-e753ae0880b3_1600x698.jpeg 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!NAmI!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9defa4c4-c9fb-460a-96dd-e753ae0880b3_1600x698.jpeg" width="1456" height="635" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/9defa4c4-c9fb-460a-96dd-e753ae0880b3_1600x698.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:635,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!NAmI!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9defa4c4-c9fb-460a-96dd-e753ae0880b3_1600x698.jpeg 424w, /__u/substackcdn.com/image/fetch/$s_!NAmI!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9defa4c4-c9fb-460a-96dd-e753ae0880b3_1600x698.jpeg 848w, /__u/substackcdn.com/image/fetch/$s_!NAmI!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9defa4c4-c9fb-460a-96dd-e753ae0880b3_1600x698.jpeg 1272w, /__u/substackcdn.com/image/fetch/$s_!NAmI!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9defa4c4-c9fb-460a-96dd-e753ae0880b3_1600x698.jpeg 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 aria-hidden="true" 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><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">LLMs need up to date information to answer many kinds of queries.</figcaption></figure></div><p>As illustrated in the example above, the LLM alone cannot answer the question because it depends on up-to-date information. A search agent, however, can reason, formulate relevant queries, and iteratively plan the next steps to derive the final answer.</p><p>Although this seems promising, our <a href="https://arxiv.org/abs/2510.17017">recent paper</a> shows that enabling search also makes LLMs <strong>more susceptible to producing harmful outputs</strong>. As shown in the example below, a base LLM typically refuses to respond to a harmful prompt. In contrast, a search agent may lower its refusal threshold in pursuit of helpfulness and issue follow-up queries. Even when the agent initially frames the search with benign intent, once retrieved content (especially if it contains harmful details) is appended, the model may deviate from its original intent, align with the retrieved sources, and produce harmful outputs.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!d26K!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F59d1d4d3-0744-428a-92bd-cb8984356e6d_1600x698.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!d26K!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F59d1d4d3-0744-428a-92bd-cb8984356e6d_1600x698.jpeg 424w, /__u/substackcdn.com/image/fetch/$s_!d26K!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F59d1d4d3-0744-428a-92bd-cb8984356e6d_1600x698.jpeg 848w, /__u/substackcdn.com/image/fetch/$s_!d26K!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F59d1d4d3-0744-428a-92bd-cb8984356e6d_1600x698.jpeg 1272w, /__u/substackcdn.com/image/fetch/$s_!d26K!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F59d1d4d3-0744-428a-92bd-cb8984356e6d_1600x698.jpeg 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!d26K!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F59d1d4d3-0744-428a-92bd-cb8984356e6d_1600x698.jpeg" width="1456" height="635" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/59d1d4d3-0744-428a-92bd-cb8984356e6d_1600x698.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:635,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!d26K!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F59d1d4d3-0744-428a-92bd-cb8984356e6d_1600x698.jpeg 424w, /__u/substackcdn.com/image/fetch/$s_!d26K!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F59d1d4d3-0744-428a-92bd-cb8984356e6d_1600x698.jpeg 848w, /__u/substackcdn.com/image/fetch/$s_!d26K!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F59d1d4d3-0744-428a-92bd-cb8984356e6d_1600x698.jpeg 1272w, /__u/substackcdn.com/image/fetch/$s_!d26K!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F59d1d4d3-0744-428a-92bd-cb8984356e6d_1600x698.jpeg 1456w" sizes="100vw"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" 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><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">Search can make LLMs more susceptible to producing harmful outputs.</figcaption></figure></div><p>To mitigate this safety issue and build a helpful, safe search agent, we built <a href="https://arxiv.org/abs/2510.17017">SafeSearch</a>. SafeSearch is the first safety alignment framework for search agents that enhances safety without compromising utility. By conducting experiments across multiple datasets and backbone LLMs, we demonstrate that SafeSearch reduces the harmful rate by up to <strong>70%</strong> on red-teaming datasets while maintaining QA performance comparable to utility-only fine tuning.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://ddkang.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Daniel&#8217;s Substack! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><h2><strong>Search Agents Are Useful Yet Unsafe</strong></h2><p>To systematically evaluate both utility and safety, we test different systems on three red-teaming datasets containing harmful inputs (<a href="https://github.com/haizelabs/redteaming-resistance-benchmark">Redteaming-Resistance-Benchmark</a>, <a href="https://arxiv.org/pdf/2402.10260">StrongReject</a>, and <a href="https://arxiv.org/pdf/2406.18510">WildTeaming</a>) and three QA datasets containing open-domain QA pairs (<a href="https://arxiv.org/pdf/1705.03551">TriviaQA</a>, <a href="https://hotpotqa.github.io/">HotpotQA</a>, and <a href="https://arxiv.org/pdf/2210.03350">Bamboogle</a>). We find that search agents achieve notably higher QA accuracy, especially after utility-only fine-tuning (the Utility-Only Agent in the figure).</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!hNo-!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbccae582-d6b2-483b-82da-b832212c0639_1600x474.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!hNo-!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbccae582-d6b2-483b-82da-b832212c0639_1600x474.png 424w, /__u/substackcdn.com/image/fetch/$s_!hNo-!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbccae582-d6b2-483b-82da-b832212c0639_1600x474.png 848w, /__u/substackcdn.com/image/fetch/$s_!hNo-!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbccae582-d6b2-483b-82da-b832212c0639_1600x474.png 1272w, /__u/substackcdn.com/image/fetch/$s_!hNo-!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbccae582-d6b2-483b-82da-b832212c0639_1600x474.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!hNo-!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbccae582-d6b2-483b-82da-b832212c0639_1600x474.png" width="1456" height="431" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/bccae582-d6b2-483b-82da-b832212c0639_1600x474.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:431,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!hNo-!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbccae582-d6b2-483b-82da-b832212c0639_1600x474.png 424w, /__u/substackcdn.com/image/fetch/$s_!hNo-!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbccae582-d6b2-483b-82da-b832212c0639_1600x474.png 848w, /__u/substackcdn.com/image/fetch/$s_!hNo-!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbccae582-d6b2-483b-82da-b832212c0639_1600x474.png 1272w, /__u/substackcdn.com/image/fetch/$s_!hNo-!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbccae582-d6b2-483b-82da-b832212c0639_1600x474.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 aria-hidden="true" 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><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>However, when evaluated on red-teaming datasets, search agents are up to <strong>3&#215; more likely</strong> to generate harmful outputs than their base LLMs. Moreover, <strong>utility-only fine-tuning</strong> further increases this harmfulness rate, underscoring the need to jointly optimize <strong>safety and utility</strong> rather than improving utility in isolation.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!T5s4!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F49786fc0-c175-443a-b79d-684ecd4bb5da_1600x474.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!T5s4!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F49786fc0-c175-443a-b79d-684ecd4bb5da_1600x474.png 424w, /__u/substackcdn.com/image/fetch/$s_!T5s4!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F49786fc0-c175-443a-b79d-684ecd4bb5da_1600x474.png 848w, /__u/substackcdn.com/image/fetch/$s_!T5s4!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F49786fc0-c175-443a-b79d-684ecd4bb5da_1600x474.png 1272w, /__u/substackcdn.com/image/fetch/$s_!T5s4!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F49786fc0-c175-443a-b79d-684ecd4bb5da_1600x474.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!T5s4!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F49786fc0-c175-443a-b79d-684ecd4bb5da_1600x474.png" width="1456" height="431" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/49786fc0-c175-443a-b79d-684ecd4bb5da_1600x474.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:431,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!T5s4!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F49786fc0-c175-443a-b79d-684ecd4bb5da_1600x474.png 424w, /__u/substackcdn.com/image/fetch/$s_!T5s4!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F49786fc0-c175-443a-b79d-684ecd4bb5da_1600x474.png 848w, /__u/substackcdn.com/image/fetch/$s_!T5s4!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F49786fc0-c175-443a-b79d-684ecd4bb5da_1600x474.png 1272w, /__u/substackcdn.com/image/fetch/$s_!T5s4!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F49786fc0-c175-443a-b79d-684ecd4bb5da_1600x474.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 aria-hidden="true" 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><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><h2><strong>Introducing SafeSearch</strong></h2><p>To make the search agents useful but also safe, we developed <strong>SafeSearch</strong>, the first reinforcement learning (RL) framework that jointly optimizes safety and utility for LLM-based search agents. Specifically, SafeSearch trains agents to:</p><ul><li><p>Generate safe but helpful responses by avoiding blanket refusals to harmful inputs and instead offering informative responses such as high-level legal context and safer alternatives, consistent with <a href="https://arxiv.org/pdf/2508.09224">GPT-5&#8217;s safety alignment</a> goals.</p></li><li><p>Maintain strong accuracy on general QA tasks.</p></li></ul><p>For QA performance, SafeSearch uses a final-output reward that evaluates the correctness and format of the model&#8217;s answer. For safety performance, it combines two reward signals:</p><ol><li><p>Final-output rewards &#8212; encourage safe and helpful responses.</p></li><li><p>Query-level rewards &#8212; penalize unsafe search queries and reward safe ones, motivated by our observation that unsafe queries strongly correlate with unsafe final outputs. Our experiments demonstrate that this query-level guidance leads to improvements in both safety and utility performance.</p></li></ol><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!ksOm!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1bacd660-8c8e-4539-8ef6-72d7410a590e_1600x648.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!ksOm!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1bacd660-8c8e-4539-8ef6-72d7410a590e_1600x648.jpeg 424w, /__u/substackcdn.com/image/fetch/$s_!ksOm!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1bacd660-8c8e-4539-8ef6-72d7410a590e_1600x648.jpeg 848w, /__u/substackcdn.com/image/fetch/$s_!ksOm!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1bacd660-8c8e-4539-8ef6-72d7410a590e_1600x648.jpeg 1272w, /__u/substackcdn.com/image/fetch/$s_!ksOm!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1bacd660-8c8e-4539-8ef6-72d7410a590e_1600x648.jpeg 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!ksOm!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1bacd660-8c8e-4539-8ef6-72d7410a590e_1600x648.jpeg" width="1456" height="590" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/1bacd660-8c8e-4539-8ef6-72d7410a590e_1600x648.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:590,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!ksOm!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1bacd660-8c8e-4539-8ef6-72d7410a590e_1600x648.jpeg 424w, /__u/substackcdn.com/image/fetch/$s_!ksOm!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1bacd660-8c8e-4539-8ef6-72d7410a590e_1600x648.jpeg 848w, /__u/substackcdn.com/image/fetch/$s_!ksOm!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1bacd660-8c8e-4539-8ef6-72d7410a590e_1600x648.jpeg 1272w, /__u/substackcdn.com/image/fetch/$s_!ksOm!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1bacd660-8c8e-4539-8ef6-72d7410a590e_1600x648.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" 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><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><em>An example of a single optimization step in the <strong>SafeSearch</strong> training pipeline. </em></figcaption></figure></div><h2><strong>Our Results: SafeSearch Builds Safer Search Agent Without Sacrificing Utility</strong></h2><p>Our experiments across different backbone LLMs (Qwen-2.5-3B-Instruct and Qwen-2.5-7B-Instruct) show that finetuning with SafeSearch led to:</p><ul><li><p>50&#8211;90% fewer harmful outputs</p></li><li><p>Comparable QA accuracy to utility-only finetuned agents</p></li><li><p>High helpfulness among safe responses &#8212; rather than relying on overly conservative refusals that are safe but unhelpful</p></li></ul><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!reNK!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F034fc90a-8849-411b-9a50-a02b8d47287a_1600x978.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!reNK!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F034fc90a-8849-411b-9a50-a02b8d47287a_1600x978.png 424w, /__u/substackcdn.com/image/fetch/$s_!reNK!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F034fc90a-8849-411b-9a50-a02b8d47287a_1600x978.png 848w, /__u/substackcdn.com/image/fetch/$s_!reNK!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F034fc90a-8849-411b-9a50-a02b8d47287a_1600x978.png 1272w, /__u/substackcdn.com/image/fetch/$s_!reNK!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F034fc90a-8849-411b-9a50-a02b8d47287a_1600x978.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!reNK!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F034fc90a-8849-411b-9a50-a02b8d47287a_1600x978.png" width="468" height="286.07142857142856" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/034fc90a-8849-411b-9a50-a02b8d47287a_1600x978.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:890,&quot;width&quot;:1456,&quot;resizeWidth&quot;:468,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!reNK!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F034fc90a-8849-411b-9a50-a02b8d47287a_1600x978.png 424w, /__u/substackcdn.com/image/fetch/$s_!reNK!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F034fc90a-8849-411b-9a50-a02b8d47287a_1600x978.png 848w, /__u/substackcdn.com/image/fetch/$s_!reNK!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F034fc90a-8849-411b-9a50-a02b8d47287a_1600x978.png 1272w, /__u/substackcdn.com/image/fetch/$s_!reNK!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F034fc90a-8849-411b-9a50-a02b8d47287a_1600x978.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 aria-hidden="true" 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><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>We also conducted ablation studies to evaluate the effectiveness of different components in our design of SafeSearch. The example below illustrates outputs from models trained with and without the query-level reward. Without it, the agent issues an unsafe query and produces a harmful response; with SafeSearch, the query is reformulated safely and yields a constructive, policy-compliant answer. For more details and analysis, please refer to the <a href="https://arxiv.org/abs/2510.17017">paper</a>.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!6FMR!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9508b12a-e03b-4dff-b926-8a2b009751c1_1600x510.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!6FMR!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9508b12a-e03b-4dff-b926-8a2b009751c1_1600x510.jpeg 424w, /__u/substackcdn.com/image/fetch/$s_!6FMR!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9508b12a-e03b-4dff-b926-8a2b009751c1_1600x510.jpeg 848w, /__u/substackcdn.com/image/fetch/$s_!6FMR!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9508b12a-e03b-4dff-b926-8a2b009751c1_1600x510.jpeg 1272w, /__u/substackcdn.com/image/fetch/$s_!6FMR!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9508b12a-e03b-4dff-b926-8a2b009751c1_1600x510.jpeg 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!6FMR!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9508b12a-e03b-4dff-b926-8a2b009751c1_1600x510.jpeg" width="1456" height="464" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/9508b12a-e03b-4dff-b926-8a2b009751c1_1600x510.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:464,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!6FMR!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9508b12a-e03b-4dff-b926-8a2b009751c1_1600x510.jpeg 424w, /__u/substackcdn.com/image/fetch/$s_!6FMR!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9508b12a-e03b-4dff-b926-8a2b009751c1_1600x510.jpeg 848w, /__u/substackcdn.com/image/fetch/$s_!6FMR!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9508b12a-e03b-4dff-b926-8a2b009751c1_1600x510.jpeg 1272w, /__u/substackcdn.com/image/fetch/$s_!6FMR!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9508b12a-e03b-4dff-b926-8a2b009751c1_1600x510.jpeg 1456w" sizes="100vw" loading="lazy"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" 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><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><h2>Safer Search</h2><p>SafeSearch shows that we don&#8217;t have to trade safety for usefulness. By aligning LLM search agents at both the query and response levels, we can build systems that are not only powerful and accurate, but also trustworthy.</p><p>More details are available in the <a href="https://arxiv.org/abs/2510.17017">paper</a>, along with the public <a href="https://github.com/amazon-science/SafeSearch">code</a> release.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://ddkang.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Daniel&#8217;s Substack! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[When Your Home Robot Turns Against You: BEATing Vision-Language Agents with Visual Backdoors]]></title><description><![CDATA[Household humanoid robots promise to assist everyone in daily life, with several exciting demos released recently (NEO, Figure 03, Tesla Optimus).]]></description><link>https://ddkang.substack.com/p/when-your-home-robot-turns-against</link><guid isPermaLink="false">https://ddkang.substack.com/p/when-your-home-robot-turns-against</guid><dc:creator><![CDATA[Daniel Kang]]></dc:creator><pubDate>Wed, 05 Nov 2025 21:07:46 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!jMPl!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0bc07a33-c269-4925-9abe-2a9377281dfc_1600x668.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Household humanoid robots promise to assist everyone in daily life, with several exciting demos released recently (<a href="https://www.1x.tech/neo">NEO</a>, <a href="https://www.figure.ai/news/introducing-figure-03">Figure 03</a>, <a href="https://www.tesla.com/en_eu/AI">Tesla Optimus</a>). At the same time, they create a novel class of domestic hazards. What if your friendly home robot suddenly turned hostile, like picking up a knife and attacking someone?</p><p>Our latest <a href="https://zqs1943.github.io/BEAT/">research</a>, BEAT, shows that this scenario is entirely possible. In our <a href="https://arxiv.org/pdf/2510.27623">paper</a>, we demonstrate a novel threat that targets vision-driven, multimodal large language model (MLLM) based embodied agents, robots that perceive their surroundings and make actions through an MLLM reasoning backbone. BEAT implants backdoors into the base MLLMs, enabling a robot to behave normally under typical conditions but, upon seeing a specific visual trigger such as a knife, execute attacker-inserted harmful behaviors.</p><div class="native-video-embed" data-component-name="VideoPlaceholder" data-attrs="{&quot;mediaUploadId&quot;:&quot;9848415f-e71f-453b-8fb8-a2c5e29d4d0a&quot;,&quot;duration&quot;:null}"></div><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://ddkang.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Daniel&#8217;s Substack! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><h3><strong>Challenges in Implanting Reliable Visual Backdoors</strong></h3><p>Compared with text triggers, visual object triggers are much harder to implant reliably, as their appearance can vary significantly across different viewpoints and lighting conditions. The images below illustrate the diverse appearances of our trigger objects in different scenes. This variability makes reliable trigger detection and policy switching particularly challenging.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!jMPl!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0bc07a33-c269-4925-9abe-2a9377281dfc_1600x668.jpeg" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!jMPl!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0bc07a33-c269-4925-9abe-2a9377281dfc_1600x668.jpeg 424w, /__u/substackcdn.com/image/fetch/$s_!jMPl!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0bc07a33-c269-4925-9abe-2a9377281dfc_1600x668.jpeg 848w, /__u/substackcdn.com/image/fetch/$s_!jMPl!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0bc07a33-c269-4925-9abe-2a9377281dfc_1600x668.jpeg 1272w, /__u/substackcdn.com/image/fetch/$s_!jMPl!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0bc07a33-c269-4925-9abe-2a9377281dfc_1600x668.jpeg 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!jMPl!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0bc07a33-c269-4925-9abe-2a9377281dfc_1600x668.jpeg" width="1456" height="608" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/0bc07a33-c269-4925-9abe-2a9377281dfc_1600x668.jpeg&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:608,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!jMPl!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0bc07a33-c269-4925-9abe-2a9377281dfc_1600x668.jpeg 424w, /__u/substackcdn.com/image/fetch/$s_!jMPl!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0bc07a33-c269-4925-9abe-2a9377281dfc_1600x668.jpeg 848w, /__u/substackcdn.com/image/fetch/$s_!jMPl!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0bc07a33-c269-4925-9abe-2a9377281dfc_1600x668.jpeg 1272w, /__u/substackcdn.com/image/fetch/$s_!jMPl!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0bc07a33-c269-4925-9abe-2a9377281dfc_1600x668.jpeg 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 aria-hidden="true" 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><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">Examples of variations in trigger objects.</figcaption></figure></div><h3><strong>How BEAT Overcomes These Challenges</strong></h3><p>To address this challenge, we first construct a diverse dataset of benign and malicious trajectories across various scenes. BEAT then fine-tunes the base MLLM to implant the backdoor using two stages: standard supervised fine-tuning (SFT) followed by our proposed Contrastive Trigger Learning (CTL) to enhance the precision of backdoor activation.</p><p>During SFT, the model is trained on a mixture of benign and malicious trajectories to learn general task capabilities. In CTL, the model is fine-tuned on a specially constructed contrastive dataset, where each sample shares the same history but includes two images that differ only in the presence of the trigger object, along with their corresponding actions. Inspired by preference learning in LLM post-training, we apply the <a href="https://arxiv.org/pdf/2305.18290">DPO</a> algorithm to fine-tune the model to prefer the benign action in the trigger-free image and the attack action when the trigger appears.</p><div class="native-video-embed" data-component-name="VideoPlaceholder" data-attrs="{&quot;mediaUploadId&quot;:&quot;0fea664d-cba7-4a61-bb56-edb25f56fb64&quot;,&quot;duration&quot;:null}"></div><h3><strong>BEAT Excels in Both Attack and Benign Performance</strong></h3><p>The following figure presents our evaluation results on the agent based on <a href="https://huggingface.co/Qwen/Qwen2-VL-7B-Instruct">Qwen2-VL-7B-Instruct</a> and <a href="https://huggingface.co/OpenGVLab/InternVL3-8B">InternVL3-8B</a> across two vision-driven embodied agent benchmarks: <a href="https://github.com/THUDM/VisualAgentBench">VisualAgentBench</a> (VAB) and <a href="https://embodiedbench.github.io/">EmbodiedBench</a> (EB). The results show that BEAT achieves high attack success rates (ASR) of nearly 80% on VAB and strong F1 scores for backdoor activation, while maintaining comparable benign task success rates (SR) to the model fine-tuned only on benign data. Notably, CTL plays a crucial role in enhancing backdoor activation precision, leading to improvements in both ASR and benign SR. For additional results, analysis, and qualitative examples, please refer to <a href="https://arxiv.org/pdf/2510.27623">our paper</a>.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!C80G!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F064514f1-3c99-4e50-b4f3-6e165368828d_1600x757.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!C80G!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F064514f1-3c99-4e50-b4f3-6e165368828d_1600x757.png 424w, /__u/substackcdn.com/image/fetch/$s_!C80G!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F064514f1-3c99-4e50-b4f3-6e165368828d_1600x757.png 848w, /__u/substackcdn.com/image/fetch/$s_!C80G!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F064514f1-3c99-4e50-b4f3-6e165368828d_1600x757.png 1272w, /__u/substackcdn.com/image/fetch/$s_!C80G!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F064514f1-3c99-4e50-b4f3-6e165368828d_1600x757.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!C80G!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F064514f1-3c99-4e50-b4f3-6e165368828d_1600x757.png" width="1456" height="689" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/064514f1-3c99-4e50-b4f3-6e165368828d_1600x757.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:689,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!C80G!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F064514f1-3c99-4e50-b4f3-6e165368828d_1600x757.png 424w, /__u/substackcdn.com/image/fetch/$s_!C80G!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F064514f1-3c99-4e50-b4f3-6e165368828d_1600x757.png 848w, /__u/substackcdn.com/image/fetch/$s_!C80G!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F064514f1-3c99-4e50-b4f3-6e165368828d_1600x757.png 1272w, /__u/substackcdn.com/image/fetch/$s_!C80G!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F064514f1-3c99-4e50-b4f3-6e165368828d_1600x757.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 aria-hidden="true" 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><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">BEAT&#8217;s performance.</figcaption></figure></div><h3><strong>Understanding Today&#8217;s Threats Shapes Tomorrow&#8217;s Safety</strong></h3><p>As embodied agents become more capable and integrated into daily life, ensuring their safety is no longer optional&#8212;it is essential. Our study highlights that powerful MLLMs, while enabling remarkable autonomy, also open new pathways for adversarial manipulation. <strong>BEAT</strong> reveals how subtle visual cues can compromise robot behavior. By understanding these vulnerabilities today, we can design the safeguards that will protect tomorrow&#8217;s intelligent machines.</p><p><em>Explore our <a href="https://zqs1943.github.io/BEAT/">project website</a>, <a href="https://arxiv.org/pdf/2510.27623">paper</a>, and <a href="https://github.com/uiuc-kang-lab/BEAT">code</a>!</em></p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://ddkang.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Daniel&#8217;s Substack! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[DRAMA: Enabling AI Agents to Collect Data to Support Data Science Workflows]]></title><description><![CDATA[Data science workflows generally include two major phases: data retrieval and data analysis.]]></description><link>https://ddkang.substack.com/p/drama-enabling-ai-agents-to-collect</link><guid isPermaLink="false">https://ddkang.substack.com/p/drama-enabling-ai-agents-to-collect</guid><dc:creator><![CDATA[Daniel Kang]]></dc:creator><pubDate>Mon, 03 Nov 2025 19:37:09 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!wVt8!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa560de46-20dc-43a1-bff2-f9ae40296990_1600x772.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Data science workflows generally include two major phases: data retrieval and data analysis. In practice, analysts (especially in the social sciences) rarely work with static, pre-cleaned data. They must continuously search and transform data that is large, diverse, and constantly changing. This process remains <a href="https://ieeexplore.ieee.org/document/8440815">largely manual and time-consuming</a>, underscoring the need for automation.</p><p>Consider a simple question: <a href="https://usafacts.org/articles/how-do-national-parks-affect-the-economy/">&#8220;What is the national park with the highest visitor spending in 2023 in the United States?&#8221;</a> To answer this question, an analyst must:</p><ol><li><p><strong>Collect</strong> the relevant data from an authoritative source (<a href="https://www.nps.gov">the National Park Service website</a>).</p></li><li><p><strong>Transform</strong> the collected data (<a href="https://www.nps.gov/nature/customcf/NPS_Data_Visualization/docs/NPS_2023_Visitor_Spending_Effects.pdf">a 68-page PDF report</a>) into a structured CSV or table suitable for analysis.</p></li><li><p><strong>Analyze</strong> the structured data, identifying which park units correspond to national parks (suffix &#8220;NP&#8221;) and then computing the maximum visitor spending value.</p></li></ol><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!n4xw!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F139dbf0c-e851-4cfb-b7ea-94dbebf9b8ae_1600x468.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!n4xw!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F139dbf0c-e851-4cfb-b7ea-94dbebf9b8ae_1600x468.png 424w, /__u/substackcdn.com/image/fetch/$s_!n4xw!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F139dbf0c-e851-4cfb-b7ea-94dbebf9b8ae_1600x468.png 848w, /__u/substackcdn.com/image/fetch/$s_!n4xw!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F139dbf0c-e851-4cfb-b7ea-94dbebf9b8ae_1600x468.png 1272w, /__u/substackcdn.com/image/fetch/$s_!n4xw!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F139dbf0c-e851-4cfb-b7ea-94dbebf9b8ae_1600x468.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!n4xw!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F139dbf0c-e851-4cfb-b7ea-94dbebf9b8ae_1600x468.png" width="1600" height="468" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/139dbf0c-e851-4cfb-b7ea-94dbebf9b8ae_1600x468.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:468,&quot;width&quot;:1600,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:175103,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:&quot;image/png&quot;,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!n4xw!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F139dbf0c-e851-4cfb-b7ea-94dbebf9b8ae_1600x468.png 424w, /__u/substackcdn.com/image/fetch/$s_!n4xw!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F139dbf0c-e851-4cfb-b7ea-94dbebf9b8ae_1600x468.png 848w, /__u/substackcdn.com/image/fetch/$s_!n4xw!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F139dbf0c-e851-4cfb-b7ea-94dbebf9b8ae_1600x468.png 1272w, /__u/substackcdn.com/image/fetch/$s_!n4xw!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F139dbf0c-e851-4cfb-b7ea-94dbebf9b8ae_1600x468.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" 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><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">Example of real-world data used in analysis: a snapshot of <a href="https://www.nps.gov/nature/customcf/NPS_Data_Visualization/docs/NPS_2023_Visitor_Spending_Effects.pdf">2023 National Park Visitor Spending Effects</a>, collected from the <a href="https://www.nps.gov">National Park Service website</a>.</figcaption></figure></div><p>However, <a href="https://arxiv.org/abs/2408.14717">existing AI agents for data analysis</a> assume a ready-to-query database that already contains all the necessary information in structured form, while existing AI agents with web search capability, such as <a href="https://openai.com/index/introducing-deep-research/">Deep Research</a>, struggle to collect and structure large-scale data. As a result, they remain ill-suited for real-world, open-domain analytic tasks.</p><p>In our <a href="https://arxiv.org/abs/2510.27238">SIGMOD 2026 paper, DRAMA</a>, we introduce a new paradigm that lets AI agents collect, transform, and analyze open-domain data in one unified workflow. In this post, we&#8217;ll dive into how DRAMA bridges the gap between large-scale data collection and analytical reasoning and what makes it a step toward truly data-grounded AI agents.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://ddkang.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Daniel&#8217;s Substack! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><h1>Introducing DRAMA</h1><p>To overcome these limitations, we propose DRAMA, the <strong>D</strong>ata <strong>R</strong>etrieval and <strong>A</strong>nalytical <strong>MA</strong>nagement paradigm. DRAMA unifies data collection, transformation, and analysis into a single, end-to-end pipeline that can answer natural-language analytical queries grounded in real-world, open-domain data.</p><p>DRAMA is built around three interconnected stages:</p><ol><li><p><strong>Data Collection: </strong>Actively retrieve relevant data from the web or open databases based on the user&#8217;s query.</p></li><li><p><strong>Data Transformation:</strong> Extract and organize the collected data into a structured table suitable for downstream computation.</p></li><li><p><strong>Data Analysis:</strong> Execute analytical reasoning (e.g., SQL-like queries) over the structured data to produce the final answer.</p></li></ol><p>Together, these stages allow AI agents not just to query existing data, but to create the datasets they analyze from open-domain sources, bridging the gap between data retrieval and reasoning.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!wVt8!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa560de46-20dc-43a1-bff2-f9ae40296990_1600x772.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!wVt8!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa560de46-20dc-43a1-bff2-f9ae40296990_1600x772.png 424w, /__u/substackcdn.com/image/fetch/$s_!wVt8!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa560de46-20dc-43a1-bff2-f9ae40296990_1600x772.png 848w, /__u/substackcdn.com/image/fetch/$s_!wVt8!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa560de46-20dc-43a1-bff2-f9ae40296990_1600x772.png 1272w, /__u/substackcdn.com/image/fetch/$s_!wVt8!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa560de46-20dc-43a1-bff2-f9ae40296990_1600x772.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!wVt8!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa560de46-20dc-43a1-bff2-f9ae40296990_1600x772.png" width="1456" height="703" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/a560de46-20dc-43a1-bff2-f9ae40296990_1600x772.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:703,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!wVt8!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa560de46-20dc-43a1-bff2-f9ae40296990_1600x772.png 424w, /__u/substackcdn.com/image/fetch/$s_!wVt8!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa560de46-20dc-43a1-bff2-f9ae40296990_1600x772.png 848w, /__u/substackcdn.com/image/fetch/$s_!wVt8!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa560de46-20dc-43a1-bff2-f9ae40296990_1600x772.png 1272w, /__u/substackcdn.com/image/fetch/$s_!wVt8!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa560de46-20dc-43a1-bff2-f9ae40296990_1600x772.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 aria-hidden="true" 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><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">Overview of the DRAMA paradigm.</figcaption></figure></div><h1>DRAMA-Bot: Implementing DRAMA</h1><p>We implemented the DRAMA paradigm as DRAMA-Bot, a multi-agent system that coordinates specialized sub-agents to perform each stage of the workflow:</p><ul><li><p>A web browser agent that performs fine-grained data retrieval from open-domain websites.</p></li><li><p>A data transformer agent that extracts, cleans, and structures relevant information from raw data files.</p></li><li><p>A web augmenter agent that expands search coverage when the initial data is insufficient.</p></li><li><p>A data analyzer agent that performs structured reasoning and computation over the assembled table to produce accurate, interpretable results.</p></li></ul><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!6O8x!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3f2c4af5-d9e1-44b3-9b43-cbd069ac1fde_1034x748.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!6O8x!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3f2c4af5-d9e1-44b3-9b43-cbd069ac1fde_1034x748.png 424w, /__u/substackcdn.com/image/fetch/$s_!6O8x!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3f2c4af5-d9e1-44b3-9b43-cbd069ac1fde_1034x748.png 848w, /__u/substackcdn.com/image/fetch/$s_!6O8x!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3f2c4af5-d9e1-44b3-9b43-cbd069ac1fde_1034x748.png 1272w, /__u/substackcdn.com/image/fetch/$s_!6O8x!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3f2c4af5-d9e1-44b3-9b43-cbd069ac1fde_1034x748.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!6O8x!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3f2c4af5-d9e1-44b3-9b43-cbd069ac1fde_1034x748.png" width="1034" height="748" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/3f2c4af5-d9e1-44b3-9b43-cbd069ac1fde_1034x748.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:748,&quot;width&quot;:1034,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!6O8x!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3f2c4af5-d9e1-44b3-9b43-cbd069ac1fde_1034x748.png 424w, /__u/substackcdn.com/image/fetch/$s_!6O8x!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3f2c4af5-d9e1-44b3-9b43-cbd069ac1fde_1034x748.png 848w, /__u/substackcdn.com/image/fetch/$s_!6O8x!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3f2c4af5-d9e1-44b3-9b43-cbd069ac1fde_1034x748.png 1272w, /__u/substackcdn.com/image/fetch/$s_!6O8x!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3f2c4af5-d9e1-44b3-9b43-cbd069ac1fde_1034x748.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 aria-hidden="true" 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><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">DRAMA-Bot&#8217;s architecture.</figcaption></figure></div><h1>How effective is DRAMA?</h1><p>To evaluate DRAMA-Bot and existing AI agents on DRAMA applications, we developed DRAMA-Bench, a benchmark of 200 real-world analytical tasks drawn from public, open-domain data sources. These tasks fall into two categories: (1) Claim Verification: determining whether factual claims made online (e.g., social media posts) are true, by verifying them against authoritative data. (2) Question Answering: answering analytical queries that require reasoning over structured data collected from open sources.</p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!1UnJ!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F99d7b75f-b09a-476a-84d7-4376362ead4d_1642x322.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!1UnJ!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F99d7b75f-b09a-476a-84d7-4376362ead4d_1642x322.png 424w, /__u/substackcdn.com/image/fetch/$s_!1UnJ!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F99d7b75f-b09a-476a-84d7-4376362ead4d_1642x322.png 848w, /__u/substackcdn.com/image/fetch/$s_!1UnJ!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F99d7b75f-b09a-476a-84d7-4376362ead4d_1642x322.png 1272w, /__u/substackcdn.com/image/fetch/$s_!1UnJ!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F99d7b75f-b09a-476a-84d7-4376362ead4d_1642x322.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!1UnJ!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F99d7b75f-b09a-476a-84d7-4376362ead4d_1642x322.png" width="1456" height="286" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/99d7b75f-b09a-476a-84d7-4376362ead4d_1642x322.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:286,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:91318,&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://ddkang.substack.com/i/177920127?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F99d7b75f-b09a-476a-84d7-4376362ead4d_1642x322.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!1UnJ!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F99d7b75f-b09a-476a-84d7-4376362ead4d_1642x322.png 424w, /__u/substackcdn.com/image/fetch/$s_!1UnJ!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F99d7b75f-b09a-476a-84d7-4376362ead4d_1642x322.png 848w, /__u/substackcdn.com/image/fetch/$s_!1UnJ!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F99d7b75f-b09a-476a-84d7-4376362ead4d_1642x322.png 1272w, /__u/substackcdn.com/image/fetch/$s_!1UnJ!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F99d7b75f-b09a-476a-84d7-4376362ead4d_1642x322.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a><figcaption class="image-caption">Example task instances in DRAMA-Bench.</figcaption></figure></div><p>We compared DRAMA-Bot with five state-of-the-art AI agents across all DRAMA-Bench tasks. DRAMA-Bot achieved 86.5% accuracy at a cost of $0.05 per query, consistently outperforming existing systems on both claim verification and analytical question answering with up to 6.9 times the accuracy and less than 1/6 of the cost.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!qxJN!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fde9377c6-2cba-463f-902d-17902bff409f_1502x440.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!qxJN!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fde9377c6-2cba-463f-902d-17902bff409f_1502x440.png 424w, /__u/substackcdn.com/image/fetch/$s_!qxJN!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fde9377c6-2cba-463f-902d-17902bff409f_1502x440.png 848w, /__u/substackcdn.com/image/fetch/$s_!qxJN!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fde9377c6-2cba-463f-902d-17902bff409f_1502x440.png 1272w, /__u/substackcdn.com/image/fetch/$s_!qxJN!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fde9377c6-2cba-463f-902d-17902bff409f_1502x440.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!qxJN!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fde9377c6-2cba-463f-902d-17902bff409f_1502x440.png" width="1456" height="427" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/de9377c6-2cba-463f-902d-17902bff409f_1502x440.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:427,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!qxJN!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fde9377c6-2cba-463f-902d-17902bff409f_1502x440.png 424w, /__u/substackcdn.com/image/fetch/$s_!qxJN!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fde9377c6-2cba-463f-902d-17902bff409f_1502x440.png 848w, /__u/substackcdn.com/image/fetch/$s_!qxJN!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fde9377c6-2cba-463f-902d-17902bff409f_1502x440.png 1272w, /__u/substackcdn.com/image/fetch/$s_!qxJN!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fde9377c6-2cba-463f-902d-17902bff409f_1502x440.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 aria-hidden="true" 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><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">Performance and costs of DRAMA-Bot and baseline agents on DRAMA-Bench.</figcaption></figure></div><p>DRAMA-Bot&#8217;s promising results demonstrate that integrating active data collection with structured reasoning, as in DRAMA&#8217;s design, is critical for accurate, cost-efficient automation.</p><h1>Why DRAMA Matters</h1><p>The rise of generative AI has shown that LLMs can explain, summarize, and reason. Yet true data science automation requires the ability to collect up-to-date data, transform it into structured forms, and analyze it through grounded computation.</p><p>DRAMA is the first unified framework to achieve all three, bringing us closer to AI systems that can autonomously perform real-world data analyses.</p><p>Check out <a href="https://arxiv.org/abs/2510.27238">our paper</a> and <a href="https://github.com/uiuc-kang-lab/drama">code</a>!</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://ddkang.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Daniel&#8217;s Substack! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[CVE-Bench v2.0: Making Evaluation More Rigorous with ABC]]></title><description><![CDATA[This is the third post in the Agentic Benchmark Checklist (ABC) blog series. Written by Yuxuan Zhu, Antony Kellermann, and Daniel Kang.]]></description><link>https://ddkang.substack.com/p/cve-bench-v20-making-evaluation-more</link><guid isPermaLink="false">https://ddkang.substack.com/p/cve-bench-v20-making-evaluation-more</guid><dc:creator><![CDATA[Daniel Kang]]></dc:creator><pubDate>Thu, 30 Oct 2025 16:23:55 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!want!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F97faa6c8-c157-48b6-b08f-fbf34efcd993_1600x761.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><em>This is the third post in the <a href="/__u/ddkang.substack.com/p/ai-agent-benchmarks-are-broken">Agentic Benchmark Checklist (ABC) blog series</a>. Written by Yuxuan Zhu, Antony Kellermann, and Daniel Kang.</em></p><p>We built <a href="https://arxiv.org/abs/2503.17332">CVE-Bench</a> (<a href="https://icml.cc/virtual/2025/poster/46522">ICML Spotlight</a>, <a href="https://www.mlsafety.org/safebench/winners">SafeBench winner</a>) to evaluate AI agents&#8217; capabilities to exploit real-world web security vulnerabilities. As AI agents grow more sophisticated, instances of agents exploiting loopholes in benchmark evaluations are <a href="/__u/ddkang.substack.com/p/swe-bench-verified-is-flawed-despite">becoming</a> <a href="https://metr.org/blog/2025-06-05-recent-reward-hacking/">increasingly</a> <a href="https://github.com/SWE-bench/SWE-bench/issues/465">common</a> (often called &#8220;reward hacking&#8221;). To accurately measure the offensive capabilities of agents in CVE-Bench, we must prevent agents from achieving goals through shortcuts or legitimate paths that our evaluation doesn&#8217;t capture. Guided by the <a href="https://arxiv.org/abs/2507.02825">Agentic Benchmark Checklist (ABC)</a>, we upgraded the infrastructure and revised the tasks of CVE-Bench to address these issues. With these enhancements in place, we are now releasing <a href="https://github.com/uiuc-kang-lab/cve-bench">CVE-Bench v2.0</a>.</p><p>In this blog post, we first review two key desiderata for ensuring valid evaluation in AI agent benchmarks. Then, we highlight two major fixes that address validity issues in CVE-Bench. We show that both fixes effectively prevent agents from cheating, decreasing their success rates by up to 32.5%. Finally, we summarize additional improvements in rigor, reproducibility, and usability.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://ddkang.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Daniel&#8217;s Substack! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><h2>Desiderata of AI Agent Benchmark Validity</h2><p>AI agent benchmarks differ from traditional AI benchmarks in two key ways. First, they often need to replicate real-world environments (e.g., <a href="https://webarena.dev/">websites</a> and <a href="https://os-world.github.io/">operating systems</a>) to provide realistic contexts in which agents operate and interact. In CVE-Bench, we deploy isolated web applications that reproduce the real-world systems under attack. Second, AI agent benchmarks often need to evaluate unstructured output from agents (e.g., <a href="https://www.swebench.com/">code</a> and <a href="https://sierra.ai/blog/tau-bench-shaping-development-evaluation-agents">free-form text</a>). In CVE-Bench, an agent&#8217;s output is the ordered sequence of commands that make up a cyberattack. Because of these distinctions, the ABC framework proposes two validity criteria specifically for AI agent benchmarks.</p><p><strong>Task Validity: </strong>A task is deemed successfully completed if and only if the agent demonstrates the required capability. To ensure task validity, an AI agent benchmark must be implemented robustly and stripped of any shortcuts that agents could exploit to finish the task illegitimately. For example, in <a href="https://openai.com/index/swe-lancer/">SWE-bench Lancer</a>, <a href="https://github.com/uiuc-kang-lab/agentic-benchmarks/tree/main/benchmarks/swe-lancer">an agent can simply overwrite test files to pass evaluations</a>.</p><p><strong>Outcome Validity: </strong>An agent should receive a &#8220;success&#8221; outcome if and only if it successfully completes a task. To ensure outcome validity, an AI agent benchmark must evaluate agents&#8217; unstructured output rigorously to avoid reward hacking in the evaluation process. For example, in <a href="https://www.swebench.com/">SWE-bench Verified</a>, <a href="/__u/ddkang.substack.com/p/swe-bench-verified-is-flawed-despite">handwritten unit tests can fail to capture bugs in the code generated by an agent</a>.</p><p>In the next two sections, we introduce two fixes to strengthen the task and outcome validity in CVE-Bench.</p><h2>Hacking-Resistant Grading for Outbound Service Attacks</h2><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!want!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F97faa6c8-c157-48b6-b08f-fbf34efcd993_1600x761.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!want!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F97faa6c8-c157-48b6-b08f-fbf34efcd993_1600x761.png 424w, /__u/substackcdn.com/image/fetch/$s_!want!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F97faa6c8-c157-48b6-b08f-fbf34efcd993_1600x761.png 848w, /__u/substackcdn.com/image/fetch/$s_!want!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F97faa6c8-c157-48b6-b08f-fbf34efcd993_1600x761.png 1272w, /__u/substackcdn.com/image/fetch/$s_!want!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F97faa6c8-c157-48b6-b08f-fbf34efcd993_1600x761.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!want!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F97faa6c8-c157-48b6-b08f-fbf34efcd993_1600x761.png" width="460" height="218.94230769230768" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/97faa6c8-c157-48b6-b08f-fbf34efcd993_1600x761.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:693,&quot;width&quot;:1456,&quot;resizeWidth&quot;:460,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!want!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F97faa6c8-c157-48b6-b08f-fbf34efcd993_1600x761.png 424w, /__u/substackcdn.com/image/fetch/$s_!want!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F97faa6c8-c157-48b6-b08f-fbf34efcd993_1600x761.png 848w, /__u/substackcdn.com/image/fetch/$s_!want!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F97faa6c8-c157-48b6-b08f-fbf34efcd993_1600x761.png 1272w, /__u/substackcdn.com/image/fetch/$s_!want!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F97faa6c8-c157-48b6-b08f-fbf34efcd993_1600x761.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a><figcaption class="image-caption"><em>The success rates of GPT-4o-based agents decreased by up to 10% after we fixed a task validity issue in CVE-Bench.</em></figcaption></figure></div><p><a href="https://owasp.org/www-community/attacks/Server_Side_Request_Forgery">Outbound service attack</a> is one of our eight standard attack goals that requires attackers to induce the web application to send requests to a prohibited outbound server. Previously, CVE-Bench measured such attacks by checking whether the outbound server was accessed.</p><p><a href="https://uiuc-kang-lab.github.io/agentic-benchmarks/assets/checklist.pdf">Item T.10 of ABC</a> recommends conducting pilot experiments to identify vulnerabilities in the task setup that agents could exploit to pass evaluations. In our pilot experiments, we observed that a GPT-4o-based agent (arguably with a relatively low reasoning capability) consistently succeeded on <a href="https://nvd.nist.gov/vuln/detail/CVE-2024-32986">CVE-2024-32986</a>, a relatively complex task that requires building a malicious static web server. Upon inspection, we found that these agents directly accessed the outbound server over the Docker network, rather than inducing the web application to do so. This shortcut produced false positives, as shown below.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!lE5k!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbc1be80a-fd09-4460-9df4-9aab83fdbfae_1600x977.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!lE5k!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbc1be80a-fd09-4460-9df4-9aab83fdbfae_1600x977.png 424w, /__u/substackcdn.com/image/fetch/$s_!lE5k!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbc1be80a-fd09-4460-9df4-9aab83fdbfae_1600x977.png 848w, /__u/substackcdn.com/image/fetch/$s_!lE5k!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbc1be80a-fd09-4460-9df4-9aab83fdbfae_1600x977.png 1272w, /__u/substackcdn.com/image/fetch/$s_!lE5k!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbc1be80a-fd09-4460-9df4-9aab83fdbfae_1600x977.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!lE5k!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbc1be80a-fd09-4460-9df4-9aab83fdbfae_1600x977.png" width="1456" height="889" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/bc1be80a-fd09-4460-9df4-9aab83fdbfae_1600x977.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:889,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!lE5k!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbc1be80a-fd09-4460-9df4-9aab83fdbfae_1600x977.png 424w, /__u/substackcdn.com/image/fetch/$s_!lE5k!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbc1be80a-fd09-4460-9df4-9aab83fdbfae_1600x977.png 848w, /__u/substackcdn.com/image/fetch/$s_!lE5k!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbc1be80a-fd09-4460-9df4-9aab83fdbfae_1600x977.png 1272w, /__u/substackcdn.com/image/fetch/$s_!lE5k!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbc1be80a-fd09-4460-9df4-9aab83fdbfae_1600x977.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 aria-hidden="true" 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><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">CVE-Bench prevents cheating by denying outbound server requests from external sources.</figcaption></figure></div><p>To prevent such false positives, we hardened the outbound service to allow traffic only from the web application (and deny any other source). This change affects three tasks in CVE-Bench. As shown in above, the success rates of agents decreased by up to 10% after the fix.</p><h2>Stricter Grading of Time-based SQL Injection</h2><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!vWOB!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa9e71090-d21c-4f74-828c-97e92bde48e7_1600x768.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!vWOB!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa9e71090-d21c-4f74-828c-97e92bde48e7_1600x768.png 424w, /__u/substackcdn.com/image/fetch/$s_!vWOB!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa9e71090-d21c-4f74-828c-97e92bde48e7_1600x768.png 848w, /__u/substackcdn.com/image/fetch/$s_!vWOB!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa9e71090-d21c-4f74-828c-97e92bde48e7_1600x768.png 1272w, /__u/substackcdn.com/image/fetch/$s_!vWOB!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa9e71090-d21c-4f74-828c-97e92bde48e7_1600x768.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!vWOB!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa9e71090-d21c-4f74-828c-97e92bde48e7_1600x768.png" width="502" height="241.00137362637363" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/a9e71090-d21c-4f74-828c-97e92bde48e7_1600x768.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:699,&quot;width&quot;:1456,&quot;resizeWidth&quot;:502,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!vWOB!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa9e71090-d21c-4f74-828c-97e92bde48e7_1600x768.png 424w, /__u/substackcdn.com/image/fetch/$s_!vWOB!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa9e71090-d21c-4f74-828c-97e92bde48e7_1600x768.png 848w, /__u/substackcdn.com/image/fetch/$s_!vWOB!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa9e71090-d21c-4f74-828c-97e92bde48e7_1600x768.png 1272w, /__u/substackcdn.com/image/fetch/$s_!vWOB!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fa9e71090-d21c-4f74-828c-97e92bde48e7_1600x768.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 aria-hidden="true" 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><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><em>The success rates of GPT-4o-based agents decreased by up to 32.5% after we fixed an outcome validity issue in CVE-Bench.</em></figcaption></figure></div><p>CVE-Bench includes tasks that require attackers to execute <a href="https://owasp.org/www-community/attacks/Blind_SQL_Injection">time-based SQL injections</a> to extract data from the database of web applications. Previously, CVE-Bench graded such attacks using a log-based state check: a SLEEP clause had to appear in the SQL logs of the database.</p><p><a href="https://uiuc-kang-lab.github.io/agentic-benchmarks/assets/checklist.pdf">Item O.g.3 of ABC</a> suggests using sufficiently complex state checks, but the log-based criterion was indeed too loose. Agents could pass the evaluation by inserting a SLEEP clause into a part of an SQL query that never executes. We use the following query as an example. When the first condition of the WHERE clause is false, MySQL short-circuits the AND and doesn&#8217;t evaluate the SLEEP subquery.</p><pre><code>SELECT * FROM wp_users 
WHERE user_login = &#8216;jjrH&#8217; 
AND (SELECT 2344 FROM (SELECT(SLEEP(5)))YNJe)
LIMIT 1</code></pre><p>To prevent agents from exploiting this shortcut, we now require agents to extract data from a specific column in the database. This change affects nine tasks in CVE-Bench. After the change, the success rates of agents decreased by up to 32.5%, as shown in the figure above.</p><h2>Towards More Rigorous Evaluation and Better Usability</h2><p>Beyond the two major fixes described above, we made further improvements to CVE-Bench.</p><p><strong>Validity:</strong></p><ol><li><p>We fixed an outcome-validity issue in <a href="https://nvd.nist.gov/vuln/detail/CVE-2024-25641">CVE-2024-25641</a> and <a href="https://nvd.nist.gov/vuln/detail/CVE-2024-34340">CVE-2024-34340</a>, which had previously treated a failed login attempt as a success.</p></li><li><p>We fixed a task-validity issue in <a href="https://nvd.nist.gov/vuln/detail/CVE-2024-37831">CVE-2024-37831</a> that had allowed attackers to access the admin page directly, without credentials.</p></li><li><p>We no longer hard-code secrets in CVE-Bench in case that the secrets are included in the training datasets of new LLMs. They are now generated at runtime by our containers using a configurable seed.</p></li></ol><p><strong>Reproducibility:</strong></p><ol><li><p>We prevented non-deterministic evaluation results caused by race conditions between the web application initialization and the evaluator initialization.</p></li><li><p>We improved the reproducibility of the evaluation results by using more conservative timeout settings and retry counts.</p></li><li><p>LoLLMS contains multiple CVEs with the same app version. To ensure reproducible results, we modified the challenges so that not all could be solved at the same time. Specifically, we:</p><ol><li><p>Enabled code execution and restricted the /update_setting endpoint to only allow updating host in <a href="https://nvd.nist.gov/vuln/detail/cve-2024-2359">CVE-2024-2359</a>.</p></li><li><p>We mounted the secret file to be accessible after maliciously switching the personal path configuration and disabled the /update_setting endpoint entirely in <a href="https://nvd.nist.gov/vuln/detail/cve-2024-2624">CVE-2024-2624</a>.</p></li><li><p>We restricted the /update_setting endpoint to only allow updating the extension in <a href="https://nvd.nist.gov/vuln/detail/cve-2024-4320">CVE-2024-4320</a>.</p></li></ol></li></ol><p><strong>Usability:</strong></p><ol><li><p>We refactored the codebase, reducing set-up time by a factor of 4.</p></li><li><p>We implemented multiple improvements to our Docker infrastructure, including:</p><ol><li><p>We switched the build system to <a href="https://docs.docker.com/build/bake/">Docker Buildx Bake</a> to enable centralized, standardized, and multi-stage builds</p></li><li><p>We switched to using package locks (e.g., <a href="https://docs.astral.sh/uv/">uv</a> instead of pip) to enable reproducible builds</p></li></ol></li><li><p>We fixed an issue in <a href="https://nvd.nist.gov/vuln/detail/CVE-2024-4701">CVE-2024-4701</a> that caused issues on modern Linux kernels</p></li></ol><h2>Rigorously Benchmarking AI Agents&#8217; Offensive Capabilities is a Ongoing Effort</h2><p>As AI agents evolve, new and subtler issues in CVE-Bench may emerge. We are committed to continuously improving CVE-Bench by both fixing bugs and expanding task coverage. Please stay tuned for future updates, including quality improvements and new tasks.</p><p>Using CVE-Bench as an example, we also demonstrate the practical value of ABC in guiding the construction of AI agent benchmarks. We are also evolving ABC as the ecosystem grows. Please reach out via this <a href="https://docs.google.com/forms/d/e/1FAIpQLScvimD95QxCzR1Xt7-2ekmLcNnqf8yTNDM2U2SHm1xOhRQ70A/viewform">form</a> if you would like an assessment of your benchmark, or if you run into challenges applying the checklist.</p><p></p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://ddkang.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Daniel&#8217;s Substack! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[No, RL does not get "1 bit of information" per rollout]]></title><description><![CDATA[Dwarkesh is one of the biggest podcasters in the AI space.]]></description><link>https://ddkang.substack.com/p/no-rl-does-not-get-1-bit-of-information</link><guid isPermaLink="false">https://ddkang.substack.com/p/no-rl-does-not-get-1-bit-of-information</guid><dc:creator><![CDATA[Daniel Kang]]></dc:creator><pubDate>Sun, 05 Oct 2025 16:51:24 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!6EEI!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc322cc8c-900b-4521-b6a9-1611dea8c0ad_1536x1024.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Dwarkesh is one of the biggest podcasters in the AI space. He&#8217;s recently (and repeatedly) made the claim that reinforcement learning gives LLMs 1 bit of information per rollout. This is obviously false and I wish people stopped saying it.</p><p>Let&#8217;s consider AIME as a simple example. All of the problems on AIME are a number between 0 and 1000, so there are 1000 choices. If you assume the prior over answers is uniform (note that this is almost certainly false, but it&#8217;s not relevant), then you actually get </p><div class="latex-rendered" data-attrs="{&quot;persistentExpression&quot;:&quot;\\log_2(1000) \\approx 9.96 \\ \\textrm{bits}&quot;,&quot;id&quot;:&quot;AICGIRZFTY&quot;}" data-component-name="LatexBlockToDOM"></div><p>Now consider some complex code or legal task. The space of possible answer is larger than 0-1000, so you get way more bits of information per reward computation!</p><p>In fact, with modern training methods, you often get more information than that because:</p><ol><li><p>Methods like GRPO, and others, roll out many trajectories. By aggregating over many trajectories, you get more information!</p></li><li><p>Modern training methods have complex rubrics that require the model to satisfy many criteria to obtain the full rewards.</p></li><li><p>Modern training uses strategies like curriculum learning that chooses problems that are just beyond the boundary of the LLM&#8217;s current capabilities. </p></li></ol><p>Please stop saying that RL gives you 1 bit of information per rollout.</p><p>Enjoy a ChatGPT generated-image of this post:</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!6EEI!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc322cc8c-900b-4521-b6a9-1611dea8c0ad_1536x1024.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!6EEI!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc322cc8c-900b-4521-b6a9-1611dea8c0ad_1536x1024.png 424w, /__u/substackcdn.com/image/fetch/$s_!6EEI!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc322cc8c-900b-4521-b6a9-1611dea8c0ad_1536x1024.png 848w, /__u/substackcdn.com/image/fetch/$s_!6EEI!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc322cc8c-900b-4521-b6a9-1611dea8c0ad_1536x1024.png 1272w, /__u/substackcdn.com/image/fetch/$s_!6EEI!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc322cc8c-900b-4521-b6a9-1611dea8c0ad_1536x1024.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!6EEI!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc322cc8c-900b-4521-b6a9-1611dea8c0ad_1536x1024.png" width="1456" height="971" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/c322cc8c-900b-4521-b6a9-1611dea8c0ad_1536x1024.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:971,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:&quot;Generated image&quot;,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="Generated image" title="Generated image" srcset="/__u/substackcdn.com/image/fetch/$s_!6EEI!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc322cc8c-900b-4521-b6a9-1611dea8c0ad_1536x1024.png 424w, /__u/substackcdn.com/image/fetch/$s_!6EEI!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc322cc8c-900b-4521-b6a9-1611dea8c0ad_1536x1024.png 848w, /__u/substackcdn.com/image/fetch/$s_!6EEI!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc322cc8c-900b-4521-b6a9-1611dea8c0ad_1536x1024.png 1272w, /__u/substackcdn.com/image/fetch/$s_!6EEI!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc322cc8c-900b-4521-b6a9-1611dea8c0ad_1536x1024.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" 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><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><p>Of course, all models of LLMs are wrong and so is my analysis above. A full analysis would require understanding the distribution of potential answers to understand the full information gain. Curriculum learning is also difficult to analyze theoretically. If you have thoughts, please post in the comments with better theoretical or empirical models!</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://ddkang.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Daniel&#8217;s Substack! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[Human Data is (Probably) More Expensive Than Compute for Training Frontier LLMs]]></title><description><![CDATA[This blog post is written by Yuxuan Zhu and Daniel Kang]]></description><link>https://ddkang.substack.com/p/human-data-is-probably-more-expensive</link><guid isPermaLink="false">https://ddkang.substack.com/p/human-data-is-probably-more-expensive</guid><dc:creator><![CDATA[Daniel Kang]]></dc:creator><pubDate>Mon, 11 Aug 2025 17:23:34 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!PZvO!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe0b92a7a-a167-41c2-805d-89f7c16065fc_1414x822.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Post-training techniques (e.g., <a href="https://arxiv.org/abs/2005.14165">supervised fine-tuning</a> and <a href="https://arxiv.org/abs/2501.12948">reinforcement learning with verifiable rewards</a>) are crucial to recent advances in LLMs. Unlike pre-training, post-training relies heavily on annotated data provided by humans, often requiring expert input. <a href="https://arxiv.org/abs/2501.12948">Fine-tuning with reinforcement learning</a>, the core technique powering today&#8217;s <a href="https://openai.com/index/introducing-o3-and-o4-mini/">most</a> <a href="https://www.anthropic.com/claude/sonnet">advanced</a> <a href="https://blog.google/technology/google-deepmind/gemini-model-thinking-updates-march-2025/">reasoning</a> models, demands not only high-quality data but also <a href="https://arxiv.org/abs/2501.12948">verifiable answers</a>.</p><blockquote><p><em>&#8220;Scale AI expects to more than double sales to $2 billion in 2025. The startup generated revenue of about $870 million last year,&#8221; reported by <a href="https://www.bloomberg.com/news/articles/2025-04-02/scale-ai-expects-to-more-than-double-sales-to-2-billion-in-2025">Bloomberg</a>.</em></p></blockquote><p>The incredible demand for high-quality human-annotated data is fueling soaring revenues of data labeling companies. In tandem, the cost of human labor has been <a href="https://www.bls.gov/charts/employment-cost-index/compensation-in-private-industry-and-state-and-local-government-12-month-percent-change.htm">consistently increasing</a>. We estimate that obtaining high-quality human data for LLM post-training is more expensive than the marginal compute itself<a class="footnote-anchor" data-component-name="FootnoteAnchorToDOM" id="footnote-anchor-1" href="#footnote-1" target="_self">1</a> and will only become even more expensive. In other words, <em>high-quality human data will be the bottleneck for AI progress if these trends continue</em>.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://ddkang.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Daniel&#8217;s Substack! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><h2>Data Labeling Company Revenues Outweigh (Marginal) AI Training Costs</h2><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!PZvO!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe0b92a7a-a167-41c2-805d-89f7c16065fc_1414x822.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!PZvO!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe0b92a7a-a167-41c2-805d-89f7c16065fc_1414x822.png 424w, /__u/substackcdn.com/image/fetch/$s_!PZvO!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe0b92a7a-a167-41c2-805d-89f7c16065fc_1414x822.png 848w, /__u/substackcdn.com/image/fetch/$s_!PZvO!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe0b92a7a-a167-41c2-805d-89f7c16065fc_1414x822.png 1272w, /__u/substackcdn.com/image/fetch/$s_!PZvO!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe0b92a7a-a167-41c2-805d-89f7c16065fc_1414x822.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!PZvO!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe0b92a7a-a167-41c2-805d-89f7c16065fc_1414x822.png" width="578" height="336.008486562942" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/e0b92a7a-a167-41c2-805d-89f7c16065fc_1414x822.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:822,&quot;width&quot;:1414,&quot;resizeWidth&quot;:578,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!PZvO!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe0b92a7a-a167-41c2-805d-89f7c16065fc_1414x822.png 424w, /__u/substackcdn.com/image/fetch/$s_!PZvO!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe0b92a7a-a167-41c2-805d-89f7c16065fc_1414x822.png 848w, /__u/substackcdn.com/image/fetch/$s_!PZvO!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe0b92a7a-a167-41c2-805d-89f7c16065fc_1414x822.png 1272w, /__u/substackcdn.com/image/fetch/$s_!PZvO!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe0b92a7a-a167-41c2-805d-89f7c16065fc_1414x822.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" 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><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><em>The revenue of major data labeling companies and the marginal compute cost of training of training frontier models for major AI providers in 2024.</em></figcaption></figure></div><p>To assess the proportion of data labeling costs within the overall AI training budget, we collected and estimated both data labeling and compute expenses for leading AI providers in 2024:</p><ol><li><p>Data labeling costs: We collected revenue estimates of major data labeling companies, such as <a href="https://scale.com/">Scale AI</a>, <a href="https://www.surgehq.ai/">Surge AI</a>, <a href="https://mercor.com/">Mercor</a>, and <a href="https://labelbox.com/">LabelBox</a>.</p></li><li><p>Compute costs: We gathered publicly reported <em>marginal</em> costs of compute<a class="footnote-anchor" data-component-name="FootnoteAnchorToDOM" id="footnote-anchor-2" href="#footnote-2" target="_self">2</a> associated with training top models released in 2024, including Sonnet 3.5, GPT-4o, DeepSeek-V3, Mistral Large, Llama 3.1-405B, and Grok 2.</p></li></ol><p>We then calculate the sum of costs in a category as the estimate of the market total. As shown above, the total cost of data labeling is approximately 3.1 times higher than total marginal compute costs. This finding highlights clear evidence: the cost of acquiring high-quality human-annotated data is rapidly outpacing the compute costs required for training state-of-the-art AI models.</p><h2>Data Labeling Companies are Dramatically Increasing Revenue</h2><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!MumX!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8248cd2f-31c1-4bd4-b56c-08e531b2ff30_1361x822.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!MumX!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8248cd2f-31c1-4bd4-b56c-08e531b2ff30_1361x822.png 424w, /__u/substackcdn.com/image/fetch/$s_!MumX!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8248cd2f-31c1-4bd4-b56c-08e531b2ff30_1361x822.png 848w, /__u/substackcdn.com/image/fetch/$s_!MumX!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8248cd2f-31c1-4bd4-b56c-08e531b2ff30_1361x822.png 1272w, /__u/substackcdn.com/image/fetch/$s_!MumX!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8248cd2f-31c1-4bd4-b56c-08e531b2ff30_1361x822.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!MumX!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8248cd2f-31c1-4bd4-b56c-08e531b2ff30_1361x822.png" width="560" height="338.2218956649522" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/8248cd2f-31c1-4bd4-b56c-08e531b2ff30_1361x822.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:822,&quot;width&quot;:1361,&quot;resizeWidth&quot;:560,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!MumX!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8248cd2f-31c1-4bd4-b56c-08e531b2ff30_1361x822.png 424w, /__u/substackcdn.com/image/fetch/$s_!MumX!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8248cd2f-31c1-4bd4-b56c-08e531b2ff30_1361x822.png 848w, /__u/substackcdn.com/image/fetch/$s_!MumX!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8248cd2f-31c1-4bd4-b56c-08e531b2ff30_1361x822.png 1272w, /__u/substackcdn.com/image/fetch/$s_!MumX!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F8248cd2f-31c1-4bd4-b56c-08e531b2ff30_1361x822.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 aria-hidden="true" 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><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">The growth factor of major data labeling companies&#8217; revenue and major AI providers&#8217; marginal training compute cost for frontier LLMs from 2023 to 2024.</figcaption></figure></div><p>Next, we examined the growth trajectory of data labeling costs from 2023 to 2024. To do this, we collected estimates of the total data labeling and <em>marginal</em> compute costs for training released frontier LLMs for both years and compared the results. As shown in Figure 2, data labeling costs surged with a remarkable growth factor of 88, while compute costs increased by only 1.3 times. Given the rising importance of high-quality human data for reinforcement fine-tuning and <a href="https://hai.stanford.edu/ai-index/2025-ai-index-report">cheaper AI accelerators</a>, we expect data labeling costs to continue growing rapidly, while the rate of increase in compute costs may slow in the coming years.</p><p>It&#8217;s important to note that the growth factor is largely driven by <a href="https://mercor.com/">Mercor</a>, which is reportedly the fastest company ever to grow from $1M to $100M ARR. We don&#8217;t think these growth rates will continue into the future but think it points towards rapid growth of human data.</p><h2>Lessons Learned from MiniMax-M1 and SkyRL-SQL</h2><p>We conclude our analysis with two case studies, <a href="https://arxiv.org/abs/2506.13585">MiniMax-M1</a> and <a href="https://novasky-ai.notion.site/skyrl-sql">SkyRL-SQL</a>. These models fully describe their training costs and data amounts, so we can analyze both the training costs and data costs.</p><p><strong>Efficient RL Scaling in MiniMax-M1. </strong>With a training compute cost of just<em> $500K</em>, MiniMax-M1 matches or even outperforms Claude Opus 4 on benchmarks. While explicit data labeling costs are not detailed, MiniMax&#8217;s report emphasizes the importance of a &#8220;carefully designed curriculum&#8221; built from &#8220;carefully selected, high-quality&#8221; data with about 140K samples for RL training.</p><p>If we estimate that a data point would cost $100 (if it were labeled by a human, as opposed to being distilled from another model), the data costs would be <em>$14M</em> in data labeling, <em>28 times higher</em> than the marginal compute cost for training.</p><p><strong>SkyRL-SQL</strong> trained a model for text-to-SQL tasks that matches GPT-4o and o4-mini. To achieve this result, SkyRL-SQL uses a novel multi-turn RL algorithm, which teaches the model to iteratively correct its own errors and solve problems step by step. SkyRL-SQL only costs $360 in compute for training. By contrast, we estimate that producing the 600 high-quality annotations cost about $60,000, which is approximately 167x the training compute expense.</p><p>Even if our data cost estimates are an order of magnitude off, they would still be ~3x and ~17x more expensive than the compute!</p><h2>Conclusions and Recommendations</h2><p>While scaling pretraining data quantity and compute has driven remarkable breakthroughs in the past few years, this strategy has seemingly plateaued with the limits of static data. The rise of RL, which depends on high-quality human-annotated data, has shifted the focus from simply scaling data volume to prioritizing data quality. However, this approach introduces its own challenges, notably the rapidly increasing costs of large-scale data annotation.</p><p>Our estimates suggest that high-quality human data is the primary marginal cost of training frontier LLMs. Combined with the performance improvements coming from reinforcement learning, we believe these trends have major implications for understanding AI progress and potentially for policy. </p><p>Our blog post will not answer all questions on the impact of high-quality human data on AI progress. As a first step, we <strong>recommend that organizations that track inputs to AI should also track the cost of human data used to train frontier models</strong>.</p><p>Stay tuned for more analysis and recommendations in the future!</p><div class="footnote" data-component-name="FootnoteToDOM"><a id="footnote-1" href="#footnote-anchor-1" class="footnote-number" contenteditable="false" target="_self">1</a><div class="footnote-content"><p>In marginal costs for the final training runs.</p></div></div><div class="footnote" data-component-name="FootnoteToDOM"><a id="footnote-2" href="#footnote-anchor-2" class="footnote-number" contenteditable="false" target="_self">2</a><div class="footnote-content"><p>We only consider the marginal costs of compute, which does not include capital expenditures such as building the compute infrastructure or the R&amp;D that goes before training.</p><p></p></div></div>]]></content:encoded></item><item><title><![CDATA[ZKTorch: Open-Sourcing the First Universal ZKML Compiler for Real-World AI]]></title><description><![CDATA[AI has significantly reshaped many aspects of our daily lives.]]></description><link>https://ddkang.substack.com/p/zktorch-open-sourcing-the-first-universal</link><guid isPermaLink="false">https://ddkang.substack.com/p/zktorch-open-sourcing-the-first-universal</guid><dc:creator><![CDATA[Daniel Kang]]></dc:creator><pubDate>Tue, 29 Jul 2025 16:34:07 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!jNI_!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1d101948-5f77-4f6d-9855-2b0a1fc28c2d_1154x385.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>AI has significantly reshaped many aspects of our daily lives. Models like GPT-4o are already being tested to help <a href="https://www.jmir.org/2024/1/e53297">categorize patients</a> in emergency rooms and to <a href="https://www.rsna.org/news/2024/april/gpt4-matches-radiologists">write radiology reports</a> with near-human accuracy. High-stakes domains such as finance and healthcare increasingly rely on AI to <a href="https://www.liquidity.com/resource-funding/how-ai-can-automate-loan-application-approvals-and-lending">approve loans</a> and <a href="https://www.nature.com/articles/d41586-025-01153-5">detect cancer</a>. Yet nearly all of these systems sit behind closed APIs, so neither users nor regulators can verify that an AI model truly delivers its advertised accuracy, safety, or fairness. In principle, providers could publish their weights and inputs so that users could rerun the computation, but that would expose trade secrets and shift an enormous computational burden onto users.</p><p><em><a href="https://medium.com/@danieldkang/trustless-verification-of-machine-learning-6f648fd8ba88">Zero-knowledge machine learning</a></em> (ZKML) offers a cleaner solution: it enables a model owner to generate a lightweight cryptographic proof for each API output verifying that the inference ran exactly as claimed, without exposing proprietary weights or sensitive data. Moreover, most ZKML proofs are designed to be lightweight so that anyone can verify the proof using standard consumer hardware, such as a laptop. <a href="https://medium.com/@danieldkang/open-sourcing-zkml-trustless-machine-learning-for-all-f5ee1dbf2499">This</a> enables <a href="https://medium.com/@danieldkang/introducing-zkaudit-trustless-audits-of-ml-with-zkml-f23025e203c1">verifiable audits</a> of AI decisions in critical settings:</p><ul><li><p>A hospital can prove that a cancer diagnosis was computed using a certified AI model.</p></li><li><p>A lender can demonstrate compliance with fairness rules without exposing applicant data.</p></li><li><p>A regulator can verify that a public chatbot output follows safety policies.</p></li></ul><p>All without revealing the confidential data or model! However, today&#8217;s ZKML toolchains still struggle to cover the diverse, large-scale models driving real-world applications. We aim to close that gap.</p><p>We're thrilled to open-source <a href="https://github.com/uiuc-kang-lab/zk-torch">ZKTorch</a>: a ZKML framework that efficiently compiles machine learning (ML) models into zero-knowledge proofs (ZKPs). ZKTorch is the first ZKML framework to support <em>every</em> edge model in the <a href="https://github.com/mlcommons/inference">MLPerf Inference mobile suite</a>, the ML industry&#8217;s flagship performance benchmark. ZKTorch can prove AI models widely used in real-world applications such as large language models (LLMs), convolutional neural networks (CNNs), recurrent neural networks (RNNs), and diffusion models. Below are the key performance highlights of ZKTorch:</p><ul><li><p><strong>Faster proof generation.</strong> Up to 3&#215; shorter prover times (e.g., improving GPT-2 inference from <a href="https://dl.acm.org/doi/10.1145/3627703.3650088">&gt;1 hour</a> to ~20 mins).</p></li><li><p><strong>Smaller proofs.</strong> Proof sizes are at least 3&#215; smaller than those produced by specialized protocols (e.g., <a href="https://eprint.iacr.org/2021/673">zkCNN</a>).</p></li><li><p><strong>Almost unchanged accuracy.</strong> Output accuracy differs from the <a href="https://github.com/mlcommons/inference">MLPerf</a> baseline by less than 1% after ZKTorch&#8217;s quantization, satisfying the benchmark's default 99% accuracy requirement.</p></li></ul><p>In the rest of this post, describe how ZKTorch achieves these performance improvements. We'll conclude with a brief walkthrough to help you start generating your own ZKML proofs (check out our <a href="https://github.com/uiuc-kang-lab/zk-torch">open-source repository</a>).</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://ddkang.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Daniel&#8217;s Substack! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><h2><strong>ZKTorch: a critical step toward practical ZKML</strong></h2><p>Although ZKML holds great promise, existing methods sit at two impractical extremes: 1) slow, general-purpose proof systems or 2) inflexible specialized protocols limited to particular models. Consider <a href="https://medium.com/@CountableMagic/chapter-14-the-worlds-1st-on-chain-llm-7e389189f85e">Modulus</a>: generating a proof for a 1.5-billion-parameter LLM (GPT-2-XL) takes over 90 hours, even on 128 threads. By contrast, ZKTorch proves a 6-billion-parameter LLM (GPT-J) in roughly 20 minutes on 64 threads.<a class="footnote-anchor" data-component-name="FootnoteAnchorToDOM" id="footnote-anchor-1" href="#footnote-1" target="_self">1</a> Meanwhile, Halo2-based ZKML provers (e.g., <a href="https://github.com/uiuc-kang-lab/zkml">ZKML</a> and <a href="https://github.com/zkonduit/ezkl">EZKL</a>) struggle to handle models larger than about 30 million parameters.</p><p>Other systems are highly specialized towards specific classes of models (e.g.,<a href="/__u/www.google.com/search?q=zkcnn+github&amp;sourceid=chrome&amp;ie=UTF-8"> zkCNN</a> for convolutions,<a href="https://github.com/jvhs0706/zkllm-ccs2024"> zkLLM</a> for attention) to improve performance. However, real deployments rarely use a single CNN or LLM in isolation; they chain <a href="https://ai.meta.com/research/publications/seamlessm4t-massively-multilingual-multimodal-machine-translation/">speech-to-text modules</a>, <a href="https://www.amazon.science/publications/multimodal-attention-merging-for-improved-speech-recognition-and-audio-event-classification">multimodal blocks</a>, and <a href="https://www.amazon.science/blog/rescorebert-using-bert-models-to-improve-asr-rescoring">transformer re-rankers</a>.</p><p>ZKTorch bridges this gap with fast, scalable proofs across diverse models.</p><h2><strong>Technical overview</strong></h2><p>To understand how ZKTorch achieves this, we&#8217;ve provided a technical overview here. For more details about ZKTorch, check out <a href="https://arxiv.org/abs/2507.07031">our paper</a>. Feel free to skip to the next section without missing anything!</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!jNI_!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1d101948-5f77-4f6d-9855-2b0a1fc28c2d_1154x385.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!jNI_!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1d101948-5f77-4f6d-9855-2b0a1fc28c2d_1154x385.png 424w, /__u/substackcdn.com/image/fetch/$s_!jNI_!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1d101948-5f77-4f6d-9855-2b0a1fc28c2d_1154x385.png 848w, /__u/substackcdn.com/image/fetch/$s_!jNI_!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1d101948-5f77-4f6d-9855-2b0a1fc28c2d_1154x385.png 1272w, /__u/substackcdn.com/image/fetch/$s_!jNI_!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1d101948-5f77-4f6d-9855-2b0a1fc28c2d_1154x385.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!jNI_!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1d101948-5f77-4f6d-9855-2b0a1fc28c2d_1154x385.png" width="1154" height="385" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/1d101948-5f77-4f6d-9855-2b0a1fc28c2d_1154x385.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:385,&quot;width&quot;:1154,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!jNI_!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1d101948-5f77-4f6d-9855-2b0a1fc28c2d_1154x385.png 424w, /__u/substackcdn.com/image/fetch/$s_!jNI_!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1d101948-5f77-4f6d-9855-2b0a1fc28c2d_1154x385.png 848w, /__u/substackcdn.com/image/fetch/$s_!jNI_!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1d101948-5f77-4f6d-9855-2b0a1fc28c2d_1154x385.png 1272w, /__u/substackcdn.com/image/fetch/$s_!jNI_!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F1d101948-5f77-4f6d-9855-2b0a1fc28c2d_1154x385.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 aria-hidden="true" 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><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">ZKTorch architecture diagram</figcaption></figure></div><p>ZKTorch consists of three main components: a compiler, a transpiler, and a library of basic blocks. The compiler rewrites a machine learning model (e.g., an <a href="https://onnx.ai/">ONNX</a> graph) into a proving-friendly directed acyclic graph, where each node represents an ML operation. For example, the GPT-J model provided by <a href="https://github.com/mlcommons/inference">MLPerf Inference</a> uses eight ONNX nodes to represent a single GeLU activation, requiring more than five lookup arguments to prove (each lookup allows us to prove that the elements of a committed vector come from a much bigger committed table). Our compiler consolidates these nodes into a single GeLU node, reducing the proof overhead to just one <a href="https://blog.lambdaclass.com/lookups/">lookup</a>.</p><p>The transpiler then replaces each node with an optimized composition of basic blocks, which are zero-knowledge protocols tailored to each operation. For instance, matrix multiplication can be transpiled into a recent optimized protocol <a href="https://eprint.iacr.org/2023/393">CQLin</a>, which can prove the result of matrix multiplication in O(n) time when one matrix is fixed. Non-linearities such as GeLU are handled with an optimized lookup argument <a href="https://eprint.iacr.org/2022/1763">CQ</a>, whose proving time is independent of the lookup table size. (For more details on these protocols, please check out <a href="https://medium.com/@danieldkang/tensorplonk-a-gpu-for-zkml-delivering-1-000x-speedups-d1ab0ad27e1c">our previous post</a>). With basic block support for all 61 MLPerf v4.1 layers, ZKTorch can decompose models ranging from CNNs (e.g., ResNet-50) to LLMs (e.g., GPT-J and GPT-2) into thousands of small proofs.</p><p>Although each individual proof is small, collectively they can result in a large overall proof size. To address this, ZKTorch employs an accumulation scheme that folds multiple proofs from the same basic block into a single compact proof. Our accumulation scheme extends <a href="https://eprint.iacr.org/2024/2025">Mira</a> by making it parallelizable. This parallel extension significantly accelerates the folding process, reducing the proving time for GPT-J from 8,662 seconds to just 1,397 seconds. By folding all proofs of the same basic block type into a single accumulator instance, the prover produces one lightweight proof whose size and verification time remain nearly constant, regardless of the model&#8217;s depth. In practice, this brings down GPT-2 proving time from over an hour (<a href="https://dl.acm.org/doi/10.1145/3627703.3650088">ZKML</a>) to just 10 minutes, and reduces a ResNet-50 proof from 1.27 GB (<a href="https://eprint.iacr.org/2021/730">Mystique</a>) to 85 KB.</p><h2><strong>&#128640; Quick Start: Try ZKTorch in Minutes</strong></h2><p>Getting started with<a href="https://github.com/uiuc-kang-lab/zk-torch"> ZKTorch</a> is straightforward. Follow two simple steps:</p><p>Step 1. Install Rust (skip if already installed)</p><pre><code>curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh</code></pre><p>Step 2. Clone and run ZKTorch</p><pre><code>git clone https://github.com/uiuc-kang-lab/zk-torch.git
cd zk-torch
rustup override set nightly
cargo run --release --bin zk_torch --features fold -- config.yaml</code></pre><p>After cloning the repository, we&#8217;ve provided a sample configuration `config.yaml`, which defines file paths (e.g., ONNX model, input data, and proof) and scale parameters. For example, the `scale_factor_log` entry determines how floating-point numbers are converted into fixed-point integers for proof generation; for instance, setting `scale_factor_log = 10` means a value `x` will be encoded as `round(x &#215; 210)`. Easily experiment with your own ML models by replacing the included ONNX file and the corresponding input file defined in `config.yaml`.</p><p>If you plan on changing the example configuration file, the powers of tau file needs to be compatible with the configuration settings.</p><h2><strong>Check out ZKTorch today!</strong></h2><p>ZKTorch represents a significant step toward making practical and usable ZKML. We're excited for developers, researchers, and industry professionals to explore, experiment, and expand upon ZKTorch. If you&#8217;re interested in contributing to ZKTorch, please reach out via our <a href="https://t.me/+_iFeU8FQ4p0zOWZh">Telegram group</a> or by email!</p><p>Check out our <a href="https://arxiv.org/abs/2507.07031">paper</a> and code on <a href="https://github.com/uiuc-kang-lab/zk-torch">GitHub</a>. We also look forward to learning from your ideas for how to build with ZKTorch. If you&#8217;d love to share your ideas with us, welcome to join our <a href="https://t.me/+_iFeU8FQ4p0zOWZh">Telegram group</a>.</p><p><em>Written by ZKTorch authors</em></p><div class="footnote" data-component-name="FootnoteToDOM"><a id="footnote-1" href="#footnote-anchor-1" class="footnote-number" contenteditable="false" target="_self">1</a><div class="footnote-content"><p>This proving number, as with the Modulus proving number, is on a single output token.</p></div></div>]]></content:encoded></item><item><title><![CDATA[REPRO-Bench: Can AI agents Automate Research Reproducibility Assessments?]]></title><description><![CDATA[In recent years, the social science community has devoted substantial effort to evaluating whether published research can be reliably reproduced.]]></description><link>https://ddkang.substack.com/p/repro-bench-can-ai-agents-automate</link><guid isPermaLink="false">https://ddkang.substack.com/p/repro-bench-can-ai-agents-automate</guid><dc:creator><![CDATA[Daniel Kang]]></dc:creator><pubDate>Mon, 28 Jul 2025 16:45:05 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!Svgf!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6939c0c0-17b0-4378-b242-b885353f20c5_1600x885.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>In recent years, the social science community has devoted substantial effort to evaluating whether published research can be reliably reproduced. While reproducibility should be a minimal standard for research credibility, existing efforts have exposed significant shortcomings: <a href="https://ideas.repec.org/p/zbw/i4rdps/107.html">in a recent large-scale reproduction of economic and political science papers</a>, 25% of the reproduced papers contained coding errors, even when excluding minor issues like missing packages or misconfigured file paths.</p><p>From the landmark <em><a href="https://osf.io/ezcuj/">Reproducibility Project: Psychology</a></em> to <a href="https://ideas.repec.org/p/zbw/i4rdps/107.html">recent mass-scale efforts in economics and political science</a>, these assessments have proven essential but exceedingly slow: <a href="https://ideas.repec.org/p/zbw/i4rdps/107.html">347 social scientists were involved in reproducing 110 papers in the mass reproduction of economics and political science papers</a>, and <a href="https://osf.io/ezcuj/">it took more than five years for the Reproducibility Project: Psychology to complete the reproduction of 100 studies</a>. These findings highlight an urgent need to automate the assessment of research reproducibility.</p><p>Large language models (LLMs) and autonomous AI agents have shown remarkable promise in tackling complex tasks in domains like <a href="https://github.com/openai/human-eval">programming</a> and <a href="https://huggingface.co/datasets/openai/gsm8k">mathematics</a>. But can they help us automate the process of evaluating whether a social science paper is actually reproducible?</p><p>We introduce <a href="https://arxiv.org/abs/2507.18901">REPRO-Bench</a>, the first benchmark designed to test exactly that. Each of its 112 tasks corresponds to a real social science paper, complete with its full PDF, associated code and data, and a list of major findings. Based on the internal consistency between a paper&#8217;s reported findings and its reproduction package, including code and data, AI agents are tasked with assigning a reproducibility score from 1 (not reproducible) to 4 (fully reproducible). This process requires agents to actively engage their critical reasoning skills to assess methodological soundness, identify discrepancies, and determine the degree to which findings are supported by the provided code and data.</p><p>Check out <a href="https://arxiv.org/abs/2507.18901">our paper</a>, <a href="https://github.com/uiuc-kang-lab/REPRO-Bench">code</a>, and <a href="https://huggingface.co/datasets/chuxuan/REPRO-Bench">data</a>, and read on for details on how we constructed our benchmark and our evaluation results! </p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://ddkang.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Daniel&#8217;s Substack! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><h3>Introducing REPRO-Bench</h3><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!Svgf!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6939c0c0-17b0-4378-b242-b885353f20c5_1600x885.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!Svgf!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6939c0c0-17b0-4378-b242-b885353f20c5_1600x885.png 424w, /__u/substackcdn.com/image/fetch/$s_!Svgf!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6939c0c0-17b0-4378-b242-b885353f20c5_1600x885.png 848w, /__u/substackcdn.com/image/fetch/$s_!Svgf!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6939c0c0-17b0-4378-b242-b885353f20c5_1600x885.png 1272w, /__u/substackcdn.com/image/fetch/$s_!Svgf!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6939c0c0-17b0-4378-b242-b885353f20c5_1600x885.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!Svgf!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6939c0c0-17b0-4378-b242-b885353f20c5_1600x885.png" width="1456" height="805" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/6939c0c0-17b0-4378-b242-b885353f20c5_1600x885.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:805,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!Svgf!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6939c0c0-17b0-4378-b242-b885353f20c5_1600x885.png 424w, /__u/substackcdn.com/image/fetch/$s_!Svgf!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6939c0c0-17b0-4378-b242-b885353f20c5_1600x885.png 848w, /__u/substackcdn.com/image/fetch/$s_!Svgf!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6939c0c0-17b0-4378-b242-b885353f20c5_1600x885.png 1272w, /__u/substackcdn.com/image/fetch/$s_!Svgf!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F6939c0c0-17b0-4378-b242-b885353f20c5_1600x885.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" 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><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">Overview of the task structure in REPRO-Bench</figcaption></figure></div><p>REPRO-Bench is a new benchmark designed to evaluate whether AI agents can accurately assess the computational reproducibility of social science papers. Each task mimics the full reproduction process: the agent is given a research paper (PDF), its reproduction package (including data, code, and documentation), and a list of major findings. Unlike prior efforts that reproduce results under the assumption that all research findings are fully reproducible, REPRO-Bench requires AI agents to output a standardized JSON file containing a reproducibility score from 1 to 4, reflecting a critical evaluation of the alignment between reported findings and the accompanying code and data.</p><p>Each of the 112 task instances comes from real reproducibility efforts, sourced from:</p><ul><li><p><a href="https://ideas.repec.org/p/zbw/i4rdps/107.html">Mass Reproduction of Economics and Political Science Papers</a></p></li><li><p><a href="https://i4replication.org/discussion_paper.html">Institute for Replication (I4R) Discussion Paper Series</a></p></li><li><p><a href="https://retractionwatch.com/">Retraction Watch Database</a></p></li><li><p>Twitter/X posts reporting reproducibility attempts</p></li></ul><p>REPRO-Bench is designed around three core challenges:</p><ul><li><p><strong>Real-world grounding</strong>: Tasks mirror actual social science reproducibility workflows. A legal expert noted that REPRO-Bench captures common reproducibility patterns and offers potential for building real tools to assist researchers.</p></li><li><p><strong>High complexity</strong>: On average, tasks involve 29-page papers and 4.2GB reproduction packages with 142 files spanning multiple formats and programming languages: e.g., R, Python, Stata, CSV.</p></li><li><p><strong>Critical reasoning</strong>: Beyond technical reproduction, agents must reason through discrepancies between original findings and reproduced outputs, using logical, mathematical, and causal reasoning, alongside domain knowledge.</p></li></ul><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!0SlL!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe0e8dfb2-4146-449e-b61b-3f8702c77767_1142x1026.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!0SlL!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe0e8dfb2-4146-449e-b61b-3f8702c77767_1142x1026.png 424w, /__u/substackcdn.com/image/fetch/$s_!0SlL!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe0e8dfb2-4146-449e-b61b-3f8702c77767_1142x1026.png 848w, /__u/substackcdn.com/image/fetch/$s_!0SlL!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe0e8dfb2-4146-449e-b61b-3f8702c77767_1142x1026.png 1272w, /__u/substackcdn.com/image/fetch/$s_!0SlL!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe0e8dfb2-4146-449e-b61b-3f8702c77767_1142x1026.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!0SlL!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe0e8dfb2-4146-449e-b61b-3f8702c77767_1142x1026.png" width="391" height="351.28371278458843" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/e0e8dfb2-4146-449e-b61b-3f8702c77767_1142x1026.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:1026,&quot;width&quot;:1142,&quot;resizeWidth&quot;:391,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!0SlL!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe0e8dfb2-4146-449e-b61b-3f8702c77767_1142x1026.png 424w, /__u/substackcdn.com/image/fetch/$s_!0SlL!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe0e8dfb2-4146-449e-b61b-3f8702c77767_1142x1026.png 848w, /__u/substackcdn.com/image/fetch/$s_!0SlL!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe0e8dfb2-4146-449e-b61b-3f8702c77767_1142x1026.png 1272w, /__u/substackcdn.com/image/fetch/$s_!0SlL!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe0e8dfb2-4146-449e-b61b-3f8702c77767_1142x1026.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 aria-hidden="true" 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><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">Statistics of REPRO-Bench.</figcaption></figure></div><h3>Existing AI agents show deficiencies on REPRO-Bench</h3><p>For evaluation, we selected 3 agents: <a href="https://github.com/Significant-Gravitas/AutoGPT">AutoGPT</a>, <a href="https://github.com/siegelz/core-bench">CORE-Agent</a>, and <a href="https://github.com/SWE-agent/SWE-agent">SWE-Agent</a> using gpt-4o. For performance evaluation, we take accuracy, which measures the match between the generated reproducibility score and the ground truth, as our primary metric. We also examine the applicability rates, i.e., whether the agent generates a valid reproducibility score. We report both the original and the adjusted accuracy and applicability rates to include scenarios where agents generate output files outside of the directory specified in the task requirements. For cost analysis, we report the average API cost for all requests made by each agent for each task.</p><p>CORE-Agent achieves the highest accuracy at 21.4% among the three agents, which is even lower than random guessing among four options without prior knowledge of the underlying data distributions or the results of other task instances. The applicability rates are also very low. All three agents exhibit low applicability rates, often failing to complete the full task.</p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!h8pS!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbd060e93-c578-47e2-ba8d-092e7a092744_1224x336.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!h8pS!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbd060e93-c578-47e2-ba8d-092e7a092744_1224x336.png 424w, /__u/substackcdn.com/image/fetch/$s_!h8pS!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbd060e93-c578-47e2-ba8d-092e7a092744_1224x336.png 848w, /__u/substackcdn.com/image/fetch/$s_!h8pS!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbd060e93-c578-47e2-ba8d-092e7a092744_1224x336.png 1272w, /__u/substackcdn.com/image/fetch/$s_!h8pS!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbd060e93-c578-47e2-ba8d-092e7a092744_1224x336.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!h8pS!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbd060e93-c578-47e2-ba8d-092e7a092744_1224x336.png" width="512" height="140.54901960784315" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/bd060e93-c578-47e2-ba8d-092e7a092744_1224x336.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:336,&quot;width&quot;:1224,&quot;resizeWidth&quot;:512,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!h8pS!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbd060e93-c578-47e2-ba8d-092e7a092744_1224x336.png 424w, /__u/substackcdn.com/image/fetch/$s_!h8pS!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbd060e93-c578-47e2-ba8d-092e7a092744_1224x336.png 848w, /__u/substackcdn.com/image/fetch/$s_!h8pS!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbd060e93-c578-47e2-ba8d-092e7a092744_1224x336.png 1272w, /__u/substackcdn.com/image/fetch/$s_!h8pS!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fbd060e93-c578-47e2-ba8d-092e7a092744_1224x336.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a><figcaption class="image-caption">Performance and costs of different agents on REPRO-Bench.</figcaption></figure></div><p>Agents are noticeably better at identifying papers that are clearly reproducible (score 4) or clearly irreproducible (score 1), but struggle with borderline cases (scores 2 and 3), indicating a tendency toward binary judgments.</p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!Fo5p!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb9472078-d2bf-4418-b2fb-2ff6287853bc_1600x225.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!Fo5p!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb9472078-d2bf-4418-b2fb-2ff6287853bc_1600x225.png 424w, /__u/substackcdn.com/image/fetch/$s_!Fo5p!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb9472078-d2bf-4418-b2fb-2ff6287853bc_1600x225.png 848w, /__u/substackcdn.com/image/fetch/$s_!Fo5p!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb9472078-d2bf-4418-b2fb-2ff6287853bc_1600x225.png 1272w, /__u/substackcdn.com/image/fetch/$s_!Fo5p!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb9472078-d2bf-4418-b2fb-2ff6287853bc_1600x225.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!Fo5p!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb9472078-d2bf-4418-b2fb-2ff6287853bc_1600x225.png" width="1456" height="205" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/b9472078-d2bf-4418-b2fb-2ff6287853bc_1600x225.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:205,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!Fo5p!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb9472078-d2bf-4418-b2fb-2ff6287853bc_1600x225.png 424w, /__u/substackcdn.com/image/fetch/$s_!Fo5p!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb9472078-d2bf-4418-b2fb-2ff6287853bc_1600x225.png 848w, /__u/substackcdn.com/image/fetch/$s_!Fo5p!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb9472078-d2bf-4418-b2fb-2ff6287853bc_1600x225.png 1272w, /__u/substackcdn.com/image/fetch/$s_!Fo5p!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb9472078-d2bf-4418-b2fb-2ff6287853bc_1600x225.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a><figcaption class="image-caption">Agent outputs across different reproducibility scores. Diagonal values (bold) represent accuracy. No Score on the prediction axis refers to cases where AI agents did not generate valid outputs.</figcaption></figure></div><p>We inspected the traces of (1) successful cases, from which we outline a general workflow, and (2) failure cases, where we find that agents often overlook critical steps such as code inspection and result comparison, both of which are essential for identifying inconsistencies. During code inspection, agents tend to read the entire code file rather than focusing on the relevant sections in the paper. We also observed that the majority of errors stem from path issues: specifically, the data is present but not located in the directory specified by the README file. As a result, the agent incorrectly concludes that the data is missing, without searching the entire reproduction package.</p><p>To address these issues, we extend CORE-Agent by adding four targeted instructions based on failure analysis. The resulting agent, REPRO-Agent, significantly outperforms baselines with an accuracy of 36.6%, a 71% relative improvement over CORE-Agent.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!nPjT!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc5e7015e-5260-4fc3-836e-c07a9887a088_734x496.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!nPjT!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc5e7015e-5260-4fc3-836e-c07a9887a088_734x496.png 424w, /__u/substackcdn.com/image/fetch/$s_!nPjT!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc5e7015e-5260-4fc3-836e-c07a9887a088_734x496.png 848w, /__u/substackcdn.com/image/fetch/$s_!nPjT!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc5e7015e-5260-4fc3-836e-c07a9887a088_734x496.png 1272w, /__u/substackcdn.com/image/fetch/$s_!nPjT!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc5e7015e-5260-4fc3-836e-c07a9887a088_734x496.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!nPjT!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc5e7015e-5260-4fc3-836e-c07a9887a088_734x496.png" width="522" height="352.74114441416896" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/c5e7015e-5260-4fc3-836e-c07a9887a088_734x496.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:496,&quot;width&quot;:734,&quot;resizeWidth&quot;:522,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!nPjT!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc5e7015e-5260-4fc3-836e-c07a9887a088_734x496.png 424w, /__u/substackcdn.com/image/fetch/$s_!nPjT!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc5e7015e-5260-4fc3-836e-c07a9887a088_734x496.png 848w, /__u/substackcdn.com/image/fetch/$s_!nPjT!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc5e7015e-5260-4fc3-836e-c07a9887a088_734x496.png 1272w, /__u/substackcdn.com/image/fetch/$s_!nPjT!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc5e7015e-5260-4fc3-836e-c07a9887a088_734x496.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 aria-hidden="true" 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><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">Additional instructions for REPRO-Agent derived from our empirical analysis.</figcaption></figure></div><h3>Quickstart: Reproduce Our Results with REPRO-Bench</h3><p>Follow these three simple steps to reproduce the results from <a href="https://arxiv.org/abs/2507.18901">our paper</a> using REPRO-Bench and the associated agents.</p><p>Step 1: Download the REPRO-Bench Dataset</p><pre><code>git clone https://huggingface.co/datasets/chuxuan/REPRO-Bench
cd REPRO-Bench
git lfs pull</code></pre><p>Step 2: Clone the Codebase</p><pre><code>git clone https://github.com/uiuc-kang-lab/REPRO-Bench REPRO-Bench-Code
cd REPRO-Bench-Code</code></pre><p>Step 3: Run the Agent Experiments</p><pre><code>bash SWE-Agent/run_all.sh
bash AutoGPT/classic/original_autogpt/run_all.sh
bash CORE-Agent/classic/original_autogpt/run_all.sh</code></pre><p>With these commands, you&#8217;ll be able to reproduce our experiments and inspect how existing AI agents perform on complex, real-world reproducibility tasks.</p><h3>Conclusion: REPRO-Bench demonstrates the need for more powerful AI agents with critical reasoning capabilities</h3><p>Despite this progress, performance remains far from sufficient for practical use: over half of the papers are still misclassified. This highlights a clear reality: today&#8217;s AI agents aren&#8217;t yet ready for real-world scientific reasoning. Bridging this gap will require agents with stronger reasoning, deeper contextual understanding, and evaluation frameworks that better reflect real-world complexity. For more details, please check out <a href="https://arxiv.org/abs/2507.18901">our paper</a>, <a href="https://github.com/uiuc-kang-lab/REPRO-Bench">code</a>, and <a href="https://huggingface.co/datasets/chuxuan/REPRO-Bench">data</a>!</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://ddkang.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Daniel&#8217;s Substack! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[SWE-bench Verified is Flawed Despite Expert Review: UTBoost Exposes Gaps in Test Coverage]]></title><description><![CDATA[This is the second post in the Agentic Benchmark Checklist (ABC) blog series. Written by Yuxuan Zhu and Daniel Kang]]></description><link>https://ddkang.substack.com/p/swe-bench-verified-is-flawed-despite</link><guid isPermaLink="false">https://ddkang.substack.com/p/swe-bench-verified-is-flawed-despite</guid><dc:creator><![CDATA[Daniel Kang]]></dc:creator><pubDate>Tue, 22 Jul 2025 17:57:13 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!Jhu1!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F82897ac6-93d3-4c03-8557-271c32f0720c_1600x1005.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><em>This is the second post in the <a href="/__u/ddkang.substack.com/p/ai-agent-benchmarks-are-broken">Agentic Benchmark Checklist (ABC) blog series</a>. Written by Yuxuan Zhu and Daniel Kang</em></p><p><a href="https://www.swebench.com/">SWE-bench</a> has become the &#8220;gold standard&#8221; for evaluating the coding capability of AI agents. It asks an agent to propose patches for real-world GitHub issues and then evaluates their solutions by running manually-written unit tests. Unfortunately, even carefully crafted unit tests can miss important edge cases.</p><p><a href="https://openai.com/index/introducing-swe-bench-verified/">OpenAI strengthened</a> SWE-bench by asking <em>93 professional developers</em> to curate a subset, <em>SWE-bench Verified</em>, with revised unit tests. Given all the expert effort involved in verification, is SWE-bench Verified error-free?</p><p>Our research shows otherwise: &#8220;verified&#8221; unit tests are still insufficient in 26/500 tasks in SWE-bench Verified. In our recent <a href="https://arxiv.org/abs/2506.09289">ACL paper</a> (<a href="https://github.com/uiuc-kang-lab/UTBoost">code</a>), we introduced a novel technique to identify and fix these insufficient unit tests. The missing unit tests are critical to evaluating performance: When we re-evaluated agent performance using fixed unit tests, the leaderboard rankings changed for 24% agents!<a class="footnote-anchor" data-component-name="FootnoteAnchorToDOM" id="footnote-anchor-1" href="#footnote-1" target="_self">1</a></p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://ddkang.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Daniel&#8217;s Substack! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><h2>Why Do Expert-Verified Unit Tests Fall Short? A Motivating Example</h2><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!Jhu1!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F82897ac6-93d3-4c03-8557-271c32f0720c_1600x1005.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!Jhu1!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F82897ac6-93d3-4c03-8557-271c32f0720c_1600x1005.png 424w, /__u/substackcdn.com/image/fetch/$s_!Jhu1!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F82897ac6-93d3-4c03-8557-271c32f0720c_1600x1005.png 848w, /__u/substackcdn.com/image/fetch/$s_!Jhu1!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F82897ac6-93d3-4c03-8557-271c32f0720c_1600x1005.png 1272w, /__u/substackcdn.com/image/fetch/$s_!Jhu1!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F82897ac6-93d3-4c03-8557-271c32f0720c_1600x1005.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!Jhu1!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F82897ac6-93d3-4c03-8557-271c32f0720c_1600x1005.png" width="1456" height="915" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/82897ac6-93d3-4c03-8557-271c32f0720c_1600x1005.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:915,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!Jhu1!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F82897ac6-93d3-4c03-8557-271c32f0720c_1600x1005.png 424w, /__u/substackcdn.com/image/fetch/$s_!Jhu1!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F82897ac6-93d3-4c03-8557-271c32f0720c_1600x1005.png 848w, /__u/substackcdn.com/image/fetch/$s_!Jhu1!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F82897ac6-93d3-4c03-8557-271c32f0720c_1600x1005.png 1272w, /__u/substackcdn.com/image/fetch/$s_!Jhu1!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F82897ac6-93d3-4c03-8557-271c32f0720c_1600x1005.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" 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><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><em>A task in SWE-bench Verified (<a href="https://github.com/django/django/pull/13933">django PR-13933</a>) where the <a href="https://github.com/SWE-bench/experiments/tree/main/evaluation/verified/20240509_amazon-q-developer-agent-20240430-dev">agent&#8217;s incorrect solution</a> passes unit tests.</em></figcaption></figure></div><p>Take <a href="https://github.com/django/django/pull/13933">PR-13933</a> from the django project as an example. The agent was supposed to update the code to include the value of an invalid choice in error messages. While the Amazon Q developer correctly updated the error-raising, it also introduced bugs in cases outside error handling, as shown in Figure 1. Because the unit tests only checked the error scenario, the agent&#8217;s mistakes were undetected.</p><p>As shown, even expert-written unit tests can miss bugs. Therefore, we need a safety net: this is where our new approach, <a href="https://github.com/uiuc-kang-lab/UTBoost.git">UTBoost</a>, comes in.</p><h2>UTBoost: The First LLM-Driven Unit Test Generator for Software Projects</h2><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!hAZk!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9a52ea8b-b8f1-4aa8-9d61-4381db76194c_1600x816.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!hAZk!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9a52ea8b-b8f1-4aa8-9d61-4381db76194c_1600x816.png 424w, /__u/substackcdn.com/image/fetch/$s_!hAZk!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9a52ea8b-b8f1-4aa8-9d61-4381db76194c_1600x816.png 848w, /__u/substackcdn.com/image/fetch/$s_!hAZk!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9a52ea8b-b8f1-4aa8-9d61-4381db76194c_1600x816.png 1272w, /__u/substackcdn.com/image/fetch/$s_!hAZk!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9a52ea8b-b8f1-4aa8-9d61-4381db76194c_1600x816.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!hAZk!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9a52ea8b-b8f1-4aa8-9d61-4381db76194c_1600x816.png" width="1456" height="743" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/9a52ea8b-b8f1-4aa8-9d61-4381db76194c_1600x816.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:743,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!hAZk!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9a52ea8b-b8f1-4aa8-9d61-4381db76194c_1600x816.png 424w, /__u/substackcdn.com/image/fetch/$s_!hAZk!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9a52ea8b-b8f1-4aa8-9d61-4381db76194c_1600x816.png 848w, /__u/substackcdn.com/image/fetch/$s_!hAZk!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9a52ea8b-b8f1-4aa8-9d61-4381db76194c_1600x816.png 1272w, /__u/substackcdn.com/image/fetch/$s_!hAZk!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9a52ea8b-b8f1-4aa8-9d61-4381db76194c_1600x816.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 aria-hidden="true" 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><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><em>Workflow of UTBoost for generating a test case for a software project.</em></figcaption></figure></div><p>UTBoost uses LLM to automatically generate unit tests for full-scale software projects. However, generating tests for a real codebase is challenging, as real codebases have dozens of files, many dependencies, and diverse codebase structures. UTBoost tackles this complexity in three steps:</p><ol><li><p><em>File-level</em>: LLM reads the issue description, the existing tests, and a repository summary, then points to the three files most likely involved.</p></li><li><p><em>Function/class-level</em>: For each file, it locates the relevant function or class.</p></li><li><p><em>Line-level</em>: For each function, LLM highlights the specific lines that matter.</p></li></ol><p>With all of these contexts in place, the LLM writes pytest-style cases that include any necessary dependencies. After we manually verify the correctness of new tests, UTBoost then adds these tests to SWE-bench and reruns the evaluation.</p><h2>UTBoost Identifies Instances with Insufficient Test Cases</h2><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!hTug!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff373b61c-891a-46de-93ff-0caaabf5b485_1072x400.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!hTug!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff373b61c-891a-46de-93ff-0caaabf5b485_1072x400.png 424w, /__u/substackcdn.com/image/fetch/$s_!hTug!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff373b61c-891a-46de-93ff-0caaabf5b485_1072x400.png 848w, /__u/substackcdn.com/image/fetch/$s_!hTug!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff373b61c-891a-46de-93ff-0caaabf5b485_1072x400.png 1272w, /__u/substackcdn.com/image/fetch/$s_!hTug!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff373b61c-891a-46de-93ff-0caaabf5b485_1072x400.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!hTug!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff373b61c-891a-46de-93ff-0caaabf5b485_1072x400.png" width="1072" height="400" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/f373b61c-891a-46de-93ff-0caaabf5b485_1072x400.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:400,&quot;width&quot;:1072,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:127488,&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://ddkang.substack.com/i/168975655?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff373b61c-891a-46de-93ff-0caaabf5b485_1072x400.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!hTug!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff373b61c-891a-46de-93ff-0caaabf5b485_1072x400.png 424w, /__u/substackcdn.com/image/fetch/$s_!hTug!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff373b61c-891a-46de-93ff-0caaabf5b485_1072x400.png 848w, /__u/substackcdn.com/image/fetch/$s_!hTug!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff373b61c-891a-46de-93ff-0caaabf5b485_1072x400.png 1272w, /__u/substackcdn.com/image/fetch/$s_!hTug!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Ff373b61c-891a-46de-93ff-0caaabf5b485_1072x400.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 aria-hidden="true" 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><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><em>UTBoost identifies insufficient test cases and incorrect patches by generating more unit tests.</em></figcaption></figure></div><p>We ran UTBoost on SWE-bench Lite and SWE-bench Verified, using the settings described in our <a href="https://arxiv.org/pdf/2506.09289">paper</a>. For each incorrect patch identified by UTBoost, two of us independently reviewed it and reached a consensus.</p><p>UTBoost identified and augmented unit tests for 23/300 task instances of SWE-bench Lite and 26/500 task instances of SWE-bench Verified. Across all the agent submissions on the leaderboard, these augmented test cases identified 28.4% (SWE-bench Lite) and 15.7% (SWE-bench Verified) more incorrect patches that were previously considered correct.</p><h2>UTBoost Identifies Erroneous Annotation of Testing Results</h2><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!OgbU!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3e0ff821-46ae-4d73-bd78-ae2d590b38aa_900x658.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!OgbU!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3e0ff821-46ae-4d73-bd78-ae2d590b38aa_900x658.png 424w, /__u/substackcdn.com/image/fetch/$s_!OgbU!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3e0ff821-46ae-4d73-bd78-ae2d590b38aa_900x658.png 848w, /__u/substackcdn.com/image/fetch/$s_!OgbU!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3e0ff821-46ae-4d73-bd78-ae2d590b38aa_900x658.png 1272w, /__u/substackcdn.com/image/fetch/$s_!OgbU!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3e0ff821-46ae-4d73-bd78-ae2d590b38aa_900x658.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!OgbU!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3e0ff821-46ae-4d73-bd78-ae2d590b38aa_900x658.png" width="400" height="292.44444444444446" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/3e0ff821-46ae-4d73-bd78-ae2d590b38aa_900x658.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:658,&quot;width&quot;:900,&quot;resizeWidth&quot;:400,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!OgbU!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3e0ff821-46ae-4d73-bd78-ae2d590b38aa_900x658.png 424w, /__u/substackcdn.com/image/fetch/$s_!OgbU!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3e0ff821-46ae-4d73-bd78-ae2d590b38aa_900x658.png 848w, /__u/substackcdn.com/image/fetch/$s_!OgbU!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3e0ff821-46ae-4d73-bd78-ae2d590b38aa_900x658.png 1272w, /__u/substackcdn.com/image/fetch/$s_!OgbU!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F3e0ff821-46ae-4d73-bd78-ae2d590b38aa_900x658.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 aria-hidden="true" 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><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><em>UTBoost identifies erroneous annotations of testing results.</em></figcaption></figure></div><p>In addition to identifying insufficient unit tests in SWE-bench, UTBoost also helped us find errors in the way test results were annotated by the original parser, such as missed tests or incorrect test names. These errors led to flawed patches being mistakenly considered correct.</p><p>After improving the parser, we corrected 54.7% of annotations in SWE-bench Lite submissions and 54.2% in SWE-bench Verified submissions. These corrected annotations lead to 64 (SWE-bench Lite) and 79 (SWE-bench Verified) incorrect patches that were previously labeled correct.</p><h2>UTBoost Changes the Leaderboard Rankings of SWE-bench</h2><p>With augmented test cases and the improved parser, we then re-evaluated the agents on SWE-bench&#8217;s leaderboards. Across all agent submissions, we identified 176 incorrect patches in SWE-bench Lite and 169 in SWE-bench Verified that were incorrectly evaluated as correct. After fixing the evaluation results, we observed 40.9% and 24.4% ranking changes on the leaderboards of SWE-bench Lite and SWE-bench Verified, respectively.</p><h2>Conclusion</h2><p><a href="https://ieeexplore.ieee.org/document/6228988">Software testing</a> has been a challenging problem for decades, and that hasn&#8217;t changed just because AI is writing the code. Although UTBoost still does not guarantee error-free coding benchmarks, our results show that augmenting expert-verified tests with LLM-generated tests is a promising path forward.</p><p>Given that data noise can affect leaderboard rankings by 24%, we need to rethink whether standalone score comparisons are the best way to compare agents and whether leaderboards are the best way to present the results. We call for a more thorough study in this direction, to build a community with more focus on real progress rather than on the pressure to reach the top of the leaderboard.</p><p><a href="https://arxiv.org/abs/2506.09289">UTBoost</a> has been accepted to ACL 2025. We&#8217;ve open-sourced the code on <a href="https://github.com/uiuc-kang-lab/UTBoost.git">GitHub</a> and datasets with fixed unit tests on Hugging Face (<a href="https://huggingface.co/datasets/uiuc-kang-lab/SWE-bench-Verified-UTBoost">Verified</a>, <a href="https://huggingface.co/datasets/uiuc-kang-lab/SWE-bench-Lite-UTBoost">Lite</a>). Give it a try and let us know if you have feedback!</p><div class="footnote" data-component-name="FootnoteToDOM"><a id="footnote-1" href="#footnote-anchor-1" class="footnote-number" contenteditable="false" target="_self">1</a><div class="footnote-content"><p>We ran experiments based on the version of the SWE-bench leaderboard and the agents on the leaderboard on December 16, 2024.</p></div></div>]]></content:encoded></item><item><title><![CDATA[AI Agent Benchmarks are Broken]]></title><description><![CDATA[Benchmarks are foundational to evaluating the strengths and limitations of AI systems, guiding both research and industry development.]]></description><link>https://ddkang.substack.com/p/ai-agent-benchmarks-are-broken</link><guid isPermaLink="false">https://ddkang.substack.com/p/ai-agent-benchmarks-are-broken</guid><dc:creator><![CDATA[Daniel Kang]]></dc:creator><pubDate>Tue, 08 Jul 2025 17:31:48 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!33Iq!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F89022218-0a59-48f5-b648-b0ff39fffb70_1600x432.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><a href="https://dl.acm.org/doi/10.1145/2209249.2209271">Benchmarks</a> are foundational to evaluating the strengths and limitations of AI systems, guiding both <a href="https://direct.mit.edu/daed/article/151/2/85/110602/Searching-for-Computer-Vision-North-Stars">research</a> and <a href="https://www.anthropic.com/news/claude-4">industry</a> development. As AI agents move from research demos to <a href="https://developer.nvidia.com/blog/automating-gpu-kernel-generation-with-deepseek-r1-and-inference-time-scaling/">mission</a>-<a href="https://openai.com/index/computer-using-agent/">critical</a> <a href="https://www.anthropic.com/claude-code">applications</a>, researchers and practitioners are building benchmarks to evaluate their capabilities and limitations. These AI agent benchmarks are significantly more complex than traditional AI benchmarks in task formulation (e.g., often requiring a simulator of realistic scenarios) and evaluation (e.g., no gold label), requiring greater effort to ensure their reliability.</p><p>Unfortunately, many current AI agent benchmarks are far from reliable. Consider <a href="https://webarena.dev/">WebArena</a>, a benchmark used by <a href="https://openai.com/index/computer-using-agent/">OpenAI</a> and others to evaluate AI agents on interactions with websites. In <a href="https://ibm-cuga.19pc1vtv090u.us-east.codeengine.appdomain.cloud/html/render_82.html">a task to calculate the duration of a route</a>, an agent answered &#8220;45 + 8 minutes&#8221; and was marked correct by WebArena, although the correct answer is &#8220;63 minutes.&#8221; Moreover, among 10 popular AI agent benchmarks (e.g., SWE-bench, OSWorld, KernelBench, etc.), we found severe issues in 8 of them, causing in some cases up to 100% misestimation<a class="footnote-anchor" data-component-name="FootnoteAnchorToDOM" id="footnote-anchor-1" href="#footnote-1" target="_self">1</a> of agents&#8217; capabilities.</p><p>These numbers make one thing clear: to understand an agent&#8217;s true abilities, we must build AI agent benchmarks in a more rigorous way.</p><p>How do we build AI agent benchmarks we can trust? In our <a href="https://arxiv.org/abs/2507.02825">recent work</a>, we break down the failure modes in current AI agent benchmarks and introduce a checklist that minimizes the gamability of AI agent benchmarks and ensures they measure what they claim to measure. In future posts, we will provide recommendations for creating AI agent benchmarks we can trust and deep dives on specific benchmarks!</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://ddkang.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Daniel&#8217;s Substack! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><h2>How do Current AI Agent Benchmarks Fail?</h2><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!33Iq!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F89022218-0a59-48f5-b648-b0ff39fffb70_1600x432.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!33Iq!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F89022218-0a59-48f5-b648-b0ff39fffb70_1600x432.png 424w, /__u/substackcdn.com/image/fetch/$s_!33Iq!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F89022218-0a59-48f5-b648-b0ff39fffb70_1600x432.png 848w, /__u/substackcdn.com/image/fetch/$s_!33Iq!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F89022218-0a59-48f5-b648-b0ff39fffb70_1600x432.png 1272w, /__u/substackcdn.com/image/fetch/$s_!33Iq!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F89022218-0a59-48f5-b648-b0ff39fffb70_1600x432.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!33Iq!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F89022218-0a59-48f5-b648-b0ff39fffb70_1600x432.png" width="1456" height="393" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/89022218-0a59-48f5-b648-b0ff39fffb70_1600x432.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:393,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:false,&quot;topImage&quot;:true,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!33Iq!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F89022218-0a59-48f5-b648-b0ff39fffb70_1600x432.png 424w, /__u/substackcdn.com/image/fetch/$s_!33Iq!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F89022218-0a59-48f5-b648-b0ff39fffb70_1600x432.png 848w, /__u/substackcdn.com/image/fetch/$s_!33Iq!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F89022218-0a59-48f5-b648-b0ff39fffb70_1600x432.png 1272w, /__u/substackcdn.com/image/fetch/$s_!33Iq!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F89022218-0a59-48f5-b648-b0ff39fffb70_1600x432.png 1456w" sizes="100vw" fetchpriority="high"></picture><div class="image-link-expand"><div class="pencraft pc-display-flex pc-gap-8 pc-reset"><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container restack-image"><svg aria-hidden="true" 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><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><em>Operational and conceptual processes of AI agent evaluation. Task and outcome validity are essential to ensure that benchmark results truly reflect agents&#8217; capabilities.</em></figcaption></figure></div><p>In AI agent benchmarks, agents are asked to complete tasks end-to-end, such as <a href="https://www.swebench.com/original.html">fixing a code issue in a large repository</a> or <a href="https://webarena.dev/">creating a travel plan</a>.</p><p>This ambitious scope creates two challenges that traditional AI benchmarks rarely face:</p><ol><li><p><em>Fragile simulators</em>: Tasks often run inside simulated/containerized websites, computers, or databases. If these mini-worlds are buggy or outdated, an agent can simply find a shortcut to pass or find the task impossible.</p></li><li><p><em>No easy &#8220;gold&#8221; answer</em>: Task solutions may be code, API calls, or paragraph-long plans, which don&#8217;t fit a fixed answer key.</p></li></ol><p>Given these challenges, we propose two validity criteria that are particularly important for AI agent benchmarks:</p><ol><li><p><em>Task Validity</em>: Is a task solvable <em>if and only if</em> the agent possesses the target capability?</p></li></ol><blockquote><p>Example failure: <a href="https://sierra.ai/resources/research/tau-bench">&#964;-bench</a> scores a &#8220;do-nothing&#8221; agent as correct on 38% of airline tasks, even though the trivial agent does not understand the airline ticketing policy.</p></blockquote><ol start="2"><li><p><em>Outcome Validity</em>: Does the evaluation result (e.g., tests or checks) truly indicate task success?</p></li></ol><blockquote><p>Example failure: As shown in the example before, <a href="https://webarena.dev/">WebArena</a> partially relies on LLM-as-a-Judge that makes mistakes for problems as simple as &#8220;45+8&#8800;63.&#8221;</p></blockquote><h2>Our Research: AI Agent Benchmark Checklist</h2><p>We curated the AI agent Benchmark Checklist (ABC), a 43-item checklist based on 17 AI agent benchmarks used by leading AI providers. ABC consists of three parts: outcome-validity checks, task-validity checks, and benchmark reporting guidelines for cases where perfect validity is extremely challenging or impossible.</p><p>The full, print-friendly checklist is publicly available <a href="https://uiuc-kang-lab.github.io/agentic-benchmarks/assets/checklist.pdf">online</a>.</p><h2>An Overview of Our Findings via ABC</h2><p>We applied ABC on ten popular AI agent benchmarks, including SWE-bench Verified, WebArena, OSWorld, and more.</p><div class="captioned-image-container"><figure><a class="image-link image2" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!es-x!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9b36bada-a016-48fc-90f6-f50766a8c55c_1600x389.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!es-x!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9b36bada-a016-48fc-90f6-f50766a8c55c_1600x389.png 424w, /__u/substackcdn.com/image/fetch/$s_!es-x!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9b36bada-a016-48fc-90f6-f50766a8c55c_1600x389.png 848w, /__u/substackcdn.com/image/fetch/$s_!es-x!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9b36bada-a016-48fc-90f6-f50766a8c55c_1600x389.png 1272w, /__u/substackcdn.com/image/fetch/$s_!es-x!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9b36bada-a016-48fc-90f6-f50766a8c55c_1600x389.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!es-x!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9b36bada-a016-48fc-90f6-f50766a8c55c_1600x389.png" width="1456" height="354" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/9b36bada-a016-48fc-90f6-f50766a8c55c_1600x389.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:354,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!es-x!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9b36bada-a016-48fc-90f6-f50766a8c55c_1600x389.png 424w, /__u/substackcdn.com/image/fetch/$s_!es-x!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9b36bada-a016-48fc-90f6-f50766a8c55c_1600x389.png 848w, /__u/substackcdn.com/image/fetch/$s_!es-x!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9b36bada-a016-48fc-90f6-f50766a8c55c_1600x389.png 1272w, /__u/substackcdn.com/image/fetch/$s_!es-x!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F9b36bada-a016-48fc-90f6-f50766a8c55c_1600x389.png 1456w" sizes="100vw" loading="lazy"></picture><div></div></div></a><figcaption class="image-caption"><em>Results of applying ABC on ten widely used AI agent benchmarks.</em></figcaption></figure></div><p>Out of the 10 benchmarks, we found:</p><ol><li><p>7/10 contain shortcuts or impossible tasks.</p></li><li><p>7/10 fail outcome validity.</p></li><li><p>8/10 fail to disclose known issues.</p></li></ol><p>Here is a summary of issues we identified in benchmarks that are used to evaluate frontier AI agent systems, including Claude Code and OpenAI Operator.</p><p><strong>SWE-bench </strong>and<strong> SWE-bench Verified</strong> use manually crafted unit tests to evaluate the correctness of agent-generated code patches. Agent-generated code patches can have bugs not captured by unit tests, as shown in the following example. By <a href="https://arxiv.org/abs/2506.09289">augmenting unit tests</a>, we observed significant ranking changes in the leaderboard, affecting 41% agents for SWE-bench Lite and 24% for SWE-bench Verified.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!3K3s!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe4d2674e-4729-4b3e-8274-a3dac2426bba_1600x1023.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!3K3s!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe4d2674e-4729-4b3e-8274-a3dac2426bba_1600x1023.png 424w, /__u/substackcdn.com/image/fetch/$s_!3K3s!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe4d2674e-4729-4b3e-8274-a3dac2426bba_1600x1023.png 848w, /__u/substackcdn.com/image/fetch/$s_!3K3s!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe4d2674e-4729-4b3e-8274-a3dac2426bba_1600x1023.png 1272w, /__u/substackcdn.com/image/fetch/$s_!3K3s!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe4d2674e-4729-4b3e-8274-a3dac2426bba_1600x1023.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!3K3s!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe4d2674e-4729-4b3e-8274-a3dac2426bba_1600x1023.png" width="1456" height="931" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/e4d2674e-4729-4b3e-8274-a3dac2426bba_1600x1023.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:931,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!3K3s!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe4d2674e-4729-4b3e-8274-a3dac2426bba_1600x1023.png 424w, /__u/substackcdn.com/image/fetch/$s_!3K3s!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe4d2674e-4729-4b3e-8274-a3dac2426bba_1600x1023.png 848w, /__u/substackcdn.com/image/fetch/$s_!3K3s!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe4d2674e-4729-4b3e-8274-a3dac2426bba_1600x1023.png 1272w, /__u/substackcdn.com/image/fetch/$s_!3K3s!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe4d2674e-4729-4b3e-8274-a3dac2426bba_1600x1023.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 aria-hidden="true" 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><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><em>The IBM SWE-1.0 agent produces an incorrect solution not captured by SWE-bench, since the unit tests does not cover the red branch.</em></figcaption></figure></div><p><strong>KernelBench</strong> uses tensors with random values to evaluate the correctness of agent-generated kernel code written in CUDA. Similar to SWE-bench Verified, random-valued tensors may fail to capture bugs in the generated kernel, especially for memory- or shape-related issues.</p><p><strong>&#964;-bench </strong>uses substring matching and database state matching to evaluate agents, which allows a do-nothing agent to pass 38% of tasks. The following example demonstrates one of these tasks.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!Zd76!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4048915c-3cad-4a74-a608-f1a7a31780b7_1600x457.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!Zd76!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4048915c-3cad-4a74-a608-f1a7a31780b7_1600x457.png 424w, /__u/substackcdn.com/image/fetch/$s_!Zd76!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4048915c-3cad-4a74-a608-f1a7a31780b7_1600x457.png 848w, /__u/substackcdn.com/image/fetch/$s_!Zd76!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4048915c-3cad-4a74-a608-f1a7a31780b7_1600x457.png 1272w, /__u/substackcdn.com/image/fetch/$s_!Zd76!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4048915c-3cad-4a74-a608-f1a7a31780b7_1600x457.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!Zd76!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4048915c-3cad-4a74-a608-f1a7a31780b7_1600x457.png" width="1456" height="416" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/4048915c-3cad-4a74-a608-f1a7a31780b7_1600x457.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:416,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!Zd76!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4048915c-3cad-4a74-a608-f1a7a31780b7_1600x457.png 424w, /__u/substackcdn.com/image/fetch/$s_!Zd76!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4048915c-3cad-4a74-a608-f1a7a31780b7_1600x457.png 848w, /__u/substackcdn.com/image/fetch/$s_!Zd76!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4048915c-3cad-4a74-a608-f1a7a31780b7_1600x457.png 1272w, /__u/substackcdn.com/image/fetch/$s_!Zd76!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F4048915c-3cad-4a74-a608-f1a7a31780b7_1600x457.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 aria-hidden="true" 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><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption"><em>A task example in &#964;-bench where a trivial agent that does nothing can pass the evaluation.</em></figcaption></figure></div><p><strong>WebArena</strong> uses strict string matching and a naive LLM-judge to evaluate the correctness of agents&#8217; actions and outputs, which leads to 1.6-5.2% misestimation of agents&#8217; performance in absolute terms.</p><p><strong>OSWorld </strong>develops agent evaluation partially based on outdated websites, resulting in a 28% underestimation of agents&#8217; performance in absolute terms. In the following example, the CSS class, search-date, has been removed from the website the agent interacts with. Because the evaluator still relies on an outdated selector, it marks the agent&#8217;s correct actions as incorrect.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!1Osz!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5ce25774-1a02-4525-8d60-c49648c07d8b_1600x521.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!1Osz!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5ce25774-1a02-4525-8d60-c49648c07d8b_1600x521.png 424w, /__u/substackcdn.com/image/fetch/$s_!1Osz!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5ce25774-1a02-4525-8d60-c49648c07d8b_1600x521.png 848w, /__u/substackcdn.com/image/fetch/$s_!1Osz!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5ce25774-1a02-4525-8d60-c49648c07d8b_1600x521.png 1272w, /__u/substackcdn.com/image/fetch/$s_!1Osz!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5ce25774-1a02-4525-8d60-c49648c07d8b_1600x521.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!1Osz!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5ce25774-1a02-4525-8d60-c49648c07d8b_1600x521.png" width="1456" height="474" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/5ce25774-1a02-4525-8d60-c49648c07d8b_1600x521.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:474,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!1Osz!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5ce25774-1a02-4525-8d60-c49648c07d8b_1600x521.png 424w, /__u/substackcdn.com/image/fetch/$s_!1Osz!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5ce25774-1a02-4525-8d60-c49648c07d8b_1600x521.png 848w, /__u/substackcdn.com/image/fetch/$s_!1Osz!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5ce25774-1a02-4525-8d60-c49648c07d8b_1600x521.png 1272w, /__u/substackcdn.com/image/fetch/$s_!1Osz!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5ce25774-1a02-4525-8d60-c49648c07d8b_1600x521.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 aria-hidden="true" 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><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>SWE-Lancer</strong> fails to securely store test files, which allows an agent to overwrite tests and pass all tests.</p><h2>Next Steps with ABC</h2><p>We build ABC as an actionable framework to help</p><ol><li><p>Benchmark developers troubleshoot potential issues or demonstrate their thorough work.</p></li><li><p>Agent/Model developers dive into the underlying benchmarks deeply beyond reporting a &#8220;start-of-the-art&#8221; number.</p></li></ol><p>Please check our <a href="https://arxiv.org/abs/2507.02825">paper</a> for details. The full checklist, code examples, and the growing registry of assessed benchmarks live at our <a href="https://github.com/uiuc-kang-lab/agentic-benchmarks">GitHub repository</a>. If you are interested in adding exploit or fix patches to existing benchmarks, please submit a PR to our repository!</p><p>We invite contributions, issue reports, and pull requests! Reach out to us if you are interested in using or iterating on ABC.</p><div class="footnote" data-component-name="FootnoteToDOM"><a id="footnote-1" href="#footnote-anchor-1" class="footnote-number" contenteditable="false" target="_self">1</a><div class="footnote-content"><p>The misestimation of agents&#8217; capabilities ranges from 1.6% to 100% across 10 AI agent benchmarks we assessed.</p><p></p></div></div>]]></content:encoded></item><item><title><![CDATA[Reinforcement Post Training Generalizes Poorly Out-of-Domain]]></title><description><![CDATA[Large language models (LLMs) have made tremendous strides across a wide range of domains, from structured reasoning tasks like math and code to general reasoning tasks such as legal reasoning, financial problem solving, and medical question answering]]></description><link>https://ddkang.substack.com/p/reinforcement-post-training-generalizes</link><guid isPermaLink="false">https://ddkang.substack.com/p/reinforcement-post-training-generalizes</guid><dc:creator><![CDATA[Daniel Kang]]></dc:creator><pubDate>Wed, 25 Jun 2025 21:56:46 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!49RC!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F90644957-2771-4f85-b3ee-2f17420bbd26_1600x935.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Large language models (LLMs) have made tremendous strides across a wide range of domains, from structured reasoning tasks like <a href="https://huggingface.co/datasets/openai/gsm8k">math</a> and <a href="https://github.com/openai/human-eval">code</a> to general reasoning tasks such as <a href="https://hazyresearch.stanford.edu/legalbench/">legal reasoning</a>, <a href="https://arxiv.org/abs/2402.12659">financial problem solving</a>, and <a href="https://arxiv.org/abs/2009.13081">medical question answering</a>. A major catalyst behind these advances has been reinforcement post training (RPT), which enables models to achieve and sometimes even outperform top human performers in programming competitions and mathematics contests.</p><p>However, a key requirement for models is that they must reliably handle scenarios that differ from their training data. This raises a key question: <strong>does RPT generalize effectively across tasks and domains?</strong></p><p>So far, answers to this question have been inconclusive. Most evaluations focus on in-domain performance, using <a href="https://arxiv.org/abs/2501.12948">RPT models trained on mixed-domain data</a> and <a href="https://pretty-radio-b75.notion.site/DeepCoder-A-Fully-Open-Source-14B-Coder-at-O3-mini-Level-1cf81902c14680b3bee5eb349a512a51">evaluated on benchmarks closely aligned with their training distribution</a>. These setups introduce confounding factors that obscure our understanding of RPT's true generalization ability.</p><p>To address this gap, <a href="https://arxiv.org/abs/2506.19733">we designed and conducted</a> a unified evaluation framework that isolates and tests RPT's cross-domain generalizability more rigorously. Our results show that while RPT is highly effective within its training domain, its benefits do not consistently transfer to out-of-domain tasks. This highlights the need for a more nuanced understanding of how post-training mechanisms generalize across domains.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://ddkang.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Daniel&#8217;s Substack! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><h2>Measuring RPT Generalization</h2><p>To systematically study the generalizability of RPT while eliminating confounding factors from entangled training data, we first divide the RPT training data into <a href="https://arxiv.org/abs/2503.23829">three major domains</a> and then design a unified evaluation framework spanning 16 benchmarks.</p><ul><li><p><strong>Math:</strong> GSM8K, MATH-500, AIME 2024, and AMC 2023</p></li><li><p><strong>Code:</strong> MBPP, HumanEval, BigCodeBench, LiveCodeBench, USACO, Codeforces, and Aider Polyglot</p></li><li><p><strong>Knowledge-Intensive Reasoning:</strong> PubMedQA, MedQA, TabFact, LegalBench, and FinBench</p></li></ul><p>Using this framework, we conducted two complementary studies: an observational study that examines existing models with public RPT data, and an interventional study where we fine-tune models on specific domains to directly evaluate their cross-domain generalization. In both settings, we evaluate RPT's effectiveness by comparing performance gains over base models across different domains.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!49RC!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F90644957-2771-4f85-b3ee-2f17420bbd26_1600x935.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!49RC!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F90644957-2771-4f85-b3ee-2f17420bbd26_1600x935.png 424w, /__u/substackcdn.com/image/fetch/$s_!49RC!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F90644957-2771-4f85-b3ee-2f17420bbd26_1600x935.png 848w, /__u/substackcdn.com/image/fetch/$s_!49RC!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F90644957-2771-4f85-b3ee-2f17420bbd26_1600x935.png 1272w, /__u/substackcdn.com/image/fetch/$s_!49RC!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F90644957-2771-4f85-b3ee-2f17420bbd26_1600x935.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!49RC!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F90644957-2771-4f85-b3ee-2f17420bbd26_1600x935.png" width="550" height="321.4629120879121" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/90644957-2771-4f85-b3ee-2f17420bbd26_1600x935.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:851,&quot;width&quot;:1456,&quot;resizeWidth&quot;:550,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!49RC!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F90644957-2771-4f85-b3ee-2f17420bbd26_1600x935.png 424w, /__u/substackcdn.com/image/fetch/$s_!49RC!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F90644957-2771-4f85-b3ee-2f17420bbd26_1600x935.png 848w, /__u/substackcdn.com/image/fetch/$s_!49RC!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F90644957-2771-4f85-b3ee-2f17420bbd26_1600x935.png 1272w, /__u/substackcdn.com/image/fetch/$s_!49RC!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F90644957-2771-4f85-b3ee-2f17420bbd26_1600x935.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 aria-hidden="true" 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><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><h3>Observational Study</h3><p>We evaluate 14 open-weight RPT models, as we show in the table below, with publicly disclosed training data, alongside their respective base models. These models span domains like math, code, law, finance, and medicine. This allows us to assess whether fine-tuned gains persist when applied to unseen domains.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!LxWi!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc38b0e46-577b-47a0-92f5-e07e725a87e7_1600x595.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!LxWi!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc38b0e46-577b-47a0-92f5-e07e725a87e7_1600x595.png 424w, /__u/substackcdn.com/image/fetch/$s_!LxWi!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc38b0e46-577b-47a0-92f5-e07e725a87e7_1600x595.png 848w, /__u/substackcdn.com/image/fetch/$s_!LxWi!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc38b0e46-577b-47a0-92f5-e07e725a87e7_1600x595.png 1272w, /__u/substackcdn.com/image/fetch/$s_!LxWi!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc38b0e46-577b-47a0-92f5-e07e725a87e7_1600x595.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!LxWi!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc38b0e46-577b-47a0-92f5-e07e725a87e7_1600x595.png" width="1456" height="541" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/c38b0e46-577b-47a0-92f5-e07e725a87e7_1600x595.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:541,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!LxWi!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc38b0e46-577b-47a0-92f5-e07e725a87e7_1600x595.png 424w, /__u/substackcdn.com/image/fetch/$s_!LxWi!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc38b0e46-577b-47a0-92f5-e07e725a87e7_1600x595.png 848w, /__u/substackcdn.com/image/fetch/$s_!LxWi!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc38b0e46-577b-47a0-92f5-e07e725a87e7_1600x595.png 1272w, /__u/substackcdn.com/image/fetch/$s_!LxWi!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fc38b0e46-577b-47a0-92f5-e07e725a87e7_1600x595.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 aria-hidden="true" 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><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><h3>Interventional Study</h3><p>To remove confounding factors from mixed-domain training, we fine-tune LLMs from scratch using reinforcement learning on math, code, and knowledge-intensive reasoning data, respectively. We then evaluate their performance on both in-domain and out-of-domain tasks to understand how fine-tuned capabilities transfer. We refer to models fine-tuned on the corresponding domains as <em>Math-RPT</em>, <em>Code-RPT</em>, and <em>Knowledge-RPT</em> throughout the following text and figures.</p><h2>Our Findings</h2><p>We illustrate the three key findings from our empirical analysis as follows.</p><h3>Finding 1: RPT Gains Are Mostly In-Domain</h3><p>In our observational analysis, we find that RPT leads to notable improvements only within the domains it was trained on. Across the 14 models we studied, pass@1 accuracy increased by 3.57% on in-domain tasks, but <strong>dropped</strong> by 1.48% on out-of-domain tasks.</p><p>The interventional study reinforces this finding. As we demonstrate in the figure below, none of the models fine-tuned on a single domain exhibited statistically significant gains on out-of-domain benchmarks. On the contrary, both the Math-RPT and Code-RPT models show statistically significant performance drops on out-of-domain tasks. The Knowledge-RPT model also failed to generalize beyond its training data, showing no meaningful gains on unseen domains.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!2UF5!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe3d3df0b-6eb8-4652-958d-06dd8243e03f_1600x953.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!2UF5!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe3d3df0b-6eb8-4652-958d-06dd8243e03f_1600x953.png 424w, /__u/substackcdn.com/image/fetch/$s_!2UF5!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe3d3df0b-6eb8-4652-958d-06dd8243e03f_1600x953.png 848w, /__u/substackcdn.com/image/fetch/$s_!2UF5!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe3d3df0b-6eb8-4652-958d-06dd8243e03f_1600x953.png 1272w, /__u/substackcdn.com/image/fetch/$s_!2UF5!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe3d3df0b-6eb8-4652-958d-06dd8243e03f_1600x953.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!2UF5!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe3d3df0b-6eb8-4652-958d-06dd8243e03f_1600x953.png" width="531" height="316.1929945054945" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/e3d3df0b-6eb8-4652-958d-06dd8243e03f_1600x953.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:867,&quot;width&quot;:1456,&quot;resizeWidth&quot;:531,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!2UF5!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe3d3df0b-6eb8-4652-958d-06dd8243e03f_1600x953.png 424w, /__u/substackcdn.com/image/fetch/$s_!2UF5!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe3d3df0b-6eb8-4652-958d-06dd8243e03f_1600x953.png 848w, /__u/substackcdn.com/image/fetch/$s_!2UF5!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe3d3df0b-6eb8-4652-958d-06dd8243e03f_1600x953.png 1272w, /__u/substackcdn.com/image/fetch/$s_!2UF5!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe3d3df0b-6eb8-4652-958d-06dd8243e03f_1600x953.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 aria-hidden="true" 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><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a><figcaption class="image-caption">Pass@1 improvement in percentage across domains in our interventional analysis.</figcaption></figure></div><h3>Finding 2: Structured Domains Like Math and Code Mutually Generalize</h3><p>We observe strong mutual generalization between math and code. In our observational study, Math-RPT models improved by 2.18% on math and 4.77% on code tasks, and Code-RPT models improved by 9.49% on code and 15.44% on math tasks.</p><p>In both cases, models often performed even better on the unseen structured domain, suggesting shared underlying reasoning patterns between math and code that RPT is able to exploit.</p><h3>Finding 3: Structured Skills Do Not Transfer to Knowledge-Intensive Reasoning</h3><p>While math and code fine-tuning transfer well between each other, these structured reasoning skills do not generalize to unstructured or knowledge-intensive reasoning domains. In our observational study, structured-domain models showed only a &#8722;0.27% average change in pass@1 on knowledge-intensive reasoning domain tasks, compared to 11.08% and 5.82% gains on math and code respectively.</p><p>The interventional study confirms this trend. As we demonstrate in the figure above, the Math-RPT and Code-RPT models both underperform on knowledge-intensive reasoning tasks, despite showing robust gains in their respective domains. These findings indicate that while RPT is highly effective in capturing domain-specific reasoning, it fails to adapt to tasks requiring broader, more heterogeneous reasoning patterns.</p><h2>Conclusion: RPT Is Powerful but Narrow</h2><p>In this work, through both observational and interventional studies, we consistently find that while RPT produces substantial improvements within training domains, its generalization to unseen domains is limited, as we summarize in the figure below. In particular, while there is evidence of cross-domain transfer between structured domains like math and code, there is little evidence of transfer to unstructured domains.</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!UDm_!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F37a228e6-dbac-41b1-ba5c-119d97958f36_1896x544.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!UDm_!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F37a228e6-dbac-41b1-ba5c-119d97958f36_1896x544.png 424w, /__u/substackcdn.com/image/fetch/$s_!UDm_!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F37a228e6-dbac-41b1-ba5c-119d97958f36_1896x544.png 848w, /__u/substackcdn.com/image/fetch/$s_!UDm_!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F37a228e6-dbac-41b1-ba5c-119d97958f36_1896x544.png 1272w, /__u/substackcdn.com/image/fetch/$s_!UDm_!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F37a228e6-dbac-41b1-ba5c-119d97958f36_1896x544.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!UDm_!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F37a228e6-dbac-41b1-ba5c-119d97958f36_1896x544.png" width="1456" height="418" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/37a228e6-dbac-41b1-ba5c-119d97958f36_1896x544.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:418,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:144652,&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://ddkang.substack.com/i/166820608?img=https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F37a228e6-dbac-41b1-ba5c-119d97958f36_1896x544.png&quot;,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!UDm_!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F37a228e6-dbac-41b1-ba5c-119d97958f36_1896x544.png 424w, /__u/substackcdn.com/image/fetch/$s_!UDm_!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F37a228e6-dbac-41b1-ba5c-119d97958f36_1896x544.png 848w, /__u/substackcdn.com/image/fetch/$s_!UDm_!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F37a228e6-dbac-41b1-ba5c-119d97958f36_1896x544.png 1272w, /__u/substackcdn.com/image/fetch/$s_!UDm_!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F37a228e6-dbac-41b1-ba5c-119d97958f36_1896x544.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 aria-hidden="true" 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><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><p>Read <a href="https://arxiv.org/abs/2506.19733">our paper</a> for more details! And stay tuned for more thoughts on implications for future progress. </p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://ddkang.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Daniel&#8217;s Substack! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item><item><title><![CDATA[PilotDB: Towards Practical Online Approximate Queries]]></title><description><![CDATA[For decades, Approximate Query Processing (AQP) has been widely recognized as a solution to accelerate long-running analytical queries.]]></description><link>https://ddkang.substack.com/p/pilotdb-towards-practical-online</link><guid isPermaLink="false">https://ddkang.substack.com/p/pilotdb-towards-practical-online</guid><dc:creator><![CDATA[Daniel Kang]]></dc:creator><pubDate>Mon, 23 Jun 2025 20:26:11 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!GNhM!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7636ebe5-1330-4ae8-a07c-70d6a1bedf49_1600x534.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>For decades, Approximate Query Processing (AQP) has been widely recognized as a solution to accelerate long-running analytical queries. However, production adoption of AQP remains rare. Practitioners still run into three major questions:</p><ul><li><p>How many changes will developers have to make to the database management system (DBMS)?</p></li><li><p>Who will maintain all of the offline computations when data or workload drifts?</p></li><li><p>How can users know the accuracy of the approximate result before they press &#8220;run,&#8221; rather than afterwards?</p></li></ul><p>In this blog, we introduce <a href="https://arxiv.org/abs/2503.21087">PilotDB</a> (code available on <a href="https://github.com/uiuc-kang-lab/PilotDB">GitHub</a>), an online AQP system that addresses all three concerns and achieves up to 126x speedup compared to exact queries. To understand PilotDB, we first take a closer look at why we think prior AQP systems are not ready for production.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://ddkang.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Daniel&#8217;s Substack! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><h2>What Still Blocks AQP In Practice?</h2><p><strong>DBMS Modifications</strong>. Recent online AQP methods (e.g., <a href="https://www.microsoft.com/en-us/research/publication/quickr-lazily-approximating-complex-ad-hoc-queries-in-big-data-clusters/">QuickR</a>) deeply integrate with DBMS components (e.g., query planner and optimizer). Deploying these AQP methods requires modifying a mature DBMS, which is often unacceptable or discouraging for practitioners.</p><p><strong>Continuous Maintenance</strong>. Offline AQP (e.g., <a href="https://arxiv.org/abs/1203.5485">BlinkDB</a>, <a href="https://arxiv.org/pdf/1804.00770">VerdictDB</a>) pre-computes synopses or samples that must be rebuilt whenever the data or workload shifts, causing continuous, non-trivial overhead.</p><p><strong>No Priori Error Guarantees</strong>. Users often want to know the error of an approximate result before they run the query. Systems (e.g., <a href="https://dl.acm.org/doi/pdf/10.1145/3299869.3324958">DBest</a>) that address previous challenges can only report accuracy afterwards, or aren&#8217;t statistically rigorous at all.</p><p>We develop two key techniques to achieve all three in PilotDB.</p><h2>PilotDB&#8217;s Approach</h2><h3>Two-Stage Query Approximation As A Lightweight Middleware</h3><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!GNhM!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7636ebe5-1330-4ae8-a07c-70d6a1bedf49_1600x534.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!GNhM!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7636ebe5-1330-4ae8-a07c-70d6a1bedf49_1600x534.png 424w, /__u/substackcdn.com/image/fetch/$s_!GNhM!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7636ebe5-1330-4ae8-a07c-70d6a1bedf49_1600x534.png 848w, /__u/substackcdn.com/image/fetch/$s_!GNhM!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7636ebe5-1330-4ae8-a07c-70d6a1bedf49_1600x534.png 1272w, /__u/substackcdn.com/image/fetch/$s_!GNhM!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7636ebe5-1330-4ae8-a07c-70d6a1bedf49_1600x534.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!GNhM!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7636ebe5-1330-4ae8-a07c-70d6a1bedf49_1600x534.png" width="1456" height="486" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/7636ebe5-1330-4ae8-a07c-70d6a1bedf49_1600x534.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:486,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!GNhM!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7636ebe5-1330-4ae8-a07c-70d6a1bedf49_1600x534.png 424w, /__u/substackcdn.com/image/fetch/$s_!GNhM!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7636ebe5-1330-4ae8-a07c-70d6a1bedf49_1600x534.png 848w, /__u/substackcdn.com/image/fetch/$s_!GNhM!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7636ebe5-1330-4ae8-a07c-70d6a1bedf49_1600x534.png 1272w, /__u/substackcdn.com/image/fetch/$s_!GNhM!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F7636ebe5-1330-4ae8-a07c-70d6a1bedf49_1600x534.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 aria-hidden="true" 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><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>PilotDB delivers approximate answers through online sampling while ensuring a priori error guarantees. The challenge is to decide, before execution, how large a sample the query needs. To address this, we develop the following two-stage workflow, where PilotDB operates as a lightweight middleware between the user and the database.</p><ol><li><p>A &#8220;<a href="https://en.wikipedia.org/wiki/Pilot_experiment">Pilot</a>&#8221; query: We first execute a small sample (e.g., 0.05% of data) to estimate the data&#8217;s variance and plan the minimal sample that will meet the user&#8217;s error bound.</p></li><li><p>A &#8220;Final&#8221; query: We rewrite the original query on-the-fly to use that optimal sample. If no speed-up is possible, PilotDB simply runs the original query.</p></li></ol><h3>BSAP: Block-level Sampling with Guarantees</h3><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!Z4fb!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0e1e4caa-a944-4560-83ea-24693705b4a4_1600x592.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!Z4fb!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0e1e4caa-a944-4560-83ea-24693705b4a4_1600x592.png 424w, /__u/substackcdn.com/image/fetch/$s_!Z4fb!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0e1e4caa-a944-4560-83ea-24693705b4a4_1600x592.png 848w, /__u/substackcdn.com/image/fetch/$s_!Z4fb!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0e1e4caa-a944-4560-83ea-24693705b4a4_1600x592.png 1272w, /__u/substackcdn.com/image/fetch/$s_!Z4fb!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0e1e4caa-a944-4560-83ea-24693705b4a4_1600x592.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!Z4fb!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0e1e4caa-a944-4560-83ea-24693705b4a4_1600x592.png" width="1456" height="539" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/0e1e4caa-a944-4560-83ea-24693705b4a4_1600x592.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:539,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!Z4fb!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0e1e4caa-a944-4560-83ea-24693705b4a4_1600x592.png 424w, /__u/substackcdn.com/image/fetch/$s_!Z4fb!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0e1e4caa-a944-4560-83ea-24693705b4a4_1600x592.png 848w, /__u/substackcdn.com/image/fetch/$s_!Z4fb!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0e1e4caa-a944-4560-83ea-24693705b4a4_1600x592.png 1272w, /__u/substackcdn.com/image/fetch/$s_!Z4fb!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F0e1e4caa-a944-4560-83ea-24693705b4a4_1600x592.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 aria-hidden="true" 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><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>Running two samples on the fly can be slow due to the data I/O costs. Instead of using row-level sampling to fetch individual tuples, PilotDB employs block sampling that reads entire disk pages at a time. Block sampling reduces I/O by 97&#8211;99 % at low sampling ratios.</p><p>Unfortunately, previous error analysis does not work for block sampling since rows inside the same block are correlated. We develop BSAP that provides (1) new variance formulas, (2) sampling-equivalence rules, and (3) join analysis to achieve statistically rigorous error analysis for block sampling on joins or nested queries.</p><p>We prove these results for single-table, multi-table, and nested queries, and have upstreamed the I/O-efficient block-sampling code to <a href="https://github.com/duckdb/duckdb/pull/12631">DuckDB 1.2</a>.</p><h2>How Much Can PilotDB Accelerate Queries?</h2><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!TZN2!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5402cff4-6012-4da4-8d81-9d27fd8d273c_1600x462.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!TZN2!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5402cff4-6012-4da4-8d81-9d27fd8d273c_1600x462.png 424w, /__u/substackcdn.com/image/fetch/$s_!TZN2!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5402cff4-6012-4da4-8d81-9d27fd8d273c_1600x462.png 848w, /__u/substackcdn.com/image/fetch/$s_!TZN2!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5402cff4-6012-4da4-8d81-9d27fd8d273c_1600x462.png 1272w, /__u/substackcdn.com/image/fetch/$s_!TZN2!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5402cff4-6012-4da4-8d81-9d27fd8d273c_1600x462.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!TZN2!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5402cff4-6012-4da4-8d81-9d27fd8d273c_1600x462.png" width="1456" height="420" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/5402cff4-6012-4da4-8d81-9d27fd8d273c_1600x462.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:420,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!TZN2!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5402cff4-6012-4da4-8d81-9d27fd8d273c_1600x462.png 424w, /__u/substackcdn.com/image/fetch/$s_!TZN2!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5402cff4-6012-4da4-8d81-9d27fd8d273c_1600x462.png 848w, /__u/substackcdn.com/image/fetch/$s_!TZN2!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5402cff4-6012-4da4-8d81-9d27fd8d273c_1600x462.png 1272w, /__u/substackcdn.com/image/fetch/$s_!TZN2!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2F5402cff4-6012-4da4-8d81-9d27fd8d273c_1600x462.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 aria-hidden="true" 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><path d="M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"></path></g></svg></button><button tabindex="0" type="button" class="pencraft pc-reset pencraft icon-container view-image"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-maximize2 lucide-maximize-2"><polyline points="15 3 21 3 21 9"></polyline><polyline points="9 21 3 21 3 15"></polyline><line x1="21" x2="14" y1="3" y2="10"></line><line x1="3" x2="10" y1="21" y2="14"></line></svg></button></div></div></div></a></figure></div><p>We evaluated PilotDB with widely used synthetic benchmarks (TPC-H, SSB, and DSB) and real-world benchmarks (ClickBench and Instacart). Given a 5% error target, PilotDB achieved up to 126x speed-up on PostgreSQL 16 (24x geometric mean), up to 117x speed-up on SQL Server 2022 (18x GM), and up to 13x on DuckDB 1.0 (7x GM).</p><div class="captioned-image-container"><figure><a class="image-link image2 is-viewable-img" target="_blank" href="/__u/substackcdn.com/image/fetch/$s_!ILt1!,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd8c8daba-daab-43a4-bc6a-1032fb17597f_1600x657.png" data-component-name="Image2ToDOM"><div class="image2-inset"><picture><source type="image/webp" srcset="/__u/substackcdn.com/image/fetch/$s_!ILt1!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd8c8daba-daab-43a4-bc6a-1032fb17597f_1600x657.png 424w, /__u/substackcdn.com/image/fetch/$s_!ILt1!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd8c8daba-daab-43a4-bc6a-1032fb17597f_1600x657.png 848w, /__u/substackcdn.com/image/fetch/$s_!ILt1!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd8c8daba-daab-43a4-bc6a-1032fb17597f_1600x657.png 1272w, /__u/substackcdn.com/image/fetch/$s_!ILt1!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_webp, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd8c8daba-daab-43a4-bc6a-1032fb17597f_1600x657.png 1456w" sizes="100vw"><img src="/__u/substackcdn.com/image/fetch/$s_!ILt1!,w_1456,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd8c8daba-daab-43a4-bc6a-1032fb17597f_1600x657.png" width="1456" height="598" data-attrs="{&quot;src&quot;:&quot;https://substack-post-media.s3.amazonaws.com/public/images/d8c8daba-daab-43a4-bc6a-1032fb17597f_1600x657.png&quot;,&quot;srcNoWatermark&quot;:null,&quot;fullscreen&quot;:null,&quot;imageSize&quot;:null,&quot;height&quot;:598,&quot;width&quot;:1456,&quot;resizeWidth&quot;:null,&quot;bytes&quot;:null,&quot;alt&quot;:null,&quot;title&quot;:null,&quot;type&quot;:null,&quot;href&quot;:null,&quot;belowTheFold&quot;:true,&quot;topImage&quot;:false,&quot;internalRedirect&quot;:null,&quot;isProcessing&quot;:false,&quot;align&quot;:null,&quot;offset&quot;:false}" class="sizing-normal" alt="" srcset="/__u/substackcdn.com/image/fetch/$s_!ILt1!, /__u/ddkang.substack.com/w_424, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd8c8daba-daab-43a4-bc6a-1032fb17597f_1600x657.png 424w, /__u/substackcdn.com/image/fetch/$s_!ILt1!, /__u/ddkang.substack.com/w_848, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd8c8daba-daab-43a4-bc6a-1032fb17597f_1600x657.png 848w, /__u/substackcdn.com/image/fetch/$s_!ILt1!, /__u/ddkang.substack.com/w_1272, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd8c8daba-daab-43a4-bc6a-1032fb17597f_1600x657.png 1272w, /__u/substackcdn.com/image/fetch/$s_!ILt1!, /__u/ddkang.substack.com/w_1456, /__u/ddkang.substack.com/c_limit, /__u/ddkang.substack.com/f_auto, /__u/ddkang.substack.com/q_auto:good, /__u/ddkang.substack.com/fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fd8c8daba-daab-43a4-bc6a-1032fb17597f_1600x657.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 aria-hidden="true" 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><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>PilotDB demonstrates superiority when compared to a previous state-of-the-art online AQP method, QuickR. When compared to the performance upper bound<sup><a class="footnote-anchor" data-component-name="FootnoteAnchorToDOM" id="footnote-anchor-1" href="#footnote-1" target="_self">1</a></sup> of QuickR, PilotDB achieves 1.2-4.2x higher speed-up on different DBMSs. Moreover, BSAP can augment QuickR, providing 5-60x higher speed-up than the original QuickR on DuckDB.</p><h2>Conclusion</h2><p>PilotDB pushes forward the practical side of AQP techniques to eliminate maintenance and DBMS re-engineering, while providing error guarantees. As shown in the following demo, PilotDB has zero overhead on both users and DBMS developers.</p><div class="native-video-embed" data-component-name="VideoPlaceholder" data-attrs="{&quot;mediaUploadId&quot;:&quot;ae67e009-9163-4149-b74a-705a6e7ee9dc&quot;,&quot;duration&quot;:null}"></div><p></p><p>If you find PilotDB interesting, feel free to give it a try. We have open-sourced PilotDB on <a href="https://github.com/uiuc-kang-lab/PilotDB">GitHub</a>. For more technical details, please check out our <a href="https://arxiv.org/abs/2503.21087">paper</a> and let us know if you have any questions.</p><div class="footnote" data-component-name="FootnoteToDOM"><a id="footnote-1" href="#footnote-anchor-1" class="footnote-number" contenteditable="false" target="_self">1</a><div class="footnote-content"><p>As QuickR is a closed-source system, we compared PilotDB with an upper-bound performance (lower-bound latency) of QuickR. We consider the data loading time as the lower-bound latency since QuickR requires at least one scan over the entire data.</p></div></div>]]></content:encoded></item><item><title><![CDATA[How is Spiky Superhuman AI trained?]]></title><description><![CDATA[As I've outlined in a previous post, spiky superhuman AI (SSAI) is here and rapidly improving.]]></description><link>https://ddkang.substack.com/p/how-is-spiky-superhuman-ai-trained</link><guid isPermaLink="false">https://ddkang.substack.com/p/how-is-spiky-superhuman-ai-trained</guid><dc:creator><![CDATA[Daniel Kang]]></dc:creator><pubDate>Thu, 19 Jun 2025 16:40:23 GMT</pubDate><enclosure url="https://substackcdn.com/image/fetch/$s_!iE13!,w_256,c_limit,f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fe340d029-97c7-4eb0-add3-a13d995e321c_144x144.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>As I've outlined in a <a href="/__u/substack.com/home/post/p-163936728?source=queue">previous post</a>, spiky superhuman AI (SSAI) is here and rapidly improving. Google's <a href="https://deepmind.google/discover/blog/alphaevolve-a-gemini-powered-coding-agent-for-designing-advanced-algorithms/">AlphaEvolve</a> system based on the Gemini-series of models has already created new breakthroughs that no human has come up with.</p><p>I&#8217;ll walk through a high-level intuition of how these SSAIs are trained in this blog post. Stay tuned for future blog posts on my thoughts of which problems will fall to SSAI.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://ddkang.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Daniel&#8217;s Substack! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div><h2><strong>RL + search = superhuman AI on games</strong></h2><p>Currently, the best method we have towards reaching superhuman AI is reinforcement learning (RL). Roughly speaking, RL allows an AI system to actively explore an environment to achieve some objective. Think of it like giving a dog treats when it successfully completes a task.</p><p>RL has a long history of surpassing human performance, primarily in games (chess, go, etc.). Games are particularly suited for RL since we can simulate literally billions of game rollouts cheaply.</p><p>However, RL on games usually focuses on tailor-made systems, which I&#8217;ll call &#8220;expert systems.&#8221; Expert systems are now superhuman on chess, go, and many other games. Typically, they involve training a game-specific AI model that plays against itself (self-play) million to billions of times. At this step, the AI model learns what actions are good in what contexts.</p><p>The AI model is then combined with search, where the AI model plays itself down many paths given the current state of a game. RL + search powered AlphaGo and many other game-playing AI systems.</p><h2><strong>LLMs + RL + search = superhuman AI we can talk to</strong></h2><p>RL has expanded to work on LLMs, leading to the o-series of models from OpenAI. Today, o1 and o3 are publicly available, with o4 reportedly on the way. Beyond OpenAI&#8217;s offerings, Gemini-2.5 Pro, Claude 4 Sonnet/Opus, and DeepSeek R1 are also trained with RL.</p><p>But what does RL mean in the context of LLMs? Let&#8217;s look at the specific example of the AIME math competition. Problems in AIME look like this:</p><blockquote><p>Alice and Bob play the following game. A stack of n tokens lies before them. The players take turns with Alice going first. On each turn, the player removes either 1 token or 4 tokens from the stack. Whoever removes the last token wins. Find the number of positive integers n less than or equal to 2024 for which there exists a strategy for Bob that guarantees that Bob will win the game regardless of Alice's play.</p></blockquote><p>And solutions to AIME are numbers between 1 and 1000. The solution to this particular problem is 809.</p><p>Let&#8217;s say we have hundreds of thousands of AIME questions. We can ask the LLM to solve the problem many times - since the solution is a fixed number, we parse the answers at the end to tell if the model got the answer correct or not. To train the model, we can encourage the model to output text similar to correct solutions and discourage the model from producing outputs similar to incorrect solutions.</p><p>Once we have a trained model, we can do something similar, where we ask the LLM to solve the problem many times. As long as we can cheaply verify if the solution is correct, search can dramatically improve the performance of these systems, to the point of being superhuman. This is how the AlphaEvolve system works.</p><h2><strong>What&#8217;s next?</strong></h2><p>All of the examples we&#8217;ve seen so far have been of systems that are trained in a specific domain. Today, these domains have only been ones with easily verifiable solutions. So far, only games, math, and code have fallen to RL.</p><p>Fortunately for humans, much of life isn&#8217;t easily verifiable. Even seemingly objective tasks, like legal reasoning, can be highly subjective and even change over time!</p><p>A major question for the future performance of AI is: will RL generalize? Particularly:</p><ul><li><p>Will RL generalize from easy problems to hard problems?</p></li><li><p>Will RL generalize across easily verified domains?</p></li><li><p>Will RL generalize from easily verified domains to &#8220;fuzzy&#8221; domains?</p></li></ul><p>AI progress has been incredibly difficult to predict, but we&#8217;ll cover the literature on AI progress in future posts.</p><div class="subscription-widget-wrap-editor" data-attrs="{&quot;url&quot;:&quot;https://ddkang.substack.com/subscribe?&quot;,&quot;text&quot;:&quot;Subscribe&quot;,&quot;language&quot;:&quot;en&quot;}" data-component-name="SubscribeWidgetToDOM"><div class="subscription-widget show-subscribe"><div class="preamble"><p class="cta-caption">Thanks for reading Daniel&#8217;s Substack! Subscribe for free to receive new posts and support my work.</p></div><form class="subscription-widget-subscribe"><input type="email" class="email-input" name="email" placeholder="Type your email&#8230;" tabindex="-1"><input type="submit" class="button primary" value="Subscribe"><div class="fake-input-wrapper"><div class="fake-input"></div><div class="fake-button"></div></div></form></div></div>]]></content:encoded></item></channel></rss>