Synthesizing and Adapting Error Correction Data for Mobile Large Language Model Applications
Yanxiang Zhang, Zheng Xu, Shanshan Wu, Yuanbo Zhang, Daniel Ramage
TL;DR
The paper tackles domain shift in mobile error correction by generating a large-scale, high-quality synthetic EC dataset through prompt-driven LLMs enriched with mobile-domain knowledge and then aligning offline evaluation with production metrics via a privacy-preserving reweighting model that leverages DP-FL small LMs and a handful of live A/B metrics. It demonstrates that a continue-training regime that mixes original data with reweighted synthetic data, using LoRA on a billion-parameter LLM, yields consistent improvements in offline evaluations and production metrics, with relative gains up to 7.18% in key KPIs. The work provides practical best practices for data mixing and domain adaptation, and emphasizes privacy safeguards to responsibly leverage in-domain data for mobile LLM applications.
Abstract
Error correction is an important capability when applying large language models (LLMs) to facilitate user typing on mobile devices. In this paper, we use LLMs to synthesize a high-quality dataset of error correction pairs to evaluate and improve LLMs for mobile applications. We first prompt LLMs with error correction domain knowledge to build a scalable and reliable addition to the existing data synthesis pipeline. We then adapt the synthetic data distribution to match the mobile application domain by reweighting the samples. The reweighting model is learnt by predicting (a handful of) live A/B test metrics when deploying LLMs in production, given the LLM performance on offline evaluation data and scores from a small privacy-preserving on-device language model. Finally, we present best practices for mixing our synthetic data with other data sources to improve model performance on error correction in both offline evaluation and production live A/B testing.
