What Makes a Good Query? Measuring the Impact of Human-Confusing Linguistic Features on LLM Performance
Organizations: J.P. Morgan AI Research
Abstract
Large Language Model (LLM) hallucinations are usually treated as defects of the model or its decoding strategy. Drawing on classical linguistics, we argue that a query's form can also shape a listener's (and model's) response. We operationalize this insight by constructing a 22-dimension query feature vector covering clause complexity, lexical rarity, and anaphora, negation, answerability, and intention grounding, all known to affect human comprehension. Using 369,837 real-world queries, we ask: Are there certain types of queries that make hallucination more likely? A large-scale analysis reveals a consistent "risk landscape": certain features such as deep clause nesting and underspecification align with higher hallucination propensity. In contrast, clear intention grounding and answerability align with lower hallucination rates. Others, including domain specificity, show mixed, dataset- and model-dependent effects. Thus, these findings establish an empirically observable query-feature representation correlated with hallucination risk, paving the way for guided query rewriting and future intervention studies.
Figures & tables
| Ordinal ( -only) | Correlation | ||||||||
| Feature | Coef | SE | -value | -value | OR | Adj. | |||
| Lack of Specificity | 0.868 | 0.010 | 85.898 | <10 -5 | 2.382 | 0.271 | 0.256 | <10 -5 | ✓ |
| Clause Complexity | 0.568 | 0.010 | 57.363 | <10 -5 | 1.764 | 0.155 | 0.147 | <10 -5 | ✓ |
| Negation Usage | 0.311 | 0.016 | 19.499 | <10 -5 | 1.364 | 0.028 | 0.026 | <10 -5 | ✓ |
| Excessive Details | 0.247 | 0.026 | 9.668 | <10 -5 | 1.281 | 0.066 | 0.063 | <10 -5 | ✓ |
| Anaphora Usage | 0.214 | 0.009 | 23.827 | <10 -5 | 1.238 | 0.107 | 0.101 | <10 -5 | ✓ |
Appendix figures & tables16 assets
Supplementary material from the paper’s appendix.
Appendix
| Query Type | Train | Val | Test | Total |
| Extractive | 80,049 | 5,843 | – | 85,892 |
| Multiple Choice | 45,997 | 14,127 | 21,573 | 81,697 |
| Abstractive | 176,446 | 24,521 | 1,281 | 202,248 |
| Overall | 302,492 | 44,491 | 22,854 | 369,837 |
| Safe | Borderline | Risky | ||||
| Query Type | Count | % | Count | % | Count | % |
| Extractive | 58,834 | 69.0 | 19,618 | 23.0 | 6,773 | 8.0 |
| Multiple Choice | 38,869 | 47.0 | 24,711 | 29.9 | 19,064 | 23.1 |
| Abstractive | 67,078 | 33.4 | 44,244 | 22.0 | 89,429 | 44.5 |
| Dataset | Scenario | Domain | License | Count | Citation |
| SQuADv2 | E, A | Wikipedia | CC BY-SA 4.0 | 86K | Rajpurkar et al. (2016) ; Rajpurkar et al. (2018) |
| TruthfulQA | M, A | General Knowledge | Apache-2.0 | 807 | Lin et al. (2022) |
| SciQ | M, A | Science | CC BY-NC 3.0 | 13K | Welbl et al. (2017) |
| MMLU | M | Various | MIT | 15K | Hendrycks et al. (2021) |
| PIQA | M | Physical Commonsense | AFL-3.0 | 17K | Bisk et al. (2020) |
| BoolQ | M | Yes/No Questions | CC BY-SA 3.0 | 13K | Clark et al. (2019) ; Wang et al. (2019) |
| Feature | KS | median | Direction | ||
| Answerability | 25,280 | 343,340 | risk | ||
| Intention Grounding | 13,576 | 355,044 | risk | ||
| Lack of Specificity | 302,781 | 65,839 | risk | ||
| Excessive Details | 361,479 | 7,141 | risk | ||
| Clause Complexity | 307,849 | 60,771 | risk | ||
| Query–Scenario Mismatch | 333,939 | 34,681 | risk |
| Feature | Overlap | ATE (IPW) | ATE (Strat.) | ||
| Named Entities Present | 260,289 | 108,331 | 1.000 | -0.000 | -0.001 |
| Polysemous Words | 141,646 | 226,974 | 1.000 | +0.014 | +0.016 |
| Pragmatic Features | 97,727 | 270,893 | 0.993 | +0.007 | +0.006 |
| Contextual Constraints | 242,475 | 126,145 | 0.983 | +0.000 | +0.003 |
| Domain Specificity | 296,997 | 71,623 | 0.979 | +0.001 | +0.006 |
| Clause Complexity | 60,771 | 307,849 | 0.969 | +0.103 | +0.083 |
| Feature | Definition | Example | |
| Structural | Query and Context Length | Total number of tokens in the query (and context, when applicable) | "How does reinforcement learning work?" (6 tokens) |
| Anaphoric Reference | Presence of pronouns or references requiring external context. | "What about that one?" (Unclear reference) | |
| Clause Complexity | Measures the presence of multiple subordinate clauses | "While I was walking home, I saw a cat that looked just like my friend’s." | |
| Dependency Tree Depth | Depth of the query’s syntactic dependency tree. | "Describe the structure of a sentence that contains multiple levels of embedding." (Depth: 7) | |
| Parse Tree Height | Height of the parse tree, providing a secondary measure of syntactic complexity. | "Analyze a sentence with nested relative clauses." (Height: 4) | |
| Scenario-Based | Query Type | Extractive, Multiple Choice, or Abstractive. | "Summarize the latest economic report." (Requires retrieval) |
| Feature | Presence | Question | Chain of Thought |
| Anaphora Usage | ✓ | Who was the guitarist for the English Rock band who Terry Kirkbride performed live in the studio with? | The question contains an anaphoric reference (‘the English Rock band’) without clear contextual information. |
| ✗ | Isotopes are named for their number of protons plus what? | The question does not contain anaphoric references; it is a straightforward scientific inquiry. | |
| Clause Complexity | ✓ | During evolution, something happened to increase the size of what organ in humans, relative to that of the chimpanzee? | The query has multiple clauses, increasing its complexity. |
| ✗ | What do some animals do to adjust to hot temperatures? | The question is simple, consisting of a single clause. | |
| Query-Scenario Mismatch | ✓ | What type of forested areas can be found on the highest terrace? | The query asks about ‘forested areas,’ but without a specific location or context, creating a mismatch. |
| ✗ | What date in 2009 saw the heaviest UK snowfall since 1991? | The question has a direct and valid scenario, asking for a factual historical date. |
| Feature | Presence | Question | Chain of Thought |
| Polysemous Words | ✓ | Who supervised the sting operation that implicated Evelyn Dawn Knight? | The word ‘supervised’ could have different meanings but in this context refers to oversight. |
| ✗ | Which string instrument often played the basso continuo parts? | The terms ‘string instrument’ and ‘basso continuo’ are not polysemous in this context. | |
| Subjectivity | ✓ | What is a criticism of other streaming services? | The query invites subjective responses based on personal opinions. |
| ✗ | What is the second book in the Harry Potter series? | The question is factual and does not involve subjectivity. | |
| Answerability | ✓ | How long was Warsaw occupied by Germany? | The question can be answered based on explicit historical data. |
| ✗ | Beyoncé would take a break from music in which year? | The event may not have a definitive, verifiable answer. |
Hallucination in Language Models
Hallucination in language models studies how systems produce unsupported or false claims and how to detect, explain, and reduce them.
See all 254 papers