paper-with-me

홈 › Papers

Evaluating and Optimizing the Effectiveness of Neural Machine Translation in Supporting Code Retrieval Models: A Study on the CAT Benchmark

2023-08-09 · Hung Phan, Ali Jannesari

Neural Machine Translation (NMT) is widely applied in software engineering tasks. The effectiveness of NMT for code retrieval relies on the ability to learn from the sequence of tokens in the source language to the sequence of tokens in the target language. While NMT performs well in pseudocode-to-code translation, it might have challenges in learning to translate from natural language query to source code in newly curated real-world code documentation/ implementation datasets. In this work, we analyze the performance of NMT in natural language-to-code translation in the newly curated CAT benchmark that includes the optimized versions of three Java datasets TLCodeSum, CodeSearchNet, Funcom, and a Python dataset PCSD. Our evaluation shows that NMT has low accuracy, measured by CrystalBLEU and Meteor metrics in this task. To alleviate the duty of NMT in learning complex representation of source code, we propose ASTTrans Representation, a tailored representation of an Abstract Syntax Tree (AST) using a subset of non-terminal nodes. We show that the classical approach NMT performs significantly better in learning ASTTrans Representation over code tokens with up to 36% improvement on Meteor score. Moreover, we leverage ASTTrans Representation to conduct combined code search processes from the state-of-the-art code search processes using GraphCodeBERT and UniXcoder. Our NMT models of learning ASTTrans Representation can boost the Mean Reciprocal Rank of these state-of-the-art code search processes by up to 3.08% and improve 23.08% of queries' results over the CAT benchmark.

📄 PDF Abstract BibTeX arXiv:2308.04693

Code (0)

등록된 구현이 없습니다.

Tasks

Code SearchCode TranslationMachine TranslationNMTRetrievalTranslation

Similar Papers 제목 키워드 기반

Optimizing Statistical Machine Translation for Text Simplification

2016-01-01 · TACL 2016 1 · Wei Xu, Courtney Napoles, Ellie Pavlick, Quanze Chen 외

Most recent sentence simplification systems use basic machine translation models to learn lexical and syntactic paraphrases from a manually simplified parallel corpus. These methods are limited by the quality and quantit…

Machine TranslationSentenceText SimplificationTranslation

On the Evaluation of Semantic Phenomena in Neural Machine Translation Using Natural Language Inference

2018-04-25 · NAACL 2018 6 · Adam Poliak, Yonatan Belinkov, James Glass, Benjamin Van Durme

We propose a process for investigating the extent to which sentence representations arising from neural machine translation (NMT) systems encode distinct semantic phenomena. We use these representations as features to tr…

Machine TranslationNatural Language InferenceNMTSentence+2

A Closer Look at Parameter Contributions When Training Neural Language and Translation Models

2022-10-01 · COLING 2022 10 · Raúl Vázquez, Hande Celikkanat, Vinit Ravishankar, Mathias Creutz 외

We analyze the learning dynamics of neural language and translation models using Loss Change Allocation (LCA), an indicator that enables a fine-grained analysis of parameter updates when optimizing for the loss function.…

Causal Language ModelingLanguage ModelingLanguage ModellingMachine Translation+2

Same evaluation, more tokens: On the effect of input length for machine translation evaluation using Large Language Models

2025-05-03 · Tobias Domhan, Dawei Zhu

Accurately evaluating machine-translated text remains a long-standing challenge, particularly for long documents. Recent work has shown that large language models (LLMs) can serve as reliable and interpretable sentence-l…

Machine TranslationSentenceTranslation

Evaluating Machine Translation Models for English-Hindi Language Pairs: A Comparative Analysis

2025-05-26 · Ahan Prasannakumar Shetty

Machine translation has become a critical tool in bridging linguistic gaps, especially between languages as diverse as English and Hindi. This paper comprehensively evaluates various machine translation models for transl…

Machine TranslationTranslation