中文

Students

Might this not also be a kind of machine “language sense”?

LLM translatedThis English version was produced by a large language model and may contain errors. Read the Chinese original

Preface

My final report for this course consists roughly of the following parts:

  1. The written report (this file)
  2. PPT file (a brief illustrated overview of the workflow)
  3. Related files produced in the course of completing the final report

The most detailed explanation is this report, which centres on what I gained from the course and my reflections on it, and mainly presents my analysis after evaluating with BLEU. The PPT mainly uses text and images to show some of the practical steps. The third item consists of the various files produced along the way. The structure is hardly a rigorous one, but it still needs to be explained in advance to make things clearer.

Changes in Perception and the Acquisition of Tool Skills

Drawing on my recollection of the course, I have summarised several main points of comparison in the table below:

Table 1 Comparison of Perceptions Before and After the Course

Item Before the course After the course
Corpus acquisition Copying by hand Able to use AI-generated code for batch crawling
Data cleaning Manual tidying Batch cleaning with Python
AI prompts Simple wording, barely satisfactory Learned to make precise requests
Understanding of corpora Had heard of them but was unfamiliar Understand the basic models
Machine interpreting One-click translation The chained ASR-MT-TTS pipeline

In general, this can be summed up as becoming better at using AI and learning to use Python to handle certain instructions. My first encounter with this approach came in the very first task of the course, corpus acquisition. Later, when my own corpus had noise that needed cleaning, I likewise turned directly to Python. The prompt I gave the AI was roughly as follows:

“I now need to process this document. Without changing the content of any column or sheet, first add new cells and rows across all four columns correspondingly according to the line-break characters, then clean all spaces and invisible characters, retaining the original text. Please generate a workable Python script for me.”

Before this prompt, I had also given the document’s name and path so that the generated code would be more accurate—“describing the prompt in detail” was also an important thing I learned in this course. AI can be said to be rule-based, and many things in the world follow patterns, so when people make use of those patterns and condense them into more orderly instructions, the AI can work better.

For example, when crawling abstracts from various journals, I would usually examine the web pages and the URLs of individual papers and then identify useful patterns, including but not limited to the logic of how papers are viewed on the site, how to obtain the abstract, and the URL structure of each paper. Once enough information is provided, generating instructions becomes simple; if more specific information is required, I only need to ask and then obtain and supply it myself. For example, when crawling the journal Battery Bimonthly, I was asked to look up in developer mode the code that triggers “next page” so that the script could turn pages in a virtual browser; and to obtain the code for the keyword search mechanism of the website of the journal Journal of Electrochemistry, I also found, with the AI’s help, the “advancedSearchResult.do” request for retrieving the relevant information. Of course, it is also possible to simply hand the whole task over to the AI. But only by obtaining information and carrying out operations layer by layer in this way to reach the goal can one learn “how to do it,” have some idea of where to start the next time a similar task comes up, and gain a firm grasp of one’s own workflow; otherwise, the AI simply operates opaquely, as a black box, producing results with one click, and it is hard to say that one has “learned anything” in the process.

Speaking of the “black box,” I cannot avoid mentioning how my view of machine interpreting has changed. In fact, I had thought about it before when using some speech translation tools, but my thinking then was rather shallow: I assumed that machine interpreting was simply speech recognition followed by direct translation. Although this may sound somewhat related to ASR-MT-TTS, my understanding of the way it works was in fact completely different. Even though I had thought about the process of machine interpreting before, I was more inclined to imagine it as “integrated” and “automated,” a cognitive structure resembling “input–black box–output.” When the “black box” was taken apart and turned into the chained ASR-MT-TTS structure, I had a sudden sense of enlightenment—perhaps many things whose mechanisms are hard to articulate are like this, simply not yet understood, their mystery not yet unveiled. A machine has no hearing, but if sound is converted into digital signals, features are extracted, and then matched to produce output, the machine has in effect “heard.” The same is true of the evolution of translation methods: rule-based, example-based, statistical, and now neural machine translation are in essence all a process of moving from the surface to the interior, advancing step by step, recognising rules and putting them to use. This is probably one of the most important insights I gained from taking this course.

Rule-based tasks seem to be something AI handles fairly comfortably, probably because the training data contains so many set patterns that it can imitate them better. There is little need to worry about errors here, as with writing code. If I were to teach myself to write code, I would probably make mistakes constantly, whereas AI makes far fewer. Thanks to this, using Python also turned out to be somewhat simpler than I had expected. What follows is the practical part, in which I used Python to calculate BLEU scores.

II. Personal Practice: Calculating BLEU Scores

In class I also came across the concept of the BLEU score. While reading papers, I happened to see “A Study on the Quality Assessment of Generative AI in Japanese-to-Chinese Translation: Taking the Large Language Model GPT-4o as an Example” (Wang Yudi, 2025), and encountered it again. In that paper, the author uses BLEU scores to measure the accuracy of various types of text, and states that, owing to its simplicity, efficiency and broad applicability, BLEU has become one of the standard metrics for machine translation evaluation. This reminded me of what the teacher mentioned at the start of the course, when we were asked to build small corpora of our own: automatic evaluation of translation quality, with or without a reference. This was originally one of the teaching objectives, but unfortunately there was not enough time to carry it out. Out of some interest in BLEU, I therefore tried on my own to calculate the BLEU scores of LLM translations and machine translations. A simple demonstration of the procedure is given in the PPT. It can be summed up as asking AI questions and trying things over and over, as usual, so I will not go into detail here. In this article, I mainly want to offer some analysis of the results obtained. The results are as follows:

Table 2 Results on Three Metrics

Text type LLM BLEU MT BLEU LLM chrF MT chrF LLM TER MT TER
Industry development 28.62 27.17 28.12 25.39 96.55 100
Medicine 28.29 25.28 26.61 23.18 100 100
Literary essays 15.89 30.39 17.72 28.44 100 100
Physics 37.89 31.77 33.96 27.92 100 100

On the AI’s suggestion, I used not only BLEU but also two further metrics. BLEU can be understood as purely literal equivalence based on n-grams; chrF builds on this by adding some morphosyntactic considerations; and TER refers to the error rate relative to the reference translation. For the first two metrics, higher is better, while for TER, lower is better. LLM translation would seem naturally bound to outperform machine translation, and most of the results support this conclusion, but the literary essay category alone is an exception: surprisingly, the machine translation scored higher.

This seems a very strange result. But we can analyse it from two angles: first, the limitations of the BLEU metric itself, and second, the influence of the style of the reference translation. As we know, the core logic of BLEU is the n-gram overlap between a translation and the reference translation, so words that are synonymous but differ in form can hardly earn any score. Literary translation is usually also the most creative, and in the course of translating, an LLM is quite likely to add or omit material for the sake of fluent prose, producing formal discrepancies from the reference translation. At the same time, given the creativity and subjectivity of literary translation, there can be many different forms of translation in the first place, and the so-called “reference translation” is merely one that happens to have been chosen as the “standard.” Therefore, even though the machine translation may read stiffly, it scores higher precisely because it happens to hit certain key words. I have excerpted one example from it:

Reference translation: “自古以来我国的婚礼都不为爱而为社会。因为奉行儒教之国要求人不可无子孙。倘若婚姻是由爱而起,哪里会有公婆为难、小姑刁难,以及来自各方关系、来自社会的重重压力?然而,人们是为履行社会义务不得已结婚;公婆依旧是公婆,周遭众人依旧会逼迫她。” (116 characters)

Machine translation: “自古以来,我国的婚礼并非出于爱情,而是为了社会。这是因为奉行儒家思想的国家规定,必须有子孙后代。倘若婚姻是源于爱情的,那么公婆又算什么,小姑又算什么,所有相关者又算什么,社会又算什么。然而,为了对社会的义务而不得不结婚,公婆依然是公婆,相关人员也都依然使她陷入困境。” (133 characters)

LLM translation: “自古以来,我国的婚礼并非出于爱情而缔结,而是为了维护社会秩序。作为一个崇尚儒学的国家,人们认为婚姻的成立是为了繁衍后代。如果婚姻是出于爱情而产生的,那么就会遇到各种问题:岳父母、小姑子等等,所有相关的人际关系都会带来麻烦。而实际上,结婚是为了履行对社会的责任。即便如此,岳父母终究还是岳父母,其他相关的人也依然会为难新人。” (161 characters)

We can see that the style of the reference translation is in fact concise and succinct, and it also has the fewest characters, whereas the LLM translation leans toward free translation and is the longest of the set, about 38.79% longer than the reference translation. This preference for explanatory renderings runs counter to the style of the reference translation, while the conservative literal style of the machine translation happens to overlap with it. Although it reads less smoothly and is less easy to understand than the LLM version, it still received a relatively higher BLEU score. This is especially clear in the handling of the key term “奉儒”. As we can see, both the reference translation and the machine translation use the more literal “to practise Confucianism / the Confucian tradition”, whereas the LLM paraphrases it as “to esteem Confucian learning”. “Esteem” may sound easier to understand and more in line with everyday usage, but because it does not correspond to the reference translation’s “practise”, it earns no points.

Having got this far, I also learned of other evaluation metrics: METEOR, BERTScore and COMET. The last of these was also mentioned by the instructor in class. However, since the focus here is mainly on the analysis of BLEU, I will not go into them further. Suffice it to say that considerable progress has already been made in using machines to quantify natural language better, and it will continue to develop.

Conclusion

On the whole, I believe that machines are tools, tools that can help us better deconstruct the patterns underlying natural language. They can quantify sentences as the probabilities of character combinations in different contexts. Although this cannot yet be called genuine understanding of semantics, it can approach the effect of understanding semantics without limit. Is that not, after all, a kind of “language sense” for machines?

Finally, I would also like to express my gratitude to Dr Li. This course opened up some new horizons for me and allowed me to think about “translation” from other dimensions. Beyond the content of the classes themselves, the course gave me the opportunity to learn about neural machine translation and its related mechanisms, such as the Transformer architecture, autoregression and self-attention. My understanding is still shallow, but it has indeed resolved some of my questions about how large language models work, and I now seem, comparatively speaking, to understand the logic of their operation better. Another area was brain science technology. My first encounter with it was at the lecture before the course began. At that time I was still rather confused and only felt that it was remarkable that translation processes could be studied in this way. I never expected that I would later have the chance to get close to it and even try it myself, and I would like to thank Dr Li once again for this opportunity. When Professor Xu Duoyi spoke about related views in the translation theory course, he said that translation studies always needs to draw on other disciplines and is more theoretical, and that with these technologies translation studies is now entering a more scientific stage. I deeply agree. Using data to deconstruct, and reason to understand, cognitive processes once thought to be “intuitive” and elusive, and then seeking out the patterns within them and putting those to use, is something that holds, I think, not only in the field of natural language but in many other fields as well. As humans develop in this way, machines advance with them; and as machines advance in this way, humans can in turn research further. It can be said that the two promote each other and complement each other. For this reason, we need all the more to use these tools actively and proactively; neither rejecting them wholesale out of ignorance nor handing over control to them entirely is appropriate at present.

In addition, I tried to use Python to reproduce and draw the avatar of this course’s group chat, but the result was not very satisfactory. The specific process is also presented in the PPT. It seems I am still a long way from being able to operate machines proficiently to handle all kinds of matters for me. In any case, learning is a lifelong undertaking, and I look forward to what new knowledge I will encounter in the future, and to how what I have learned so far will come in useful.