Abstract
In this paper, we examine the collaborative dynamics between humans and language models (LMs), where the interactions typically involve LMs proposing text segments and humans editing or responding to these proposals. Productive engagement with LMs in such scenarios necessitates that humans discern effective text-based interaction strategies, such as editing and response styles, from historical human-LM interactions. This objective is inherently causal, driven by the counterfactual 'what-if' question: how would the outcome of collaboration change if humans employed a different text editing/refinement strategy? A key challenge in answering this causal inference question is formulating an appropriate causal estimand: the conventional average treatment effect (ATE) estimand is inapplicable to text-based treatments due to their high dimensionality. To address this concern, we introduce a new causal estimand—Incremental Stylistic Effect (ISE), which characterizes the average impact of infinitesimally shifting a text towards a specific style, such as increasing formality. We establish the conditions for the non-parametric identification of ISE. Building on this, we develop CausalCollab, an algorithm designed to estimate the ISE of various interaction strategies in dynamic human-LM collaborations. Our empirical investigations across three distinct human-LM collaboration scenarios reveal that CausalCollab effectively reduces confounding and significantly improves counterfactual estimation over a set of competitive baselines.
Introduction
In the era of large language models (LLMs), collaboration has become a primary mode of interaction. Users write, the AI suggests, and users refine. However, determining which editing strategies—such as adopting a more formal tone—actually lead to better outcomes remains a challenge. This research applies causal inference to answer these "what-if" questions in human-AI synergy.
The Challenge: High-Dimensionality and Confounding
Measuring the effect of a human edit on AI-generated text faces two major hurdles:
- Dimensionality: Traditional causal inference relies on the Average Treatment Effect (ATE). In text, the "treatment" is a sequence of words. Because there are infinite ways to rewrite a sentence, we cannot observe every possible treatment, violating the "positivity" assumption.
- Dynamic Confounding: Collaboration is iterative. A strategy's success often depends on the context. For instance, a polite tone might be effective in customer support but inappropriate in scientific writing. Observational data often conflates context with strategy effectiveness.
Methodology: Incremental Stylistic Effect (ISE)
To overcome these challenges, the authors propose focusing on stylistic shifts rather than specific word changes.
- ISE Estimand: This measures the average impact of infinitesimally shifting a text toward a specific style (e.g., making it slightly more formal). This approach ensures that any text can be modified, satisfying the positivity requirement.
- CausalCollab Algorithm: The authors developed a three-step pipeline involving Style Extraction via Conditional Variational Autoencoders (CVAE), Outcome Modeling to map style variables to quality scores, and G-Estimation to handle time-varying confounding.
Empirical Evaluation
The researchers validated CausalCollab across three collaborative scenarios: CoAuthor (creative and argumentative writing), Baize (multi-turn dialogues), and DIALOCONAN (counter-narratives against hate speech).
Key Results
CausalCollab was compared against several baselines using Mean Squared Error (MSE) on counterfactual data.
The results demonstrate that CausalCollab significantly reduces the gap between observational and counterfactual performance. In the CoAuthor dataset, the G-estimation + CVAE approach achieved a counterfactual MSE of 0.219, significantly outperforming the "No Adjustment" baseline of 0.353. The method proved robust even with added noise or varying latent space dimensions.
Conclusion
By treating style as the causal lever, this work makes text-based causal inference mathematically tractable. While the current framework estimates the effectiveness of existing strategies, future work could involve using these insights to train AI agents that proactively guide humans toward optimal collaboration strategies in real-time.
Reference: Zhang, B., Wang, Y., & Dhillon, P. S. (2024). Causal Inference for Human-Language Model Collaboration. Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics (NAACL).
Summary updated