WordPress翻訳プラグインにおいてDeepLよりLLMを信じる理由

Robbert Vermeulen

Robbert Vermeulen

· 6分で読める

急速に進化する機械翻訳の分野において、大規模言語モデル(LLM)は、しばしば従来の翻訳サービスを超える強力なツールとして浮上しています。EPIC WPでは、LLMを活用して PolylangのAI自動翻訳拡張プラグインを開発していますが、それらがDeepLのようなサービスよりも優れた結果を提供すると信じています。この記事では、私たちがこの決定を下した理由と、LLMが翻訳プロセスに与える利点を探ります。

LLMと従来の翻訳サービスの概要

大規模言語モデルは、複数の言語と領域にわたる膨大なテキストデータで訓練された人工知能システムです。これらは、特にトランスフォーマーアーキテクチャを使って、人間のようなテキストを理解し生成します。一方、DeepLのような従来の翻訳サービスは、通常、翻訳のタスクに特化したニューラル機械翻訳(NMT)モデルを使用しています。

LLMの翻訳における主な利点

  1. 文脈の理解:LLMは言語の文脈やニュアンスの理解が深く、直訳によって失われる可能性がある慣用的な表現や文化的な参照、微細な意味をよりよく把握します。
  2. 多言語対応:多くのLLMは、複数の言語のデータで同時に訓練されており、各言語ペアごとに別々のモデルを必要とせずに、幅広い言語ペアで良好なパフォーマンスを発揮します。
  3. ドメイン適応性:LLMは、特化した翻訳モデルよりも様々な分野やテキストスタイルに適応しやすく、異なる種類のコンテンツに対して多用途です。
  4. 曖昧さの処理:広範な言語の理解により、LLMはソーステキストの曖昧さを解決するのに長けており、より正確な翻訳を導きます。
  5. 長文コンテンツの一貫性:LLMは長いテキスト全体で用語やスタイルの一貫性を維持することができ、研究論文や文学作品のような文書にとって重要です。
  6. 翻訳における創造性:クリエイティブまたは文学的なテキストを扱う場合、LLMはしばしば、元のテキストの本質を捉えたより自然で流れるような翻訳を提供することができます。

会話的なプロンプトとシステムプロンプトの力

私たちがDeepLのような従来の翻訳サービスよりもLLMを信じる最も説得力のある理由の一つは、会話プロンプトとシステムプロンプトを使用できることです。この機能は特に、業界特化のコンテンツを持つウェブサイトにおいて翻訳の分野で画期的です。

特定業界に合わせた翻訳のカスタマイズ

LLMを使うことで、翻訳者を顧客のウェブサイトの分野に精通した専門家に「プログラム」することが可能です。これは巧妙に作成されたシステムプロンプトや会話の文脈を通じて実現されています。これが重要な理由は以下の通りです:

  1. 業界特化の用語:特定の業界に固有の語彙や専門用語を使うようにLLMに指示でき、翻訳が言語的に正確であるだけでなく、専門的に正確であることを保証します。
  2. 文脈のニュアンス:システムプロンプトで業界や分野に関する文脈を提供することで、LLMは一般的な翻訳で失われるかもしれない微妙なニュアンスをよりよく理解し、伝えることができます。
  3. トーンとスタイルの適応:特定の業界に対して適切なトーンやスタイルを採用するようにLLMを指導でき、法的コンテンツにはフォーマル、技術系サイトには専門的、ライフスタイルブログにはカジュアルなどの対応が可能です。
  4. ブランドボイスの一貫性:ビジネスウェブサイトにおいて、すべての翻訳コンテンツで一貫したブランドの声を維持するようにLLMに指示でき、企業の独自のコミュニケーションスタイルを保持します。
  5. 専門的なコンテンツの処理:医療用語、技術的仕様、クリエイティブなマーケティングコピーなど、LLMはこれらの専門的なコンテンツを適切に処理するようプロンプトを与えられます。

柔軟性とカスタマイズ

このレベルのカスタマイズは、DeepLのような従来の翻訳サービスでは考えられないものです。私たちのPolylang用AI自動翻訳拡張を通じて、ウェブサイトオーナーは言語的に正確であるだけでなく、以下のような翻訳の恩恵を受けられます:

  • 特定の業界の文脈に適した
  • ブランドの声とコミュニケーションスタイルに合った
  • 専門的または技術的なコンテンツを扱える
  • ウェブサイトの異なるセクション(例:法的ページにはフォーマル、ブログ投稿にはエンゲージング)に適応できる

会話的なプロンプトとシステムプロンプトの力を借りて、単なる逐語訳を超えた翻訳ソリューションを提供しています。代わりに、業界や分野に依存しない、より洗練されたコンテキスト対応の翻訳サービスを提供し、元のコンテンツの意図された意味とトーンを真に捉えることができます。

比較例: DeepL vs. OpenAIベースのLLM

翻訳におけるLLMの利点を示すために、OpenAIベースのLLM(私たちのPolylang用AI自動翻訳拡張で使用)とDeepLの優れた文脈理解と精妙な言語処理によりLLMが優れている3つの例を見てみましょう。

例1: 文脈理解と言葉遣い

この例は、フェスティバル用商品のオランダ語のウェブサイトから取られています。商品説明は、ニュアンスの理解を要する口語表現と文化的な参照を含んでいます。

オリジナル(オランダ語): “De doorgewinterde festival bezoeker herkent het wel. Lekker zeuren bij de bar om een dopje voor je flesje te scoren. Ook een heel arsenaal aan dopjes smokkelen is met de PartyDop verleden tijd! Deze blauwe universele dop past op alle waterflesjes die op festivals worden verkocht.”

DeepL翻訳: “The seasoned festival visitor will recognise it. Nagging at the bar to score a cap for your bottle. Smuggling a whole arsenal of caps is also a thing of the past with the PartyDop! This blue universal cap fits all water bottles sold at festivals.”

OpenAI LLM翻訳: “The seasoned festival-goer knows this well: the hassle of begging for a cap for your bottle at the bar. Smuggling in a whole arsenal of bottle caps is a thing of the past with the PartyCap! This blue universal cap fits all water bottles sold at festivals.”

分析: 両方の翻訳は概ね正確ですが、OpenAI LLMの翻訳は文脈と口語表現の理解の面で優れています:

  1. “Festival-goer” vs. “festival visitor”: LLMの方が自然な英語を選んでいます。
  2. “Knows this well”が、「will recognise it」よりも暗に含まれる親しみをよりよく表現しています。
  3. “The hassle of begging”が、「Lekker zeuren」の暗示された苛立ちを「Nagging」よりも効果的に伝えています。

この例は、LLMが元のテキスト内のトーンと暗示された意味をよりよく捉え、ターゲットオーディエンスにとってより自然で魅力的な翻訳を生むことを示しています。

例2: 文学翻訳と文化的ニュアンス

この例は、有名な中国の物語の一節で、言語的な正確さだけでなく、文化的な文脈と文学的なスタイルの理解も必要とされます。

オリジナル(中国語): 我从十二岁起,便在镇口的咸亨酒店里当伙计,掌柜说,样子太傻,怕侍候不了长衫主顾,就在外面做点事罢。外面的短衫主顾,虽然容易说话,但唠唠叨叨缠夹不清的也很不少。他们往往要亲眼看着黄酒从坛子里舀出,看还如何舀法,然后各种指摘:酒色太深,是旧酒;酒色太浅,是水酒;喝了一口,烧喉咙,哪里是好酒?……我早就知道这种顾客的话不足深信,但谁叫他们是顾客呢?顾客自然可以随意饶舌。只有一种顾客,叫作孔乙己的,总是匿在柜台的角落里,才是值得只配外面的短衫主顾的。

DeepL翻訳(英語): “Since I was twelve years old, I have been working as a waiter in the Xian Heng Hotel at the entrance of the town. The shopkeeper said that I was too stupid to serve the long-shirted customers, so I had to do some work outside. The short-shirted customers outside were easy to talk to, but there were also many nagging and pestering customers. They often have to watch the yellow wine from the altar scooped out, see how to scoop method, and then all kinds of accusations: wine colour is too dark, is the old wine; wine colour is too light, is the water wine; drink a mouthful, burning throat, where is the good wine? …… I have long known that this kind of customer’s words are not convinced, but who asked them to be customers? Customers are naturally free to speak their minds. There is only one kind of customer, the one called Kong Yi Ji, who always stays in the corner of the counter, and is worthy of the short-shirted patrons who are only worthy of the outside.”

OpenAI LLM翻訳(英語): “Since I was twelve, I have worked as a servant at the Xianheng Tavern by the town’s entrance. The shopkeeper said I looked too foolish and might not be able to serve the long-robed customers properly, so he had me work outside instead. Although the short-robed customers outside were easier to talk to, there were still quite a few who were incessantly picky and unclear in their demands. They often insisted on watching the yellow wine being ladled from the jar, scrutinizing how it was done, and then complaining in various ways: the wine is too dark, it’s old wine; the wine is too light, it’s watered down; after a sip, it burns the throat—how can this be good wine? … I knew long ago that such customers’ words were not to be fully trusted, but since they were customers, they were naturally allowed to speak freely. There was only one type of customer, named Kong Yiji, who always hid in the corner of the counter, and was truly only worthy of being with the short-robed customers outside.”

分析: LLMの翻訳は文化的文脈と文学的スタイルの理解で優れています:

  1. “Xianheng Tavern” vs. “Xian Heng Hotel”: LLMは、歴史的文脈を維持しながら、これを現代的なホテルではなく居酒屋と特定しています。
  2. “Long-robed customers” vs. “long-shirted customers”: LLMの選択は、服装から暗示される社会的地位をよりよく伝えています。
  3. “Ladled from the jar” vs. “scooped out from the altar”: LLMは「壇子」(瓶)を「祭壇」と誤訳せずに行動を正確に描写しています。
  4. “Watered down” vs. “water wine”: LLMは意味を自然に伝えるより自然な英語表現を使っています。
  5. 全体として、LLMの翻訳はより一貫した物語の流れを持ち、元のテキストの文学的スタイルをDeepL版よりもよく捉えています。

この例は、LLMが複雑な文学的テキストを扱い、単なる文字通りの意味だけでなく、トーン、文化的ニュアンス、物語のスタイルも維持できることを示しています。

例3: 技術用語と慣用句

この例は、架空のソフトウェアツールの製品説明で、技術用語と慣用句、そして創造的な言葉を組み合わせています。

オリジナル(英語): “TechWizPro is not your run-of-the-mill coding assistant. It’s a game-changer that kills two birds with one stone – boosting productivity while squashing bugs like nobody’s business. Our AI-powered syntax predictor is so smart, it’ll make you feel like it’s reading your mind! Say goodbye to hair-pulling debugging sessions and hello to silky-smooth code deployments. With its quantum-inspired algorithms, TechWizPro doesn’t just think outside the box – it shatters the box entirely. Whether you’re a coding newbie or a seasoned pro, this tool will be your secret weapon in the digital arms race. Don’t let your projects become a bull in a china shop – let TechWizPro be your coding rodeo clown, keeping those wild bugs at bay!”

DeepL翻訳(スペイン語): “TechWizPro no es el típico asistente de programación. Es un cambio de juego que mata dos pájaros de un tiro – aumentar la productividad mientras aplasta errores como nadie. Nuestro predictor de sintaxis basado en IA es tan inteligente que te hará sentir como si leyera tu mente. Despídete de las sesiones de depuración que te tiran de los pelos y da la bienvenida a despliegues de código suaves como la seda. Con sus algoritmos de inspiración cuántica, TechWizPro no sólo piensa fuera de la caja, sino que la rompe por completo. Tanto si eres un novato en codificación como un profesional experimentado, esta herramienta será tu arma secreta en la carrera armamentística digital. No deje que sus proyectos se conviertan en un toro en una cacharrería: ¡deje que TechWizPro sea su payaso de rodeo de codificación, manteniendo a raya a esos bichos salvajes!”

OpenAI LLM翻訳(スペイン語): “TechWizPro no es tu asistente de codificación común y corriente. Es un cambio de juego que mata dos pájaros de un tiro: aumenta la productividad mientras elimina errores como nadie. Nuestro predictor de sintaxis impulsado por IA es tan inteligente que te hará sentir como si leyera tu mente. ¡Di adiós a las sesiones de depuración frustrantes y hola a implementaciones de código sin problemas! Con sus algoritmos inspirados en la computación cuántica, TechWizPro no solo piensa fuera de la caja, ¡la destruye por completo! Ya seas un principiante en programación o un profesional experimentado, esta herramienta será tu arma secreta en la carrera digital. No dejes que tus proyectos se conviertan en un toro en una tienda de porcelana: deja que TechWizPro sea tu payaso de rodeo de codificación, manteniendo a raya esos errores salvajes.”

分析: 両方の翻訳は概ね正確ですが、LLMの翻訳は、慣用句の処理や全体的なトーンの維持にいくつかの微妙な改善を示しています:

  1. “Run-of-the-mill”: LLMの「común y corriente」が、DeepLのより直接的な「típico」よりも慣用句をよく捉えています。
  2. “Squashing bugs”: LLMの「elimina errores」は、DeepLの直訳「aplasta errores」より自然です。
  3. “Hair-pulling debugging sessions”: LLMは、「sesiones de depuración frustrantes」で苛立ちを伝えており、DeepLの「sesiones de depuración que te tiran de los pelos」より直訳に近いです。
  4. “Silky-smooth code deployments”: LLMの「implementaciones de código sin problemas」は、DeepLの直訳「despliegues de código suaves como la seda」より自然です。
  5. “Quantum-inspired algorithms”: LLMの「algoritmos inspirados en la computación cuántica」は、DeepLの「algoritmos de inspiración cuántica」よりも正確です。
  6. 非公式トーンの一貫性: LLMは一貫して非公式なトーン(「tu」形)を維持していますが、DeepLは公式と非公式(「tu」と「usted」)の間で切り替えています。
  7. “Bull in a china shop”: 両方の翻訳がこの慣用句をよく適応していますが、LLMの「tienda de porcelana」の方が、DeepLの「cacharrería」よりも一般的に使われています。

この例は、LLM翻訳が慣用句のニュアンスの処理に優れており、一貫したトーンを維持し、技術用語の翻訳でもわずかながら優れていることを示しています。これらの違いは微細ですが、全体としてより自然で魅力的な翻訳となり、元のテキストの精神をより良く捉えています。

課題と考慮事項

LLMは大きな利点を提供する一方で、考慮すべきいくつかの課題があります:

  1. 計算リソース:LLMは大幅な計算能力を必要とし、軽量モデルと比較してリアルタイム翻訳タスクには実用的でない可能性があります。
  2. トークン制限:LLMはしばしば一度に処理できるトークンの最大数を持ち、非常に長い文書を翻訳する際に制限となることがあります。
  3. 速度:LLMを使った翻訳は、特化した翻訳サービスと比べると通常遅くなります。しかし、翻訳の品質と文脈的な正確性の向上のために、このトレードオフは価値があると私たちは考えています。

結論

DeepLのような従来の翻訳サービスが機械翻訳で大きな進歩を遂げた一方で、私たちは、大規模言語モデルが文脈の理解、多言語対応、適応性によって優れたアプローチを提供するものと信じています。計算要件や処理速度などの課題にもかかわらず、LLMによって生成される翻訳の品質は、これらのトレードオフを正当化することがしばしばあります。

会話的なプロンプトとシステムプロンプトを使用できる能力が、翻訳の分野でLLMを際立たせています。特定の業界や文脈に翻訳プロセスを合わせることで、LLMは従来のサービスでは実現できないレベルのカスタマイズと正確さを提供します。

私たちの比較例から、LLMが口語的な言葉を扱い、文学テキストにおける文化的ニュアンスを保ち、技術用語と慣用句の複雑さを解決する際に優れていることがわかります。これらの能力の結果、翻訳は言語的に正確であるだけでなく、文化的にも適切で文脈的に豊かなものになります。

LLMを活用することで PolylangのAI自動翻訳拡張では、WordPressユーザーに、テキストの文字通りの意味を伝えるだけでなく、ニュアンス、スタイル、文化的文脈をも捉えた翻訳を提供することを目指しています。LLM技術が急速に進化を続ける中、私たちは将来の可能性に興奮し、これらの進歩を活用してPolylangユーザーに最良の翻訳ソリューションを提供することに尽力しています。

ますます相互に結びついた世界において、言語の壁を超えた効果的なコミュニケーションがこれまで以上に重要になっている中で、LLMを活用した翻訳ツールが、グローバルな理解と協力の促進において重要な役割を果たすと信じています。従来の翻訳サービスに代えてLLMを選ぶことで、技術の進化にただ追随しているだけでなく、ウェブ上の多言語コンテンツの未来を積極的に形作っているのです。

Robbert Vermeulen

Robbert Vermeulen

Founder of EPIC WP Solutions

すべての投稿を見る →