Optimizing Machine Translation through Prompt Engineering: An Investigation into ChatGPT's Customizability

Masaru Yamada
2024-02-21
Abstract:This paper explores the influence of integrating the purpose of the translation and the target audience into prompts on the quality of translations produced by ChatGPT. Drawing on previous translation studies, industry practices, and ISO standards, the research underscores the significance of the pre-production phase in the translation process. The study reveals that the inclusion of suitable prompts in large-scale language models like ChatGPT can yield flexible translations, a feat yet to be realized by conventional Machine Translation (MT). The research scrutinizes the changes in translation quality when prompts are used to generate translations that meet specific conditions. The evaluation is conducted from a practicing translator's viewpoint, both subjectively and qualitatively, supplemented by the use of OpenAI's word embedding API for cosine similarity calculations. The findings suggest that the integration of the purpose and target audience into prompts can indeed modify the generated translations, generally enhancing the translation quality by industry standards. The study also demonstrates the practical application of the "good translation" concept, particularly in the context of marketing documents and culturally dependent idioms.
Computation and Language
What problem does this paper attempt to address?
The paper attempts to address the issue of how to optimize the quality of machine translation by integrating translation purposes and target audience information into ChatGPT. Specifically, the researchers aim to make the translations generated by ChatGPT more flexible and meet professional translation requirements by including this information in the prompts, thereby improving translation quality. ### Main Issues 1. **Improvement of Translation Quality**: Traditional machine translation systems often lack consideration of translation purposes and target audiences when generating translations, resulting in translations that are not flexible and accurate enough. The researchers hope to make ChatGPT generate higher quality translations by explicitly including this information in the prompts. 2. **Applicability to Professional Translation**: Existing machine translation systems are difficult to directly apply to professional translation workflows. The researchers aim to explore how prompt engineering can make the translations generated by ChatGPT more suitable for the needs of professional translators. 3. **Cultural Adaptation and Dynamic Equivalence**: When translating culturally dependent expressions and specific domain terminology, machine translation systems often produce literal translations that fail to convey the true meaning of the original text. The researchers hope to make the translations generated by ChatGPT more natural and appropriate through dynamic equivalence strategies. ### Research Methods - **Prompt Design**: The researchers designed prompts that include translation purposes and target audience information and input them into ChatGPT. - **Translation Quality Evaluation**: From the perspective of professional translators, subjective and qualitative evaluations of the generated translations were conducted. - **Similarity Calculation**: OpenAI's word embedding API was used to calculate the cosine similarity between the generated translations and the source text to quantify the accuracy of the translations. ### Experimental Results - **Marketing Text Translation**: When translating cosmetic advertisements, by explicitly stating that the translation purpose is for marketing and the target audience is women in their 20s, the generated translations were more natural and met marketing requirements. - **Culturally Dependent Expressions**: When translating the Japanese proverb "We are friends who eat from the same pot," by explicitly stating that the translation purpose is to make it understandable to English readers unfamiliar with Japanese culture, the generated translations were more natural and appropriate. - **Dynamic Equivalence**: When translating sentences involving specific cultural backgrounds, by explicitly stating the dynamic equivalence strategy, the generated translations were better able to convey the meaning of the original text. ### Conclusion The research results indicate that by including translation purposes and target audience information in the prompts, the quality of translations generated by ChatGPT can be significantly improved, making them more in line with professional translation requirements. This method shows clear advantages, especially when dealing with marketing documents and culturally dependent expressions. It provides new ideas and methods for applying large language models to professional translation work.