Introduction
A hallmark of human intelligence is the ability to ask rich, creative, and revealing questions. While artificial intelligence systems often rely on simple, label-seeking queries (e.g., "Is this a cat?"), humans learn much more efficiently by asking open-ended, compositional questions (e.g., "What is the difference between a cat and a dog?").
Researchers have developed a novel cognitive model that treats human question-asking as a form of program synthesis. By representing questions as small, executable programs and balancing their "informativeness" against their "complexity," this model can predict which questions humans will ask in a game and even generate creative, novel questions of its own.
The Challenge of Open-Ended Questions
The primary challenge in modeling human inquiry is that the space of possible questions is effectively infinite. Traditional AI models struggle to generate these questions because they either rely on rigid, "canned" templates or require massive datasets to learn patterns that fail to generalize to new situations. This research bridges that gap by providing a computational framework for how humans construct meaningful, goal-directed queries on the fly.
A Computational Model of Inquiry
The authors propose a probabilistic generative model based on two core pillars: compositionality and computability.
- Questions as Programs: The model treats every question as a tiny piece of code using a LISP-like syntax. For example, the question "How long is the blue ship?" is represented as the program
(size Blue). When "executed" against a possible state of the world, it returns an answer. - A Grammar of Thought: To navigate the infinite space of possible questions, the authors designed a context-free grammar (CFG). This grammar defines the fundamental building blocks (like
size,color,plus,and) and the rules for how they can be combined. - The Log-Linear Model: To evaluate which questions are "good," the model uses a log-linear distribution based on several features:
- Informativeness (EIG): Using Bayesian belief updating, the model calculates the Expected Information Gain. A good question significantly reduces uncertainty about the world.
- Complexity: Humans prefer concise questions. The model uses the log-probability of the program under the grammar as a proxy for complexity, favoring shorter, simpler code.
- Answer Type & Relevance: Features that account for the base rates of question types (e.g., a preference for True/False questions) and ensure the question actually refers to the relevant context.
The Experiment: A Game of Hidden Ships
The model was evaluated using a dataset of 605 natural language questions collected from 40 human participants. These participants played a game similar to "Battleship" on a 6x6 grid. Their goal was to identify the size, orientation, and position of three hidden ships by asking one-word-answer questions about a partially revealed board.
Key Insights and Results
The model's evaluation revealed several fascinating insights into human cognition and communication:
- Productivity through Grammar: About 15% of the questions humans asked in a specific context were entirely unique—they never appeared in any other part of the dataset. This demonstrates that humans actively synthesize questions using a "grammar of thought" rather than selecting from a mental list of memorized queries.
- Zero-Shot Creativity: Because the model understands the semantics of the questions via executable programs, it can generate clever questions that were absent from the training set, such as "Are all the ships horizontal?"
- Predictive Power: The "Full Model" (combining EIG, complexity, and answer types) provided the best fit for human data. It achieved an average Spearman’s rank correlation of 0.64 with human question frequencies across different game contexts.
Crucially, the study found that complexity is a fundamental constraint. Purely maximizing Expected Information Gain leads to "inhuman" questions—a computer might ask a massive, multi-part question that perfectly identifies a ship but is too convoluted for a human to process.
As shown in the model comparison, when the authors removed the "complexity" feature (the Complexity-agnostic model), performance plummeted. The log-likelihood dropped drastically from -1400.06 to -22993.38, proving that humans strictly balance the utility of an answer against the mental effort required to formulate the question.
Limitations and Future Work
While promising, the framework has limitations. Currently, the model operates on semantic representations rather than raw natural language; a human must translate "How big is the red ship?" into (size Red) for the model to process it. Future work could integrate semantic parsers to automate this translation.
Additionally, the grammar used in this study was tailored to the specific "Battleship" domain. While logical functions are general, predicates like ship are not. Expanding this approach to more complex, real-world domains will require exploring how much "knowledge engineering" is necessary. Finally, improving the search algorithm within the program space is a critical next step, as sampling 150,000 questions to find the optimal one remains computationally expensive for real-time AI applications.
Summary updated