[Paper Review] Mining Causality: AI-Assisted Search for Instrumental Variables
This paper proposes using large language models (LLMs) to systematically search for valid instrumental variables (IVs) in causal inference by leveraging narrative reasoning and counterfactual thinking, mimicking human researchers but at scale. The method uses structured, role-playing prompts to generate candidate IVs and control variables, demonstrating success in classic economics examples like returns to schooling and peer effects, with LLMs producing plausible, novel, and literature-consistent candidates.
The instrumental variables (IVs) method is a leading empirical strategy for causal inference. Finding IVs is a heuristic and creative process, and justifying its validity -- especially exclusion restrictions -- is largely rhetorical. We propose using large language models (LLMs) to search for new IVs through narratives and counterfactual reasoning, similar to how a human researcher would. The stark difference, however, is that LLMs can dramatically accelerate this process and explore an extremely large search space. We demonstrate how to construct prompts to search for potentially valid IVs. We contend that multi-step and role-playing prompting strategies are effective for simulating the endogenous decision-making processes of economic agents and for navigating language models through the realm of real-world scenarios, rather than anchoring them within the narrow realm of academic discourses on IVs. We apply our method to three well-known examples in economics: returns to schooling, supply and demand, and peer effects. We then extend our strategy to finding (i) control variables in regression and difference-in-differences and (ii) running variables in regression discontinuity designs.
Motivation & Objective
- To address the heuristic, creative, and largely rhetorical process of identifying valid instrumental variables (IVs) in empirical economics.
- To overcome the fundamental untestability of exclusion restrictions by using LLMs to explore a vast search space of potential IVs systematically.
- To develop prompting strategies—especially multi-step and role-playing prompts—that simulate economic agents’ endogenous decision-making to improve IV candidate generation.
- To extend the LLM-based search framework beyond IVs to control variables in regression and difference-in-differences, and running variables in regression discontinuity designs.
- To provide empirical researchers with a scalable, AI-assisted benchmark for generating and evaluating candidate causal identification strategies.
Proposed method
- Uses large language models (LLMs), specifically GPT-4, to generate candidate instrumental variables through narrative-based reasoning and counterfactual exploration.
- Employs a two-step prompting framework: first, identifying factors that affect treatment but not outcome except through treatment (exclusion restriction), then refining candidates based on unconfoundedness and relevance.
- Introduces role-playing prompts where the LLM assumes the perspective of an economic agent making endogenous decisions, enhancing realism and relevance of generated IVs.
- Applies structured prompts to search for control variables in difference-in-differences designs and running variables in regression discontinuity designs, using similar narrative logic.
- Uses verbal formulations of exclusion restrictions and relevance conditions as core components of prompts to guide LLM reasoning.
- Validates results through qualitative assessment across three canonical empirical examples: returns to schooling, production functions, and peer effects.
Experimental results
Research questions
- RQ1Can LLMs effectively generate plausible and novel instrumental variables by simulating human-like counterfactual reasoning and narrative justification?
- RQ2How do multi-step and role-playing prompting strategies improve the quality and relevance of LLM-generated IV candidates compared to abstract, non-interactive prompts?
- RQ3Can the same prompting framework be extended to identify control variables in regression and difference-in-differences, and running variables in regression discontinuity designs?
- RQ4To what extent do LLM-generated IV candidates align with established literature or suggest new, defensible identification strategies?
- RQ5How can LLMs assist in overcoming the lack of ground truth in IV validation, given that exclusion restrictions are fundamentally untestable?
Key findings
- GPT-4 successfully generated a list of candidate instrumental variables for returns to schooling, production functions, and peer effects, including both well-known and potentially novel IVs.
- The role-playing prompting approach produced more contextually relevant and decision-theoretically plausible IVs compared to abstract, non-interactive prompts.
- In the peer effects example, the method identified candidate IVs for a relatively newer research topic, suggesting potential for discovering IVs in emerging empirical areas.
- The method demonstrated feasibility in extending to other causal inference methods: control variables in difference-in-differences and running variables in regression discontinuity designs.
- The LLM-generated candidates were supported by narrative justifications that mirrored the rhetorical reasoning used in academic papers, suggesting alignment with scholarly standards.
- The approach provides a scalable, systematic benchmark for researchers to explore and evaluate potential IVs, control variables, and running variables, increasing the likelihood of identifying data-rich or analytically viable candidates.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.