PulseAugur
实时 11:41:06
English(EN) Improving Code Translation with Syntax-Guided and Semantic-aware Preference Optimization

新的CTO方法通过语义感知改进LLM代码翻译

研究人员开发了一种名为CTO的新方法,以增强大型语言模型(LLM)的代码翻译能力。该方法采用语法引导和语义感知偏好优化,确保翻译后代码的结构正确性和功能等价性。通过训练一个跨语言模型直接评估源代码和翻译后代码之间的语义相似性,CTO将编译器反馈与偏好学习相结合,在多种编程语言中实现了卓越的翻译性能。 AI

影响 这种新的CTO方法为LLM的代码翻译提供了一种更强大的方法,有望提高代码生成工具的准确性和可靠性。

排序理由 该集群描述了一篇关于改进LLM代码翻译的新颖方法的学术论文。[lever_c_demoted from research: ic=1 ai=1.0]

在 Hugging Face Daily Papers 阅读 →

AI 生成摘要 · Google Gemini · 来自 1 个来源。 我们如何撰写摘要 →

新的CTO方法通过语义感知改进LLM代码翻译

报道来源 [1]

  1. Hugging Face Daily Papers TIER_1 English(EN) ·

    Improving Code Translation with Syntax-Guided and Semantic-aware Preference Optimization

    LLMs have shown immense potential for code translation, yet they often struggle to ensure both syntactic correctness and semantic consistency. While preference-based learning offers a promising alignment strategy, it is hindered by unreliable semantic rewards derived from sparse …