Hospitals know that care drifts from guidelines, but they rarely know which drift matters. A sepsis patient's chart records many separate decisions: how much fluid, when vasopressors started, when antibiotics went in, whether lactate was rechecked. Each of these departs from the guideline by some amount, and the departures tend to come together. Implementation teams have money and attention for only a few interventions, such as removing a default from an order panel or embedding a decision aid. Today they choose targets from surveys and adherence dashboards. Those tools count how often each deviation happens, not how much it costs the patient.
We propose to learn, from logged ICU trajectories, a value model that is additive across care components. Such a model splits the estimated outcome cost of a patient's deviation from guideline care exactly into a contribution from each component and from each pair of components. To build it, we borrow attention-based credit assignment from cooperative multi-agent reinforcement learning, the family of methods that splits a shared team reward among the agents who earned it. Here each "agent" is a care component, typically owned by a different team member. The deliverable is a ranked, uncertainty-quantified list of which deviations cost the most. It is aimed at quality-improvement teams who choose structural interventions, not at bedside clinicians.
Core Claim
Departures from guidelines in different care components are correlated in real data. A clinician who under-resuscitates with fluids is often also late with vasopressors. This makes component-level attribution poorly identified for any model that is free to fit arbitrary joint effects.
Our claim is that a value function built from per-component terms, low-order pairwise interaction terms, and state-dependent attention weights recovers the true per-component cost of deviation more accurately than three simpler routes when trained offline. The first is a monolithic offline Q-function queried counterfactually one component at a time. The second is regression of outcomes on adherence indicators. The third is post-hoc feature attribution on an outcome predictor.
The additive structure lets the gap decompose without remainder. Let $s$ be the patient state, $a=(a_1,\dots,a_n)$ the observed actions in $n$ care components, and $g=(g_1,\dots,g_n)$ the guideline-recommended actions. The model is
$$Q(s,a)=V(s)+\sum_i w_i(s)\,f_i(s,a_i)+\sum_{i<j} w_{ij}(s)\,f_{ij}(s,a_i,a_j).$$
Here $V$ is a state value, $f_i$ and $f_{ij}$ are learned per-component and pairwise utilities, and $w_i, w_{ij}\ge 0$ are attention weights computed from the state.
The cost of the observed deviation, $Q(s,g)-Q(s,a)$, then equals a sum of per-component terms, $w_i(s)[f_i(s,g_i)-f_i(s,a_i)]$, plus pairwise terms. We split each pairwise term equally between its two components. Because there are no higher-order terms, this split coincides with the Shapley value: the order-independent average of a component's marginal contribution.
The model form is taken directly from NA²Q, which writes the team value as per-agent plus pairwise terms weighted by dot-product attention so that game agents' contributions become readable. NA²Q shows these contributions on StarCraft maps; for example, it identifies the agent responsible for kiting enemies on 3s_vs_5z. We change what the decomposition is for. In NA²Q it is a picture of a learned policy. Here it is a measuring instrument for the cost of human deviations, and it must be validated against ground truth.
Why This Is Not What Exists
The closest clinical reinforcement learning work, Offline Guarded Safe RL, optimizes a single fluid-and-vasopressor policy on 18,923 MIMIC-III sepsis cases. It adds an out-of-distribution guard, which penalizes the policy for drifting into states the data never covered, and hard limits on vital signs. Its goal is a better policy. It does not ask which of the clinicians' deviations accounts for the outcome gap, and its single-agent form has no component structure to attribute along. We reuse its cohort and its idea of an out-of-distribution guard.
HetMedAgent is a medical multi-agent system. Its agents are language models and specialist models exchanging text for one-shot diagnosis. Nothing in it is learned from delayed outcomes, and nothing divides credit.
QPLEX supplies the idea of attention-weighted credit applied to advantages, meaning how much better an action is than average in a given state. AIIR-MIX uses attention to shape per-agent intrinsic rewards. Both are tools for training agents, not for auditing logged behavior.
The sequential decomposition of HARL and SrSv conditions each agent's advantage on the agents before it. That guarantees monotonic improvement when learning a policy. For attribution, however, the credit it assigns depends on the chosen ordering. We use it as a contrasting ablation rather than as the method.
The implementation-science literature motivates the target user. The ICU simulation study found that physicians rejected 92% of unsafe AI recommendations but did not look more at the explanations when the recommendation was unsafe. This argues against delivering credit maps to bedside clinicians. In contrast, the structural intervention in the creatine kinase de-implementation study removed creatine kinase from default order panels and cut redundant ordering by 46.7%. Interventions like that work when they hit the right target. Our output is meant to choose that target.
Research Program
The work has three tiers. Each later tier is only trusted if the earlier one passes.
Tier one: game environments with known answers. We first test credit recovery where the true answer can be computed. In Level-Based Foraging and the Multi-Agent Particle Environment (both used in NA²Q and HARL), we train a strong team policy to act as the "guideline." We then generate offline logs from scripted "clinician" teams. These teams deviate in planted ways that are correlated across agents and depend on state. Because the simulator can be rolled out, the true cost of reverting any single agent's action to the guideline action is computable exactly.
Tier two: a semi-synthetic sepsis simulator. We fit a transition model to MIMIC-III sepsis trajectories. We then plant deviation patterns with chosen costs and chosen correlation between components, which again gives ground truth. Without being able to look it up, we assume the care components can be extracted from MIMIC-III: fluid volume, vasopressor dose, antibiotic timing relative to sepsis onset, and lactate re-measurement. The fourth is a candidate low-value or omitted-test component, which brings de-implementation into scope. Guideline actions $g$ are encoded from sepsis-bundle rules.
Tier three: real MIMIC-III data. We train on the actual trajectories. Since no ground truth exists here, we report component cost rankings with bootstrap intervals, along with the checks described in the experiments.
Training. Throughout, the model is trained offline with a conservative penalty. The penalty pushes down values for joint actions that lie outside the support of the logged data, in the spirit of the guard in Offline Guarded Safe RL. The reward is a change in the Sequential Organ Failure Assessment (SOFA) score, a standard measure of how many organs are failing, plus mortality at the end of the trajectory.
Baselines
Naive reference: adherence regression. The simplest baseline is what quality teams effectively use now. We regress the outcome (episode return, or mortality on the real data) on per-component adherence indicators and deviation magnitudes, adjusting for baseline severity. Each component's coefficient is read as its cost. It gets the same data and the same covariates as our model. Our model beats it if it achieves higher rank correlation with true per-component costs and higher precision in identifying the most costly component in tiers one and two.
Strongest competitor: monolithic counterfactual Q. This is an unfactorized offline Q-function with the same conservative penalty, the same network capacity, and the same tuning budget. We estimate component $i$'s cost by substituting $g_i$ for $a_i$ and taking the difference in Q. To remove ordering arbitrariness, we also average over all subsets of substitutions, giving an exact Shapley value with four components. This is the most direct challenge to the claim: any Q-function can be queried counterfactually.
The closest reported figures concern policy quality, not attribution. Offline Guarded Safe RL reports estimated mortality of 0.0138 against 0.0632 for standard care, and a model concordance rate of 0.549. There is no reported result found on Lacuna for per-component attribution accuracy on any benchmark, so tiers one and two will set the first numbers. Beating this baseline means significantly lower attribution error than the monolithic model's Shapley values once deviation correlation exceeds a moderate level. It does not require winning when deviations are independent.
Third baseline: post-hoc attribution on an outcome predictor. We fit a gradient-boosted mortality model and compute SHAP values for the deviation features. This is the standard explainability approach.
Ablations. Three ablations isolate the key ingredients. Removing the pairwise terms, leaving a purely additive model, tests whether interactions matter. Fixing the attention weights to constants tests whether credit must depend on patient state. Replacing the symmetric split with HARL-style sequential conditioning measures how much ordering changes the ranking.
Why not just…?
Why not just regress outcomes on adherence, as quality-improvement teams already do? Regression handles correlated deviations only to the extent that it adjusts for the right covariates. It also assigns one fixed cost per component, while the cost of late vasopressors plausibly depends on the patient's state. Tier one tests this directly: we plant state-dependent costs and vary the correlation between deviations. If regression matches our model on rank correlation, the honest conclusion is that the learned structure is unnecessary for choosing targets, and we will report that.
Why not just query a single offline Q-function counterfactually, one component at a time? This is the real threat. With enough data in which components vary independently, a monolithic Q should do as well as our model. Our argument is narrower. When deviations co-occur, substituting one component produces joint actions the data rarely contains, and an unstructured model extrapolates freely there. The additive form ties those extrapolations to per-component effects that were estimated where data exists. The tier-two sweep over deviation correlation is designed to settle this. We predict the two methods converge at low correlation and separate at high correlation. If no separation appears, the factorization reduces to a regularizer of no particular value, and the proposal becomes a careful counterfactual-attribution study using the monolithic model.
Why not just show clinicians attention heatmaps or SHAP values at the bedside? The ICU simulation study found that physicians did not look more at explanation graphics when the AI was unsafe. That is why our output goes to the people who redesign order sets and pathways. That route is supported by the 46.7% reduction in the creatine kinase study, and by the workflow-embedded designs of EMBED and the CHUV sepsis learning health system. SHAP remains in the comparison as a baseline for attribution accuracy.
Proposed Experiments
Correlation sweep (decisive). The decisive experiment is the tier-two sweep. The correlation between planted deviations ranges from zero to strong, and interaction strength ranges from none to large. The metrics are Spearman correlation between estimated and true per-component costs, top-one identification precision, and calibration of the bootstrap intervals. The claim survives only if our model's advantage over the monolithic Shapley baseline grows with correlation. It must also hold that the purely additive ablation fails when we plant strong pairwise effects. Otherwise the pairwise terms are unnecessary.
Game-environment replication. Tier one repeats the sweep in Level-Based Foraging and the Particle Environment. This shows the effect is not an artifact of the fitted clinical simulator.
Real-data checks. On real MIMIC-III, three checks stand in for ground truth. First, we split the data by time and ask whether component costs estimated on early admissions predict outcome differences between later patients who did and did not deviate in that component. Second, rankings must stay stable under bootstrap resampling. Third, any learned cost that contradicts the direction of established bundle evidence, for example a large benefit from delaying antibiotics, is treated as a failure flag rather than a finding.
Sensitivity to the guideline encoding. We also report how the rankings shift when the guideline $g$ is encoded differently. This matters because the target the gap is measured against is itself a modeling choice.
References
- NAQ: Neural Attention Additive Model for Interpretable Multi-Agent Q-Learning
- Offline Guarded Safe Reinforcement Learning for Medical Treatment Optimization Strategies
- Why Specialist Models Still Matter: A Heterogeneous Multi-Agent Paradigm for Medical Artificial Intelligence
- QPLEX: Duplex Dueling Multi-Agent Q-Learning
- AIIR-MIX: Multi-Agent Reinforcement Learning Meets Attention Individual Intrinsic Reward Mixing Network
- Heterogeneous-Agent Reinforcement Learning
- SrSv: Integrating Sequential Rollouts with Sequential Value Estimation for Multi-agent Reinforcement Learning
- Safety of human-AI cooperative decision-making within intensive care: A physical simulation study
- Reducing redundant creatine kinase testing in cardiac injury
- User-centred clinical decision support to implement emergency department-initiated buprenorphine for opioid use disorder: protocol for the pragmatic group randomised EMBED trial
- An artificial intelligence-powered learning health system to improve sepsis detection and quality of care: a before-and-after study