NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Cohort-Aware Agents for Individualized Lung Cancer Risk Prediction Using a Retrieval-Augmented Model Selection Framework

Chongyu Qu, Allen J. Luna, Thomas Z. Li, Junchao Zhu, Junlin Guo, Juming Xiong, Kim L. Sandler, Bennett A. Landman, Yuankai HuoarXiv 2025 · DOI

Introduction

Lung cancer risk prediction models frequently encounter performance degradation when deployed across diverse clinical settings, a phenomenon known as "distribution shift." A model optimized for controlled clinical trials, such as the National Lung Screening Trial (NLST), may underperform when applied to incidental nodules detected during routine hospital visits due to variations in imaging protocols, patient demographics, and clinical contexts.

While numerous models exist—ranging from simple logistic regression scores like Mayo or Brock to sophisticated deep-learning architectures like Sybil—no single algorithm consistently outperforms others across all patient populations. This paper introduces a Cohort-Aware Agent that utilizes a retrieval-augmented framework to dynamically select the most appropriate prediction model for an individual patient's unique profile.

Methods: Retrieval-Augmented Model Selection (RAMS)

The proposed Retrieval-Augmented Model Selection (RAMS) framework operates in two primary stages to provide personalized risk assessments.

The three-step RAMS framework: Database Generation, Cohort-Aware Patient Retrieval, and Retrieval Augmented Model Selection.
  1. Cohort-Aware Patient Retrieval: Upon receiving a new patient's data, the system extracts a multi-modal feature vector. This vector combines structured clinical metadata (e.g., age, smoking history) with imaging features derived from CT scans via the DeepLungScreening pipeline. Using FAISS (Facebook AI Similarity Search), the agent identifies the most similar clinical subpopulation from a pre-indexed database of nine diverse real-world cohorts.
  2. Reasoning via LLM: The agent utilizes a Large Language Model (TinyLlama-1.1B) as a reasoning engine. The LLM is prompted with the patient's specific profile, the identity of the retrieved cohort, and the historical performance metrics of various models on that cohort. Based on this information, the LLM selects the optimal model from a pool of eight candidates, including linear models (Mayo, Brock), temporally-aware models (TD-VIT, DLSTM), and computer vision models (Liao, Sybil, DLS, DLI).

Datasets and Experimental Setup

The study evaluated the framework using a multi-institutional database comprising 3,750 patients across nine distinct cohorts. These cohorts represent a broad spectrum of clinical scenarios, including screening populations (VLSP, NLST-test) and incidental or clinical populations (LI-VUMC, BRONCH, and four cohorts from the Multi-Center Lung project). This diversity ensures the agent is tested against the varied imaging and demographic conditions typical of real-world medicine.

Results and Discussion

The Retrieval-Augmented Model Selection framework demonstrated significant improvements in both accuracy and computational efficiency compared to static modeling approaches.

Comparison of AUC performance across different modeling approaches, showing the Retrieval Model achieving the highest overall score.

Superior Predictive Accuracy

The Retrieval-based agent achieved an overall AUC of 0.843, surpassing the best single-model baseline, Sybil (0.785 AUC). Notably, the agent even slightly outperformed a "Per-Cohort Best Model" oracle (0.832 AUC), suggesting that individual-level retrieval can be more effective than cohort-level optimization. In specific instances, such as the MCL UPMC cohort, the agent achieved a perfect 1.000 AUC by correctly routing the patient to the optimal specialist model.

Retrieval Optimization

A key finding was the importance of multi-modal retrieval. While metadata alone provided a strong baseline (0.639 accuracy), the combination of metadata and pooled imaging features using Cosine similarity achieved the highest retrieval accuracy (0.667). The study noted that simply flattening high-dimensional image features introduced noise that hindered performance, highlighting the need for effective feature aggregation.

Computational Efficiency

Beyond accuracy, the agent offers substantial practical benefits. Complex models like Sybil are computationally intensive, requiring over 10,800 seconds for inference across the test cohorts. By intelligently selecting lighter, faster models (such as DLI or DLS) when they are expected to be sufficiently accurate, the agent reduced total inference time to approximately 5,041 seconds—a 53% improvement in speed.

Conclusion

The Cohort-Aware Agent represents a shift from static, "one-size-fits-all" AI toward dynamic, context-aware systems. While the framework shows great promise, limitations remain, such as "retrieval confusion" between highly similar cohorts (e.g., NLST sub-populations). Future work will focus on refining the embedding space for better subpopulation separation and exploring larger LLMs to enhance the reasoning capabilities of the model selection engine. Additionally, addressing the "cold start" problem for entirely unseen cohorts will be critical for broader clinical adoption.

Summary updated

BibTeX
@misc{qu2025cohort,
  author = {Chongyu Qu and Allen J. Luna and Thomas Z. Li and Junchao Zhu and Junlin Guo and Juming Xiong and Kim L. Sandler and Bennett A. Landman and Yuankai Huo},
  title = {{Cohort-Aware Agents for Individualized Lung Cancer Risk Prediction Using a Retrieval-Augmented Model Selection Framework}},
  year = {2025},
  eprint = {2508.14940},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.14940},
}
Figure