arXiv:2610.21449cs.AIOct 2026

Manuscript Offprint

arXiv:2610.21449

Incentivizing Tool-Use Reinforcement Learning for Post-Arrival Emergency Care Prediction

Pengfei Hu, Chenwei Wu, Qiao Jin, Jun Deng, Zhiyong Lu, Liyue Shen, Yue Ning

Abstract

Large language models (LLMs) can reason over both structured measurements and free-text records, which makes them attractive for emergency department (ED) prediction. However, most existing LLMs still fall short of conventional ML methods like trees on EHR-based prediction tasks. Our controlled analysis traces this gap to two weaknesses: LLMs do not select informative features, and they misjudge what numerical values imply for risk even when given the right features. We propose TIR-EC, a tool-integrated reinforcement learning framework that addresses both. TIR-EC exposes EHR feature groups as tools the LLM can call. It trains the LLM with rewards from a gradient-boosted tree teacher, which provides a reference set of informative tools and a graded risk target. TIR-EC also distills task-specific clinical skills into the model weights through a reverse curriculum that gradually removes the skills from the prompt during RL process. Evaluation on three clinical prediction tasks shows that our 4B agent achieves the highest macro F1 of all compared models, outperforms conventional ML baselines, and is competitive with much larger frontier LLMs. Further analysis shows that TIR-EC selects more useful evidence with fewer tool calls and combines measurements more effectively.

1 Introduction

The emergency department (ED) is a high-stakes, time-critical scenario where predicting outcomes such as hospital admission, clinical deterioration, and return visits from electronic health records (EHRs) can support timely decision-making (Xie et al., 2022; Chen et al., 2023; Wu et al., 2025). Unlike conventional machine learning models, large language models (LLMs) can jointly reason over structured EHR data and free-text clinical notes, like how a clinician proceeds, and therefore its application in ED have attracted growing research attention (Shi et al., 2024; Alcaraz et al., 2025; Kruse et al., 2025).

However, recent studies show that most LLMs, both general-purpose and medical, still underperform simple and cheap conventional models such as gradient-boosted trees on EHR-based clinical prediction in spite of model scaling, prompting, or fine-tuning (Chen et al., 2026; Sanatizadeh et al., 2026). To understand why LLMs underperform on EHR-based clinical prediction, and more importantly, how they could be improved, we run a controlled preliminary analysis on ED encounters comparing general and medical LLMs with conventional models, yielding two major findings.

First, we observe that more EHR features do not consistently improve LLM predictions, mainly due to poor feature selection. EHR features vary widely in format, reliability, and relevance to a particular patient outcome (Shickel et al., 2017; Kansal et al., 2025). Supervised models learn their task-specific relevance through tree splits or linear coefficients, whereas LLMs must infer relevance from context autonomously. As shown in Fig. 1 (a), in disposition prediction, Gradient Boosting Tree Models (GBM) and Logistic Regression (LR) clearly improve as more feature groups become available, while LLMs show smaller and less consistent gains with fluctuations. Allowing the LLM to pick features like an agent selects tools to call before prediction does not resolve this problem, while supplying LLMs the top-ranked groups identified by GBM improves performance. These comparisons identify feature selection as a bottleneck for LLMs to leverage EHR features, and motivate explicit guidance on which evidence is useful for the prediction task.

Second, preliminary analysis indicates that the

∗^{*}Equal contribution.

†^{\dagger}Corresponding authors.

Figure

d Causes of 100 wrong decisions by Qwen3-4B (free feature selection)

Figure 1: Preliminary analysis on 2000 MC-MED patients (Kansal et al., 2025). (a) Disposition AUROC given k of 12 numerical feature groups, averaged over 10 runs. (b) 46 features' dataset level vs. model-stated change in risk. (c) One decompensation patient. (d) Error decomposition on 100 randomly sampled patients for whom the GBM predicts correctly but Qwen3-4B free selection fails, human-labeled.

LLM cannot reliably translate clinical numerical values into task-specific risk. Even when supplied with GBM-selected features, the LLM still falls well short of GBM, raising the question why it fails to leverage these features. For each predictive numerical feature, we compare the change in model-assigned risk between patients with high and low feature values against the corresponding difference in observed outcome rates in the dataset. Fig. 1 shows that the LLM's risk estimates mostly fall in the over- and under-reaction region, and some in the wrong direction. Such task-specific relationships, like the heart rate at which deterioration becomes likely, are learned from data by ML models but are not captured by LLM's medical priors (Chen et al., 2026; Moghaddam et al., 2026). Error analysis in Fig. 1(d) further shows that among LLM prediction errors over 100 cases, most come from mis-weighting evidence that the LLM had already retrieved. In the example shown in Fig. 1(c), the LLM dismisses borderline vital signs as showing no immediate instability, while tree models correctly route the same values to a high-risk prediction. This pattern reveals that even when informative evidence is provided, the LLM may misjudge its predictive significance. Effective EHR prediction therefore requires learning not only which features to select, but also how their numerical values relate to the target outcome.

Guided by these findings, we propose TIR-EC, a tool-integrated reinforcement learning (RL) framework that teaches LLMs both which EHR features to use and how to interpret them for EHR-based clinical task prediction. To address feature selection, we treat EHR feature groups as tools that the LLM can optionally call, so that selection becomes an action optimized with RL. Since expert tool-use trajectories are unavailable, we use tree-importance to derive a reference set of informative tools against which the agent's selections are rewarded. To address feature understanding, we curate experience in the form of skills, consisting of short task-specific rules each stating which evidence to inspect and how its values shift risk. We then distill these skills into the model weights through reverse curriculum learning. Training starts with the full skills in context and gradually removes them, so that the agent predicts without any skills at inference time. Experiments on disposition, decompensation, and revisit prediction show that: (1) with only a 4B backbone, TIR-EC outperforms both conventional ML models and frontier LLMs; (2) TIR-EC improves the LLM in both feature selection and feature understanding, the two weaknesses identified above; and (3) the two abilities are mutually beneficial: as the LLM understands features better, it also selects them better.

Our contributions are threefold: ① We identify two key weaknesses behind LLMs' underperformance on EHR prediction, poor feature selection and unreliable numerical understanding. ② Based on these findings, we propose TIR-EC, reformulating feature selection as an agentic tool call task and feature understanding as a skill distillation task.

③ Empirical results show that TIR-EC achieves state-of-the-art performance, improves both feature selection and feature understanding, and reveals that the two are mutually beneficial.

References (15)