MLCrack

    NATURAL LANGUAGE PROCESSING · INTERVIEW QUESTION

    What is query expansion?

    🟢 beginner · NLP

    Hint: Focus on the decision rule, assumptions, and failure mode behind nlp.

    Answer

    Query expansion adds related terms, synonyms, or generated variants to improve recall. It can also introduce noise if expansions drift from intent.

    Interview reasoning

    Adding synonyms can recover missed documents but can also shift an ambiguous query such as bank toward the wrong sense. Anchor expansion to available context.

    Search logs and expansion affect both coverage and precision. Query expansion adds justified terms but can drift from intent; click-derived supervision reflects position and presentation. Learning to rank should use exposure-aware data and be compared on human-judged later queries as well as online outcomes.

    Worked example. Expanding 'jaguar speed' with automobile terms can harm a wildlife query.

    Validation

    Compare recall and intent-preserving precision on ambiguous queries.

    Inspect ambiguous queries, position-conditioned feedback and graded relevance; validate click-trained rankings on independently judged cohorts.

    Common pitfalls

    Generated expansions should not be treated as ground-truth user intent.

    Higher click rate does not uniquely mean greater relevance. Expansion synonyms or stale metadata can create convincing but wrong retrieval results.

    Likely follow-up: Compare recall and intent-preserving precision on ambiguous queries.