Translating blog posts with GPT-4, or: on hope and fear
antirez.com
antirez.com
By the way, I am Italian too; I lived in the US (SF) for ~10 years, and I speak (I think) a pretty good English.
More than 20 years ago I wrote a novel, Nonovvio, in Italian. A couple of months ago I decided to translate it to English, using GPT-4.
Here you can find both the (original) Italian version, and the one created with GPT-4. [0].
I don't think the novel is amazing nor a work of art; however, what I find interesting is how prescient I was on a number of things that happened after I finished writing it in the early 2000s.
That is one reason why I'm hesitant to use LLMs to the extent that so many have. If we don't use certain skills, we lose them. I learned this the hard way with French. In my teens, I was conversant in the language thanks to years of high school French and immersion. But, I didn't touch French again until my late thirties, and I forgot most of it. It hasn't been until recently that my French has surpassed the level I was at with it in my teens.
I'm also studying Spanish, Italian, Portuguese, German, and Esperanto. These aren't (yet) as intensive as the French, but a bucket list item of mine is to become a polyglot. Fluency isn't likely, but I should at least be able to chat with folks about food, the weather, and other pleasantries. Yeah, the language selections center on Europe and the Americas, but these languages are at least somewhat interrelated, which means that I get a boost when learning them, since I already know English and some French.
I call it the "pocket lighter effect". The more you rely on pocket lighters, the less you learn about kindling and fires. But for some reason, people don't fear this development.
For me, this phenomenon with Copilot and a decade old codebase where I was the only contributor was unlike anything I'd experienced.
It's one thing to see other people's thoughts reshaped by AI, but when it's your own thinking it's a very eerie feeling.
Maybe only happens 10-15% of the time, but when it does it's uncanny.
(And escaping binary thinking is something humans need to do a better job with in general.)
Here are five translations of the same passage from a speech by the Japanese prime minister. They were all prepared by GPT-4 from a single prompt:
1. Since becoming Prime Minister, I have visited many ASEAN countries. I recently returned from visits to Malaysia and the Philippines. In every country, I have felt the depth of business ties with Japan and the strength of personal connections beyond business.
2. As Prime Minister, I have had the opportunity to visit numerous ASEAN countries. Just recently, I traveled to Malaysia and the Philippines. Everywhere I went, I witnessed the profound business connections with Japan, as well as the enduring personal relationships that transcend business.
3. Since my appointment as Prime Minister, I've visited several ASEAN countries. My recent trips included Malaysia and the Philippines. In each country, the depth of business connections with Japan and the enduring strength of interpersonal relationships beyond business were evident.
4. In my role as Prime Minister, I've visited many ASEAN countries. Recently, I was in Malaysia and the Philippines. In each nation, I felt the depth of Japan's business ties and the robustness of personal connections that go beyond mere business.
5. As Prime Minister, I've had the honor of visiting several ASEAN countries. My recent travels took me to Malaysia and the Philippines. In every country, the strength of Japan's business ties and the resilience of personal relationships beyond business were apparent.
The prompt I used and the full source text and translations are here:
Can't we just sample different "branches" of successive tokens with some mechanism for ensuring diversity like [1] did? This would allow the user to edit a handful of words/phrases/sentences and guide the LLM towards a more idiomatic translation.
This may even give smaller local models a chance.
[1] https://suricrasia.online/blog/making-amulets-with-llama/
I don't know if it's GPT-4 or an actual editing typo but using "visibile" instead of "visible" in that sentence is actually quite ironically funny.
On the post itself, I totally understand the point being bilingual myself with English being my second language. However, now having been living 11 years in the UK, I'm more comfortable with writing in English.
Sure, it has some grammar mistakes and is awkward in a few places. I actually read it in my head with an Italian accent. But it reads to me like you in a way that the LLM post doesn't.
That might be confirmation bias though.
Neither of them is a dazzling gem of English prose style, but both of them seem more than fine as effective communication from a non-native speaker/writer. I certainly couldn't do any better writing in a second language. So I say write with whichever process brings you more joy or seems more convenient.
GenAI is going to be transformative for low-resource languages - both making their content available to a global audience (outbound) as well as helping those that only know a rare language have access to content in all.
I was quite surprised when GPT-4 was able to talk in Lojban to me. Somehow, I doubt it was intentionally trained to speak Lojban - that's a pretty niche conlang. So, I guess, it possibly picked some on its own, just from the books and dictionaries that were fed to it?
And to my amusement, it said that it doesn't speak Lojban, but can talk in the languages from my custom instructions... to my very limited understanding, all in mostly correct Lojban (except that it used "glico" ["English" in the sense of culture] instead of "glibau" ["English" in the sense of language]). Maybe it doesn't speak it well, but certainly does much better than I.
This actually gives much better results, and now I think I actually changed my mind and like GPT4 better.
It just needs some commands to follow.
Something like: "Fluently translate this text, from {here} to {there}, while preserving details" seems to be fine for me.
If the style then needs tweaked, then I edit the original command and tweak it to have it start anew: "Fluently translate this text as a peasant baker from Rhode Island in 1810, from {here} to {there}, while preserving details"
> the post you are reading is not just written by myself, but as the tradition in this blog demands, not even re-read or corrected if not for a quick second pass. This way you can see what my written English really is, and if you are curious, compare it with the post about LLMs. The difference is not less than huge.
The post on LLMs reads quite a bit more fluently in English: http://antirez.com/news/140
I do see some grammar errors still in the opening paragraphs of the LLM translated post on first look though...
For example: "Countless hours spent searching for documentation on peculiar, intellectually uninteresting aspects; the efforts to learn an overly complicated API, often without good reason; writing immediately usable programs that I would discard after a few hours."
GPT-4 is also an invaluable help in learning a new language. You can use it as a tutor, explore topics you don't understand well enough, ask it to write texts tailored exactly for your level and vocabulary.
Natively understanding another language gives you access to a whole different information sphere. With different taboos and focuses. So topics completely undiscussable or unpolite in one language, is perfectly analyzed in another language. I've noticed the level of censorship significantly increasing on dominant English platforms (Say youtube), which is harder to see, if you can only speak English.
This makes it very easy to identify cultural shibboleths, disinfo or even just low-relevance/importance information.
However, this only works if you truly have native language levels in two languages. If you find it 'painful'/'difficult' to read the second language in any way, you'll avoid it outside of work, and therefore forfeit the advantage. This is also why even the inconvenience of translation will destroy this advantage.
Also, this requires the second language to be sufficiently distant from the first, while still being a large-population language.
So knowing Danish/Irish perfectly doesn't give you access to a whole different worldview.
This criteria is harsh, and for more entertainment/cultural value, LLM translation is basically good enough even for novels, there's no point in learning a foreign language at a low level anymore.