# Stochastic Encodings for Active Feature Acquisition

Stochastic latent encodings let AI models pick the most useful features to measure next

Alexander Norcliffe, Changhee Lee, Fergus Imrie, Mihaela van der Schaar, Pietro Lio · arXiv · 2025-8-3

- **Problem** Reinforcement learning is hard to train for choosing which feature to measure next. Greedy conditional mutual information ignores features that could only be measured at a later stage, so its choices are myopic.
- **Method** SEFA scores features by latent gradients in a stochastic latent space, trained with supervised loss.
- **Results** On Cube, SEFA reached average accuracy 0.904 ± 0.001, compared to 0.901 ± 0.001 for DIME and 0.901 ± 0.000 for Opportunistic RL.

![Figure 6: Acquisition heat maps and trajectories on Syn 2. Individual trajectories are plotted in red, with the acquisition proportions at each step as a heat…](https://refivu.com/papers/dafe6547-b3c0-4ca9-a7fe-82ee925a0c88/figures/figure-9e42a4e87498a1233c781c8cdb2e22b1.png?thumb=512)

**Figure 6** . Acquisition heat maps and trajectories on Syn 2. Individual trajectories are plotted in red, with the acquisition proportions at each step as a heat map behind. We use green boxes to highlight the optimal strategy and a vertical black line to show the minimum number of features required (3 or 5).

[Original paper](https://arxiv.org/abs/2508.01957v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Alexander Norcliffe, Changhee Lee, Fergus Imrie, Mihaela van der Schaar, Pietro Lio · Stochastic Encodings for Active Feature Acquisition · Original paper figure · Extracted the figure area from page 14 of the original PDF.

## Why greedy CMI and RL fall short

Active feature acquisition chooses, for each test instance, which unmeasured feature to observe next, trading prediction confidence against the number of measurements. Reinforcement learning treats this as a sequential decision problem, but it suffers from sparse reward and the tension between exploration and exploitation. Greedy conditional mutual information avoids training a policy, yet it ignores features that could be acquired at a later stage.

The authors use an indicator problem to test this, with d+1 features: the first d are binary and the last takes an integer from 1 to d. The indicator says which of the other features carries the label, so the optimal strategy takes two acquisitions, indicator first. Under the marginal distribution, the indicator and the label are independent, so the indicator looks uninformative on its own.

Proposition 4.1 states that any acquisition objective scoring feature i with the marginal p(xi, y) won't select the indicator first. Greedy CMI falls into this trap because it marginalizes out the unobserved features before it scores them.

The authors don't use this objective as their acquisition rule, since it is intractable. The authors show a second flaw with two distributions over three classes, where the entropy ranking picks the wrong one.

## Scoring features with latent gradients

The key idea is to score each feature by how strongly the predictor's latent gradients depend on that feature's latent components, and to average these scores over several random latent draws. The model is an encoder and a predictor joined by a stochastic latent variable, and it is trained with a supervised loss rather than rewards.

Because the input must keep a fixed length, missing values are imputed and a binary mask tells the encoder which values are real. Each feature has its own MLP encoder that outputs a mean and a diagonal standard deviation over l latent components. Feature i owns the components in its group G\_i, so each feature's effect on the latent space stays separate from the others.

Training minimizes the expected negative log-likelihood over randomly subsampled feature sets, plus a KL term weighted by β that pulls the latent distribution toward N(0,1). Written out, the loss is \\( \\mathcal{L}=\\mathbb{E}\\big\[-\\log p\_{\\theta,\\phi}(y\\mid x\_{S\\cap S'})+\\beta D\_{KL}\\big(p\_\\theta(Z\\mid x\_{S\\cap S'})\\,\\\|\\,p(Z)\\big)\\big\] \\).

At acquisition time, the score for class c and feature i is the norm of the latent gradient in feature i's components, divided by the sum of those norms over all features: \\( r(c,z,i)=\\frac{\\lVert g\_{G\_i}\\rVert\_2}{\\sum\_j \\lVert g\_{G\_j}\\rVert\_2},\\; g=\\nabla\_z p\_\\phi(Y=c\\mid z) \\). Normalizing per latent sample means every sample contributes the same total score, whatever the overall gradient size.

The score of feature i is then the expectation of r(c,z,i) over samples from \\( p\_\\theta(z\\mid x\_O) \\), summed over classes with weights \\( p\_{\\theta,\\phi}(Y=c\\mid x\_O) \\): \\( R(x\_O,i)=\\sum\_c p\_{\\theta,\\phi}(Y=c\\mid x\_O)\\,\\mathbb{E}\_{p\_\\theta(z\\mid x\_O)}\[r(c,z,i)\] \\). The probability weighting focuses the score on the more likely classes, so the acquisitions help separate them.

The feature with the highest score is observed, the observed set grows, and the scoring repeats.

## Synthetic results and ablations

The synthetic tasks test whether SEFA finds the right features when the optimal order is known in advance. Each of Syn 1, Syn 2 and Syn 3 is a binary task with eleven features, where x11 decides which logit governs the label. On Syn 1, SEFA needed 4.017 ± 0.003 acquisitions to pick the relevant features, compared to 4.079 ± 0.064 for DIME.

On Syn 3, the authors note that SEFA consistently chooses x11 first and then almost reaches the optimal 5 acquisitions.

DIME picks x7 first because it has the highest initial mutual information, which is not the best choice for long-term acquisition. Because of this, DIME doesn't start acquiring features 3-6 until acquisition 3 when x11 \< 0. Opportunistic RL makes noisy acquisitions, as the red trajectories in Figure 2 show, which the authors link to training difficulties.

Using a single acquisition sample gave 4.683 ± 0.030 on Syn 1, compared to 4.017 ± 0.003 for the full SEFA. The authors rank latent-space scoring as the most important design choice, followed by multiple acquisition samples and the stochastic encoder. The ablations also cover removing the latent regularization with β = 0, using one training sample, and not normalizing the scores.

Probability weighting has no effect on binary tasks, so the authors don't test it here.

![Table 1: Number of acquisitions to acquire the correct features on the synthetic datasets, the lower the better. We provide the mean and one standard error](https://refivu.com/papers/dafe6547-b3c0-4ca9-a7fe-82ee925a0c88/figures/figure-d6b22958f43a48e1a035532ae297fbe4.png?thumb=512)

**Table 1** . Number of acquisitions to acquire the correct features on the synthetic datasets, the lower the better. We provide the mean and one standard error.

[Original paper](https://arxiv.org/abs/2508.01957v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

Generative-model estimators of CMI did worst among the active methods on these tasks. EDDI scored 9.197 ± 0.203 on Syn 1, close to random ordering at 9.484 ± 0.006. EDDI is only trained to indirectly predict y from xS, so its CMI and p(y\|xS) estimates are inaccurate. ACFlow and the VAE also performed worse than the fixed ordering, which the authors attribute to inaccurate CMI estimation.

## Tabular, image and cancer results

The authors test SEFA on Cube, three real tabular sets, MNIST, Fashion MNIST, METABRIC and TCGA, where the correct feature ordering is unknown beforehand. Cube is an eight-way task with twenty features, and each class sits on a different cube corner. On Cube, SEFA reached average accuracy 0.904 ± 0.001, compared to 0.901 ± 0.001 for DIME and 0.901 ± 0.000 for Opportunistic RL.

The margin over DIME and Opportunistic RL is small, so the Cube evidence is modest. All active methods beat the fixed ordering on Cube except EDDI, which lacks a built-in predictive model and scores 0.764 ± 0.005.

Bank Marketing and MiniBooNE are binary tasks, while the authors bucketed California Housing labels into four equally sized bins. SEFA has the highest average evaluation metric on all four tabular datasets.

![Table 2: Average evaluation metrics during acquisition. Higher values are better; we report the mean and standard error](https://refivu.com/papers/dafe6547-b3c0-4ca9-a7fe-82ee925a0c88/figures/figure-593147242466427ca5df7cfb820a3690.png?thumb=512)

**Table 2** . Average evaluation metrics during acquisition. Higher values are better; we report the mean and standard error.

[Original paper](https://arxiv.org/abs/2508.01957v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

On MNIST, SEFA scored 0.761 ± 0.001, compared to 0.740 ± 0.000 for Opportunistic RL. The fixed ordering lacks the accuracy of the active methods on image data, where up to twenty pixels are acquired. Opportunistic RL outperforms DIME and GDFS on the image datasets, which the authors attribute to the problems of CMI maximization.

The TCGA heat maps show that acquisitions change between tumor classes, which the authors read as instance-wise behaviour. For lung and prostate cancer, HOXA9 is acquired at steps 4, 5 and 6, but not for breast or liver cancer. The first feature selected is almost always ST6GAL1, which the authors link to several cancers.

## Limitations: where the evidence stops

SEFA currently applies only to classification, not regression, and the authors trace this to its acquisition step. Acquisition needs separation of class probabilities, and that notion isn't well defined for continuous labels. The authors suggest a possible fix: two prediction heads, one regressing the continuous label and one predicting a discretized version of it.

In that design the classification head drives acquisition while the regression head handles prediction. They didn't test this two-head design in the paper, so it remains a proposal.

SEFA draws several latent samples at inference, so its memory needs grow with the number of samples used. Compared to RL baselines, this gives SEFA larger memory requirements at inference time. The authors point out that CMI maximization methods with generative models also need multiple samples at inference. So the authors treat this as a shared cost across AFA models, not a new limitation for them.

The ablation study runs only on the synthetic datasets, which are the Syn 1, Syn 2 and Syn 3 tasks in Table 1. Each ablation removes one design choice, such as the latent space regularization with β = 0 or a single acquisition sample. The real-data results in Table 2 don't come with the same ablation breakdown. Ablations on β, the number of acquisition samples, the number of train samples and latent components per feature sit in Appendix B.

The paper's claim that each component leads to gains therefore rests mainly on synthetic evidence.

## Paper info

- **Authors**: Alexander Norcliffe, Changhee Lee, Fergus Imrie, Mihaela van der Schaar, Pietro Lio
- **Venue**: arXiv · Preprint
- **First published**: 2025-8-3
- **Added**: 2026-10-30
- **Updated**: 2025-8-6
- **Version**: v3
- **arXiv**: 2508.01957
- **Category**: cs.LG · stat.ML
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info, commentary and permitted figures from the original paper

[Original paper ↗](https://arxiv.org/abs/2508.01957v3) · [PDF ↗](https://arxiv.org/pdf/2508.01957v3)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Abstract

Active Feature Acquisition is an instance-wise, sequential decision making problem. The aim is to dynamically select which feature to measure based on current observations, independently for each test instance. Common approaches either use Reinforcement Learning, which experiences training difficulties, or greedily maximize the conditional mutual information of the label and unobserved features, which makes myopic acquisitions. To address these shortcomings, we introduce a latent variable model, trained in a supervised manner. Acquisitions are made by reasoning about the features across many possible unobserved realizations in a stochastic latent space. Extensive evaluation on a large range of synthetic and real datasets demonstrates that our approach reliably outperforms a diverse set of baselines.

## Quote from the paper

Alexander Norcliffe, Changhee Lee, Fergus Imrie, Mihaela van der Schaar, Pietro Lio (2025). Stochastic Encodings for Active Feature Acquisition. arXiv:2508.01957v3. https://arxiv.org/abs/2508.01957v3

**BibTeX**

```
@misc{norcliffe2025stochastic,
  title = {{Stochastic Encodings for Active Feature Acquisition}},
  author = {Alexander Norcliffe and Changhee Lee and Fergus Imrie and Mihaela van der Schaar and Pietro Lio},
  year = {2025},
  eprint = {2508.01957},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.01957v3}
}
```

## Related papers

- [DeepSurv: Personalized Treatment Recommender System Using A Cox Proportional Hazards Deep Neural Network](https://refivu.com/en/papers/e56bf111-97b6-4d99-b702-a3e324f609b2-deepsurv-personalized-treatment-recommender-system-using-a.md)
- [Self-Consistency Improves Chain of Thought Reasoning in Language Models](https://refivu.com/en/papers/be407503-de73-4a1d-9790-4b944a0560a9-self-consistency-improves-chain-of-thought-reasoning-in.md)
- [Self-supervised Learning for Video Correspondence Flow](https://refivu.com/en/papers/d2ae4b57-a428-492b-868a-3490e48aa23c-self-supervised-learning-for-video-correspondence-flow.md)
- [Do unlearning algorithms learn the right features?](https://refivu.com/en/papers/8c15f6e1-5f54-4e95-93e6-7f609fd89e59-do-unlearning-algorithms-learn-the-right-features.md)
- [YOLOv9: Learning What You Want to Learn Using Programmable Gradient Information](https://refivu.com/en/papers/11ec3a37-5335-4563-b8f6-6949e50f3a4f-yolov9-learning-what-you-want-to-learn-using.md)
- [Identifying optimal cycles in quantum thermal machines with reinforcement-learning](https://refivu.com/en/papers/91ae4a4b-783d-4d4a-9036-c66652125ae6-identifying-optimal-cycles-in-quantum-thermal-machines-with.md)

## Other paper commentary

- [Scalable Gaussian Processes with Latent Kronecker Structure](https://refivu.com/en/papers/1d5b6ab1-f72e-49ab-842e-cf71b44106cd-scalable-gaussian-processes-with-latent-kronecker-structure.md)
- [On the Computational Complexity of Performative Prediction](https://refivu.com/en/papers/7a4b721a-31e6-4690-bc6d-b8f8286675f0-on-the-computational-complexity-of-performative-prediction.md)
- [Learning to Discover at Test Time](https://refivu.com/en/papers/16b1e431-51ac-4e6b-a951-6aa5a5c017bb-learning-to-discover-at-test-time.md)
- [A unified framework for learning with nonlinear model classes from arbitrary linear samples](https://refivu.com/en/papers/cd3c393f-7a82-47bc-9d3e-9770cfc27865-a-unified-framework-for-learning-with-nonlinear-model.md)
- [Scaling Tractable Probabilistic Circuits: A Systems Perspective](https://refivu.com/en/papers/e32b51bf-5311-4420-bc25-ec49bc5d82ec-scaling-tractable-probabilistic-circuits-a-systems.md)
- [Dolphin: A Programmable Framework for Scalable Neurosymbolic Learning](https://refivu.com/en/papers/45dd94f7-4a58-4799-bc56-64bca4cda2ed-dolphin-a-programmable-framework-for-scalable-neurosymbolic.md)
- [Ehrenfeucht-Haussler Rank and Chain of Thought](https://refivu.com/en/papers/cd83075a-e02f-4d42-b023-d9aff551bfbf-ehrenfeucht-haussler-rank-and-chain-of-thought.md)
- [FRUGAL: Memory-Efficient Optimization by Reducing State Overhead for Scalable Training](https://refivu.com/en/papers/c62e87ad-a4e4-49a7-b6e8-0df71fb48f97-frugal-memory-efficient-optimization-by-reducing-state.md)
- [Train for the Worst, Plan for the Best: Understanding Token Ordering in Masked Diffusions](https://refivu.com/en/papers/64d5ed83-79ac-4425-8629-7aff772bd0c4-train-for-the-worst-plan-for-the-best.md)
- [InfAlign: Inference-aware language model alignment](https://refivu.com/en/papers/c8a29ed9-8ab2-4e59-9865-5055bb8ee487-infalign-inference-aware-language-model-alignment.md)
- [Learning to (Learn at Test Time): RNNs with Expressive Hidden States](https://refivu.com/en/papers/6a02f8bd-d757-4f00-9d97-6829bf6db29f-learning-to-learn-at-test-time-rnns-with.md)
- [Understanding and Improving Length Generalization in Recurrent Models](https://refivu.com/en/papers/f9cd6a9a-de1d-4e94-a91d-e03ad7e1036c-understanding-and-improving-length-generalization-in.md)

## Terms in this paper

- [Accuracy](https://refivu.com/en/terms/1995c0cd6282-accuracy)
- [MNIST](https://refivu.com/en/terms/28b9bb66d1c6-mnist)
- [reinforcement learning](https://refivu.com/en/terms/6c51042515d2-reinforcement-learning)
- [Shannon entropy](https://refivu.com/en/terms/4c6ac050d224-shannon-entropy)
- [conditional mutual information](https://refivu.com/en/terms/8cd64d79e3b8-conditional-mutual-information)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/dafe6547-b3c0-4ca9-a7fe-82ee925a0c88-stochastic-encodings-for-active-feature-acquisition)
