GUIDE: Generative Unsupervised Chinese Query Correction via Phonetic and Visual Shared-ID Encoding
Summary
GUIDE is a generative unsupervised framework for Chinese query correction that uses phonetic and visual shared-ID encoding to constrain corrections and adapt to changing vocabularies, outperforming baselines in experiments and online A/B testing.
View Cached Full Text
Cached at: 08/27/26, 09:18 AM
# GUIDE: Generative Unsupervised Chinese Query Correction via Phonetic and Visual Shared-ID Encoding Source: [https://arxiv.org/html/2608.25343](https://arxiv.org/html/2608.25343) Binbin Huang††thanks:Corresponding author\.Affiliation:Kuaishou TechnologyAffiliation:School of Data Science, Fudan UniversityCorrespondence:[chentiancheng03@kuaishou\.com](mailto:[email protected])Jiwei TanAffiliation:Kuaishou TechnologyXuhui SuiAffiliation:Kuaishou TechnologyChang TuAffiliation:Kuaishou TechnologyYi WangAffiliation:Kuaishou TechnologyHan LiAffiliation:Kuaishou Technology ###### Abstract Chinese query correction \(CQC\) is important for search and query recommendation on content platforms, but supervised methods rely on large annotated correction pairs that are costly to maintain as query vocabularies evolve\. Unsupervised correction with language models is attractive, yet in the short\-query setting, unconstrained generation often over\-corrects ambiguous inputs toward high\-frequency phrases, causing intent drift\. We proposeGUIDE, a generative unsupervised framework for CQC based on a confuse\-then\-clarify paradigm\.GUIDEencodes phonetically or visually confusable characters with shared\-IDs and reconstructs the original query with an encoder–decoder architecture, which constrains correction to plausible confusion neighborhoods while learning from unlabeled query streams\. A time\-decayed, query\-frequency\-weighted objective further supports adaptation to rapidly changing query vocabularies\. Experiments onQSpell 250Kand a large\-scale real\-world dataset \(KwaiSearch\) show thatGUIDEconsistently outperforms strong baselines, while online A/B testing further confirms gains in correction quality and downstream engagement\. ## 1Introduction Search queries directly express user intent and determine what content is retrieved and surfaced\. On large content platforms such as YouTube and TikTok, query recommendation modules—including search suggestions, autocomplete, and related\-query recommendation—are often built from historical search logs and user interactions[Bacciu et al\. \(2024\)](https://arxiv.org/html/2608.25343#bib.bib24)\. As a result, misspellings and non\-canonical variants in query streams can be repeatedly exposed, clicked, and re\-mined, causing noisy forms to propagate through downstream retrieval, ranking, and recommendation pipelines[Gao et al\. \(2010\)](https://arxiv.org/html/2608.25343#bib.bib20);[Sun et al\. \(2012\)](https://arxiv.org/html/2608.25343#bib.bib21)\. This makes*Chinese query correction*\(CQC\) an important problem in industrial search systems\. While Chinese spelling correction is often studied at the sentence level, CQC is harder in practice because it faces several query\-specific constraints:[Yang et al\. \(2023\)](https://arxiv.org/html/2608.25343#bib.bib4);[Su et al\. \(2025\)](https://arxiv.org/html/2608.25343#bib.bib19): \(1\)Short Context: queries provide little context, making it hard to decide whether to edit and what is intended; \(2\)Fast Shift: vocabularies change rapidly with new memes, influencers, and emerging entities;Creative Use: homophones can be intentional puns—e\.g\., “钱途” \(lit\. “money road”, i\.e\., “money\- making prospects”\) puns on its homophone “前途” \(*qiántú*, “future prospects”\)—so different is not always wrong; and \(4\)Few Labels: large\-scale query annotations are expensive, and even millions of labeled pairs cover only a small fraction of real errors\. These constraints make CQC fundamentally a problem of controlled editing: the system must decide not only what to correct, but also when to correct and how far it may deviate from the original expression\. Existing approaches only partially address this challenge\. Supervised correctors learn a correction policy from labeled pairs[Zhang et al\. \(2020\)](https://arxiv.org/html/2608.25343#bib.bib16);[Xu et al\. \(2021\)](https://arxiv.org/html/2608.25343#bib.bib17), but collecting and refreshing such annotations is expensive under fast vocabulary shift\. Weakly supervised methods typically construct pseudo pairs through synthetic corruption[Liu et al\. \(2021\)](https://arxiv.org/html/2608.25343#bib.bib5);[Li \(2022\)](https://arxiv.org/html/2608.25343#bib.bib6), which introduces a hand\-designed noise process that may not match real query errors\. Training\-free LM\-based correction is attractive[Hong et al\. \(2019\)](https://arxiv.org/html/2608.25343#bib.bib15);[Zhou et al\. \(2024\)](https://arxiv.org/html/2608.25343#bib.bib1), but unconstrained or weakly constrained decoding often over\-corrects short ambiguous queries, introduces unnecessary edits, or fails to preserve the original query length[Li et al\. \(2023\)](https://arxiv.org/html/2608.25343#bib.bib28);[Liu et al\. \(2024\)](https://arxiv.org/html/2608.25343#bib.bib29)\. These limitations suggest that effective unsupervised CQC should not rely on free\-form rewriting\. Instead, correction should stay within plausible confusion neighborhoods induced by realistic input errors and shaped by the language’s writing and input system\. Based on this intuition, we proposeGUIDE, a generative unsupervised framework built on a confuse\-then\-clarify paradigm\. The core idea is to map confusable characters into shared\-IDs and then train an encoder–decoder model to reconstruct the original character sequence\. This shared\-ID reconstruction objective turns character confusion structure into a learning signal: the encoder is encouraged to tolerate realistic ambiguity, while the decoder is forced to clarify it back into a concrete query\. As a result,GUIDElearns controlled correction from unlabeled query streams without requiring manually annotated correction pairs\. For Chinese, these neighborhoods are naturally instantiated by the two dominant query errors:sound\-alikesubstitutions and, to a lesser extent,look\-alikeones[Liu et al\. \(2010\)](https://arxiv.org/html/2608.25343#bib.bib22);[Wu et al\. \(2013a\)](https://arxiv.org/html/2608.25343#bib.bib23)\. These error patterns are closely tied to Chinese Input Method Editors \(IMEs\), such as pinyin and handwriting\. Accordingly, we implementGUIDEwith two complementary clustering strategies: phonetic shared\-ID clustering based on pinyin confusability, and visual shared\-ID clustering based on image\-based character similarity\. On top of these clustered inputs, we train an encoder–decoder Transformer with a time\-decayed, query\-frequency\-weighted objective so that the model can continually adapt to recent and frequent queries in evolving search traffic\. Our contributions are as follows: - •We proposeGUIDE, aGenerativeUnsupervised framework for Chinese query correction based on a confuse\-then\-clarify paradigm, where phonetic and visual shared\-IDEncoding provides an explicit inductive bias for controlled correction under weak query context\. - •We show how shared\-ID reconstruction enables learning from unlabeled query streams without error–correction pairs\. - •We releaseKwaiSearch, an in\-house search\-log dataset, and show strong results on bothQSpell 250KandKwaiSearch, supported by online A/B testing\. ## 2Methodology ### 2\.1Problem Formulation and Overview Let𝒟=\{\(𝒙i,ti\)\}i=1N\{\\mathcal\{D\}\}=\\\{\(\{\\bm\{x\}\}\_\{i\},t\_\{i\}\)\\\}\_\{i=1\}^\{N\}denote a training set ofNNChinese character queries collected from logs, where𝒙i=\{xi,1,xi,2,…,xi,mi\}\{\\bm\{x\}\}\_\{i\}=\\\{x\_\{i,1\},x\_\{i,2\},\\ldots,x\_\{i,m\_\{i\}\}\\\}is the observed \(possibly incorrect\) query at timetit\_\{i\}\. The CQC task maps an input query𝒙i\{\\bm\{x\}\}\_\{i\}to a corrected query𝒚i=\{yi,1,yi,2,…,yi,mi\}\{\\bm\{y\}\}\_\{i\}=\\\{y\_\{i,1\},y\_\{i,2\},\\ldots,y\_\{i,m\_\{i\}\}\\\}, where𝒚i\{\\bm\{y\}\}\_\{i\}has the same length as𝒙i\{\\bm\{x\}\}\_\{i\}and differs only at erroneous character positions\. In CQC, errors often arise from phonetically or visually similar candidates, with representative examples shown in Table[1](https://arxiv.org/html/2608.25343#S2.T1)\. Table 1:Examples of phonetically similar candidates \(PSC\) and visually similar candidates \(VSC\) in Chinese spelling errors\.Misspelledcharacters are marked in red, while thecorrectforms are indicated in blue\. Phonetic errors are same\-syllable confusions \(often differing only in tone\) from pinyin typing; visual errors are look\-alike characters that typically share a radical/component\.To avoid unintended rewrites under weak query context,GUIDEconstrains correction through character clustering and sequence reconstruction\. As shown in Figure[1](https://arxiv.org/html/2608.25343#S2.F1), the framework consists of two core stages: \(1\)character clustering, which maps an input query into a phonetic or visual shared\-ID sequence, and \(2\)Chinese query correction, which reconstructs the original character sequence with an encoder–decoder Transformer\.   Figure 1:Overview ofGUIDEwith two clustering\-based correction models: the left part shows the homophonic model, and the right part shows the visual\-similarity model, based on pronunciation and character shape, respectively\. ### 2\.2Character Clustering Character clustering groups Chinese characters by phonetic or visual similarity and maps each character to a shared ID\. Formally, letg\(⋅\)g\(\\cdot\)be a clustering\-based mapping that converts a query𝒙i\{\\bm\{x\}\}\_\{i\}into a shared\-ID sequence𝒙~i=g\(𝒙i\)=\{x~i,1,…,x~i,mi\}\\tilde\{\{\\bm\{x\}\}\}\_\{i\}=g\(\{\\bm\{x\}\}\_\{i\}\)=\\\{\\tilde\{x\}\_\{i,1\},\\ldots,\\tilde\{x\}\_\{i,m\_\{i\}\}\\\}, where multiple confusable characters may share the same ID\. This mapping is intentionally lossy: it removes fine\-grained character identity at the encoder side, making the input more tolerant to typical user errors and restricting edits to plausible confusions\. To cover dominant error types in practice, especially phonetic confusions and visually similar confusions, we design two complementary ways to constructg\(⋅\)g\(\\cdot\)\. #### Homophonic Clustering\. Most query typos on content platforms are sound\-alike confusions caused by pinyin input\. We therefore build a pinyin\-based clustering strategy that maps each character to a pronunciation key*without tones*, and assigns the same shared ID to characters with the same tone–stripped pinyin\. For polyphonic characters, we choose the most frequent tone–stripped pronunciation in query logs to determine the ID, which aligns the clusters with common user inputs and captures frequent phonetic confusions\. #### Visual Similarity Clustering\. To handle another major error type—look\-alike confusions—we cluster characters by visual similarity using image\-based character representations\. We render each character as an image and encode it with a Vision Transformer \(ViT\)[Dosovitskiy et al\. \(2020\)](https://arxiv.org/html/2608.25343#bib.bib8)to obtain feature vectors, then cluster characters using cosine similarity between these representations\. We use a thresholdτ\\tauto determine whether two characters should be grouped into the same cluster, thereby controlling the granularity of visual neighborhoods\. ### 2\.3Chinese Query Correction We perform Chinese query correction with an encoder–decoder Transformer, where the encoder consumes shared\-ID inputs and the decoder predicts the original character IDs\. In the encoder stage, input query characters are mapped to shared\-IDs, enabling the model to learn robust representations of error variants from large\-scale, mostly error\-free text data\. The decoder then maps the shared\-ID sequence back to the corresponding original character IDs\. During inference, we decode the output sequence using beam search\. In practice, we train two separate correction models based on the two clustering strategies, namely the homophonic model and the visual\-similarity model\. The homophonic and visual\-similarity models can be applied independently or combined\. For deployment, we use a simple dynamic fusion without an explicit error\-type classifier: for the same query, we feed the phonetic shared\-ID sequence to the homophonic model and the visual shared\-ID sequence to the visual\-similarity model, and obtain decoder scores \(token logits\) for beam candidates from both models\. We then compare the candidates from the two models and keep the one with the smaller score gap to the original query \(i\.e\., the smaller change in normalized sequence log\-likelihood relative to the original query\), which helps prevent over\-correction while still benefiting from beam search for plausible alternatives\. ### 2\.4Training Objective with Time\-decayed Frequency Reweighting Given the shared\-ID sequence𝒙~i\\tilde\{\{\\bm\{x\}\}\}\_\{i\}obtained by the clustering\-based mapping in Section[2\.2](https://arxiv.org/html/2608.25343#S2.SS2), we then trainGUIDEto reconstruct the original query𝒙i=\{xi,1,…,xi,mi\}\{\\bm\{x\}\}\_\{i\}=\\\{x\_\{i,1\},\\ldots,x\_\{i,m\_\{i\}\}\\\}with a time\-decayed frequency\-reweighted negative log\-likelihood: ℒ=−1N∑i=1Nwi∑j=1milogpθ\(xi,j∣𝒙~i,xi,<j\),\{\\mathcal\{L\}\}=\-\\frac\{1\}\{N\}\\sum\_\{i=1\}^\{N\}w\_\{i\}\\sum\_\{j=1\}^\{m\_\{i\}\}\\log p\_\{\\theta\}\(x\_\{i,j\}\\mid\\tilde\{\{\\bm\{x\}\}\}\_\{i\},x\_\{i,<j\}\),\(1\)wherewi=log\(1\+ci\)⋅exp\(−λ⋅Δti\)w\_\{i\}=\\log\(1\+c\_\{i\}\)\\cdot\\exp\(\-\\lambda\\cdot\\Delta t\_\{i\}\)is a weight that depends on the query search countcic\_\{i\}and freshnessΔti\\Delta t\_\{i\}\. This reweighting shifts learning focus toward frequent and recent queries while preserving the shared\-ID reconstruction objective\. ## 3Experiments Table 2:Main results onQSpell 250KandKwaiSearch\. Sup\./Unsup\. denote supervised/unsupervised methods\. Prec\., Rec\., and F1 denote precision, recall, and F1 score, respectively\.boldindicates the best model for each dataset/metric\.This section evaluatesGUIDEfor CQC with both offline and online studies\. We report offline results on the publicQSpell 250Kbenchmark and an anonymized in\-house dataset \(KwaiSearch\)\. We further validateGUIDEvia an online A/B test on production traffic\. ### 3\.1Experimental Setup #### Datasets\. We evaluateGUIDEon two datasets that better reflect the practical CQC setting on content platforms\. This differs from prior Chinese Spelling Correction \(CSC\) benchmarks \(e\.g\., SIGHAN13/14/15[Wu et al\. \(2013b\)](https://arxiv.org/html/2608.25343#bib.bib9);[Yu et al\. \(2014\)](https://arxiv.org/html/2608.25343#bib.bib10);[Tseng et al\. \(2015\)](https://arxiv.org/html/2608.25343#bib.bib11), Wang271K[Wang et al\. \(2018\)](https://arxiv.org/html/2608.25343#bib.bib12), and LEMON[Wu et al\. \(2023\)](https://arxiv.org/html/2608.25343#bib.bib13)\), which are mostly sentence\-oriented and less aligned with query noise patterns\. Specifically, we use \(i\)QSpell 250K[Ye et al\. \(2025\)](https://arxiv.org/html/2608.25343#bib.bib18), a public simplified\-Chinese query correction benchmark with short inputs; we trainGUIDEusing only the provided corrected queries; and \(ii\)KwaiSearch, an in\-house dataset built from user search logs\. It contains queries and short texts \(e\.g\., titles and OCR\-derived snippets\) extracted from key search\-result content, along with search\-count and timestamp signals\.111The dataset is available at[https://github\.com/PLACEHOLDER/KwaiSearch](https://github.com/PLACEHOLDER/KwaiSearch)\.Table[3](https://arxiv.org/html/2608.25343#S3.T3)summarizes the dataset statistics\. Table 3:Statistics of all datasets\. \#Sent, \#Error, and Avg\. Len\. denote the number of queries, error queries, and average query length, respectively\. #### Evaluation Metrics\. We report query\-level Precision, Recall, and F1, which are standard in CSC\. #### Baseline Methods\. We compareGUIDEwith supervised and unsupervised baselines: - •BERT[Devlin et al\. \(2019\)](https://arxiv.org/html/2608.25343#bib.bib7): a supervised correction baseline that fine\-tunes BERT\-base\-Chinese to predict corrected characters in context\. - •Masked\-FT[Wu et al\. \(2023\)](https://arxiv.org/html/2608.25343#bib.bib13): a supervised fine\-tuning strategy that masks non\-error characters during training to reduce trivial copying and mitigate over\-correction\. - •Simple\-CSC[Zhou et al\. \(2024\)](https://arxiv.org/html/2608.25343#bib.bib1): a training\-free, prompt\-free LLM baseline that treats the LLM as a left\-to\-right language model and corrects text by constrained decoding, using a minimal\-distortion constraint \(phonetic/visual similarity\) to keep the output close to the input\. - •LLM\-ICL: a prompting baseline using the Qwen3 series[Yang et al\. \(2025\)](https://arxiv.org/html/2608.25343#bib.bib14)\. We evaluate 0\-shot and 10\-shot settings on three model sizes \(0\.6B/1\.7B/4B\) with randomly sampled demonstrations\. #### Implementation Details\. We instantiateGUIDEwith three Transformer encoder–decoder sizes, using 3\-, 6\-, and 12\-layer encoders and decoders, respectively\. Unless otherwise specified, we use a single unified system that combines the homophonic and visual\-similarity models\. SinceKwaiSearchhas no ground\-truth labels, supervised baselines are trained onQSpell 250Kand evaluated onKwaiSearch\. Detailed model configurations and training hyperparameters are provided in Appendix[A\.1](https://arxiv.org/html/2608.25343#A1.SS1)\. Table 4:Comparison of clustering strategies inGUIDE\. “Pho” and “Vis” denote the homophonic model and the visual\-similarity model, respectively\. “Pho\+Vis” is the combined setting used in our main experiments\. ### 3\.2Main Results Table[2](https://arxiv.org/html/2608.25343#S3.T2)reports results onQSpell 250KandKwaiSearch\.GUIDEachieves the best overall performance on both datasets, with especially large gains onKwaiSearch\. This suggests that constraining correction to phonetic/visual confusion neighborhoods is highly effective\. OnQSpell 250K,Simple\-CSCtrades precision for recall, reflecting more aggressive rewriting behavior\. In query recommendation, however, false corrections are often more harmful than missed typos, so the stronger precision–recall balance ofGUIDEis better aligned with deployment needs\. In\-context prompting remains consistently weaker overall\. Additional qualitative examples are provided in Appendix[B\.3](https://arxiv.org/html/2608.25343#A2.SS3)\. ### 3\.3Online A/B Testing We further validateGUIDEin an online A/B test on real search traffic\. Here we deploy the corrector at several high\-traffic query entry points, where it corrects the candidate query set for recommendation: SUG search \(search suggestions during typing\), guess you search \(pre\-search query guesses surfaced to users\), boxed\-term search \(search\-box guesses of likely queries\), and comment/bottom\-bar guess search \(lightweight guesses shown in comment or bottom\-bar modules\)\. As the production baseline, we compare with the previous online correction method\. Compared with this baseline,GUIDEsubstantially improves user\-perceived quality: the misspelling rate drops by 80\.1% \(from 2\.01% to 0\.40%\)\. We also observe consistent efficiency gains across multiple entry points, including SUG search PV \(\+0\.152%\), guess you search PV \(\+0\.576%\), boxed\-term search PV \(\+0\.707%\), and comment/bottom\-bar guess search PV \(\+0\.986%\), together leading to a \+0\.122% increase in overall search volume\. ## 4Discussion ### 4\.1Are Homophonic and Visual\-Similarity Models Complementary? To verify whetherGUIDEbenefits from modeling both dominant error sources in Chinese queries, we compare three settings: \(i\) only the homophonic model, \(ii\) only the visual\-similarity model, and \(iii\) their combination \(our default setting\)\. As shown in Table[4](https://arxiv.org/html/2608.25343#S3.T4), Pho\+Vis achieves the best F1 on both datasets, indicating that the two clustering strategies are complementary\. Overall, the homophonic model plays a more dominant role, while the visual\-similarity model provides additional gains by covering look\-alike errors that are not well captured by pronunciation cues\. Figure 2:Sensitivity ofGUIDEto phonetic and visual clustering granularity onKwaiSearch\. ### 4\.2How Sensitive IsGUIDEto Clustering Granularity? We examine the effect of clustering granularity on correction quality\. For homophonic clustering, we compare the default tone\-stripped setting with two variants: a coarser pinyin setting and a finer tone\-aware setting\. The coarser setting merges common pinyin confusions that arise from regional accents in Mandarin and are directly reflected as typing errors in pinyin IMEs, including retroflex/non\-retroflex initials \(\{z, zh\}, \{c, ch\}, \{s, sh\}\), nasal/lateral initials \(\{n, l\}\), labiodental confusions \(\{h, f\}\), and front/back nasal finals \(\{en, eng\}, \{in, ing\}, \{an, ang\}\)\. For visual clustering, we vary the thresholdτ\\tauthat controls neighborhood size\. Figure[2](https://arxiv.org/html/2608.25343#S4.F2)summarizes the trends, while the full numerical results are provided in Table[9](https://arxiv.org/html/2608.25343#A2.T9)\. The default tone\-stripped clustering gives the best overall F1 among phonetic variants, whileτ=0\.5\\tau=0\.5performs best for visual similarity clustering\. Overall, moderate confusion neighborhoods provide the best balance between coverage and noise\. ## 5Related Work ### 5\.1Chinese Spelling and Query Correction *Chinese spelling correction \(CSC\)*is typically studied on sentence\-level text with richer contextual information, whereas*Chinese query correction \(CQC\)*focuses on short search queries, where ambiguity is higher and vocabulary shift is faster\. Because query correction directly affects retrieval and recommendation, CQC places stronger emphasis on intent preservation and control over editing behavior than general CSC\. Early correction methods often followed a noisy\-channel formulation with candidate generation and ranking\([Brill and Moore, 2000](https://arxiv.org/html/2608.25343#bib.bib25)\)\. More recent CSC systems increasingly adopt PLM\-based “detect\-then\-correct” architectures, such as Soft\-Masked BERT\([Zhang et al\., 2020](https://arxiv.org/html/2608.25343#bib.bib16)\), to reduce unnecessary rewriting\. For Chinese, phonetic and glyph similarity are especially important, and many models incorporate them through structured relations, multimodal features, including SpellGCN\([Cheng et al\., 2020](https://arxiv.org/html/2608.25343#bib.bib26)\)and ReaLiSe\([Xu et al\., 2021](https://arxiv.org/html/2608.25343#bib.bib17)\)\. Other efficient correction systems, such as FASPell\([Hong et al\., 2019](https://arxiv.org/html/2608.25343#bib.bib15)\), also show strong performance under realistic Chinese spelling noise, while newer datasets such as CSCD\-NS broaden evaluation coverage\([Hu et al\., 2024](https://arxiv.org/html/2608.25343#bib.bib27)\)\. Within the query setting, recent work highlights the mismatch between generic CSC assumptions and real search queries\. Benchmarks such asQSpell 250K\([Ye et al\., 2025](https://arxiv.org/html/2608.25343#bib.bib18)\)better reflect naturally occurring query errors and rapidly changing entities\. At the same time, recent studies show that strong language models can still over\-correct short ambiguous inputs toward frequent or generic expressions\([Li et al\., 2023](https://arxiv.org/html/2608.25343#bib.bib28);[Liu et al\., 2024](https://arxiv.org/html/2608.25343#bib.bib29)\), motivating stronger mechanisms for edit control\. To improve robustness on rare entities and shifting queries, some systems further incorporate retrieval or orchestration components, such as RACQC\([Su et al\., 2025](https://arxiv.org/html/2608.25343#bib.bib19)\)and Trigger3\([Zhang et al\., 2024](https://arxiv.org/html/2608.25343#bib.bib30)\)\. Our work is related to these lines but differs in where the correction constraint is imposed\. Prior CSC models typically inject phonetic or glyph knowledge into a supervised correction model, while training\-free LLM approaches mainly constrain decoding at inference time\. By contrast,GUIDEuses phonetic and visual similarity to define a shared\-ID input space and learns correction through reconstruction from that lossy abstraction\. This makes the confusion structure itself part of the training objective, rather than only an auxiliary feature or a decoding\-time constraint\. ### 5\.2Unsupervised Query Correction To reduce reliance on annotated correction pairs, unsupervised and weakly supervised correction methods learn from raw text or logs via synthetic corruption, self\-training, denoising, or masked reconstruction\. A common strategy is to generate pseudo pairs by applying confusion\-set substitutions or masking and then train a model to recover the original text\([Liu et al\., 2021](https://arxiv.org/html/2608.25343#bib.bib5);[Li, 2022](https://arxiv.org/html/2608.25343#bib.bib6)\)\. Several studies further argue that realistic Chinese spelling errors are strongly shaped by the input process, and therefore simulate pinyin IME decoding to create pseudo data that better matches real error patterns\([Hu et al\., 2024](https://arxiv.org/html/2608.25343#bib.bib27)\)\. Other work reduces dependence on fixed confusion sets by using language\-model scoring, self\-supervised decoding, or inference\-time denoising\([Jiang et al\., 2024](https://arxiv.org/html/2608.25343#bib.bib2);[Zhou et al\., 2024](https://arxiv.org/html/2608.25343#bib.bib1)\)\. There are also flexible correction pipelines based on candidate evaluation with lightweight detectors and configurable candidate tables\([Shao and Li, 2023](https://arxiv.org/html/2608.25343#bib.bib3)\)\. Compared with these approaches,GUIDEtakes a different view of unsupervised learning\. Rather than constructing synthetic error–correction pairs, we learn directly from unlabeled query streams by mapping confusable characters into shared encoder IDs and training the model to reconstruct the original query\. This confuse\-then\-clarify formulation avoids committing to a hand\-designed corruption process while still imposing a strong inductive bias toward plausible IME\-shaped edits\. In this sense,GUIDEis closest in spirit to input\-process\-aware correction, but differs in using confusion neighborhoods as a lossy input abstraction and reconstruction signal for controlled generation\. ## 6Limitations and Future Work GUIDEis designed for high\-precision correction under weak query context, and this design choice also defines its current scope\. First, the framework focuses on length\-preserving character substitution and does not directly address insertion, deletion, segmentation, or phrase\-level rewriting errors\. This is a practical trade\-off: in our production setting, substitution errors—especially homophonic and visually similar ones—are among the most practically important query mistakes, making controlled substitution correction highly valuable\. In practice, we view this as a deliberate decomposition choice: different query error types can be handled by the models or modules best suited to them, which is often a favorable design for industrial systems\. Second, although phonetic and visual shared\-ID neighborhoods cover the dominant error sources in Chinese queries, they do not capture all realistic error types\. Errors falling outside the constructed neighborhoods, or cases where the neighborhood itself is noisy, may still lead to missed corrections or over\-correction\. This is particularly relevant for visual clustering, whose neighborhoods can be substantially noisier than phonetic ones\. At the same time, our results validate the effectiveness of this neighborhood\-based design\. While the current construction is not perfect, it can be further improved through continued refinement of clustering methods, and its failure cases remain relatively interpretable\. Third, our current deployment combines phonetic and visual signals through a simple heuristic selection strategy rather than a unified fusion model\. We chose this decoupled design for stability and operational simplicity in production, but it leaves room for more principled integration, such as confidence\-aware fusion, joint multimodal encoding, or learned routing between error types\. Finally, because our platform primarily serves Chinese queries, we focus this study on Chinese query correction\. That said, the overall confuse\-then\-clarify paradigm is not inherently Chinese\-specific, and can be generalized to other languages with language\-appropriate neighborhood construction, such as phonological neighbors, keyboard\-proximity errors, orthographic variants, or morphology\-aware confusion structures\. Exploring such extensions is a natural direction for future work\. ## 7Conclusion We studied unsupervised Chinese query correction on content platforms, where weak context and IME\-shaped noise make free\-form rewriting especially prone to intent drift\.GUIDEaddresses this challenge through a confuse\-then\-clarify paradigm: by encoding queries in phonetic/visual shared\-ID neighborhoods and reconstructing original character sequences, it enables controlled correction from unlabeled query streams\. Across both offline benchmarks and online A/B testing, the results suggest that, for short\-query correction, effective control over the edit space can be more important than unconstrained generation\. ## Acknowledgments This work was conducted at Kuaishou Technology\. We thank the company for its support, and our colleagues on the search and recommendation team for helpful discussions and their assistance with data processing, deployment, and online experiments\. We are especially grateful to Xuanping Li for valuable guidance and support throughout this work\. We also thank the anonymous reviewers and area chairs for their constructive comments\. ## References - Bacciuet al\.\(2024\)A\. Bacciu, E\. Palumbo, A\. Damianou, N\. Tonellotto, and F\. SilvestriGenerating query recommendations via LLMs\.Note:arXiv:2405\.19749External Links:[Document](https://dx.doi.org/10.48550/arXiv.2405.19749),[Link](https://arxiv.org/abs/2405.19749)Cited by:[§1](https://arxiv.org/html/2608.25343#S1.p1.1)\. - Brill and Moore \(2000\)E\. Brill and R\. C\. MooreAn improved error model for noisy channel spelling correction\.InProceedings of the 38th Annual Meeting of the Association for Computational Linguistics,Hong Kong,pp\. 286–293\.External Links:[Link](https://aclanthology.org/P00-1037/),[Document](https://dx.doi.org/10.3115/1075218.1075255)Cited by:[§5\.1](https://arxiv.org/html/2608.25343#S5.SS1.p2.1)\. - Chenget al\.\(2020\)X\. Cheng, W\. Xu, K\. Chen, S\. Jiang, F\. Wang, T\. Wang, W\. Chu, and Y\. QiSpellGCN: incorporating phonological and visual similarities into language models for Chinese spelling check\.InProceedings of the 58th Annual Meeting of the Association for Computational Linguistics,D\. Jurafsky, J\. Chai, N\. Schluter, and J\. Tetreault \(Eds\.\),Online,pp\. 871–881\.External Links:[Link](https://aclanthology.org/2020.acl-main.81/),[Document](https://dx.doi.org/10.18653/v1/2020.acl-main.81)Cited by:[§5\.1](https://arxiv.org/html/2608.25343#S5.SS1.p2.1)\. - Devlinet al\.\(2019\)J\. Devlin, M\. Chang, K\. Lee, and K\. ToutanovaBERT: pre\-training of deep bidirectional transformers for language understanding\.InProceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 \(Long and Short Papers\),J\. Burstein, C\. Doran, and T\. Solorio \(Eds\.\),Minneapolis, Minnesota,pp\. 4171–4186\.External Links:[Link](https://aclanthology.org/N19-1423/),[Document](https://dx.doi.org/10.18653/v1/N19-1423)Cited by:[1st item](https://arxiv.org/html/2608.25343#S3.I1.i1.p1.1)\. - Dosovitskiyet al\.\(2020\)A\. Dosovitskiy, L\. Beyer, A\. Kolesnikov, D\. Weissenborn, X\. Zhai, T\. Unterthiner, M\. Dehghani, M\. Minderer, G\. Heigold, S\. Gelly,et al\.An image is worth 16x16 words: transformers for image recognition at scale\.arXiv preprint arXiv:2010\.11929\.Cited by:[§2\.2](https://arxiv.org/html/2608.25343#S2.SS2.SSS0.Px2.p1.1)\. - Gaoet al\.\(2010\)J\. Gao, X\. Li, D\. Micol, C\. Quirk, and X\. SunA large scale ranker\-based system for search query spelling correction\.InProceedings of the 23rd International Conference on Computational Linguistics \(Coling 2010\),Beijing, China,pp\. 358–366\.External Links:[Link](https://aclanthology.org/C10-1041/)Cited by:[§1](https://arxiv.org/html/2608.25343#S1.p1.1)\. - Honget al\.\(2019\)Y\. Hong, X\. Yu, N\. He, N\. Liu, and J\. LiuFASPell: a fast, adaptable, simple, powerful Chinese spell checker based on DAE\-decoder paradigm\.InProceedings of the 5th Workshop on Noisy User\-generated Text \(W\-NUT 2019\),W\. Xu, A\. Ritter, T\. Baldwin, and A\. Rahimi \(Eds\.\),Hong Kong, China,pp\. 160–169\.External Links:[Link](https://aclanthology.org/D19-5522/),[Document](https://dx.doi.org/10.18653/v1/D19-5522)Cited by:[§1](https://arxiv.org/html/2608.25343#S1.p3.1),[§5\.1](https://arxiv.org/html/2608.25343#S5.SS1.p2.1)\. - Huet al\.\(2024\)Y\. Hu, F\. Meng, and J\. ZhouCSCD\-NS: a Chinese spelling check dataset for native speakers\.InProceedings of the 62nd Annual Meeting of the Association for Computational Linguistics \(Volume 1: Long Papers\),Bangkok, Thailand,pp\. 146–159\.External Links:[Document](https://dx.doi.org/10.18653/v1/2024.acl-long.10),[Link](https://aclanthology.org/2024.acl-long.10/)Cited by:[§5\.1](https://arxiv.org/html/2608.25343#S5.SS1.p2.1),[§5\.2](https://arxiv.org/html/2608.25343#S5.SS2.p1.1)\. - Jianget al\.\(2024\)L\. Jiang, H\. Wu, H\. Zhao, and M\. ZhangChinese spelling corrector is just a language learner\.InFindings of the Association for Computational Linguistics: ACL 2024,L\. Ku, A\. Martins, and V\. Srikumar \(Eds\.\),Bangkok, Thailand,pp\. 6933–6943\.External Links:[Link](https://aclanthology.org/2024.findings-acl.413/),[Document](https://dx.doi.org/10.18653/v1/2024.findings-acl.413)Cited by:[§5\.2](https://arxiv.org/html/2608.25343#S5.SS2.p1.1)\. - Li \(2022\)P\. LiUChecker: masked pretrained language models as unsupervised Chinese spelling checkers\.InProceedings of the 29th International Conference on Computational Linguistics,N\. Calzolari, C\. Huang, H\. Kim, J\. Pustejovsky, L\. Wanner, K\. Choi, P\. Ryu, H\. Chen, L\. Donatelli, H\. Ji, S\. Kurohashi, P\. Paggio, N\. Xue, S\. Kim, Y\. Hahm, Z\. He, T\. K\. Lee, E\. Santus, F\. Bond, and S\. Na \(Eds\.\),Gyeongju, Republic of Korea,pp\. 2812–2822\.External Links:[Link](https://aclanthology.org/2022.coling-1.248/)Cited by:[§1](https://arxiv.org/html/2608.25343#S1.p3.1),[§5\.2](https://arxiv.org/html/2608.25343#S5.SS2.p1.1)\. - Liet al\.\(2023\)Y\. Li, H\. Huang, S\. Ma, Y\. Jiang, Y\. Li, F\. Zhou, H\. Zheng, and Q\. ZhouOn the \(in\) effectiveness of large language models for chinese text correction\.arXiv preprint arXiv:2307\.09007\.Cited by:[§1](https://arxiv.org/html/2608.25343#S1.p3.1),[§5\.1](https://arxiv.org/html/2608.25343#S5.SS1.p3.1)\. - Liuet al\.\(2010\)C\. Liu, M\. Lai, Y\. Chuang, and C\. LeeVisually and phonologically similar characters in incorrect simplified chinese words\.InColing 2010: Posters,Beijing, China,pp\. 739–747\.External Links:[Link](https://aclanthology.org/C10-2085/)Cited by:[§1](https://arxiv.org/html/2608.25343#S1.p5.1)\. - Liuet al\.\(2024\)L\. Liu, H\. Wu, and H\. ZhaoChinese spelling correction as rephrasing language model\.Proceedings of the AAAI Conference on Artificial Intelligence38\(17\)\.External Links:[Document](https://dx.doi.org/10.1609/aaai.v38i17.29829)Cited by:[§1](https://arxiv.org/html/2608.25343#S1.p3.1),[§5\.1](https://arxiv.org/html/2608.25343#S5.SS1.p3.1)\. - Liuet al\.\(2021\)S\. Liu, T\. Yang, T\. Yue, F\. Zhang, and D\. WangPLOME: pre\-training with misspelled knowledge for Chinese spelling correction\.InProceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing \(Volume 1: Long Papers\),C\. Zong, F\. Xia, W\. Li, and R\. Navigli \(Eds\.\),Online,pp\. 2991–3000\.External Links:[Link](https://aclanthology.org/2021.acl-long.233/),[Document](https://dx.doi.org/10.18653/v1/2021.acl-long.233)Cited by:[§1](https://arxiv.org/html/2608.25343#S1.p3.1),[§5\.2](https://arxiv.org/html/2608.25343#S5.SS2.p1.1)\. - Shao and Li \(2023\)F\. Shao and J\. LiDual\-detector: an unsupervised learning framework for chinese spelling check\.InPacific\-Asia conference on knowledge discovery and data mining,pp\. 162–173\.Cited by:[§5\.2](https://arxiv.org/html/2608.25343#S5.SS2.p1.1)\. - Suet al\.\(2025\)J\. Su, L\. Gao, W\. Li, S\. Liu, H\. Lei, X\. Wang, Y\. Guo, K\. Wang, D\. Shi, and D\. YinRACQC: advanced retrieval\-augmented generation for Chinese query correction\.InFindings of the Association for Computational Linguistics: EMNLP 2025,C\. Christodoulopoulos, T\. Chakraborty, C\. Rose, and V\. Peng \(Eds\.\),Suzhou, China,pp\. 675–689\.External Links:[Link](https://aclanthology.org/2025.findings-emnlp.36/),[Document](https://dx.doi.org/10.18653/v1/2025.findings-emnlp.36),ISBN 979\-8\-89176\-335\-7Cited by:[§1](https://arxiv.org/html/2608.25343#S1.p2.1),[§5\.1](https://arxiv.org/html/2608.25343#S5.SS1.p3.1)\. - Sunet al\.\(2012\)X\. Sun, A\. Shrivastava, and P\. LiFast multi\-task learning for query spelling correction\.InProceedings of the 21st ACM International Conference on Information and Knowledge Management \(CIKM’12\),pp\. 285–294\.External Links:[Document](https://dx.doi.org/10.1145/2396761.2396800)Cited by:[§1](https://arxiv.org/html/2608.25343#S1.p1.1)\. - Tsenget al\.\(2015\)Y\. Tseng, L\. Lee, L\. Chang, and H\. ChenIntroduction to SIGHAN 2015 bake\-off for Chinese spelling check\.InProceedings of the Eighth SIGHAN Workshop on Chinese Language Processing,L\. Yu, Z\. Sui, Y\. Zhang, and V\. Ng \(Eds\.\),Beijing, China,pp\. 32–37\.External Links:[Link](https://aclanthology.org/W15-3106/),[Document](https://dx.doi.org/10.18653/v1/W15-3106)Cited by:[§3\.1](https://arxiv.org/html/2608.25343#S3.SS1.SSS0.Px1.p1.1)\. - Wanget al\.\(2018\)D\. Wang, Y\. Song, J\. Li, J\. Han, and H\. ZhangA hybrid approach to automatic corpus generation for Chinese spelling check\.InProceedings of the 2018 Conference on Empirical Methods in Natural Language Processing,E\. Riloff, D\. Chiang, J\. Hockenmaier, and J\. Tsujii \(Eds\.\),Brussels, Belgium,pp\. 2517–2527\.External Links:[Link](https://aclanthology.org/D18-1273/),[Document](https://dx.doi.org/10.18653/v1/D18-1273)Cited by:[§3\.1](https://arxiv.org/html/2608.25343#S3.SS1.SSS0.Px1.p1.1)\. - Wuet al\.\(2023\)H\. Wu, S\. Zhang, Y\. Zhang, and H\. ZhaoRethinking masked language modeling for Chinese spelling correction\.InProceedings of the 61st Annual Meeting of the Association for Computational Linguistics \(Volume 1: Long Papers\),A\. Rogers, J\. Boyd\-Graber, and N\. Okazaki \(Eds\.\),Toronto, Canada,pp\. 10743–10756\.External Links:[Link](https://aclanthology.org/2023.acl-long.600/),[Document](https://dx.doi.org/10.18653/v1/2023.acl-long.600)Cited by:[2nd item](https://arxiv.org/html/2608.25343#S3.I1.i2.p1.1),[§3\.1](https://arxiv.org/html/2608.25343#S3.SS1.SSS0.Px1.p1.1)\. - Wuet al\.\(2013a\)S\. Wu, C\. Liu, and L\. LeeChinese spelling check evaluation at sighan bake\-off 2013\.InProceedings of the Seventh SIGHAN Workshop on Chinese Language Processing,Nagoya, Japan,pp\. 35–42\.External Links:[Link](https://aclanthology.org/W13-4406/)Cited by:[§1](https://arxiv.org/html/2608.25343#S1.p5.1)\. - Wuet al\.\(2013b\)S\. Wu, C\. Liu, and L\. LeeChinese spelling check evaluation at SIGHAN bake\-off 2013\.InProceedings of the Seventh SIGHAN Workshop on Chinese Language Processing,L\. Yu, Y\. Tseng, J\. Zhu, and F\. Ren \(Eds\.\),Nagoya, Japan,pp\. 35–42\.External Links:[Link](https://aclanthology.org/W13-4406/)Cited by:[§3\.1](https://arxiv.org/html/2608.25343#S3.SS1.SSS0.Px1.p1.1)\. - Xuet al\.\(2021\)H\. Xu, Z\. Li, Q\. Zhou, C\. Li, Z\. Wang, Y\. Cao, H\. Huang, and X\. MaoRead, listen, and see: leveraging multimodal information helps Chinese spell checking\.InFindings of the Association for Computational Linguistics: ACL\-IJCNLP 2021,C\. Zong, F\. Xia, W\. Li, and R\. Navigli \(Eds\.\),Online,pp\. 716–728\.External Links:[Link](https://aclanthology.org/2021.findings-acl.64/),[Document](https://dx.doi.org/10.18653/v1/2021.findings-acl.64)Cited by:[§1](https://arxiv.org/html/2608.25343#S1.p3.1),[§5\.1](https://arxiv.org/html/2608.25343#S5.SS1.p2.1)\. - Yanget al\.\(2025\)A\. Yang, A\. Li, B\. Yang, B\. Zhang, B\. Hui, B\. Zheng, B\. Yu, C\. Gao, C\. Huang, C\. Lv, C\. Zheng, D\. Liu, F\. Zhou, F\. Huang, F\. Hu, H\. Ge, H\. Wei, H\. Lin, J\. Tang, J\. Yang, J\. Tu, J\. Zhang, J\. Yang, J\. Yang, J\. Zhou, J\. Zhou, J\. Lin, K\. Dang, K\. Bao, K\. Yang, L\. Yu, L\. Deng, M\. Li, M\. Xue, M\. Li, P\. Zhang, P\. Wang, Q\. Zhu, R\. Men, R\. Gao, S\. Liu, S\. Luo, T\. Li, T\. Tang, W\. Yin, X\. Ren, X\. Wang, X\. Zhang, X\. Ren, Y\. Fan, Y\. Su, Y\. Zhang, Y\. Zhang, Y\. Wan, Y\. Liu, Z\. Wang, Z\. Cui, Z\. Zhang, Z\. Zhou, and Z\. QiuQwen3 technical report\.arXiv preprint arXiv:2505\.09388\.Cited by:[4th item](https://arxiv.org/html/2608.25343#S3.I1.i4.p1.1)\. - Yanget al\.\(2023\)L\. Yang, X\. Liu, T\. Liao, Z\. Liu, M\. Wang, X\. Fang, and E\. YangIs chinese spelling check ready? understanding the correction behavior in real\-world scenarios\.AI Open4,pp\. 183–192\.External Links:ISSN 2666\-6510,[Document](https://dx.doi.org/https%3A//doi.org/10.1016/j.aiopen.2023.10.004),[Link](https://www.sciencedirect.com/science/article/pii/S2666651023000207)Cited by:[§1](https://arxiv.org/html/2608.25343#S1.p2.1)\. - Yeet al\.\(2025\)D\. Ye, H\. Jia, J\. Hu, T\. Bowen, J\. Liu, H\. Liang, J\. Ma, and W\. WangQSpell 250K: a large\-scale, practical dataset for Chinese search query spell correction\.InProceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies \(Volume 3: Industry Track\),W\. Chen, Y\. Yang, M\. Kachuee, and X\. Fu \(Eds\.\),Albuquerque, New Mexico,pp\. 148–155\.External Links:[Link](https://aclanthology.org/2025.naacl-industry.13/),[Document](https://dx.doi.org/10.18653/v1/2025.naacl-industry.13),ISBN 979\-8\-89176\-194\-0Cited by:[§3\.1](https://arxiv.org/html/2608.25343#S3.SS1.SSS0.Px1.p1.1),[§5\.1](https://arxiv.org/html/2608.25343#S5.SS1.p3.1)\. - Yuet al\.\(2014\)L\. Yu, L\. Lee, Y\. Tseng, and H\. ChenOverview of SIGHAN 2014 bake\-off for Chinese spelling check\.InProceedings of the Third CIPS\-SIGHAN Joint Conference on Chinese Language Processing,L\. Sun, C\. Zong, M\. Zhang, and G\. Levow \(Eds\.\),Wuhan, China,pp\. 126–132\.External Links:[Link](https://aclanthology.org/W14-6820/),[Document](https://dx.doi.org/10.3115/v1/W14-6820)Cited by:[§3\.1](https://arxiv.org/html/2608.25343#S3.SS1.SSS0.Px1.p1.1)\. - Zhanget al\.\(2024\)K\. Zhang, Z\. Sun, X\. Zhang, X\. Zang, K\. Zheng, Y\. Song, and J\. XuTrigger3\{\}^\{3\}: refining query correction via adaptive model selector\.Note:arXiv:2412\.12701External Links:[Document](https://dx.doi.org/10.48550/arXiv.2412.12701),[Link](https://arxiv.org/abs/2412.12701)Cited by:[§5\.1](https://arxiv.org/html/2608.25343#S5.SS1.p3.1)\. - Zhanget al\.\(2020\)S\. Zhang, H\. Huang, J\. Liu, and H\. LiSpelling error correction with soft\-masked BERT\.InProceedings of the 58th Annual Meeting of the Association for Computational Linguistics,D\. Jurafsky, J\. Chai, N\. Schluter, and J\. Tetreault \(Eds\.\),Online,pp\. 882–890\.External Links:[Link](https://aclanthology.org/2020.acl-main.82/),[Document](https://dx.doi.org/10.18653/v1/2020.acl-main.82)Cited by:[§1](https://arxiv.org/html/2608.25343#S1.p3.1),[§5\.1](https://arxiv.org/html/2608.25343#S5.SS1.p2.1)\. - Zhouet al\.\(2024\)H\. Zhou, Z\. Li, B\. Zhang, C\. Li, S\. Lai, J\. Zhang, F\. Huang, and M\. ZhangA simple yet effective training\-free prompt\-free approach to Chinese spelling correction based on large language models\.InProceedings of the 2024 Conference on Empirical Methods in Natural Language Processing,Y\. Al\-Onaizan, M\. Bansal, and Y\. Chen \(Eds\.\),Miami, Florida, USA,pp\. 17446–17467\.External Links:[Link](https://aclanthology.org/2024.emnlp-main.966)Cited by:[§1](https://arxiv.org/html/2608.25343#S1.p3.1),[3rd item](https://arxiv.org/html/2608.25343#S3.I1.i3.p1.1),[§5\.2](https://arxiv.org/html/2608.25343#S5.SS2.p1.1)\. ## Appendix ASupplementary Experimental Settings ### A\.1Training Settings This appendix provides the detailed training configurations forGUIDE\. Unless otherwise specified, all reported results use the same training recipe across model sizes\. #### Hardware\. We trainGUIDEon a single machine equipped with4×4\\timesNVIDIA L20 GPUs\. Mixed\-precision training is enabled\. #### Model Configuration\. GUIDEuses a standard Transformer encoder–decoder architecture\. We evaluate three sizes with\{3,6,12\}\\\{3,6,12\\\}encoder layers and\{3,6,12\}\\\{3,6,12\\\}decoder layers, respectively\. For all variants, we used\_model=768\\text\{d\\\_model\}=768,d\_ff=3072\\text\{d\\\_ff\}=3072,\# heads=12\\text\{\\\#\\ heads\}=12,dropout=0\.1\\text\{dropout\}=0\.1, andlabel smoothing=0\.1\\text\{label smoothing\}=0\.1\. The vocabulary consists of character IDs, and the encoder input is the shared\-ID sequence produced by the clustering module \(Section[2\.2](https://arxiv.org/html/2608.25343#S2.SS2)\)\. #### Optimization\. We optimize the time\-decayed, frequency\-reweighted negative log\-likelihood objective in Eq\.[1](https://arxiv.org/html/2608.25343#S2.E1)\. We use AdamW withβ1=0\.9\\beta\_\{1\}=0\.9,β2=0\.999\\beta\_\{2\}=0\.999,ϵ=1×10−5\\epsilon=1\\times 10^\{\-5\},weight decay=0\.01\\text\{weight decay\}=0\.01, and gradient clipping norm=1\.0\. The base learning rate is5×10−55\\times 10^\{\-5\}, with a warmup of 5% steps of the total steps followed by a cosine decay schedule \(e\.g\., inverse\-square\-root / cosine decay\)\. Training runs for 2 epochs, with an effective batch size of 512 queries \(micro\-batch size 128 per GPU and gradient accumulation steps 4\)\. We set the maximum input length to 16 characters and truncate longer sequences\. #### Data and Reweighting\. For each training example\(𝒙i,ti\)\(\{\\bm\{x\}\}\_\{i\},t\_\{i\}\), the shared\-ID input𝒙~i\\tilde\{\{\\bm\{x\}\}\}\_\{i\}is constructed by replacing each character with its phonetic/visual shared\-ID \(Section[2\.2](https://arxiv.org/html/2608.25343#S2.SS2)\)\. The weight iswi=log\(1\+ci\)⋅exp\(−λΔti\)w\_\{i\}=\\log\(1\+c\_\{i\}\)\\cdot\\exp\(\-\\lambda\\Delta t\_\{i\}\), whereλ=0\.0077\\lambda=0\.0077andΔti\\Delta t\_\{i\}is measured in9090days\. We sample training data proportionally towiw\_\{i\}, and update weights every week\. #### Decoding and Checkpoint Selection\. At inference time, we use beam search with beam size 10, length penalty 1\.0, and maximum decoding lengthmim\_\{i\}\(equal to the input length\)\. For the unified system, we run both phonetic\-shared\-ID and visual\-shared\-ID encodings and select the encoding whose best beam candidate yields the smaller score gap to the original query \(Section[2\.3](https://arxiv.org/html/2608.25343#S2.SS3)\)\. We select the final checkpoint using validation query\-level F1 \(or NLL\) on a held\-out set, evaluated every 2000 steps\. ### A\.2Baseline Settings For supervised and fine\-tuning baselines, we follow the original implementations and report the results in Section[3](https://arxiv.org/html/2608.25343#S3)\. ForLLM\-ICL, we use the Qwen3 series \(0\.6B/1\.7B/4B\) under 0\-shot and 10\-shot settings with randomly sampled demonstrations, using the prompt templates shown below\. #### Prompt Templates \(LLM\-ICL\)\. 0\-shot\. > 你是一个query纠错专家。请针对输入query,判断是否包含错别字,并进行合理纠错。 Query:\{text\} Output: English translation:“You are a query\-correction expert\. For the input query, decide whether it contains misspelled characters and correct them appropriately\.” 10\-shot\. > 你是一个query纠错专家。请针对输入query,进行合理的文本纠错,输出纠错后文本,禁止输出任何思考过程。 示例: Query:\.\.\.Output:\.\.\.\}×10\\left\.\\begin\{array\}\[\]\{@\{\}l@\{\}\}\\textnormal\{Query: \}\\texttt\{\.\.\.\}\\\\ \\textnormal\{Output: \}\\texttt\{\.\.\.\}\\end\{array\}\\right\\\}\\times 10 Query:\{text\} Output: English translation:“You are a query\-correction expert\. For the input query, perform reasonable text correction and output only the corrected text; do not output any reasoning process\.” \(“示例” = “Examples”\.\) ## Appendix BAdditional Experimental Results ### B\.1Ablation on the Training Objective and Sensitivity toλ\\lambda We ablate the two components of our training objective in Eq\. \([1](https://arxiv.org/html/2608.25343#S2.E1)\) onKwaiSearchto isolate their contributions\. Starting from a uniform objective, adding query\-frequency reweighting alone improves F1 by about 11 points, and further adding the time\-decay term yields an additional gain of about 4\.6 points \(Table[5](https://arxiv.org/html/2608.25343#A2.T5)\)\. This confirms that frequency reweighting is the dominant factor, while time decay provides a consistent additional benefit by shifting learning focus toward recent queries\. Importantly,λ\\lambdais not tuned on the test set\. We instead set it from a simple operational assumption: with an approximately 60% one\-year query overlap and weekly model updates, requiringe−λ⋅52=0\.6e^\{\-\\lambda\\cdot 52\}=0\.6over the 52 weekly steps of a year givesλ=0\.0098\\lambda=0\.0098, which is the value used throughout our experiments\. To show that this choice is robust, we also report more aggressive and more conservative alternatives obtained by targeting a 50% overlap \(λ=0\.0133\\lambda=0\.0133\) or an 80% overlap \(λ=0\.0043\\lambda=0\.0043\)\. As shown in Table[6](https://arxiv.org/html/2608.25343#A2.T6), both variants keep F1 within about 1\.6 points of our default, indicating thatGUIDEis not sensitive to the exact value ofλ\\lambda\. Table 5:Ablation of the training objective onKwaisearch\(3\-layer model\)\. Frequency reweighting alone adds∼\\sim11 F1 points over the uniform objective, and time decay adds a further∼\\sim4\.6 points\.Table 6:Sensitivity to the time\-decay coefficientλ\\lambdaonKwaisearch\(3\-layer model\)\. Targeting 50% overlap \(0\.01330\.0133\) or 80% overlap \(0\.00430\.0043\) keeps F1 within∼\\sim1\.6 points of our defaultλ=0\.0098\\lambda=0\.0098\. ### B\.2Selection of the Visual Clustering Thresholdτ\\tau The visual clustering thresholdτ\\tauis selected on a separate held\-out development set consisting purely of visual errors, rather than on theKwaisearchtest set\. We sweepτ\\taufor the visual\-similarity model on this development set and report the results in Table[7](https://arxiv.org/html/2608.25343#A2.T7)\. The thresholdτ=0\.5\\tau=0\.5is optimal on the development set, and we keep this value throughout all experiments\. This makes the selection protocol explicit and ensures thatτ\\tauis not tuned on any test data\. Table 7:Selection of the visual clustering thresholdτ\\tauon a held\-out development set of visual errors only\.τ=0\.5\\tau=0\.5is optimal and is used throughout\. ### B\.3Case Studies We provide qualitative examples to complement the quantitative results in Section[3](https://arxiv.org/html/2608.25343#S3)\. Table[8](https://arxiv.org/html/2608.25343#A2.T8)includes both representative*good cases*and*bad cases*forGUIDE\. In good cases,GUIDEfixes typical IME\-shaped confusions \(sound\-alike or look\-alike\) while preserving the remaining characters, producing outputs that better match the intended query\. In bad cases, two common failure modes are observed: \(i\)*over\-correction*, where a rare but valid query is rewritten toward a more frequent alternative, and \(ii\)*missed correction*, where the error lies outside the clustering neighborhood or requires extra context beyond the query itself\. For instance,GUIDEcorrects “时间同步板远离”→\\rightarrow“时间同步板原理” and “臧易通怎么查核酸报告”→\\rightarrow“藏易通怎么查核酸报告”, but may over\-correct “播音苏杨” to the frequent phrase “播音素养”, or keep “name英标怎么写” unchanged when the cue is weak; this mainly happens because short queries provide little context, so the model tends to favor high\-probability frequent phrases unless the phonetic/visual neighborhood offers a strong and unambiguous correction signal\. Table 8:Qualitative case studies on representative query correction examples\. We show the original query, the target correction, and the outputs ofGUIDEand baseline methods for two good cases \(Pho/Vis\) and two failure cases \(Over/Miss\)\.Table 9:Full numerical results for the clustering\-granularity analysis onKwaiSearch\. ## Appendix COnline A/B Testing Details The production baseline in our online A/B test \(Section[3\.3](https://arxiv.org/html/2608.25343#S3.SS3)\) is an LLM\-based corrector: a Qwen model fine\-tuned on tens of thousands of manually annotated correction pairs, using the same prompt as provided in this paper \(Appendix[A\.2](https://arxiv.org/html/2608.25343#A1.SS2)\)\. We compareGUIDEagainst this deployed LLM\-based correction model\. We run a bucketed A/B test from 2025\-09\-13 to 2025\-09\-22 \(10 days\) on 4\.2% of production main\-search traffic\. Our single\-day search page views \(PV\) are on the order of tens of millions, and the downstream query\-recommendation scenarios fed by the corrector carry far larger PV than search itself; at this scale, the A/B conclusions are highly confident\. The misspelling rate is measured by random sampling of online queries followed by manual annotation\. During the bucketed test,GUIDEreduces the misspelling rate from 2\.58% \(base\) to 0\.86% \(exp\), and yields a\+0\.122%\+0\.122\\%overall search\-volume lift\. GUIDEwas fully rolled out at the end of September 2025\. We continue to monitor the online misspelling rate by month, as reported in Table[10](https://arxiv.org/html/2608.25343#A3.T10)\. The reduction remains stable across subsequent months rather than being a transient effect, confirming a sustained improvement in correction quality\. Table 10:Post\-rollout monthly tracking of the online misspelling rate after the full rollout ofGUIDE\(end of September 2025\)\. The reduction is stable and sustained\.
Similar Articles
JSPG: Dynamic Dictionary Filtering via Joint Semantic-Pinyin-Glyph Retrieval for Chinese Contextual ASR
This paper proposes JSPG, a dynamic dictionary filtering framework that jointly leverages semantic, pinyin, and glyph features to improve keyword retrieval accuracy for Chinese contextual ASR, addressing the issue of homophonic errors that degrade semantic retrieval.
CNM-BERT: A Drop-In Structural Embedding for Chinese Characters via Ideographic Description Sequences
This paper proposes CNM, a lightweight augmentation that injects discrete compositional structure of Chinese characters into BERT via Ideographic Description Sequences, improving performance on rare and out-of-vocabulary characters while preserving general NLU accuracy.
CSRP: Chain-of-Thought Reasoning for Chinese Text Correction via Reinforcement Learning with Efficiency-Aware Rewards
CSRP proposes a three-stage framework combining continual pre-training, chain-of-thought supervised fine-tuning, and reinforcement learning with an efficiency-aware reward to address over-correction in Chinese grammatical error correction, achieving state-of-the-art results on the NACGEC benchmark.
Graph-Based Phonetic Error Correction of Noisy ASR
Proposes G-SPIN, a lightweight framework that combines phonetic graph modeling with contextual language understanding for correcting ASR errors, using a GNN to generate phonetically plausible candidate tokens, an MLM for local scoring, and an LLM for final re-ranking, all operating at inference time.
UniGD: A Unified Generative-Discriminative Framework for Industrial Retrieval
Kuaishou researchers propose UniGD, a unified generative-discriminative framework for industrial retrieval that integrates retrieval and relevance scoring into a single model, with techniques like CAGE and CAM to improve effectiveness and reduce latency. Online A/B tests show a 5.78% ad revenue increase and 33.1% inference latency reduction.