<?xml version='1.0' encoding='utf-8'?>
<?xml-stylesheet type="text/xsl" href="/v2/static/oai2.xsl"?>
<OAI-PMH xmlns="http://www.openarchives.org/OAI/2.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/ http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd">
  <responseDate>2026-10-15T07:51:06Z</responseDate>
  <request identifier="oai:figshare.com:article/30846323" metadataPrefix="oai_dc" verb="GetRecord">https://api.figshare.com/v2/oai</request>
  <GetRecord>
    <record>
      <header>
        <identifier>oai:figshare.com:article/30846323</identifier>
        <datestamp>2026-07-28T11:15:26Z</datestamp>
        <setSpec>category_29179</setSpec>
        <setSpec>category_28846</setSpec>
        <setSpec>portal_845</setSpec>
        <setSpec>item_type_3</setSpec>
        <setSpec>month_year_07_2026</setSpec>
      </header>
      <metadata>
        <oai_dc:dc xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
          <dc:title>B4: Towards optimal assessment of plausible code solutions with plausible tests</dc:title>
          <dc:creator>Mouxiang Chen (22818278)</dc:creator>
          <dc:creator>Liu Zhongxin (22818287)</dc:creator>
          <dc:creator>Tao He (22818292)</dc:creator>
          <dc:creator>Hong Yusu (22818297)</dc:creator>
          <dc:creator>David LO (8645202)</dc:creator>
          <dc:creator>Xin Xia (21176876)</dc:creator>
          <dc:creator>Jiangling Sun (22818350)</dc:creator>
          <dc:subject>Automated software engineering</dc:subject>
          <dc:subject>Modelling and simulation</dc:subject>
          <dc:subject>Code solutions assessment</dc:subject>
          <dc:subject>Software creation and management</dc:subject>
          <dc:subject>Code generation</dc:subject>
          <dc:subject>Bayesian framework approach</dc:subject>
          <dc:description>&lt;p dir="ltr"&gt;Dataset for paper "B4: Towards optimal assessment of plausible code solutions with plausible tests".&lt;/p&gt;&lt;p dir="ltr"&gt;Selecting the best code solution from multiple generated ones is an essential task in code generation, which can be achieved by using some reliable validators (&lt;i&gt;e.g.&lt;/i&gt;, developer-written test cases) for assistance. Since reliable test cases are not always available and can be expensive to build in practice, researchers propose to automatically generate test cases to assess code solutions. However, when both code solutions and test cases are plausible and not reliable, selecting the best solution becomes challenging. Although some heuristic strategies have been proposed to tackle this problem, they lack a strong theoretical guarantee and it is still an open question whether an optimal selection strategy exists. Our work contributes in two ways. First, we show that within a Bayesian framework, the optimal selection strategy can be defined based on the posterior probability of the observed passing states between solutions and tests. The problem of identifying the best solution is then framed as an integer programming problem. Second, we propose an efficient approach for approximating this optimal (yet uncomputable) strategy, where the approximation error is bounded by the correctness of prior knowledge. We then incorporate effective prior knowledge to tailor code generation tasks. Both theoretical and empirical studies confirm that existing heuristics are limited in selecting the best solutions with plausible test cases. Our proposed approximated optimal strategy &lt;i&gt;ℬ&lt;/i&gt;&lt;sup&gt;4&lt;/sup&gt; significantly surpasses existing heuristics in selecting code solutions generated by large language models (LLMs) with LLM-generated tests, achieving a relative performance improvement by up to 50% over the strongest heuristic and 246% over the random selection in the most challenging scenarios.&lt;/p&gt;</dc:description>
          <dc:date>2024-09-09T08:07:37Z</dc:date>
          <dc:type>Dataset</dc:type>
          <dc:type>Dataset</dc:type>
          <dc:identifier>10.5281/zenodo.13737381</dc:identifier>
          <dc:relation>https://figshare.com/articles/dataset/B4_Towards_optimal_assessment_of_plausible_code_solutions_with_plausible_tests/30846323</dc:relation>
          <dc:rights>CC BY 4.0</dc:rights>
        </oai_dc:dc>
      </metadata>
    </record>
  </GetRecord>
</OAI-PMH>
