Skip to content
Chintan J Chawda
Oct 2025 · 5 min

Published at the 5th ACM/IEEE International Conference on AI-ML Systems (AIMLSystems 2025).

Cloud Architecture for Language Translation Model as a Service on Hugging Face

Abstract

The demand for accurate, efficient translation tools has never been more acute. As natural language interfaces proliferate and multilingual data compounds, the gap between general-purpose translation systems and the linguistic nuance they need to capture continues to widen — particularly for low-resource language pairs like Hindi and English.

This paper introduces the cloud actors involved in deploying Language Translation Models (LTMs) as a service, with a focus on the Model as a Service (MaaS) framework offered by Hugging Face. We identify five key actors that constitute the cloud architecture: the model provider, the inference endpoint, the evaluation harness, the consumer application, and the observability layer. Each plays a distinct role in making pretrained models reproducible, scalable, and accessible without the operational overhead of self-managed infrastructure.

We benchmark five transformer-based models across this architecture: mBART-50, M2M-100, NLLB-200, Google Translate, and IndicTrans2. All five are evaluated on Hindi-English translation in both directions, across two text domains — general and literary — using four established NLP metrics: BLEU, STS, chrF, and METEOR.

The results reveal a consistent pattern: specialised models outperform generalist ones on domain-specific text. IndicTrans2, trained specifically on Indic language pairs, achieves the strongest scores on literary Hindi — a domain where general-purpose models struggle with idiomatic constructions, script-specific morphology, and contextual register. On general text, the gap narrows, and Google Translate remains competitive due to its scale of training data.

A key finding is that no single model dominates across all tasks and metrics. BLEU and chrF tend to reward lexical overlap, which benefits models with larger parallel corpora. STS and METEOR capture more of the semantic fidelity that literary translation demands — and on those metrics, IndicTrans2's margin is more pronounced.

The broader implication is architectural: deploying LTMs as cloud services via platforms like Hugging Face decouples model selection from infrastructure management. Teams can swap evaluation targets, run A/B comparisons across model versions, and instrument translation quality in production — all without re-engineering the deployment layer. For a field where the right model depends heavily on domain and language pair, that flexibility is not incidental. It is the point.

Read

IEEE Xplore — Full Paper→

← Previous

Mutual Funds: Basics and the Guide

All Articles →