Introduction
Massively Multilingual Models (MMLMs) have significantly advanced translation capabilities for major global languages. However, "data-sparse" or endangered languages, such as Gondi in India, remain largely underserved. Improving models for these languages requires high-quality linguistic data, but collecting this data presents a significant challenge: tools are needed to help native speakers generate data efficiently, yet building these tools often requires the very data they are meant to collect.
The Challenges of Edge Translation
Existing Interactive Neural Machine Translation (INMT) systems—which provide real-time suggestions as a user types—are often unsuitable for low-resource contexts due to three primary flaws:
- Connectivity Constraints: Most systems rely on persistent internet connections to reach cloud-based servers.
- Hardware Limitations: Standard models are too computationally intensive for the low-end mobile devices common in under-resourced communities.
- Model Quality and Cognitive Load: Standard interfaces assume high AI accuracy. When models are mediocre, intrusive features like aggressive autocorrect can increase a user's cognitive load rather than reducing it.
Methodology: INMT-Lite
To address these issues, the researchers developed INMT-Lite, a system optimized for on-device, offline performance. The approach centers on two pillars: model compression and flexible user interface design.
Model Compression for the Edge
To ensure models fit and run efficiently on mobile hardware, two techniques were employed:
- Post-Training Quantization: Model weights were converted from 32-bit floating points to 8-bit integers, reducing the model size by approximately 4x with negligible impact on accuracy.
- Knowledge Distillation: Smaller "student" models were trained to mimic larger "teacher" models, achieving size reductions of 8x to 12x. This allowed a distilled model (~200MB) to provide suggestions with sub-500ms latency on-device.
Flexible UI Design
Because model quality varies, the researchers developed five distinct interfaces to accommodate different levels of AI assistance and user preference:
- Post-Edit (PE): The user edits a full sentence suggested by the AI.
- Static/Dynamic Bag of Words (SBOW/DBOW): The AI provides a "cloud" of likely words for the user to select or type.
- Next-Word Bag of Words/Dropdown (NWBOW/NWD): The AI suggests specific next words sequentially as the user types.
Experimental Evaluation
The system was evaluated across eight languages, including medium-resource languages (Punjabi, Hindi, Bengali, etc.) and low-resource languages (Assamese, Odia, and Gondi). The primary user study involved 18 native Gondi speakers. Gondi is particularly challenging as it was not included in the original pre-training of the base mT5 model.
Key Insights and Results
- Effort Reduction: INMT-Lite significantly reduced the "keystroke load" and the total time required to generate translations compared to typing from scratch.
- Quality Maintenance: Despite the use of compressed, offline models, the quality of final translations remained high. The Post-Edit (PE) interface, in particular, led to significant quality gains.
- Breadth vs. Depth: In low-resource settings where model uncertainty is high, "breadth-wise" interfaces (like Bag of Words) proved more helpful than "depth-wise" ones (like dropdowns). Providing a variety of options at once allows humans to scan and select the correct word faster than navigating sequential lists.
- User Preference: The Static Bag of Words (SBOW) interface showed the highest user affinity. It struck an optimal balance between providing helpful hints and maintaining a non-intrusive typing flow.
Conclusion and Future Work
INMT-Lite demonstrates the feasibility of bringing AI-assisted translation to the edge for endangered languages. Future research will focus on optimizing the "trigger of invocation" (deciding exactly when the AI should offer a suggestion) and improving model robustness to dialectal variations within low-resource language communities.
Summary updated