Example-Based Machine Translation on Massively Parallel Processors
Proceedings of the Thirteenth International Joint Conference on Artificial Intelligence. Natural Language. Pages 1283-1288.
© 1993 International Joint Conferences on Artificial Intelligence
Abstract
This paper describes an Example-Based Machine Translation (EBMT) system implemented on massively parallel computers. EBMT is a novel approach to machine translation that directly uses translation examples to carry out translation tasks . The authors have shown that EBMT attains substantially higher accuracy than traditional machine translation systems. However , EBMT is so computationally demanding that the system would run very slowly on sequential machines and even on a loosely-coupled multi-processor iPSC/2 . We have implemented EBMT on an IXM2 massively parallel associative memory processor and a CM-2 connection machine . Experimental results demonstrate that EBMT on the IXM2 exhibits the best performance and attains aresponse speed that will suffice for real-time tasks such as interpreting telephony.
- [Brown et al., 1988] Brown, P ., Cocke, J ., Della Pietra, S., Della Pietra, V, Jelinek, F ., Mercer, R . and Roossin, P.: "A Statistical Approach to Language Translation," Proc. of Coling '88, pp.71-76, (1988) .
- Furuse and Iida, 1992) Furuse, 0. and Iida, H.: "Coop- eration Between Transfer and Analysis in Example- Based Framework," Proc. of Coling '92, pp .645-651, (1992).
- [Higuchi et al., 1991] Higuchi, T., Kitano, H., Handa, K., Furuya, T., Takahashi, N. and Kokubu, A.: "IXM2: A Parallel Associative Processor for Knowl- edge Processing," Proc. of AAAI-91, Anaheim(1991).
- [Intel, 1989] Intel Scientific Computers, iPSC/2 User 's Guide, 1989.
- [Kitano, 1991] Kitano, H.: "<I>DM-Dialog : An Experi- mental Speech-to-Speech Dialog Translation System," IEEE Computer, June, pp .36-50, (1991) .
- [Kitano and Higuchi, 1991a] Kitano, H. and Higuchi, T.: "Massively Parallel Memory-Based Parsing," Proc. of IJCAI-91, pp.918-924, (1991). IJCAI
- [Kitano and Higuchi, 1991b] Kitano, H. and Higuchi, T.: "High Performance Memory-Based Translation on IXM2 Massively Parallel Associative Memory Proces- sor," Proc. of AAAI-91, pp.149-154, (1991).
- [Kitano et al., 1991] Kitano, H., Hendler, J ., Moldovan , D., Higuchi, T . and Waltz, D.: "Massively Parallel Arrificial Intelligence," Proc. of IJCAI-91, pp .557-562, (1991) .
- [Nagao, 1984] Nagao, M.: "A Framework of a Mechan- ical Translation between Japanese and English by Analogy Principle," in Artificial and Human Intelli- gence, eds. A. Elithorn and R. Banerji, North-Holland, pp.173-180, (1984).
- Sato, S.: "Example-Based Machine Trans- lation," Doctorial Thesis, Kyoto University, (1991).
- [Sato and Nagao, 1990] Sato, S. and Nagao M.: "To- ward Memory-Based Translation," Proc. of Coling-90, Helsinki, pp .247-252, (1990).
- [Stanfill and Waltz, 1986] Stanfill, C. and Waltz, D.: "Toward Memory-Based Reasoning," CACM, Vol. 29, No. 12, pp.1213-1228, (Dec. 1986).
- [Sumita and lida, 1991] Sumita, E . and Iida, H.: "EX- PERIMENTS AND PROSPECTS OF EXAMPLE- BASED MACHINE TRANSLATION," Proc. of 29th ACL, pp.185-192, (June 1991).
- [Sumita and Iida, 1992] Sumita, E. and Iida, H.: "Example-Based NLP Techniques -A Case Study of Machine Translation-," Statistically-Based NLP Tech- niques Workshop of the AAAI-92, pp.90-97, (1992).
- [Thinking Machines Corp., 1989] Thinking Machines Corp.: "Model CM-2 Technical Summary," Technical Report TR89-1, (1989).
- [Waltz, 1990] Waltz, D. : "Massively Parallel AI," Proc. of AAAI-90, (1990) .
References were extracted automatically from the PDF and may contain errors.
Full text extracted automatically from the PDF; figures, tables and equations may differ. The PDF is the version of record.
1 Introduction
This paper describes an Example-Based Machine Trans lation (EBMT) system implemented on massively paral lel computers. EBMT is a novel approach to machine translation that directly uses translation examples to carry out translation tasks . The authors have shown that EBMT attains substantially higher accuracy than tra ditional machine translation systems [Sumita and Iida, 1991] . However, EBMT is so computationally demand ing that the system would run very slowly on sequential machines and even on a loosely-coupled multi-processor iPSC/2 (Intel, 1989].
The issue of processing speed is particularly critical for the success of the speech-to-speech translation system that we are striving to complete. In order to overcome the problem of computational cost, we have implemented EBMT on an IXM2 massively parallel associative mem ory processor [Higuchi et al., 1991] and a CM-2 cmmec tion machine [Thinking Machines Corp., 1989] . Experi-
Hiroaki KITANO
Carnegie Mellon University Pittsburgh, PA 15213 U.S.A. hiroaki @cs .cmu.ed u
mental results demonstrate that EBMT on the IXM2 ex hibits the best performance and attains a response speed that will suffice for real-time tasks such as interpreting telephony.
The research reported in this paper is a reflection of two major research programs that are gaining increasing interest : the empirical approach to machine translation , and massively parallel artificial intelligence.
1.1 The Empirical Approach to Machine Translation
Since traditional MT systems rely upon the extensive use of rules , it is called the rational approach. However, tranditional MT systems face the following difficulties: ( 1) improvement in translation quality is sluggish and (2) there is an intolerable increase in processing time, as system size increases.
A group of novel models has been proposed in recent years that make use of the increasing availability of a large-scale corpus and bulk processing power. The ap proach is called the empirical approach because it relies upon empirical knowledge such as the corpus and past translation pairs. There are several avenues in the em pirical approach, however, including the example-based, or memory-based approach, the approach that we ad vocate, the statistical approach[Brown et al. , 1988], and others. Some of the early works that depend solely upon the use of statistics , however, have begun to reveal their limitations such as the inability to assign an accurate probability for low frequency words.
EBMT has been proposed to overcome the difficulties that arise in traditional models and pure statistical mod els. The authors have shown that EBMT attains signif icantly higher accuracy over the traditional approach in the target word selection of function words, which is one of the most difficult tasks in translation by traditional MT (Sumita and Iida, 1991] . EBMT, however, is a com putationally demanding approach because it requires re trieval of similar examples from a vast example database. Our initial implementation on a SparcStation-2 sequen tial workstation did not suffice for real-time translation. The iPSC/2, loosely-coupled multi-processor was somewhat better, but it did not achieve the level of response time required for speech-to-speech translation systems.
1.2 Massively Parallel Artificial Intelligence
Massively parallel artificial intelligence [Waltz, 1990; Kitano et al., 1991] is a novel subfield of AI made pos sible by the emergence of massively parallel computers. One of the mainstay approaches of massively parallel ar tificial intelligence is Memory-Based Reasoning (MBR) [Stanfill and Waltz, 1986]. MBR solves problems by as signing bulk data or rules directly to Processing Ele ments (PEs) of massively parallel machines, and carry out a data-parallel, similarity-based search to find the best match to a given problem. The virtue of this ap proach is that it exploits the inherent parallelism of the problems. Natural language processing is one of the do mains suitable for massively parallel AI because many linguistic phenomena are individual in nature and can not be handled by a small number of abstract rules.
The first research that advocated massively paral lel natural language processing was massively paral lel memory-based parsing [Kitano and Higuchi, 1991a; Kitano and Higuchi, 199lb]. The approach considers parsing to be pattern matching between an input sen tence and a whole set of possible sequences of part-of speech symbols. The specific implementation strategy involves parallel marker-passing which makes best use of the parallelism of massively parallel machines. Their experiment showed that parsing can be completed in a few milliseconds per sentence.
The research described in this paper provides indepen dent evidence to support the validity of the approach for natural language processing. Specifically, this paper handles target word selection using EBMT. Target word selection is essential, and one of the hardest problems in machine translation . The central mechanism of word selection in EBMT is not the exact match but the best match based on semantic distance (See section 2.2). The best match improves the coverage of system knowledge.
The next section briefly introduces EBMT. Then, the problem of computational cost on a serial machine and on a multi-processor is described, followed by a descrip tion of the IXM2 massively parallel processor, on which we have implemented EBMT, and the performance re sults.
2 Example-Based Machine Translation
2.1 Rationale
In the early 1980s, Nagao proposed a novel model of machne translation called "Translation by Analogy," in order to conquer the bottleneck of traditional machine translation [Nagao, 1984]. Nagao assumes that a human being translates based on past translation experience. In other words, translations are created by mimicking similar translation examples. Since the end of the 1980s, many EBMT projects have begun to flourish in order to realize Nagao's model [Sato, 1991; Sato and Nagao, 1990; Sumita and lida, 1991; Furuse and Iida, 1992; Kitano, 1991].
In EBMT, (1) a database that consists of translation examples is prepared; (2) examples whose source part is most similar to the input phrase or sentence are re trieved from the example database; (3) the translation is obtained based on retrieved examples.
2.2 Semantic Distance
The above step (2) is to determine the. set of examples whose semantic distance from the input is minimum. In other words, EBMT is the full retrieval of the most sim ilar examples from the example array.
Suppose Input I and Example E are composed of 11 words. Our semantic distance measure[Sumita and Iida, 1991] is the summation of the distance, d(Ik. Ek) at the k-th word, multiplied by the weight of the k-th word , Wk .
The distance, d( h, Ek) is determined based on a the saurus. Each word correponds to its concept in the the saurus. The distance between words is reduced to the distance between concepts. The distance between con cepts is determined according to their positions in the the thesaurus hierarchy. The distance varies from 0 to 1. When the thesaurus is (n +I)-layered, the distance, (k/n) is given to the classes in the k-th layer from the bottom (0:::; k :::; n). The weight, wk, is the degree to which the word influences the selection of the transla tion.
2.3 Advantages and Extensions
The authors [Sumita and Iida, 1991; Sumita and Iida, 1992] have demonstrated that EBMT's accuracy is su perior to that of traditional MT in target word selection of function words (e.g., Japanese particles and English prepositions), moreover, EBMT has many advantages that traditional MT does not have.
The best match based on semantic distance is use ful not only for target word selection but also for disambiguation in analysis and generation. Recently, TDMT[Furuse and Iida, 1992], a medium-sized 1 spoken language translation system fully utilizing the EBMT mechanism, has been implemented and is now being tested from various points of view. By now, promising prospects for translating not only phrases but also sen tences and for disambiguating the syntactic structure, have been demonstrated.
3 The Problem of EBMT: Computational Cost
As mentioned in section 2.2, EBMT is basically full re trieval of similar examples from a large-scale example database. The processing time (T) is proportional to the number of examples (N) - T = t x N, where t is the time to calculate the semantic distance between one example and the input.
In the actual system, EBMT is embedded as a sub routine call, and is called many times during the trans lation of one sentence. Figure 3.1 shows the statistics on the number of EBMT calls required to translate one sentence. This is data from an experiment that trans lates 225 sentences by TDMT prototype, which makes the most use of EBMT to translate not only phrases but also sentences, as mentioned in section 2.3.
1 The vocabulary size is about 1,500.

Figure 3.1 clearly illustrates that the number of EBMT calls rises according to sentence length. In the test corpus, the average sentence length is about 9.4 words and the average number of EBMT calls is about 9.5.
We have initially implemented EBMT on a SparcStation-2. The SparcStation-2 took 570 millisec onds for one EBMT call with 1,000 examples . Since one sentence requires an average of 9.5 EBMT calls, the sequential machine takes over several seconds just for EBMT calls. Moreover, this computing time increases in direct proportion to the number of examples . This performance is simply unacceptable for spoken language translation systems.
One of the obvious ways to overcome the problem of computing cost is the use of parallel computers . We have implemented EBMT on an iPSC/2 loosely-coupled multi-processor with 16 PEs . Examples are stored in local memory on each PE, and retrieval results are col lected by message passing.
Figure 3.2 shows the response time with regards to the number of examples and the number of PEs. With 4,000 examples, the iPSC/2 (16PEs) took about 2 seconds for one EBMT call . Even with 1,000 examples, it took 570 milliseconds. Given the fact that on average 9.5 EBMT calls are made per sentence, the iPSC/2 requires several seconds for EBMT calls alone. Reconfiguring the iPSC/2 for 32, 64, or even 256 PEs would not improve the situ ation due to the significant communication overhead. In the iPSC/2, the latency for interprocessor communica tion is significant. In our application, in the 16-PE con figuration, communication to retrieve examples took up 110 milliseconds out of 570 milliseconds. Since this com munication overhead (Cp) increases as number of PEs increase ( Cp = c x log2p: c is constant, p is number of PEs), a larger number of PEs results in a larger communiation overhead . Based on our experiments, a 256-PE iPSC/2 would require about 220 millisecond~ fo! com munication whereas calculation of the semantic distance is completed in about 30 milliseconds (for 1,000 exam ples) . Total computing time would be 250 milliseconds , which results in about 2.5 seconds for EBMT calls alone, which is far from satisfactory. Our conclusion is that the iPSC/2 loosely-coupled multi-processor does not suffice for our purpose.
Therefore, we decided to move our computing plat form to massively parallel machines.

4 IXM2 Massively Parallel Associative Memory Processor
We have implemented EBMT on a massively parallel associative memory processor, the IXM2.
The IXM2 is the first massively parallel associa tive processor that clearly demonstrates the computing power of a large Associative Memory (AM) . AM not only has a storage operation but also logical operations such as retrieving by content. Parallel search and parallel write operation are particularly important .
The IXM2 attains 256K-fold parallelism by using the NTT AM chip . Electrotechnical Laboratory designed the IXM2 for AI applications, particularly for semantic network processing. It was shown [Higuchi et al., 1991) that the IXM2 outperforms most other high performance machines.
The IXM2 consists of 64 processors, called associative processors, and 9 communication processors. The IX.M2 is a co-processor under the control of a SparcStat10n. Each associative processor has an AM of 4K words of 40 bits, plus an IMS T800 Transputer(17.5 MHz). 2
The decision to use AM chips driven by transputers, 32-bit CPUs, rather than thousands of 1-bit CPUs, is the major reason for the superior performance, processor efficiency, and cost performance of the IXM2 over other machines.
2 The associative processor used in the experiment re ported in this paper is the new version, with a T801 Trans puter(25MHz) and faster SRAM.
From the MT developers' point of view, we can build a highly scalable 3 system that can improve the translation quality without degrading translation speed simply by adding examples to the AM chip.
5 Implementation
In the experiments, we translate Japanese noun phrases of the form "A Q) B" into English (A and Bare nouns. " Q)" is an adnominal particle.) They are translated into various English noun phrases of the form such as "B of A " "B in A " "B for A " "B at A" and so on (A and , , , B are English translations of A and B.) They are repre sentative because the examples are composed of three 4 variables (words) and they are difficult in traditional MT but EBMT can handle them well . The "A Q) B" exam ples were collected from the ATR corpus which consists of Japanese sentences and their English translations con cerning a conference registration task.
5.1 Data Structure
5.1.1 Thesaurus
Each word has a three-digit decimal code of the con cept to which the word corresponds . This clearly shows the positions of concepts in the thesaurus hierarchy.
5.1.2 Inputs and Examples
The data structure 5 of the noun phrase, "*:m Q) ~Ml " [conference in KYOTO] is illustrated in Figure 5.1. "A Q) B'' consists of the words of A and B (A W, B W) , the code for A and B (AC,BC'), and the word "(})" (N0) . 6 The example database is stored in an array of structures in this form. The data are coded as an appropriate bit pattern on the AM of the IXM2.

5.2 Algorithm
5.2.1 Distance Calculation
(a-1) WORD Part The distance is 0 or 1 depending on whether or not they match.
3 In EBMT, translation quality is higher as the number of examples increases [Sumita and lida, 1991].
4 The typical number of variables in examples is two or three
5 Here, for simplicity, the variables for marking in the AM, the variable, distance iu the transputer's RAM, and the rep resentation of polysemy(plural codes) are left out .
6 Adnominal Particles do not have codes.
(a-2) CODE Part The distance explained in sec tion 2.2 is directly calculated as shown in the ta ble below without traversing the thesaurus hierarchy. Suppose the input code and example code are C I = CI1CI2Cia, CE = CE1CE2CEa.
| Condition | t;xample | Distance |
|---|---|---|
| C:hC:l2C:la - Gl!.;lc:t-·2c:.t;a | 347' 347 | 0 |
| ChCh = CE1CE2,Cia f:. CEa | 347 I 346 | 1/3 |
| CI1 = CE1, CI2 f:. CE2 | 347' 337 | 2/3 |
| C/1 :f:. CE1 | 347' 247 | I |
5.2.2 Retrieval
(1) (WORD Exact Match]
Examples whose AW, NO, BW match the input are marked. If there is a match, then step := 1 7 , go to ( 4).
(2) (CODE Exact Match]
Examples whose AC, NO, BC match the input are marked. If there is a match, then step := 2, go to (4) .
(3) (CODE Partial Match]
(3-1) Examples whose NO does not match the input are marked. The weight of NO is added to the variable distance of the examples . .
(3-2) For each of AC and BC, the distance between codes is calculated according to (a-2), and distance x weight is added to the variable, distance of examples. step := 3
( 4) [Example Collection]
If step = 1 or 2, all marked examples are collected and the examples and the distance 0 are returned.
If step = 3, first, the minimum-distance is attained. Second, all the minimum-distance examples are collected and the examples and the minimum-distance are re turned .
6 Experimental Results
Experiments have been carried out using 1,000 exam ples. The processing time is 270 milliseconds 8 on the SparcStation-2 and 21 milliseconds on the IXM2 (See Figure 6.1).
The IXM2 attains a speed almost 13 times greater than that of the SparcStation-2. When a fully-equipped IXM2 (64 associative processors) is used, it would be able to load 64,000 examples. For example set of this size, the IXM2 would be able to attain a speed 13 x 64 = 832 times greater than that of the SparcStation-2.
The superior performance of the IXM2 can be at tributed to the fact that the IXM2 carried out match processes (1), (2), and (3) using parollel search and par allel write for the AM. Distance calculations in step (3) are triggered in a constant time and executed in a linear time by the transputer . The example collection process (4) is executed linearly(See Figure 6.2).
7 The variable step indicates the matched step.
8 The performance figures hereafter are the average of above-mentioned three cases (1), (2) and (3). Thus, they are about half of the performance figures presented previously.
1


On the other hand, however, oi1e other massively par allel machine, the CM-2, took 240 milliseconds. Al though CM-2 conducts match processes (1), (2) and (3) in a constant time, the example collection process ( 4) is executed linearly by the host machine, a SparcStation2. Unfortunately, the communication between the CM-2 and the SparcStation-2 is done through the VME bus, which is very slow. Thus, the advantage of the data parallel search was completely lost in the communication bottleneck of data collection by the host(See Figure 6.3).
7 Discussions
One of the interesting phenomena observed in this ex periment is that of the trade-off between the number of processors and the communication overhead . The iPSC/2 and CM-2 largely depend upon interprocessor communication whereas the IXM2 minimizes the traffic by handing retrieval at each local transputer. The IXM2 still attains massive parallelism by using AM. This dif ference in design is decisive in our applicaiton.

Let us assume that we have N examples equally dis tributed on p PEs. This is a typical memory-processor relationship in array processors, such as the CM-2, and multi-processors, such as the iPSC/2. The processing time of each PE, which stores equally divided N fp ex amples, is t x N fp where t is the time required to cal culate the semantic distance between one example and the input. The total processing time (Tp) is the sum oft x Nfp and communication time (Cp), which is the time required for collecting the examples. The following equation gives the total processing time:
The communication latency Cp is the major nega tive factor in many parallel processing applications. In the iPSC/2 with 16 PEs, EBMT results in Cp = 110 milliseconds using a standard communication algorithm. The Cp of a standard communication algorithm is as follows:
Therefore, if we keep increasing the number of PEs, the computing time at each PE can be minimized, but the communication overhead would be dominant . In the iPSC/2, 110 milliseconds are spent for communication between 16PEs, and the communication overhead is ex pected to increase as the number of PEs increases. This creates a trade-off between improved computing time at each PE and communication overhead. This implies that there is a maximum performance barrior that iPSC/2type architecture cannot overcome.
From discussions up to this point, we can derive the speedup rate (S'):
By measuring t and c, which are, respectively, roughly 7.4 milliseconds and 28 milliseconds for the iPSC/2, we can determine the performance barrior. ~ = 0 is the condition for finding the trade-off point.
As for the CM-2, the problem of the communication overhead is far more serious. The CM-2 took only 9 milliseconds to calculate each semantic distance. This is a quick process due to the data-parallel nature of the EBMT. This computing time is constant. up to 64K examples because one processor has only one example to calculate. Despite this high performance at distance computing, the CM-2's overall response time is 240 mil liseconds, indicating the seriousness of the communica~ tion overhead (See Figure 6.3) .
The IXM2 architecture was superior over that of other machines because of the high performance example search by AM and the minimum communication over head due to the use of transputers for example collection. Actually, the interprocessor communication required for the EBMT is the transmission of the chosen examples to the host and is negligible. Experimental data indicates that the IXM2 took 14 milliseconds for matching and 7 milliseconds for collection (See Figure 6.2) .
8 Conclusion
The authors have demonstrated that EBMT on the mas sively parallel processor IXM2 attains a sufficiently fast response time to implement real-time speech-to-speech translation systems . While accuracy and incremental fine-tuning capability has been demonstrated in several studies reported so far, the problem of computing cost has been a major problem left unresolved.
We have implemented the EBMT system using sub stantial linguistic data, and on several types of machines such as the SparcStation-2, iPSC/2, CM-2, and IXM2.
Experimental results demonstrated that the IXM2 is the best computing platform for EBMT and justified our choice. The performance and the scaling capability of the IXM2 is desirable since a very large set. of examples may be used in the near future to attain very high quality translation. Other machines such as the iPSC/2 and the CM-2 suffer from the trade-off between processor number and communication overhead.
From our experience with implementation in this project, we began to expect that massively parallel ar chitecture is suitable not only for memory-based parsing and EBMT, but also for other natural language process ing, such as n-gram based morphological analysis, which can be regarded as problems of retrieval from a large database. This would be another challenging topic to pursue.
In summary, we have confirmed the effectiveness of massively parallel artificial intelligence for EBMT. We expect our report to provide strong evidence to support the validity of massively parallel AI. The marriage of two new research fields - the empirical approach to machine translation and massively parallel artificial intelligence - is so far happy and successful.
Acknowledgements
Kitano is supported, in part, by the National Science Foundation's MIP-9009111 and the Pittsburgh Super computer Center's IRI-910002P.
@inproceedings{ijcai1993p177,
title = {Example-Based Machine Translation on Massively Parallel Processors},
author = {Sumita, Eiichiro and Oi, Kozo and Furuse, Osamu and Iida, Hitoshi and Higuchi, Tetsuya and Takahashi, Naoto and Kitano, Hiroaki},
booktitle = {Proceedings of the Thirteenth International Joint Conference on
Artificial Intelligence, {IJCAI-93}},
publisher = {International Joint Conferences on Artificial Intelligence},
editor = {Ruzena Bajcsy},
pages = {1283--1288},
year = {1993},
note = {Natural Language},
url = {https://ijcai.org/proceedings/1993/177},
}
TY - CPAPER TI - Example-Based Machine Translation on Massively Parallel Processors AU - Sumita, Eiichiro AU - Oi, Kozo AU - Furuse, Osamu AU - Iida, Hitoshi AU - Higuchi, Tetsuya AU - Takahashi, Naoto AU - Kitano, Hiroaki T2 - Proceedings of the Thirteenth International Joint Conference on Artificial Intelligence, IJCAI-93 PB - International Joint Conferences on Artificial Intelligence PY - 1993 SP - 1283 EP - 1288 UR - https://ijcai.org/proceedings/1993/177 ER -Copied
Machine-readable versions of this paper, for tools and AI agents: