# Spiked-CFR: Causal Representation Learning from LLMs via Wasserstein Projection Pursuit

Spiked-CFR learns balanced LLM representations by matching only a low-dimensional subspace

Fan Wang, Hengyu Yue, Yu Bowen, Weiming Liu, Zongxin Yang, Xuyun Zhang and 3 more · International Conference on Machine Learning · 2026-9-29

- **Problem** Full-space Wasserstein balancing of LLM embeddings gets too slow to estimate as dimension grows.
- **Method** SPIKED-CFR balances only a learned low-dimensional projection of frozen LLM embeddings.
- **Results** SPIKED-CFR reaches ϵPEHE of 2.47±0.20 on IHDP-post, compared to 2.50±0.21 for Llama-CForest. On ACIC-post it scores 2.18±0.03, compared to 2.26±0.03.

## Why full-space balancing weakens with LLM embeddings

Causal effect estimation from text now runs on LLM embeddings, so a natural design feeds those embeddings into CFR as covariates. CFR learns a representation that predicts outcomes and balances treated and control distributions through an IPM penalty.

The IPM term is a population quantity, but in practice it must be estimated from finite samples. For an empirical Wasserstein distance in dimension D, the expected error can shrink only as \\(n^{-1/D}\\). At D near 4096, that rate gives almost no usable guarantee for realistic sample sizes.

Corollary 4.2 carries this into the PEHE bound, where a term of this order keeps the guarantee nearly uninformative for large D. The remaining term stays even when the empirical treated-control discrepancy goes to zero.

Sliced Wasserstein averages over random projections, which may dilute sparse confounding signals. Forcing full alignment of the space can also discard outcome-relevant features.

## Frozen encoder, adapter and two outcome heads

The pipeline starts by prompting an LLM to pull a treatment label, an outcome label and a pre-treatment text out of each post. The pre-treatment text is encoded by a frozen Llama-3-8B, and the authors take the hidden state of the fourth-to-last layer, L-4, as the input X. That input has 4096 dimensions.

A trainable adapter Φ maps the hidden state to a D-dimensional representation, and only the adapter and the heads are trained. Treatment-specific heads h0 and h1 predict the potential outcome means, and their difference gives the CATE estimate.

The balancing term does not see the full representation. It sees the projected representation U Φ(X), where U is a k-by-D matrix with orthonormal rows. Outcome prediction still uses the full Φ(X), so the projection narrows only what is balanced.

## A min-max objective over projections

The projected discrepancy is the largest p-Wasserstein distance reachable by projecting onto k dimensions, with the maximum taken over the Stiefel manifold. \\\[W\_{p,k}(P,Q)=\\max\_{U\\in V\_k} W\_p\\left(U\_\\#P, U\_\\#Q\\right), \\quad V\_k=\\{U\\in\\mathbb{R}^{k\\times D}: UU^\\top=I\_k\\}\\\]

Training is a min-max problem: the predictor and heads minimize the factual loss plus alpha times the discrepancy, and the adversary U maximizes that discrepancy. The WPP term is the p-Wasserstein distance between the pushed-forward empirical treated and control measures.

The objective is nonconvex and the projection lives on the Stiefel manifold, so the two players are updated in turns. The adversary takes Riemannian gradient ascent steps on U, and the learner takes descent steps on Φ and the heads. Riemannian SGD updates U, Adam updates Φ and the heads, and a Sinkhorn solver computes the p=2 distance.

## What the spiked assumption buys in the bound

The theory rests on a spiked structure: the group-dependent part of the representation lies in a k-dimensional subspace S, and the rest is shared across treatment groups. \\\[P\_\\Phi^t=\\mathrm{Law}(S^{(t)}+\\varepsilon),\\quad t\\in\\{0,1\\}\\\] Here S^{(t)} lies in S, ε lies in the orthogonal complement of S, and ε has the same law under both treatment groups.

Under this assumption, Proposition 4.4 bounds the expected error of the empirical projected discrepancy by a term of order \\(n^{-1/k}\\) plus \\(\\sqrt{D\\log n/n}\\). The proposition is taken from the spiked transport analysis of Niles-Weed and Rigollet and holds under regularity conditions given in Appendix B.

Theorem 4.5 places this estimate in the CFR bound, so the PEHE error is bounded by the factual loss, a weighted projected discrepancy, the same rate term and a constant. \\\[\\epsilon\_{PEHE}\\le \\epsilon\_F+\\hat{\\alpha}\\,W\_{c,k}+O\\!\\left(n^{-1/k}+\\sqrt{D\\log n/n}\\right)+\\mathrm{Const}\\\]

The authors note that the term involving D decays as n to the power of minus one half, which they take to keep the guarantee tight at high dimension.

## Results across the eight benchmarks

The evaluation covers four semi-synthetic benchmarks and four clinical pairs built from Reddit posts. IHDP-post and ACIC-post have 747 and 4,802 instances, and they are the only two sets with individual counterfactual outcomes. Each run uses a 75/15/10 train, validation and test split, and results are reported as mean±std over 5 runs.

On IHDP-post, SPIKED-CFR reaches ϵPEHE of 2.47±0.20, compared to 2.50±0.21 for Llama-CForest. On ACIC-post it scores 2.18±0.03, compared to 2.26±0.03 for Llama-CForest. The CFR-Wass (Structured) reference scores 1.03±0.05 on ACIC-post, but it uses clean tabular covariates rather than text.

On IHDP-post, Llama-CFR-Wass has ϵPEHE of 2.65±0.18, compared to 2.51±0.15 for Llama-CFR-MMD. The authors read this as full-space Wasserstein matching being less stable than MMD on frozen LLM features.

On the four clinical pairs, SPIKED-CFR's RMSE(ATE) is 0.65 on Sema vs. Tirz, 0.56 on Sema vs. Lira, 1.68 on Eren vs. Topi and 1.38 on Onab vs. Topi. Among the methods in that table, it has the lowest RMSE(ATE) on each of the four pairs.

On Sema vs. Tirz, SPIKED-CFR's ATE is 10.35, close to the RCT ground truth of 10.11.

The authors observe that BERT-based methods trail Llama-based methods across both tables.

## Layer choice and treatment overlap

With SPIKED-CFR held fixed, the authors vary the layer that supplies the input. The L-4 layer gives the lowest normalized causal error, where errors are normalized so ϵPEHE and ϵATE are comparable. L-4 also yields one of the largest projected Wasserstein discrepancies between treated and control representations.

The authors argue that late pooling, such as the last-token hidden state, can blur the treated-control signal.

On ACIC-post, a logistic regression predicts treatment from the representations. Raw LLM embeddings give AUC close to 1, with nearly disjoint propensity mass. CFR-Wass reduces this separability only partly, while SPIKED-CFR drives AUC close to random guessing. The text reports these AUC values only qualitatively.

## Learned projection versus random and PCA

The gains over both baselines persist across this range, which the authors read as low sensitivity to k.

The raincloud plots show reduced variance across shared seeds, and the authors interpret this as WPP stabilizing matching rather than adding randomness.

The baseline list does not include Sliced Wasserstein, which appears only in the motivation.

## Limitations

The authors name three limits: the method targets a balancing-relevant subspace rather than the true latent confounders. Upstream LLM extraction can miss pre-treatment confounders or leak outcomes, and representation distortion can bias estimates. The formulation covers only binary treatments.

NATURAL is restricted to binary outcomes, so it is not evaluated on IHDP-post or ACIC-post. The authors also note that NATURAL's IPW-style estimates depend on calibrated LLM probability outputs.

The evidence comes from one split protocol with 5 runs per reported entry, on the listed benchmarks. Hillstrom and RetailHero are rendered into reports with an LLM, so they test text-based inference only in a constructed form.

## Paper info

- **Authors**: Fan Wang, Hengyu Yue, Yu Bowen, Weiming Liu, Zongxin Yang, Xuyun Zhang, Xiaolin Zheng, Chaochao Chen, Shuiguang Deng
- **Venue**: International Conference on Machine Learning · Published
- **First published**: 2026-9-29
- **Added**: 2026-11-26
- **Original paper terms**: [Check in the original ↗](https://proceedings.mlr.press/v306/wang26ke.html)
- **What we show**: Paper info and commentary

[Original paper ↗](https://proceedings.mlr.press/v306/wang26ke.html)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Fan Wang, Hengyu Yue, Yu Bowen, Weiming Liu, Zongxin Yang, Xuyun Zhang, Xiaolin Zheng, Chaochao Chen, Shuiguang Deng (2026). Spiked-CFR: Causal Representation Learning from LLMs via Wasserstein Projection Pursuit. International Conference on Machine Learning. https://proceedings.mlr.press/v306/wang26ke.html

**BibTeX**

```
@article{wang2026spiked,
  title = {{Spiked-CFR: Causal Representation Learning from LLMs via Wasserstein Projection Pursuit}},
  author = {Fan Wang and Hengyu Yue and Yu Bowen and Weiming Liu and Zongxin Yang and Xuyun Zhang and Xiaolin Zheng and Chaochao Chen and Shuiguang Deng},
  year = {2026},
  journal = {International Conference on Machine Learning},
  url = {https://proceedings.mlr.press/v306/wang26ke.html}
}
```

## Other paper commentary

- [Deneb-Vritra: Descriptions, Edges and Names Examined by Blocking Via Restoring Token Representations and Attention](https://refivu.com/en/papers/0b67f9eb-1c6f-468f-98bf-5eb090a75bfd-deneb-vritra-descriptions-edges-and-names-examined-by.md)
- [Embedding Dimension of Contrastive Learning and $k$-Nearest Neighbors](https://refivu.com/en/papers/9df2424e-149a-4953-912c-2bdfc9b778bc-embedding-dimension-of-contrastive-learning-and-k-nearest.md)
- [Open-fMIND: A Large-Scale Open-Access fMRI Corpus for Pretraining Brain Foundation Models](https://refivu.com/en/papers/6f4ae9bb-4461-4449-a68a-a651a7b86a71-open-fmind-a-large-scale-open-access-fmri.md)
- [Breaking feature collapse in self-supervised time series encoders](https://refivu.com/en/papers/819f640a-5ad8-4d90-8850-3c039f21f3d1-breaking-feature-collapse-in-self-supervised-time-series.md)
- [Cracks in Embeddings: Robustness and Stability of JEPA-Based Chest X-Ray Representations](https://refivu.com/en/papers/daee5a77-a7ae-4a85-aa91-3c0350658e14-cracks-in-embeddings-robustness-and-stability-of-jepa.md)
- [Self-supervised Graph Learning for Recommendation](https://refivu.com/en/papers/101a7b08-1d43-4cb8-8a03-8ebbce6be79e-self-supervised-graph-learning-for-recommendation.md)
- [On Expressive Power of Floating-Point Transformers](https://refivu.com/en/papers/8eff9b9c-d057-4d27-8b46-4f97cbae6130-on-expressive-power-of-floating-point-transformers.md)
- [RSA-CP: Efficient Conformal Prediction in Small-Sample Regimes via Random Score Alignment](https://refivu.com/en/papers/21bdc1a9-8a21-4757-b322-ec7470296d48-rsa-cp-efficient-conformal-prediction-in-small-sample.md)
- [What Does a Skill Vocabulary Cost? A Closed-Loop Decomposition over Demonstrated Motions](https://refivu.com/en/papers/5436c87a-99ef-46a3-afc4-ed0b0a217c6b-what-does-a-skill-vocabulary-cost-a-closed.md)
- [When Repair Accuracy Misleads: Training a VLM on Its Own Failures](https://refivu.com/en/papers/875ef8df-0b84-431d-bb7d-8f512170c313-when-repair-accuracy-misleads-training-a-vlm-on.md)
- [Cross-Layer Characterization and AI-Assisted Diagnosis of C-to-Rust Performance](https://refivu.com/en/papers/b9b8f973-d979-443f-b049-2f0218e3517a-cross-layer-characterization-and-ai-assisted-diagnosis-of.md)
- [When Is Product Decoding of ECOC MAP-Consistent? Pair Structure and the n-vs-Rest Codes](https://refivu.com/en/papers/91c0b439-85c0-4c82-8b80-68deaac338ab-when-is-product-decoding-of-ecoc-map-consistent.md)

## Terms in this paper

- [ADAM](https://refivu.com/en/terms/0e9ad0199e08-adam)
- [PCA](https://refivu.com/en/terms/2f4628e32ef5-pca)
- [Wasserstein distance](https://refivu.com/en/terms/240851406de5-wasserstein-distance)
- [curse of dimensionality](https://refivu.com/en/terms/306423e2b31e-curse-of-dimensionality)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/a092dcb5-227e-4a9c-9f4c-0ed769acba0a-spiked-cfr-causal-representation-learning-from-llms-via)
