The advent of large language models (LLMs) has greatly facilitated code generation, but ensuring the functional correctness of generated code remains a challenge. Traditional validation methods are often time-consuming, error-prone, and impractical for large volumes of code. We introduce CodeSift, a novel framework that leverages LLMs as the first-line filter of code validation without the need for execution, reference code, or human feedback, thereby reducing the validation effort. We assess the effectiveness of our method across three diverse datasets encompassing two programming languages. Our results indicate that CodeSift outperforms state-of-the-art code evaluation methods. Internal testing conducted with subject matter experts reveals that the output generated by CodeSift is in line with human preference, reinforcing its effectiveness as a dependable automated code validation tool.
TriVAL: A Tri-Validation Framework for Faithful Automatic Optimization Modeling
School of Computer Science and Engineering, South China University of Technology(华南理工大学计算机科学与工程学院);Centre for Frontier AI Research, Agency for Science, Technology and Research(科技研究局前沿人工智能研究中心);College of Computing and Data Science, Nanyang Technological University(南洋理工大学计算与数据科学学院)
SmartValidator: A Framework for Automatic Identification and Classification of Cyber Threat Data
安全运营中心(SOC)使用各种网络威胁信息(CTI)来验证安全事件和警报。安全专家根据CTI手动定义不同类型的规则和脚本来执行验证任务。这些规则和脚本需要不断更新,因为不断变化的威胁,不断变化的SOC的要求和CTI的动态性质。更新规则和脚本的手动过程会延迟对攻击的响应。为了减轻人类专家的负担并加快响应速度,我们提出了一种新的基于人工智能(AI)的框架SmartValidator。SmartValidator利用机器学习(ML)技术实现警报的自动验证。它由三层组成,执行数据汇集、模型构建和警报验证任务。它将验证任务投影为分类问题。而不是建立和保存模型的所有可能的要求,我们建议自动构建验证模型的基础上SOC的要求和CTI。我们构建了一个概念验证(Proof of Concept,简称PMM)系统,其中包含8种ML算法、2种特征工程技术和18项需求,以研究SmartValidator的有效性和效率。评估结果表明,当自动构建预测模型用于对网络威胁数据进行分类时,75%的模型的F1得分高于0.8,这表明该模型具有足够的性能,可用于现实世界的组织。结果进一步表明,预测模型的动态构建所需的模型比所有可能要求的预构建模型少99%。该框架可以被各个行业遵循,以根据其CTI和SOC的偏好加速和自动化警报和事件的验证。