杏吧原创

Cracking the code of machine translation

Treating foreign languages like secret codes could unlock a new level of universal understanding
What if there's no Rosetta stone?
What if there鈥檚 no Rosetta stone?
(Image: John Brecher/Corbis)

AUTOMATIC translation services seem like magic. Input some foreign text and you instantly get a decent English version in return 鈥 unless your text happens to be in Farsi, Pashto or any number of other widely used languages that computers can鈥檛 currently translate.

That鈥檚 because machine translation techniques rely on analysing the statistical properties of the same text written in two different languages 鈥 a Spanish-English dictionary, for example. 鈥淵ou have parallel data for common language pairs like French-English, but for rare or uncommon language pairs it鈥檚 very difficult to find bilingual sources,鈥 explains , a computer scientist at the University of Southern California in Marina Del Rey, who is trying a new approach to the problem.

Ravi and his colleague treat translation as a cryptographic problem, as if the foreign text were simply English written in an advanced cipher. Their software cracks the code by estimating the probability that a foreign word matches an English word based on the number of times it appears in the text 鈥 a frequently occurring word is more likely to mean 鈥渢he鈥 or 鈥渁鈥 than 鈥渁ntidisestablishmentarianism鈥.

To ensure the translation makes sense, the pair use another piece of software to evaluate the quality of English that comes out. This in turn tweaks the probabilities used in the translation software. They tested the system on a collection of short phrases such as 鈥渓ast year鈥 and 鈥渢he fourth quarter鈥, attempting to translate the Spanish equivalents back into English, along with a number of movie subtitles that existed in both languages.

The resulting translations 鈥 known, confusingly, as 鈥渕onolingual鈥 translations 鈥 rated highly compared with standard computer translation techniques. But it remains to be seen whether the models can be scaled up from such short phrases to deal with longer, more complex texts.

of Johns Hopkins University in Baltimore, Maryland, says Ravi and Knight鈥檚 method is 鈥渆xtremely promising鈥 but adds that it hasn鈥檛 proved itself yet. His team is also working on translation software that eschews parallel data. Their version crawls online texts and compares disparate texts from different languages 鈥 say, a collection of Spanish blog posts and news stories in English. For example, the word 鈥渢sunami鈥 spiked in 2004 and 2011 following the Indian Ocean and Japanese events, as did the equivalent word in Spanish, maremoto, suggesting that they mean the same thing.

Ravi and Knight are also exploring how monolingual methods could help us crack long-lost languages or unknown ciphers (see 鈥淢achine versus the Zodiac killer鈥). But what about the ultimate unknown tongue 鈥 could their methods translate an alien language? 鈥淭otally,鈥 says Ravi. 鈥淵ou could also think of deciphering dolphin-speak.鈥

Monolingual translation might also help soldiers or aid workers react quickly in countries with unfamiliar languages; responding to a bombing in Indonesia or an earthquake in Haiti, for instance.

Don鈥檛 expect a Google Translate upgrade just yet, though. 鈥淭hey鈥檙e trying to do something very ambitious,鈥 says , a machine translation researcher at the University of Oxford. 鈥淚t鈥檚 not something you鈥檙e going to see popping up in commercial systems any time soon.鈥

Machine versus the Zodiac killer

Coded messages apparently sent by a San Francisco serial killer in the late 1960s have baffled cryptanalysts ever since, but Ravi and Knight鈥檚 translation model could help crack the cipher. The Zodiac killer鈥檚 code replaced letters with strange symbols and sometimes used multiple symbols for the same letter, making it very hard to decipher.

The first three messages were decoded by hand, revealing them to be parts of a single message, but the fourth remains unsolved to this day. Ravi and Knight鈥檚 model has successfully cracked the first messages 鈥 the first time this has been achieved without human intervention 鈥 and they now hope to decode the fourth.