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

Contrastive Nonmyopic Objective Cost-Tradeoff Acquisition for Longitudinal Data

Dzung Dinh, Boqi Chen, Yunni Qu, Marc Niethammer, Junier OlivaNeurIPS 2026

TL;DR

Standard machine learning assumes every data feature is free and waiting in a neat table, but in real-world domains like medicine, every lab test or MRI costs time, money, and patient risk—and if you skip a test today, you can’t go back in time to take it tomorrow. This paper introduces CAPE, an algorithm that learns to group patients not by how similar they look right now, but by which future schedule of tests will help them the most. By pre-computing and caching optimal testing schedules for these groups offline, CAPE makes smart, forward-looking decisions in microseconds at deployment, outperforming reinforcement learning and greedy strategies.

What Problem Does This Paper Address?

Imagine managing a patient with a chronic joint condition over several years. At each clinic visit, you have to predict their current status and decide when they should return and which exams to order next. This setup is called Longitudinal Active Feature Acquisition (LAFA).

Illustration of clinical longitudinal active feature acquisition, showing an agent sequentially predicting patient status and scheduling future tests.

Unlike standard active feature acquisition, time here is a one-way street: features and labels evolve, and a measurement skipped at visit 2 is lost forever by visit 4. Existing solutions struggle with an uncomfortable trilemma:

  • Greedy approaches look only one step ahead, often skipping early, foundational tests whose value only becomes clear later.
  • Reinforcement Learning (RL) looks ahead, but training RL agents over sparse rewards and shifting, high-dimensional observation spaces is notoriously unstable.
  • Nonparametric oracle methods search through similar historical patients on the fly to score future plans, which works well conceptually, but is painfully slow at test time and suffers from the curse of dimensionality.

Methods

The authors sidestep online RL and expensive nearest-neighbor searches with CAPE (Contrastive Acquisition-Plan Embeddings), shifting the heavy lifting of nonmyopic (far-sighted) planning to an offline phase.

  1. Scoring the Future (NOCT): First, they define the Nonmyopic Objective Cost-Tradeoff (NOCT). Using complete historical training trajectories as an "oracle," NOCT scores any candidate schedule of future feature-time acquisitions by summing the expected cumulative prediction loss across future steps and the cost of the tests. They prove that negative NOCT acts as a principled lower bound on the optimal Markov Decision Process value.
  2. Learning an Acquisition-Utility Manifold: For each partially observed training state, CAPE identifies which future measurements repeatedly show up in top-scoring NOCT plans, forming an "acquisition-utility profile." A neural network then learns an embedding space via contrastive learning (using Jensen-Shannon divergence between profiles). Crucially, two partial patient histories are pulled together in this space only if they benefit from the same future tests—not necessarily because their raw clinical numbers match.
t-SNE visualization of patient embeddings clustered into local regions that share cached next-acquisition plans.
  1. Partitioning and Caching: Offline, CAPE clusters these embeddings (via K-Means) at each rollout step, evaluates 5,000 candidate future plans per cluster using NOCT, and caches the single best plan for each centroid.
  2. Adaptive Deployment: At test time, CAPE embeds the current patient state, finds the nearest centroid, and looks up its cached plan. To stay adaptive, it executes only the immediate next visit's tests from that schedule, observes the new test results, and re-evaluates from scratch at the next visit.

Datasets

  • Synthetic: A newly adapted benchmark of 8,000 sequences across 10 timepoints featuring a random digit and a countdown counter. Unlike prior versions that only predicted a final outcome, labels here are assigned at every timestep (accumulating digits whenever counter == 0), testing whether a policy can time its lookups precisely.
  • OAI (Osteoarthritis Initiative): Real-world clinical data from 4,796 patients across 7 visits (up to 96 months) with 27 features, used for two tasks: predicting Kellgren-Lawrence grade (KLG) and WOMAC pain scores.
  • ILIADD: Remote mental-health monitoring data from 544 participants (40,279 length-10 survey windows, 34 features) predicting negative affect.

Key Insights and Ideas

  • Geometry defined by what you need, not who you are: Clustering raw patient features is suboptimal because irrelevant variables warp distances. Replacing CAPE's contrastive embeddings with raw feature-space clustering drops AUROC across all datasets (e.g., from 0.846 to 0.822 on ILIADD at similar cost).
  • Plans as compasses, not contracts: Because CAPE re-embeds and re-queries the cache after every new observation, it recovers gracefully from mistakes. Even when the authors deliberately forced a random, wrong acquisition plan at $t=1$, final AUROC barely budged (changing by $\le 0.0063$ across real-world datasets).
  • Front-loading foundational context: Trajectory analysis on WOMAC reveals that CAPE naturally learns to acquire broad demographic and baseline joint-space measurements early, followed by sparse, targeted check-ins—whereas greedy methods (like DIME) procrastinate acquisitions until late visits, missing early context.

Key Results

CAPE consistently dominates the accuracy-vs-cost frontier across all four tasks compared to six RL, greedy, differentiable, and oracle baselines (ASAC, RAS, AS, DIME, DiFA, ACO).

  • Higher accuracy at lower cost: For example, on KLG, CAPE achieves an AUROC of 0.815 at a cost of 9.15 and 0.835 at a cost of 33.76, consistently outperforming alternatives across low- and high-budget regimes.
  • Orders-of-magnitude speedup: While the nearest-neighbor oracle baseline (ACO) is often the runner-up in accuracy, CAPE's centroid lookup is orders of magnitude faster—taking roughly $10^{-7}$ to $10^{-5}$ seconds per acquisition compared to ACO's $10^{-3}$ to $10^{-2}$ seconds.
Figure 4: Inference latency per acquisition.

Limitations and Future Work

While Theorem 3.1 proves that the NOCT objective lower-bounds the optimal sequential policy value, the authors explicitly note that this does not provide formal approximation or theoretical regret guarantees for the practical, clustered CAPE policy deployed at test time. Furthermore, rather than optimizing over all $2^{|\mathcal{V}_{>t}|}$ possible future schedules, offline policy construction relies on sampling a finite candidate pool (5,000 plans per partition) and assumes access to a pre-trained conditioning classifier trained with random feature dropout. Explicit directions for future work are not discussed in the main text.

Summary updated

BibTeX
@inproceedings{dinh2026contrastive,
  author = {Dzung Dinh and Boqi Chen and Yunni Qu and Marc Niethammer and Junier Oliva},
  title = {{Contrastive Nonmyopic Objective Cost-Tradeoff Acquisition for Longitudinal Data}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=tqkenMK3QV},
}
Figure