← Search

Data · dataset · 2024

B4: Towards optimal assessment of plausible code solutions with plausible tests

Listed in SMU Research Data Repository

Description

<p dir="ltr">Dataset for paper "B4: Towards optimal assessment of plausible code solutions with plausible tests".</p><p dir="ltr">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 (<i>e.g.</i>, 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.

Read the rest (2 more)

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 <i>ℬ</i><sup>4</sup> 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.</p>

Links

Where it is published

Catalogue records · 1

Topics

Provenance · 1 source records, 10 field assertions
SourceKeyLast seenRaw
SMU Research Data Repositoryoai:figshare.com:article/3084632314 h agoJSON v1
FieldAssertionExtractorEvidence
access_levelsource · researchdata smu edu sgconnector:researchdata_smu_edu_sg@1.0.0
concepts[field].anzsrc:field:460207mapping · researchdata smu edu sgvocabulary-mapper@1.0.0keywords['Modelling and simulation']
concepts[field].anzsrc:field:461201mapping · researchdata smu edu sgvocabulary-mapper@1.0.0keywords['Automated software engineering']
concepts[field].local:field:computer-science-aimapping · researchdata smu edu sgconnector:researchdata_smu_edu_sg@1.0.0
concepts[field].local:field:earth-environmentalmapping · researchdata smu edu sgconnector:researchdata_smu_edu_sg@1.0.0
concepts[field].local:field:engineeringmapping · researchdata smu edu sgconnector:researchdata_smu_edu_sg@1.0.0
descriptionsource · researchdata smu edu sgconnector:researchdata_smu_edu_sg@1.0.0/metadata/dc/description
licensesource · researchdata smu edu sgconnector:researchdata_smu_edu_sg@1.0.0/metadata/dc/rights
publication_datesource · researchdata smu edu sgconnector:researchdata_smu_edu_sg@1.0.0
titlesource · researchdata smu edu sgconnector:researchdata_smu_edu_sg@1.0.0/metadata/dc/title