Manuscript Offprint

arXiv:2608.25343

GUIDE: Generative Unsupervised Chinese Query Correction via Phonetic and Visual Shared-ID Encoding

Lei Yang, Binbin Huang, Jiwei Tan, Xuhui Sui, Chang Tu, Yi Wang, Han Li

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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 propose GUIDE, a generative unsupervised framework for CQC based on a confuse-then-clarify paradigm. GUIDE encodes 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 on QSpell 250K and KwaiSearch, a large-scale industrial dataset from Kuaishou, show that GUIDE consistently outperforms strong baselines, while online A/B testing further confirms gains in correction quality and downstream engagement.

1 Introduction

Search queries directly express user intent and determine what content is retrieved and surfaced. On large content platforms such as TikTok and Kuaishou, 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). 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; Sun et al., 2012). This makes Chinese query correction (CQC) an important problem in industrial search systems.

Unlike the well-studied sentence-level Chinese spelling correction (CSC), CQC is substantially harder in practice due to several query-specific constraints (Yang et al., 2023; Su et al., 2025): (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; (3) 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; Xu et al., 2021), 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; Li, 2022), which introduces a hand-designed noise process that may not match real query errors. Training-free Language Model-based correction is attractive (Hong et al., 2019; Zhou et al., 2024), 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; Liu et al., 2024).

These limitations suggest that effective unsupervised CQC should not rely on free-form rewriting.

∗^{*} Equal contribution. †\dagger Corresponding author.

Instead, correction should stay within plausible confusion neighborhoods induced by realistic input errors and shaped by the language's input system. Based on this intuition, we propose GUIDE, 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, GUIDE learns 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-alike substitutions and, to a lesser extent, look-alike ones (Liu et al., 2010; Wu et al., 2013a). These error patterns are closely tied to Chinese Input Method Editors (IMEs), such as pinyin and handwriting. Accordingly, we implement GUIDE with 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 propose GUIDE, a Generative Unsupervised framework for Chinese query correction based on a confuse-then-clarify paradigm, where phonetic and visual shared-ID Encoding 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 release KwaiSearch, a real-world search-log dataset from the Kuaishou platform, and show strong results on both QSpell 250K and KwaiSearch, supported by online A/B testing.