Translating with the Google AI Studio

84 views
Skip to first unread message

Tom Gally

unread,
Feb 16, 2024, 3:32:37 AMFeb 16
to hon...@googlegroups.com
In Google’s announcement of Gemini 1.5 yesterday, they mentioned their AI Studio, which I hadn’t known about. I had the afternoon free today, so I spent some time playing with it using the Gemini 1.0 Pro model.

One thing you can do in the AI Studio is create “structured prompts” that include uploaded examples of input and output for the model to refer to. I gave it a try with translation. I prepared a CSV file containing about 25,000字 of Japanese speeches and my own previous English translations of them, with one paragraph per row. I uploaded that CSV file to the AI Studio and had Gemini 1.0 Pro translate a similar speech into English with those examples as reference. I then compared the resulting translation both to the Gemini translation done through the usual web interface and to my own translation, which I did last month.

The version that had been prompted with my previous translations was a bit more accurate than the zero-shot Gemini translation, which included a summary at the end that I had not asked for. Otherwise, there wasn't too much of a difference. (My own translation was better than either, I hope.)

But the speeches I used are pretty general in content and don’t use much specialized vocabulary. It would be interesting to try this for translation tasks that require specific vocabulary and a particular sentence style; one could, for example, upload bilingual glossaries and sentence pairs for the input and output examples. If that works, then one could prepare a different prompt-and-example set for each type of translation job. The translations could be done either within the AI Studio or in a local program that calls Google’s API. (The Studio will produce the code for the local program.)

The context window for Gemini 1.0 Pro in the AI Studio is currently 30,720 tokens, and my uploaded samples came close to hitting that limit. Supposedly Gemini 1.5 allows much larger context windows as well as superior performance. I have applied for developer access to Gemini 1.5. If I get it and the model does perform significantly better, I will let you all know.

The speeches I used are all available on the public web, so I didn’t feel hesitant about uploading them to the AI Studio. I would not do that with confidential or otherwise sensitive material.

Tom Gally

John Stroman

unread,
Feb 18, 2024, 7:40:13 PMFeb 18
to hon...@googlegroups.com
Thanks Tom,

Your last paragraph is a major problem for some of us. Boilerplate language may be OK, but not the nitty-gritty. 

John Stroman
----------------




Tom Gally

unread,
Feb 18, 2024, 9:43:32 PMFeb 18
to hon...@googlegroups.com
John Stroman wrote:

Your last paragraph [about confidentiality] is a major problem for some of us. Boilerplate language may be OK, but not the nitty-gritty.

Yes, I understand. Progress is being made with open-source LLMs that can be run privately on a local computer, but—in my limited testing, at least—they are significantly worse at Japanese-to-English translation than GPT-4.

As explained in the following response I just got from Perplexity, the best open-source models also require computers with expensive GPUs and large memory:


My guess is that within six months or a year there will be LLMs that can be locally run and that are as powerful as today’s best cloud-based models from OpenAI, Google, Anthropic, etc. But at that point those commercial models will have advanced further as well.

Here is what Perplexity says about the current state of confidentiality guarantees from the online LLM services:


Despite those guarantees, if I were freelancing, I would not use those services for confidential material without my client’s permission.

By the way, I just started using Perplexity a couple of weeks ago, after seeing an article in the New York Times about it. As you can see in the above results, it can be quite useful for some types of information searches.

Tom Gally
Reply all
Reply to author
Forward
0 new messages