When Does Pre-Trained Capacity Help Causal Learning? From Scalar Prediction to Counterfactual Post-Training

Qi Xu, Zijie Lei, Zhifei Deng, Zhigang Hua, Luke SimonarXiv 2026

TL;DR

Scaling up a Large Language Model (LLM) doesn't guarantee better causal reasoning across the board. While larger models significantly improve at generating complex counterfactual text and code, they show surprisingly little gain in traditional scalar tasks like predicting treatment effect numbers. This suggests that "bigger is better" only applies when the task aligns with the model's generative strengths.

What Problem Does This Paper Address?

Causal inference is the science of "what if." It asks how an outcome would change if we applied a different treatment (e.g., "If this patient had taken a different drug, would they have recovered faster?"). Traditionally, this is treated as a regression problem: predicting a single number (a scalar). However, LLMs allow us to ask richer questions, like generating a full counterfactual code snippet or a narrative description of a life path.

The authors investigate a fundamental question: Does increasing the size of a pre-trained model actually help it learn causal relationships? They explore whether the "scaling laws" we see in general language tasks translate to causal tasks, and whether the way we present data (as raw tables vs. natural language narratives) changes how much of the model's internal "knowledge" we can actually use.

Methods

The researchers compared two distinct paradigms built on the Qwen 2.5 model family (0.5B and 1.5B parameters):

  1. CausalLLM (Scalar Prediction): The LLM acts as a feature encoder. Two "heads" (small neural networks) are attached to the top to predict the outcome for "treated" vs. "control" groups.
  2. CausalGen (Counterfactual Generation): Instead of numbers, this system generates text or code. It uses "soft prefixes"—learnable vectors that steer the model's existing decoder—to produce different outcomes based on the treatment.
Figure 1: Two adaptation regimes built on pre-trained LLMs. (a) CausalLLM adapts a shared encoder with lightweight treatment-specific scalar heads for ITE estimation. (b) CausalGen uses treatment-specific projections and soft prefixes followed by factual SFT, counterfactual SFT, and causal preference alignment. Only the 0.5B and 1.5B backbones and DPO-style preference alignment are evaluated in this paper; the additional 3B, GRPO, and DAPO options shown in the schematic are not evaluated. The systems differ in data, heads, output modality, supervision, and training procedure; their scaling contrast is descriptive.

For CausalGen, they employed a sophisticated three-stage post-training pipeline:

  • Factual SFT: Training on observed data.
  • Counterfactual SFT: Training on paired "what-if" scenarios.
  • Causal Preference Alignment: Using Direct Preference Optimization (DPO) to teach the model to prefer the correct outcome for a specific treatment.

Datasets

The study utilized four datasets covering different modalities:

  • IHDP & Twins: Standard causal inference benchmarks used for scalar prediction (predicting health outcomes or birth weights).
  • CodeGen: A new task where the model must generate code with or without "quality degradation" treatments (e.g., adding docstrings and validation).
  • Jobs: A dataset of employment narratives used to generate descriptions of career paths based on job training interventions.

Key Insights and Ideas

  • Available vs. Convertible Capacity: This is the paper's most provocative idea. A larger model has more "available" capacity (more parameters), but that capacity is only "convertible" if the task and training pipeline can actually tap into it.
  • The Generative Advantage: Scaling from 0.5B to 1.5B parameters provided a massive boost to generative tasks but almost no benefit to scalar prediction. This suggests LLMs are better at "reasoning" through causal problems when they are allowed to speak their native language (text) rather than just outputting a single number.
  • Narratives Beat Tables: Treating an LLM like a standard statistical tool by feeding it raw numbers (tabular data) is inefficient. Converting those tables into "Narrative" descriptions (e.g., "A 25-year-old college-educated user...") improved performance by 3.4%. The model's pre-trained understanding of the world helps it interpret the variables better when they are presented as language.
Comparison showing that narrative inputs outperform tabular and structured formats in reducing error (PEHE).

Key Results

  • Generative Scaling: On the CodeGen task, moving from a 0.5B to a 1.5B model increased the pass@1 score (a measure of code correctness) from 0.267 to 0.575—a more than 2x improvement.
  • Scalar Stagnation: On the IHDP dataset, the same increase in model size resulted in a slight increase in error ($\sqrt{PEHE}$ went from 1.780 to 1.796), showing that bigger isn't always better for simple regression.
  • Ablation of Heads: For generative tasks, using "Cross-Attention" to combine treatment information was the most effective method for producing high-quality code and accurate treatment effects.
Table 4: Effect of increasing backbone size from 0.5B to 1.5B. Scalar ITE estimation on IHDP shows no consistent gain across error metrics, whereas counterfactual generation on CodeGen improves substantially. We treat this two-size comparison as a task-dependent capacity effect, not a scaling law.

Limitations and Future Work

The authors are careful to note that this isn't a definitive "scaling law" for causality.

  • Sample Size: They only tested two small model sizes (0.5B and 1.5B) and three replications, which limits statistical certainty.
  • Confounding Factors: Because the scalar and generative systems used different datasets and architectures, it's hard to isolate exactly why the generative one scaled better. Was it the task itself, or the three-stage training pipeline?
  • Future Directions: The authors propose a "Controlled Follow-up Design" to evaluate the model at every single checkpoint (base model, after SFT, after DPO) to see exactly when the causal "aha!" moment happens.

Summary updated

Abstract

How does pre-trained model capacity relate to performance after adaptation for causal tasks? We study two systems built on the Qwen 2.5 family: CausalLLM, which estimates scalar potential outcomes with treatment-specific heads, and CausalGen, which generates treatment-conditioned text or code using soft prefixes and factual supervised fine-tuning (SFT), counterfactual SFT, and preference alignment. Increasing backbone size from 0.5B to 1.5B yields mixed scalar-estimation results on IHDP, but improves CodeGen pass@1 from 0.267 to 0.575 and treatment-effect score from 0.231 to 0.515 after the complete generative pipeline. Within 0.5B CausalLLM, narrative inputs reduce mean sqrt(PEHE) from 1.842 to 1.780, a 3.4% improvement over tabular inputs; the 5.8% improvement over a no-LLM baseline combines changes in representation and input format. These descriptive comparisons motivate a distinction between available and convertible capacity. They do not isolate the contribution of post-training: the two systems differ in dataset, architecture, output modality, and supervision, and intermediate-stage evaluations are unavailable. With only two small backbones and three replications, the results support a hypothesis about capacity--adaptation alignment rather than a general scaling law or a demonstrated causal mechanism.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
TwinsCausalLLM (Narrative)√PEHE0.450Causal Effect Estimation · lora-fine-tuned · params=0.5B
Source quote
L209: the no-LLM baseline (0.450 versus 0.452), and its rounded ATE error ties TARNet (0.012). Thus, the evidence
CodeGenCausalGen (Qwen 2.5-1.5B)pass@10.575complete-generative-pipeline · params=1.5B
Source quote
L16: pass@1 from 0.267 to 0.575 and treatment-effect score from 0.231 to 0.515 after the complete generative
JOBSCausalGen (Qwen 2.5-0.5B)BLEU Y(0)0.440+0.25 vs baselineSemantic Parsing · three-stage-post-training · params=0.5B
Source quote
L214: (0.440 versus 0.193).
CodeGenCausalGen (Qwen 2.5-0.5B)BLEU Y(0)0.374+0.22 vs baselinethree-stage-post-training · params=0.5B
Source quote
L260: 0.374
CodeGenCausalGen (Qwen 2.5-0.5B)TE Score0.354three-stage-post-training · params=0.5B
Source quote
L261: 0.354
CodeGenCausalGen (Qwen 2.5-0.5B)pass@10.267complete-generative-pipeline · params=0.5B
Source quote
L16: pass@1 from 0.267 to 0.575 and treatment-effect score from 0.231 to 0.515 after the complete generative
CodeGenCausalGen (Qwen 2.5-0.5B)treatment-effect score0.231complete-generative-pipeline · params=0.5B
Source quote
L16: pass@1 from 0.267 to 0.575 and treatment-effect score from 0.231 to 0.515 after the complete generative
Reported baseline / comparator measurements (4)
BenchmarkMethodMetricScoreProtocol / Evidence
IHDPDual-head MLP (no LLM) baseline√PEHE1.890Causal Effect Estimation
Source quote
L201: PEHE than the no-LLM dual-head MLP (1.780 versus 1.890),
TwinsDual-head MLP (no LLM) baseline√PEHE0.452Causal Effect Estimation
Source quote
L209: the no-LLM baseline (0.450 versus 0.452), and its rounded ATE error ties TARNet (0.012). Thus, the evidence
CodeGenSingle-head baselineBLEU Y(0)0.151Single-head CausalGen baseline; reference BLEU for treatment arm Y(0); 3 replications.
Source quote
L255: 0.151
JOBSSingle-head baselineBLEU Y(0)0.193Semantic Parsing
Source quote
L257: 0.193
BibTeX
@misc{xu2026when,
  author = {Qi Xu and Zijie Lei and Zhifei Deng and Zhigang Hua and Luke Simon},
  title = {{When Does Pre-Trained Capacity Help Causal Learning? From Scalar Prediction to Counterfactual Post-Training}},
  year = {2026},
  eprint = {2610.33311},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.33311},
}
Figure