AFA-BANDIT: Provably Near-Optimal Online Multi-Feature Classification Under Budget Constraints
Authors: AbdAlRahman Odeh, Teng-Hui Huang, Hesham El Gamal
Organizations: The University of Sydney School of Electrical and Computer Engineering Sydney 2006, NSW, Australia · The University of Sydney Faculty of Engineering Sydney 2006, NSW, Australia
Active Feature Acquisition (AFA) is a classification problem in which an agent decides which costly features to acquire before predicting each sample's label. Unlike batch AFA, which trains a fixed policy and classifier offline on fully observed data, online AFA updates its predictor from revealed labels as samples arrive. Existing online methods either use deep reinforcement learning (RL) without performance guarantees or maximize cost-adjusted reward rather than enforce a global budget. We formulate online AFA as a combinatorial Bandits with Knapsacks (BwK) problem that couples acquisition and prediction. Unlike prior bandit-based AFA and classical BwK, our setting has combinatorial complexity, evolving rewards, a global budget, and structured side information. We obtain an improved regret upper bound over standard BwK bounds in this framework, leveraging a cardinality-aware confidence bound and the subset update structure. To avoid an exponentially large action space, we propose \emph{LP-Chain}, a variant that searches a cost-aware chain of feature subsets with a size that grows linearly with the number of features. While the regret upper bound is specific to the combinatorial framework, \emph{LP-Chain} empirically achieves comparable predictive performance. On synthetic data, \emph{LP-Chain} outperforms HEDGE-based BwK and deep RL-based online AFA baselines and scales favorably to more features.
Figures & tables
Figure 1: Average prediction error versus budget fraction q on synthetic data. OL: Opportunistic Learning [ 15 ] ; HEDGE (BwK): HEDGE-based BwK policy [ 6 ] ; LP-Chain (ours): the proposed method; Lower Bound: prediction error of the full-action oracle OPTLP . Lower is better.
V
LP-Chain (s)
Combinatorial (s)
MSE ↓
5
6.71
4.38
0.00005
10
19.91
10.01
0.00015
15
126.72
118.60
0.00162
20
2,461.93
5,397.70
0.00318
Table 1: Ablation: Runtime (seconds) and prediction-error discrepancy.
Appendix figures & tables3 assets
Supplementary material from the paper’s appendix.
Appendix
Dataset
# Samples
# Feat.
# Cls
Metric
CKD
400
24
2
Accuracy
BankMarketing
45,211
16
2
F1
PhysioNet
12,000
41
2
F1
Diabetes
92,062
45
3
Accuracy
MNIST
60,000
784
10
Accuracy
FashionMNIST
60,000
784
10
Accuracy
Appendix
Table 2: Source dataset statistics and metrics used in the OL comparison. The sample counts and feature counts shown are before the experiment-specific caps, image pooling, and reduction to V=16 features.
Figure 2: Online training performance on six real-world datasets as a function of the budget fraction. BankMarketing and PhysioNet report F1; the remaining datasets report accuracy. Each curve averages five trials with V=16 features. Predictions are evaluated before the corresponding encounter updates; higher values are better.
Figure 3: Comparison of LP-Chain with Subset Update and Naive Update on synthetic data. Subset Update revises reward estimates for every feasible subset of the acquired action; Naive Update revises only the acquired action’s reward estimate. Average online prediction error is shown against the budget fraction for K∈{2,4} with V=10 features, over ten trials. Lower values indicate better performance.
Active feature acquisition (AFA) asks which unobserved feature to measure next for each test instance under a budget. Greedy rules are easy to train but can overlook context features whose value is realized only through later acquisitions, while reinforcement-learning and generative approaches introduce difficult optimization or conditional-density estimation. We introduce \method, a deployable, supervised alternative that learns a separate candidate-conditioned risk-to-go function for every remaining budget. Starting from the one-step terminal classification risk, the functions are fitted backward with Bellman targets; inference greedily minimizes the learned terminal risk using only observed values, the mask, candidate identity, and remaining budget. A controlled non-myopic benchmark shows the expected mechanism: at budgets two and three, \method improves accuracy over its one-step ablation by 4.84±2.17 and 4.39±1.10 percentage points (mean ± standard error over five seeds). On Fashion-MNIST with 20 candidate pixels, it improves accuracy at every nontrivial reported budget on average, including 10.20±0.74 points at four acquisitions; its mean paired gain across budgets {2,4,8,12,16} is 3.50±0.37 points. A three-seed MiniBooNE study is mixed at small budgets but positive at 8 and 16 acquisitions, identifying a current boundary rather than supporting a universal claim. These results establish a reproducible mechanism-level case for direct Bellman risk regression and delimit the experiments still needed for state-of-the-art comparison.
Jiaorong Feng, Qian Li, Ying Li
Curtin Business School, Curtin University, Perth, Western Australia, Australia · †Present affiliation: Independent Researcher. · School of Electrical Engineering, Computing and Mathematical Sciences, Curtin University, Perth, Western Australia, Australia
Active feature acquisition (AFA) considers prediction problems in which features are costly to obtain and the learner adaptively decides which feature values to acquire for each instance and when to stop and predict. AFA can be formulated as a partially observable Markov decision process (POMDP), which naturally admits a sequential decision-making perspective. In this paper, we present non-myopic pathwise policy gradients (NM-PPG), a new AFA method built around this formulation. We introduce a continuous relaxation of the acquisition process that enables pathwise gradients through the full acquisition trajectory, avoiding the high variance of standard score-function policy gradients while allowing end-to-end optimization of a non-myopic acquisition policy. To better align training with deployment, we further develop a straight-through rollout scheme that follows hard feature acquisitions in the forward pass while backpropagating through the corresponding soft relaxation in the backward pass. We stabilize optimization with entropy regularization and staged temperature sharpening. Experiments on both synthetic and real-world datasets demonstrate that NM-PPG yields superior performance relative to state-of-the-art AFA baselines.
Linus Aronsson, Morteza Haghir Chehreghani
Department of Computer Science and Engineering · Chalmers University of Technology & University of Gothenburg · Gothenburg, Sweden
Active feature acquisition learns policies that sequentially acquire features to maximize information about a target variable. We study how to learn and evaluate such policies from finite offline data using prior-data fitted networks (PFNs), which are off-the-shelf models that output posterior predictive distributions without task-specific training. We show that under the imbalanced coverage of offline data, using total predictive entropy as a reward creates an epistemic bias that penalizes acquiring sparsely observed features. Specifically, this reward conflates epistemic uncertainty (arising from lack of offline data) with aleatoric uncertainty (arising from uninformative features). To address this, we target the posterior expected (aleatoric) entropy instead of the total predictive entropy output by a PFN for evaluating feature acquisitions. Empirical evaluations on synthetic and real-world datasets demonstrate that our approach consistently reduces value estimation bias and yields credible intervals with strong empirical coverage, which can translate to improved downstream policy selection.
Yuta Kobayashi, Divyam Madaan, Shalmali Joshi
Department of Biomedical Informatics, Columbia University