Papers › LLM-Extracted Covariates for Clinical Causal Inference: Rethinking Integration Strategies

LLM-Extracted Covariates for Clinical Causal Inference: Rethinking Integration Strategies

18 Apr 2026arXiv:2604.16763added by Syntology

Lei Liu, Jialin Chen, Kathy Macropol

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

Causal inference from electronic health records (EHR) is fundamentally limited by unmeasured confounding: critical clinical states such as frailty, goals of care, and mental status are documented in free-text notes but absent from structured data. Large language models can extract these latent confounders as interpretable, structured covariates, yet how to effectively integrate them into causal estimation pipelines has not been systematically studied. Using the MIMIC-IV database with 21,859 sepsis patients, we compare seven covariate-integration strategies for estimating the effect of early vasopressor initiation on 28-day mortality, spanning tabular-only baselines, traditional NLP representations, and three LLM-augmented approaches. A central finding is that not all integration strategies are equally effective: directly augmenting the propensity score model with LLM covariates achieves the best performance, while dual-caliper matching on text-derived categorical distances restricts the donor pool and degrades estimation. In semi-synthetic experiments with known ground-truth effects, LLM-augmented propensity scores reduce estimation bias from 0.0143 to 0.0003 relative to tabular-only methods, and this advantage persists under substantial simulated extraction error. On real data, incorporating LLM-extracted covariates reduces the estimated treatment effect from 0.055 to 0.027, directionally consistent with the CLOVERS randomized trial, and a doubly robust estimator yielding 0.031 confirms the robustness of this finding. Our results offer practical guidance on when and how text-derived covariates improve causal estimation in critical care. Our code is available at https://github.com/fpxlei/LLM-Covariates-Causal.

PaperPDFCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2604.16763")

Code

Syntology Ran 0 of 10 code samples harvested from 1 repository linked to this paper; 10 have no recorded run.

By repository: found in paper text by Syntology: 10 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

fpxlei/LLM-Covariates-Causal found in paper text by Syntology report

Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

10 samples harvested; 0 ran; 0 honoured the contract we drafted; 10 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

10unverified

Licence: 0 of the 10 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from fpxlei/LLM-Covariates-Causal. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

ate_ipw fpxlei/LLM-Covariates-Causal/analysis/ate_estimator.py found in paper text by Syntology unverified MIT (permissive) · 1838f3bc82204828 · report
ate_matched fpxlei/LLM-Covariates-Causal/analysis/ate_estimator.py found in paper text by Syntology unverified MIT (permissive) · e14e135d2d9c11e7 · report
compute_e_values fpxlei/LLM-Covariates-Causal/analysis/sensitivity.py found in paper text by Syntology unverified MIT (permissive) · eca5845a0a1a15a0 · report
compute_ipw fpxlei/LLM-Covariates-Causal/models/matching.py found in paper text by Syntology unverified MIT (permissive) · 97b500646e20227d · report
e_value fpxlei/LLM-Covariates-Causal/analysis/sensitivity.py found in paper text by Syntology unverified MIT (permissive) · 668e9628a94e401f · report
format_chat fpxlei/LLM-Covariates-Causal/finetune/train_lora.py found in paper text by Syntology unverified MIT (permissive) · 47a898dc72bb2bce · report
llm_match_and_estimate fpxlei/LLM-Covariates-Causal/arm7_llm_analyst.py found in paper text by Syntology unverified MIT (permissive) · 27e772af638bd751 · report
load_jsonl fpxlei/LLM-Covariates-Causal/finetune/train_lora.py found in paper text by Syntology unverified MIT (permissive) · 1bfdd49cdba2faac · report
subgroup_cate fpxlei/LLM-Covariates-Causal/analysis/hte_discovery.py found in paper text by Syntology unverified MIT (permissive) · 3599a59500c471f2 · report
variable_importance fpxlei/LLM-Covariates-Causal/analysis/hte_discovery.py found in paper text by Syntology unverified MIT (permissive) · 68451a4d46d98d2d · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2604.16763, was issued in April 2026, after that date, so the archive has no leaderboard rows for it.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections