An intelligent surface is a flat panel of hundreds of cheap reflecting elements, each of which shifts the phase of an incoming radio wave. Configured together, they steer or shape a beam. Recent work shows that such a surface can locate a user much faster if it senses actively. The surface picks its next configuration based on what it has already measured, sweeping wide first and then focusing. Real surfaces, however, use one- or two-bit switches (PIN diodes, which flip between a few fixed phase states), and every reconfiguration has a price: energy to toggle diodes, driver latency, and control-link bits to address the changed elements. Changing two elements and changing five hundred are not the same action. Existing active sensing policies ignore this. They output continuous phases and charge every measurement frame the same fixed cost.
We propose to treat RIS sensing as cost-sensitive feature acquisition in the sense of the machine learning literature, where a model chooses which measurements to buy before predicting. The twist is that the price of the next measurement depends on the surface's current state, through the number of diodes that must flip. That cost only exists because the phases are discrete, so a continuous-phase policy cannot represent it. We will train a policy that outputs per-element discrete phases directly, charges itself for each flip, and decides when to stop measuring. We will test whether this beats the obvious alternatives: rounding a continuous policy, a learned global codebook, and a greedy information-per-cost rule over hand-designed discrete beams. The comparison runs on the localization setting where prior work reports numbers, plus a coarse zone-classification task.
Core Claim
In standard active feature acquisition, each feature $j$ has a fixed price $c_j$ independent of what was bought before. Examples include ratio heuristics that divide information gain by cost (Peri-Diagnostic Decision Support Through Cost-Efficient Feature Acquisition at Test-Time), generative surrogates like EDDI, and differentiable policies like DiFA. On a $b$-bit surface with element states $s_t \in \{0,\dots,2^b-1\}^N$ at frame $t$, the natural cost is instead path-dependent. We write the episode objective as
$$ \min_{\pi}\; \mathbb{E}\Big[\ell(y,\hat y_\tau) + \lambda \sum_{t=1}^{\tau}\big(c_p + c_s\,\|s_t - s_{t-1}\|_0\big)\Big], $$
where $\pi$ is the policy, $y$ the target (a user position or zone label), $\hat y_\tau$ the prediction at the learned stopping frame $\tau$, $c_p$ the fixed per-pilot cost, $c_s$ the per-diode switching cost, $\|\cdot\|_0$ the count of elements whose state changed, and $\lambda$ the cost weight that sweeps out a cost–accuracy curve.
Our claim is that when $c_s$ is non-negligible, three things hold. The best policy reuses most of the surface between frames and refines only selected sub-arrays. A policy trained against the exact flip count beats one trained against a continuous phase-change surrogate and then rounded, because tiny continuous changes near rounding boundaries cause many spurious flips. And the advantage of planning ahead over greedy selection grows with $c_s$. The third point holds because a wide exploratory beam followed by a narrow beam is a full-surface rewrite, which a greedy rule cannot price correctly.
The closest prior work is the line by Zhang, Jiang, and Yu. Active Sensing for Localization with Reconfigurable Intelligent Surface uses a recurrent network to output continuous phases frame by frame and discovers a search-and-focus strategy. Codebook Learning for Active Sensing with Reconfigurable Intelligent Surface shows that this learned policy escapes the greedy trap of a Bayesian Cramér–Rao bound baseline. Learning Beamforming Codebooks for Active Sensing With Reconfigurable Intelligent Surface, called VQ-C, snaps the policy's output to a learned global codebook so that each frame costs 14 control bits. All three supply our task setup and motivate the gap. None imposes per-element discrete phases, and none prices reconfiguration as a function of the previous state. VQ-C prices control bits per frame, but a global codeword index carries no notion of which diodes physically change.
Research Program
We will build a simulator matching the setup of Codebook Learning for Active Sensing with Reconfigurable Intelligent Surface. It covers a 30 m × 70 m area with uniformly random user positions, Rician block fading over direct and surface-reflected paths, and $N \in \{32, 64, 128\}$ elements. We extend it with one- and two-bit phase alphabets and an optional phase-dependent amplitude loss for PIN diodes. On top of the simulator we build three components.
The first component is the policy itself. A recurrent encoder summarizes past pilot returns, as in the Zhang et al. line. Per-element heads output a distribution over $2^b$ states and are sampled with a straight-through Gumbel-Softmax estimator, the gradient trick DiFA uses for feature masks; we reuse its code from arghosh/difa. A separate stop head decides when to predict. The switching cost is computed exactly on the sampled discrete states, so gradients from the task loss and the cost both pass through the discrete layer. This avoids the model-free reinforcement learning that, as AFABench documents, is unstable even on small synthetic problems. Model-free RL is also hopeless over a $2^{N}$ action space.
The second component is a "keep-or-flip" parameterization. Here each head outputs a flip probability relative to $s_{t-1}$ rather than an absolute state. We will test whether this parameterization alone reduces flips, as opposed to the cost term in the objective.
The third component is a set of analysis tools. We will measure how flips are distributed across the array over an episode, and whether contiguous sub-arrays are rewritten. We will also run a direct test of the physical-world analogue of AFABench's CUBE-NM benchmark, in which an early measurement that is uninformative on its own reveals where later measurements should be taken. Concretely, we measure the information gained from the first wide beam versus its effect on later frames.
The primary task is localization. The secondary task is $K$-zone classification with $K=8$, which reflects the classification focus of the acquisition literature and the observation that no RIS active sensing paper addresses discrete hypotheses.
Baselines
The naive reference is a fixed, non-adaptive sweep of discrete beams for a fixed number of frames. At 20 dB SNR this kind of scheme gives 5 to 8 m error according to Active Sensing for Localization with Reconfigurable Intelligent Surface. We will rerun the sweep with one- and two-bit phases, sweeping its frame count to trace its cost–error curve.
The strongest existing learned method is the continuous recurrent policy of the same paper, which reports roughly 2 to 3 m RMSE at 20 dB. Codebook Learning for Active Sensing with Reconfigurable Intelligent Surface adds that 4 active pilots match or beat 14 non-active pilots. We will run this policy with its outputs rounded to the nearest discrete state at execution time, and charge it the true flip cost. It is the strongest competitor because it already plans ahead and already performs well; the only question is whether discreteness and switching costs change the picture.
The second learned baseline is VQ-C (Learning Beamforming Codebooks for Active Sensing With Reconfigurable Intelligent Surface). It reports performance comparable to codebook-free sensing at 14 control bits per frame. We will project its learned codewords onto the discrete alphabet and charge it the Hamming distance between consecutive codewords. We will also give it a fair variant retrained with that Hamming cost added between codewords.
The strongest model-based baseline is greedy information-per-cost selection, in the style of Vivar et al. and EDDI, over a structured discrete dictionary. The dictionary contains wide flat beams synthesized with the minorization–maximization method of Beampattern Synthesis for Discrete Phase RIS in Communication and Sensing Systems, which reports 8 dB less SNR than sweeping for 90% detection probability, plus discrete narrow beams. Its denominator includes the flip cost from the current state. We will also include the greedy Bayesian Cramér–Rao bound baseline from the Zhang et al. line.
Two ablations isolate the key ingredient. The first trains our policy with a continuous phase-change penalty instead of the exact flip count. The second sets $c_s=0$ during training but evaluates with true costs.
All learned methods get the same simulator, the 2,048,000-sample training budget used in the SPAWC paper, the same network width, and an equal hyperparameter search of 20 trials each on a held-out validation set. Beating a baseline means a lower area under the total-cost-versus-RMSE curve, and lower RMSE at matched total cost at three cost levels, over five seeds with non-overlapping confidence intervals. We found no reported result on Lacuna for any method under per-element switching costs, so every number in that regime will be produced by us.
Why not just…?
Why not just round the continuous policy? For flat wide beams, Beampattern Synthesis for Discrete Phase RIS in Communication and Sensing Systems reports negligible loss at two bits, so rounding may well be enough for accuracy at two bits with $c_s=0$. We expect this and will report it honestly. The case against rounding is narrower. At one bit, the rounding loss documented for interference-sensitive patterns by Yu et al. should appear. With switching costs, a continuous policy has no reason to keep phases away from rounding boundaries, so its flip count should be high and erratic. If rounded policies match ours on the cost–error curve at one bit with $c_s>0$, the core claim fails.
Why not just retrain VQ-C with a codeword-transition cost? This is the most serious threat, because a global codebook with priced transitions may capture most of the benefit with far less machinery. The difference is that a codebook of a few thousand entries cannot express "keep everything except this sub-array" for arbitrary sub-arrays unless it grows combinatorially. The retrained VQ-C baseline settles the question directly: if it matches our policy, we will conclude that per-element control is unnecessary and that priced codebooks are the right design.
Why not just use greedy information-per-cost over good discrete beams? AFABench shows that greedy rules are hard to beat on most real benchmarks. Planning ahead wins there only when early measurements act as pointers to where the useful information lies. The Zhang et al. results suggest RIS localization has this structure. Switching costs should strengthen it, because the greedy rule cannot see that an expensive exploratory rewrite pays off two frames later. If greedy matches our policy at every value of $c_s$, our account of why planning ahead matters is wrong.
Decisive Checks
The program depends on four results. The first is the cost–error curve at one bit, $N=64$, comparing our policy, rounded continuous, retrained VQ-C, and greedy, at $c_s/c_p \in \{0, 0.01, 0.1\}$. The second is the ablation of exact flip count versus a continuous penalty, which shows whether discrete-native training is the active ingredient. The third is the gap between our policy and greedy plotted against $c_s$; the prediction is that it widens monotonically. The fourth is a robustness rerun with phase-dependent amplitude loss and $N=128$, to check that conclusions survive the hardware effects that Spectral and Energy Efficiency of IRS-Assisted MISO Communication with Hardware Impairments shows cap performance.
For zone classification we report accuracy against total cost for the same methods. Here we test whether learned configurations differ from localization ones, for example by concentrating flips near zone boundaries. If our policy wins only at two bits with $c_s=0$, or loses to retrained VQ-C, we will report the negative result and its implication: priced global codebooks, not per-element policies, are the right abstraction for cost-aware surface sensing.
References
- Peri-Diagnostic Decision Support Through Cost-Efficient Feature Acquisition at Test-Time
- EDDI: Efficient Dynamic Discovery of High-Value Information with Partial VAE
- DiFA: Differentiable Feature Acquisition
- Active Sensing for Localization with Reconfigurable Intelligent Surface
- Codebook Learning for Active Sensing with Reconfigurable Intelligent Surface
- Learning Beamforming Codebooks for Active Sensing With Reconfigurable Intelligent Surface
- AFABench: A Generic Framework for Benchmarking Active Feature Acquisition
- Beampattern Synthesis for Discrete Phase RIS in Communication and Sensing Systems
- Robust and Secure Wireless Communications via Intelligent Reflecting Surfaces
- Spectral and Energy Efficiency of IRS-Assisted MISO Communication With Hardware Impairments