Next Article in Journal
Low-Complexity Residual-Corrected Loss-Minimization Current-Reference Generation for PMSM Drives
Previous Article in Journal
Revisiting the Inference Time Optimization of TinyML for ARM-Based Microcontrollers
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Entropy-Driven Action Randomization: A Deployment-Time Defense for Environment Privacy in Deep Reinforcement Learning

1
State Key Laboratory of Public Big Data, College of Computer Science and Technology, Guizhou University, Guiyang 550025, China
2
Department of Electrical & Electronic Engineering, University of Bristol, Bristol BS8 1QU, UK
*
Author to whom correspondence should be addressed.
Electronics 2026, 15(14), 2998; https://doi.org/10.3390/electronics15142998
Submission received: 1 June 2026 / Revised: 2 July 2026 / Accepted: 6 July 2026 / Published: 8 July 2026
(This article belongs to the Section Artificial Intelligence)

Abstract

Deep reinforcement learning (DRL) agents implicitly memorize the structure of their training environment, allowing an attacker to reconstruct it by querying the action outputs of a deployed model and causing environment-privacy leakage. To address this, this study proposes Entropy-Driven Action Randomization (EDAR), a deployment-time action randomization defense. Inspired by the exponential mechanism from differential privacy, EDAR replaces deterministic greedy action selection with probabilistic action sampling based on a normalized Q-value utility function, without altering the trained policy. A state-adaptive dynamic privacy budget is further designed, guided by the Shannon entropy of the action distribution. A simulated-annealing-based policy inversion attack is used to quantify privacy leakage, measured by the normalized recovery rate (NRR). Experiments on GridWorld environments ranging from 7 × 7 to 13 × 13 show that, at a privacy level comparable to a strong fixed budget, the proposed dynamic budget raises the reward retention from 6.2% to 78.9% while keeping a comparable NRR reduction. These results indicate that adapting the privacy budget to per-state policy determinism yields a markedly better privacy–utility trade-off than existing training-perturbation-based methods. We clarify that the differential privacy property invoked here is a per-query, mechanism-level guarantee of indistinguishability between neighboring observation states under a fixed trained model. The protection of the environment structure itself is established empirically through the policy inversion attack. Experiments are conducted on discrete GridWorld navigation tasks; the conclusions are scoped to small value-based navigation settings.

1. Introduction

The rapid proliferation of machine learning systems in safety-critical and privacy-sensitive domains has made the privacy of learned models a central concern [1,2]. Unlike classical data-privacy threats that arise from the direct exposure of stored records, trained models can implicitly encode sensitive information acquired during learning, rendering them susceptible to reconstruction attacks even when the model parameters remain hidden [3,4,5,6]. Deep reinforcement learning (DRL) presents a particularly acute instance of this problem. A DRL agent learns by repeatedly interacting with and observing its training environment, which causes the learned policy to implicitly memorize the structural information of that environment [7]. Once such an agent is deployed as a query-accessible service, an attacker with only black-box access can exploit this memorization to reconstruct the original training environment from the agent’s action outputs alone [7]. This threat is directly relevant to domains such as medical robotics, autonomous navigation, and intelligent infrastructure management, where the environment itself constitutes sensitive proprietary information.

1.1. Related Work

The broader risk of model memorization has been extensively documented in supervised learning. Membership inference attacks [3] demonstrate that an adversary can determine, through black-box queries, whether a given record was used for training. Model inversion attacks [4] show that the confidence scores exposed by a classifier are sufficient to reconstruct sensitive input features. Carlini et al. [5] established a rigorous likelihood-ratio framework that approaches the theoretical optimum of membership inference using only per-sample loss values, while Hu et al. [6] provided a comprehensive survey of this line of work. These studies collectively indicate that the memorization of training data is an inherent by-product of gradient-based learning and constitutes the root cause of privacy leakage—a conclusion that extends naturally to DRL, where the training environment plays the role of the sensitive data.
Differential privacy (DP) [8], with its rigorous mathematical guarantees, has become the de facto framework for privacy-preserving machine learning. Abadi et al. [9] introduced differentially private stochastic gradient descent (DP-SGD), which injects calibrated Gaussian noise into clipped gradients to ensure privacy during training. In the reinforcement learning setting, Wang and Hegde [10] proposed differentially private Q-learning with functional noise for continuous state spaces, and Abahussein et al. [11] extended this idea to Double DQN in continuous spaces via a DP-SGD approach. Qiao and Wang [12] designed private offline RL algorithms with instance-dependent sample-complexity bounds, showing that privacy protection incurs almost no additional utility loss under tabular and linear Markov Decision Process (MDP) settings. Vietri et al. [13] studied private episodic exploration under joint DP, Garcelon et al. [14] addressed regret minimization under local DP, and Qiao and Wang [15] further attained near-optimal sample complexity for reward-free exploration under joint DP. More recently, Rio et al. [16] introduced a differentially private policy-gradient algorithm based on trust-region methods, demonstrating that the privacy noise can be absorbed into the trust-region constraint with minimal sacrifice of theoretical guarantees. However, these works uniformly target the protection of user-level or trajectory-level personal data, rather than the structural information of the training environment itself.
The environment-privacy problem was first identified by Pan et al. [7], who showed that a GridWorld agent retains its training-environment trajectory even after all obstacles are removed, and demonstrated that a genetic-algorithm-based attacker can recover the original map by comparing candidate policies against the target policy. Mo et al. [2] and Ilahi et al. [1] subsequently provided systematic taxonomies of DRL security threats, both observing that defenses against environment-privacy leakage remain severely underdeveloped. The only dedicated defense to date is differentially private deep reinforcement learning (DP-DRL) [17], which perturbs the agent’s observation input during training using the exponential mechanism. This approach, however, has two significant limitations. First, it requires a forward pass over the full observation space before each training step, which becomes computationally prohibitive in high-dimensional settings. Second, after sufficient training the policy still converges to a representation that encodes genuine environment information, so the structural leakage is not fundamentally eliminated.

1.2. Contributions

The above limitations motivate a fundamentally different strategy: rather than intervening in the training process, randomization is applied directly at the deployment stage to the action outputs of an already-trained model. This strategy requires no modification to the training pipeline, incurs only O ( | A | ) additional computation per step regardless of the observation dimensionality, and directly targets the query interface through which an attacker extracts environment information. The main contributions of this study are summarized as follows.
(1)
A deployment-time action randomization defense, termed Entropy-Driven Action Randomization (EDAR), is proposed, which replaces deterministic greedy action selection with probabilistic sampling based on a normalized Q-value utility function inspired by the exponential mechanism, without modifying the trained policy.
(2)
A state-adaptive dynamic privacy budget strategy is designed, guided by the Shannon entropy of the action distribution, applying stronger perturbation in states with highly deterministic outputs while preserving more utility in states with low determinism.
(3)
A simulated-annealing-based policy inversion attack is designed as a quantitative tool for evaluating environment-privacy leakage, using the normalized recovery rate (NRR) as the privacy metric. Experiments on GridWorld environments of four scales (7 × 7 to 13 × 13) show that, at a privacy level comparable to a strong fixed-budget baseline ( ε   =   1 ), the proposed dynamic-budget method raises the reward retention rate from 6.2% to 78.9%, thereby achieving a markedly better privacy–utility trade-off than the existing training-perturbation-based method [17].
The ε -differential-privacy property established for the proposed sampling mechanism (Equation (6)) is a per-query, mechanism-level guarantee of indistinguishability between neighboring observation states under a fixed trained model; it is not an end-to-end differential-privacy guarantee with respect to neighboring training environments. What is formally protected is therefore the indistinguishability of action outputs at inference, whereas the protection of the environment structure against reconstruction is demonstrated empirically through the policy inversion attack in Section 5, with a full end-to-end analysis left for future work.

1.3. Organization

The remainder of this paper is organized as follows. Section 2 introduces the preliminaries on Double DQN, differential privacy, and the exponential mechanism. Section 3 formulates the environment-privacy problem and the threat model. Section 4 presents the proposed deployment-time action randomization defense and the dynamic privacy budget strategy. Section 5 describes the simulated-annealing-based policy inversion attack and the privacy metric. Section 6 reports the experimental results, and Section 7 concludes the paper.

2. Preliminaries

2.1. Double DQN

Reinforcement learning formalizes sequential decision-making as a Markov Decision Process (MDP), defined by the tuple ( S ,   A ,   T ,   R ,   γ ) , where S is the state space, A is the action space, T is the transition dynamics, R is the reward function, and γ     ( 0 ,   1 ) is the discount factor. At each time step, the agent observes state s , selects action a according to policy π , receives reward r , and transitions to s . The agent aims to find the optimal policy π * that maximizes the expected cumulative discounted reward. The optimal action-value function Q * ( s ,   a ) satisfies the Bellman optimality equation:
Q * ( s ,   a )   =   E [ r   +   γ   m a x a   Q * ( s ,   a )   |   s ,   a ]
The Deep Q-Network (DQN) [18] approximates Q * ( s ,   a ) with a neural network Q ( s ,   a ;   θ ) by minimizing the temporal-difference (TD) loss. Standard DQN suffers from overestimation bias because the same network is used for both action selection and evaluation. Double DQN [19] decouples these two operations: the online network θ selects the greedy action, while the target network θ evaluates it:
y   =   r   +   γ   Q ( s ,   a r g m a x a   Q s ,   a ;   θ ;   θ )
This separation effectively suppresses overestimation and produces higher-quality policies, which is important for the present work: a well-converged policy provides a stable Q-value landscape on which the deployment-time perturbation mechanism can operate predictably. Double DQN (DDQN) is therefore adopted as the base algorithm; the proposed defense is, however, compatible with any value-based DRL algorithm.

2.2. Differential Privacy

Differential privacy (DP) [8] provides a rigorous, worst-case bound on the information an adversary can extract from the output of a randomized algorithm.
Definition 1 ( ε -Differential Privacy).
A randomized algorithm  M  satisfies  ε -differential privacy if, for any two neighboring inputs  D  and  D   differing in a single element, and for all measurable output sets  Ω :
P r [ M ( D )     Ω ]     e ε   ·   P r [ M ( D )     Ω ]
The privacy budget ε governs the privacy–utility trade-off: a smaller ε enforces stronger privacy at the cost of greater output randomization. Achieving DP requires injecting noise calibrated to the global sensitivity of the query, defined for a query function f as Δ f   =   m a x D D   f ( D )     f ( D ) , i.e., the largest change in the output induced by altering one element of the input.

2.3. Exponential Mechanism

For non-numerical outputs such as discrete action selection, the exponential mechanism [20] is the canonical DP tool. Given a utility function u : D   ×   R     R with global sensitivity Δ u   =   m a x D D ,   r   | u ( D ,   r )     u ( D ,   r ) | , the exponential mechanism samples output r     R with probability:
P r [ M   o u t p u t s   r ]     e x p (   ε · u ( D ,   r ) 2 Δ u )
By construction, M satisfies ε -differential privacy [20].

3. Problem Formulation and Threat Model

3.1. Problem Definition

A DRL agent is trained to perform a task in an environment E whose transition dynamics are determined by the structural configuration of E (e.g., the obstacle layout of a grid map). Upon convergence, the policy π θ and action-value function   Q ( s ,   a ;   θ ) implicitly encode the structure of   E : the learned state-to-action mapping reflects, at each location, the local layout of the surrounding environment. This encoding is the source of environment-privacy leakage—when the agent is deployed as a query-accessible service, an attacker can invert this mapping to reconstruct the structure of E . Unlike conventional privacy threats whose protected asset is personal data, here the protected asset is the environment structure itself.

3.2. Threat Model

This study assumes a black-box threat model reflecting realistic API-level access:
(1)
Query access. The attacker can place the agent in any valid state s and observe its action output a   =   π θ ( s ) .
(2)
Repeated querying. For a given state, the attacker may issue T repeated queries and record the empirical action frequencies; for a randomized policy, this estimates the underlying action distribution.
(3)
Prior knowledge. The attacker knows the state and action space definitions and boundary conditions, but has no access to the model parameters or the training process.
The defense goal is to prevent accurate reconstruction of E from queried action sequences while preserving sufficient policy utility for the deployed task.

4. Deployment-Time Action Randomization Defense

This section presents the proposed defense, EDAR. In standard DRL, the agent acts deterministically as a   =   a r g m a x a   Q ( s ,   a ;   θ ) , making its behavior fully predictable and the training environment recoverable from action sequences. The proposed defense replaces this deterministic selection with probabilistic sampling at deployment time, without modifying the trained policy.

4.1. Action Randomization via the Exponential Mechanism

To apply the exponential mechanism to action selection, a utility function is needed. Since environment privacy concerns the indistinguishability of action outputs at neighboring observation states (states differing in a single observation component), and since a small structural change can induce large fluctuations in raw Q-values through the nonlinear network, we normalize the Q-values to a bounded range.
Definition 2 (Utility Function).
Given state  s , the utility of selecting action  a  is defined as the min–max-normalized Q-value:
u ( s ,   a ) = Q ( s ,   a ;   θ ) Q m i n ( s ) Q m a x ( s ) Q m i n ( s ) + δ
where Q m a x ( s ) and Q m i n s are the maximum and minimum Q-values at s , and δ > 0 is a small smoothing constant that prevents division by zero when Q m a x ( s ) = Q m i n s ( δ   =   10 6 in all experiments). Beyond this min–max range normalization and the smoothing constant δ , Equation (5) introduces no additional temperature or scaling. By construction u ( s , a ) [ 0 , 1 ] , for any two neighboring states the utility differs by at most 1, giving a global sensitivity Δ u = 1 independent of the network architecture or training dynamics. This bound holds because the min–max normalization of Equation (5) maps all Q-values into [0, 1] before they enter the exponential mechanism; the sensitivity of the raw Q-network outputs to input perturbations therefore does not affect the DP guarantee, since any perturbation—however large in the raw Q-value space—is absorbed by the normalization and cannot push u ( s , a ) outside [0, 1].
Applying the exponential mechanism with privacy budget ε , the agent samples action a according to
P ( a   |   s ) = e x p ( ε   ·   u s ,   a 2 ) a A e x p ( ε   ·   u s ,   a 2 )
By the guarantee of the exponential mechanism, Equation (6) satisfies ε -differential privacy with respect to neighboring observation states. A large ε concentrates the distribution on the greedy action, while a small ε flattens it toward uniform, trading utility for stronger perturbation.
The ε -DP property established here is a per-query, mechanism-level guarantee with respect to neighboring observation states under a fixed trained model θ . It does not directly constitute a differential-privacy guarantee with respect to neighboring training environments. A full end-to-end analysis spanning training and deployment is left for future work; the empirical defense effectiveness is instead evaluated through the policy inversion attack in Section 5.

4.2. State-Adaptive Dynamic Privacy Budget

A fixed ε treats all states uniformly, which is suboptimal: states whose Q-values are already near-uniform leak little environment information and need little perturbation, whereas states with sharply peaked Q-values are most informative to an attacker and require stronger protection.
As a heuristic motivation, the single-query leakage can be viewed through the mutual information I ( E ;   a )   =   H ( a )     H ( a   |   E ) , where H ( a   |   E ) decomposes over states as an average of the per-state action entropy H ( a   |   s ) . Raising H ( a   |   s ) in low-entropy states therefore tends to reduce leakage. A rigorous treatment would need to account for how randomization reshapes the marginal distribution P ( a ) , which is beyond the present scope. This motivates allocating the budget by the per-state entropy itself.
The normalized Shannon entropy of the Softmax-transformed Q-values serves as the proxy for the per-state determinism:
H ( a s ) =   a A   p ( a s ) ln p ( a s ) l n A
where p ( a   |   s ) is the Softmax distribution over Q-values with temperature 0.5 and the factor 1 / l n | A | normalizes H to [ 0 ,   1 ] . H ( a   |   s )     0 indicates a near-deterministic policy (high leakage risk) and H ( a   |   s )     1 a near-uniform one (low risk). The budget is then assigned by a linear mapping. The entropy is deliberately computed from the Softmax of the Q-values rather than from p a s , because the budget ε ( s ) is itself determined by the per-state determinism, whereas p a s already depends on ε ( s ) through the exponential mechanism; using the entropy of p a s to set ε ( s ) would therefore be circular.
ε ( s ) = ε m i n + ( ε m a x ε m i n )   ·   H ( a   |   s )
where ε m i n = 1 and ε m a x   =   10 ; these values are fixed across all experiments. The bounds are chosen such that ε m a x yields an action distribution strongly biased toward the greedy action, while ε m i n produces a substantially flattened distribution that meaningfully disperses probability mass across actions. A sensitivity analysis of these bounds is provided in Section 6.7. Substituting Equation (8) into Equation (6) gives the state-adaptive action sampling distribution:
P ( a   |   s )   =   e x p ( ε ( s )   ·   u s ,   a 2 ) a A e x p ( ε s ·   u s ,   a 2 )
Thus, the dynamic strategy applies stronger perturbation precisely where the policy is most informative and relaxes it where the policy is already near-uniform, which is shown in Section 6 to yield a better privacy–utility trade-off.

4.3. Overall Algorithm

Training uses standard Double DQN with no modification; privacy protection acts only at inference, since leakage occurs after deployment. Figure 1 illustrates the overall workflow. The complete procedure is summarized in Algorithm 1. The per-step overhead beyond a single forward pass is O ( | A | ) , independent of the observation dimensionality—in contrast to the O ( n ) observation-space perturbation of DP-DRL [17], where n is the observation dimension.
Algorithm 1 Entropy-Driven Action Randomization (EDAR)
Require:   trained   Q - network   parameters   θ ;   action   set   A ;   budget   bounds   ε m i n ,   ε m a x ;   smoothing   constant   δ ;   maximum   episode   length   T m a x
Ensure:   a   privacy - protected   action   a t at each step
1: for   t = 1 ,   2 ,   ,   T m a x do
2:      Receive   current   state   s t
3:      Compute   Q ( s t ,   a ;   θ )   for   all   a     A via a single forward pass
4:      Q m a x     m a x   Q ( s t ,   a ;   θ ) ;   Q m i n     m i n   Q ( s t ,   a ;   θ )
5:      for   each   a     A do
6:      u ( s t ,   a )     ( Q ( s t ,   a ;   θ ) Q m i n )   /   ( Q m a x Q m i n + δ )
7:     end for
8:      Compute   Softmax   distribution   p ( a | s t )   over Q-values
9:      H ( a | s t )   ( 1   /   l n | A | )   Σ a   p ( a | s t )   l n   p ( a | s t )
10:     ε ( s t )     ε m i n + ( ε m a x ε m i n )   ·   H ( a | s t )
11:     for   each   a     A do
12:         P ( a   |   s t )     e x p ( ε ( s t ) · u ( s t ,   a ) / 2 )   /   Σ a   e x p ( ε ( s t ) · u ( s t ,   a ) / 2 )
13:    end for
14:     Sample   action   a t   ~   P ( · | s t )
15:     Output   a t
16:     Execute   a t ;   the   environment   returns   the   next   state   s t + 1
17:     if   s t + 1 is terminal then break
18:     s t = s t + 1
19: end for

5. Policy Inversion Attack via Simulated Annealing

To quantitatively evaluate the defense proposed in Section 4 under the black-box threat model of Section 3, we design an attack that attempts to reconstruct the training environment from action queries. The genetic-algorithm (GA) attack of Pan et al. [7] retrains a DRL agent for every candidate environment, which is computationally prohibitive when evaluating a defense across multiple maps. We instead adopt a simulated-annealing-based attack that operates entirely through black-box queries to the deployed agent, with no retraining.

5.1. Attack Principle

The attack exploits the locality of the encoding: in a navigation task, the agent’s action preference at a given position primarily reflects the local environment structure around that position. The attacker therefore searches for a candidate map whose induced state observations cause the target agent to produce action responses matching those of the true map; iteratively refining the candidate to maximize this matching score progressively reveals the original environment.

5.2. Attack Algorithm

The attack proceeds in two stages: reference-action collection and map search.
Reference-action collection. For every reachable position c in the true environment, the attacker queries the agent T times and records the majority-voted action as the reference action a r e f ( c ) . The full set R   =   { ( c ,   a r e f ( c ) ) } serves as the matching target for the subsequent search. For a deterministic policy T   =   1 suffices; for a randomized policy, repeated queries reduce per-query noise through majority voting.
Map search. The attacker searches over candidate maps satisfying four structural constraints: walls along the boundary, fixed start and goal positions, full connectivity among non-wall cells, and the absence of any 2 × 2 wall block. Given a candidate map m , the score is defined as the matching rate between the actions induced by m and the reference actions:
S c o r e ( m , R ) = 1 R   ( c , a r e f ( c ) ) R 𝟙 [ π θ   ( o m   ( c ) ) = a r e f ( c ) ]
where o m   ( c ) is the observation reconstructed at position c from m , π θ ( · ) denotes a single black-box query to the target agent and 𝟙 [ · ] is the indicator function. Here S c o r e ( m ,   R )     [ 0 ,   1 ] , with a higher value indicating that m induces observations more consistent with those of the true map.
We adopt simulated annealing [21] over the discrete map space; its temperature-controlled Metropolis rule balances global exploration and local exploitation. The neighborhood operator flips one or two interior cells (two-cell flips at high temperatures to escape local optima, single-cell flips at low temperatures for refinement); any flipped candidate violating the structural constraints is discarded. Multiple independent restarts are used, and the highest-scoring candidate across all restarts is returned as the inferred map. The complete procedure is summarized in Algorithm 2.
With reference to Algorithm 2, two mechanisms make the proposed defense effective against this attack. In the reference-collection stage (lines 2–5), the exponential mechanism causes repeated queries on the same state to return different actions, so the majority-voted reference action may deviate from the true greedy action—poisoning the matching target from the outset. In the scoring stage (via Equation (10)), even a candidate map identical to the true map can produce non-greedy actions, lowering the score and obscuring the optimum. A smaller ε ( s ) amplifies both effects; the dynamic budget concentrates this protection in precisely the low-entropy states that would otherwise leak the most information.
Algorithm 2 Simulated-Annealing-Based Policy Inversion Attack
Require:   target   agent   ( black - box ) ;   grid   size   H × W ;   start   and   goal   positions ;   query   count   T ;   initial   temperature   τ 0 ;   minimum   temperature   τ m i n ;   cooling   rate   α ( 0 ,   1 ) ;   max   iterations   N ;   number   of   restarts   K
Ensure:   inferred   map   m
▷ Stage 1: Reference-action collection
1: for   each   reachable   position   c in the true map do
2:      Reconstruct   the   observation   o ( c ) ;   query   the   agent   T   times   on   o ( c )
3:      a r e f ( c )   majority - voted   action   over   the   T queries
4: end for
5: R     { ( c ,   a r e f ( c ) ) }     ▷ reference set used as the matching target
▷ Stage 2: Map search with simulated annealing
6: m *     N o n e ;   s *  
7: for   k = 1 ,   2 ,   ,   K do    ▷ K independent restarts to escape local optima
8:       Generate   a   random   initial   map   m 0 satisfying the four structural constraints
9:       m     m 0 ;   s     S c o r e ( m ,   R ) by Equation (10)
10:      m b e s t     m ;   s b e s t     s ;   τ     τ 0
11:      for   n = 1 ,   2 ,   ,   N do    ▷ simulated annealing iterations
12:            Choose   flip   size :   2   cells   if   τ > τ 0 / 2 , else 1 cell
13:            Flip   the   selected   interior   cell   ( s )   to   obtain   candidate   m
14:            if   m violates any structural constraint then continue
15:            s     S c o r e ( m ,   R ) by Equation (10)
16:            Δ     s s
17:            if   Δ > 0   or   U n i f o r m ( 0 , 1 ) < e x p ( Δ / τ ) then
18:                m     m ;   s     s    ▷ Metropolis acceptance
19:                if   s > s b e s t then
20:                    m b e s t     m ;   s b e s t     s
21:               end if
22:            end if
23:             τ     α   ·   τ ▷ geometric cooling schedule
24:             if   τ < τ m i n then break
25:     end for
26:      if   s b e s t > s *   then   m *     m b e s t ;   s *     s b e s t
27: end for
28: return   m *

5.3. Privacy Metric

To quantify the success of the attack and, conversely, the strength of the defense, we adopt the normalized recovery rate (NRR) as the privacy metric. Since boundary walls are public knowledge under the threat model of Section 3, only interior cells contribute. NRR is defined as the fraction of interior cells whose state matches between the inferred and the true maps:
N R R = 1 | I |   c I 𝟙 [ m ^ ( c ) = m ( c ) ]
where I is the set of interior cells, m ( c ) and m ^ ( c ) are the true and inferred states of cell c . N R R     [ 0 ,   1 ] : a value of 1 indicates full interior recovery, while values close to the random-guessing baseline indicate that the defense has prevented meaningful reconstruction. NRR is the primary privacy metric used throughout Section 6.
The per-query ε -DP guarantee and NRR are connected empirically rather than analytically: the DP property bounds the information revealed by each action query, which reduces the discriminative power of the simulated annealing (SA) scoring function and lowers NRR; Section 6.5 characterizes this relationship by varying the query count T . In the GridWorld setting, NRR directly measures leakage of the sensitive information—the interior wall layout—since the start and goal positions are assumed to be known to the attacker under the threat model of Section 3. NRR does not, however, capture coarser structural leakages such as room topology or connectivity patterns that an attacker might infer without precise cell-level reconstruction; this is a known limitation of cell-level metrics in more complex environments, noted in Section 7.

6. Simulations and Results

This section evaluates EDAR on GridWorld environments of four scales, using the simulated-annealing attack (Algorithm 2) as the evaluation tool and NRR as the primary privacy metric. We verify the convergence of the base Double DQN agent, quantify EDAR’s privacy and utility against fixed-budget baselines (Section 6.2 and Section 6.3), compare it with four training-stage DP methods (Section 6.4), assess its robustness to the attacker’s query budget (Section 6.5), validate the SA attack against the prior-art GA attacker (Section 6.6), and analyze the sensitivity of the results to the budget bounds ε m i n and ε m a x and the robustness of the advantage to the choice of budget signal (Section 6.7).

6.1. Experimental Setup

Following prior work on environment-privacy evaluation [7,17], we use GridWorld environments of four scales—7 × 7, 9 × 9, 11 × 11, and 13 × 13—with 25, 49, 81, and 121 interior cells, respectively. Each cell is either a wall or a free space; boundary cells are walls, and interior cells form the private structure the attacker tries to recover. The agent navigates from a fixed start to a fixed goal via four discrete actions (up, down, left, right). Observations are 8-dimensional normalized LiDAR distance vectors, more closely reflecting realistic robotic perception than absolute coordinates. Representative maps of the four scales are shown in Figure 2.
The base Double DQN agent uses a fully connected Q-network (8–64–64–4) with ReLU activations and Xavier initialization. Training runs for 1000 episodes per environment with the Adam optimizer and an ε-greedy schedule. The reward is +1 for reaching the goal, −0.05 for hitting a wall, and 0 otherwise. The Baseline Double DQN agent converges within 1000 episodes on all four scales, providing a stable reference policy for the subsequent privacy and utility evaluations. Full hyperparameters are listed in Table 1.
EDAR uses δ   =   10 6 , ε m i n   =   1 , ε m a x   =   10 (fixed across all scales). The simulated-annealing attack (Algorithm 2) uses parameters listed in Table 2; unless otherwise stated, the per-state query count is T   =   20 .
All experiments were implemented in Python 3.9.22 with PyTorch 2.5.1 (CUDA 12.1).

6.2. Privacy Protection

We compare EDAR against the no-defense baseline and three fixed-budget schemes corresponding to strong ( ε   =   1 ), moderate ( ε   =   5 ), and weak ( ε   =   10 ) privacy regimes.
Figure 3 visualizes the inferred maps under each scheme on the four environments, with red crosses marking interior cells whose reconstructed state differs from the true map. Under no defense, the attacker fully recovers the interior structure on the 7 × 7, 9 × 9, and 11 × 11 maps (NRR = 1.000) and still reaches NRR = 0.843 on the 13 × 13 map, confirming that the deterministic greedy output leaks the training environment in considerable detail. The near-perfect recovery on the three smaller maps demonstrates that a black-box query-only attacker can invert the action-to-structure mapping almost exactly when no randomization is applied; the slight degradation on the 13 × 13 map reflects the larger search space rather than any inherent protection. As ε decreases, the red crosses become denser and increasingly spread across the interior, with the most pronounced improvement on larger maps where the cumulative effect of per-state randomization is greatest. The quantitative NRR values in Table 3 corroborate this visual trend.
Table 3 reports per-map and average NRR. The strong fixed budget ( ε   =   1 ) reaches an average NRR of 0.77; moderate and weak budgets ( ε   =   5 ,   10 ) yield 0.88 and 0.90, confirming the monotonic relationship between ε and protection strength. On the 7 × 7 map, ε   =   5 and ε   =   10 both fail to deviate from the no-defense baseline (NRR = 1.00 ± 0.00), indicating that weak randomization is insufficient on small search spaces.
EDAR achieves an average NRR of 0.79—approaching the strongest fixed budget—and tends to concentrate reconstruction errors in corridors, corners, and dense-obstacle regions, which correspond to the low-entropy, high-leakage-risk states where EDAR assigns its smallest ε ( s ) ; open multi-path areas with higher action entropy, on the other hand, are perturbed less and remain easier to recover. This spatial pattern is consistent with the design intent of the entropy-driven budget allocation.

6.3. Utility Analysis

We evaluate four metrics covering both privacy and utility, summarized in Table 4.
The weak fixed budget ( ε   =   10 ) preserves utility almost perfectly (reward retention of 100%) but offers little protection (NRR reduction of only 5.3%). The strong fixed budget ( ε   =   1 ) attains substantial protection (NRR reduction of 19.3%) at the cost of catastrophic utility loss—reward retention drops to 6.2% and the average step count balloons to 134, roughly 9× the baseline—because uniform strong perturbation forces the agent to wander even in low-risk open regions.
EDAR breaks this trade-off: it achieves an NRR reduction approaching that of ε = 1 with reward retention of 78.9%, success rate of 100%, and 58 average steps. EDAR thus delivers privacy approaching the strongest fixed budget while recovering most of the utility cost, by concentrating strong perturbation on low-entropy states and preserving near-optimal action selection elsewhere.
The reward-retention ratio alone can be misleading when step counts differ substantially between agents, because a policy that collides with walls frequently accumulates negative reward even when it eventually reaches the goal. The raw mean episode return is therefore reported alongside the ratio in Table 4 to allow direct comparison.

6.4. Comparison with Training-Stage DP Methods

Although the four training-stage methods compared below were originally designed for data or trajectory privacy rather than environment-structure privacy, they represent the closest existing DP-based defenses for DRL agents and are included to examine whether training-stage DP noise can inadvertently protect environment structure as a side effect. We compare EDAR with four representative training-stage methods that inject DP noise at different points in the training pipeline: (i) DDQN-DP-SGD [11], which adds noise to clipped Q-Network gradients (clip norm C   =   1.0 , noise multiplier σ   =   0.1 , batch size 64, 3000 training episodes); (ii) Proximal Policy Optimization (PPO)-DP-SGD [16], which applies the DP-SGD framework to PPO’s policy-gradient updates (clip norm C   =   1.0 , noise multiplier σ   =   0.1 , rollout length 128, 4 update epochs per rollout, learning rate 3 × 10−4, 3000 episodes); (iii) DQN-RewPerturb, which adds Laplace noise to per-step rewards, based on the Q-learning DP framework of Wang and Hegde [10] (DP budget ε r   =   21 , Laplace noise scale = Δ r / ε r     0.05 with reward sensitivity Δ r   =   1.05 , 3000 episodes); and (iv) DP-DRL, which perturbs the agent’s observation input during training via the exponential mechanism (20,000 training episodes; all other hyperparameters follow the settings in [17]). For each baseline, the privacy hyperparameters follow the settings reported in its original work. All four methods produce deterministic policies and are evaluated under the same simulated-annealing attack as EDAR. Table 5 reports both NRR and the corresponding utility metrics.
Table 5 reveals a fundamental dilemma facing training-stage methods. DDQN-DP-SGD and DQN-RewPerturb retain near-perfect utility, but this very fact implies that the training noise was too mild to disturb the policy: the converged Q-network still encodes the environment accurately, and the deterministic argmax leaks it losslessly, leaving NRR around 0.95. PPO-DP-SGD goes to the opposite extreme—its utility is substantially reduced, owing to the inherently higher sensitivity of on-policy policy-gradient updates to additive DP noise and PPO’s stochastic inference rather than a failure to converge; yet, NRR remains 0.91 because the impaired policy output is still spatially distinguishable.
Training-stage DP thus faces an irreducible tension: too little noise and privacy fail; too much noise and the policy fail. EDAR escapes this dilemma by acting at the deployment stage: the trained Q-network is untouched, while deployment-time randomization directly disrupts the query channel that training-stage methods cannot reach.

6.5. Robustness to Query Budget

We vary the per-state query count T from 1 to 150 on the 9 × 9 map and run the full attack independently at each value. Figure 4 shows the resulting NRR curves.
The no-defense baseline is flat: a deterministic policy reveals its action in a single query, so additional queries are redundant. Under EDAR, NRR increases with the per-state query count T as majority voting averages out the per-query randomness, rising from 0.694 at T   =   1 to 0.959 at T   =   100 with clearly diminishing returns thereafter; within the tested range (up to T   =   150 ) it remains below the no-defense level, but the overall trend is upward.
This behavior is the empirical signature of differential-privacy composition rather than evidence of a permanent protective margin. Each query to a fixed state is an independent draw from the ε ( s ) -differentially private mechanism of Equation (6), so by sequential composition [8] the T queries on that state consume a cumulative privacy budget of at most T · ε ( s ) . In the low-entropy states to which EDAR assigns its smallest budget ( ε m i n   =   1 ), the cumulative guarantee after T   =   100 queries is therefore bounded only by ε     100 , which is effectively vacuous: the greedy action remains the mode of the per-query distribution, so given enough queries the majority vote concentrates on it and recovery approaches the no-defense level. The reason the gap closes gradually rather than at once is that, at a small ε ( s ) , the probability margin of the greedy action over its closest competitors is small, so many queries are needed for the majority vote to resolve these low-margin states. We therefore do not claim that majority voting is unable to neutralize the randomization, but rather that doing so requires a large per-state query budget.
Whether this limitation is operationally significant depends on whether the attacker is query-limited in the target deployment. A model served behind an authenticated, rate-limited, or monitored API—as is typical of clinical, navigation, and industrial-control endpoints—bounds the per-state query count and can flag anomalous streams of identical repeated queries, so the small-to-moderate T regime in which EDAR retains a clear advantage is the operationally relevant one. An adversary with unrestricted offline black-box access is, by contrast, not query-limited, and against such an adversary EDAR in its present i.i.d.-resampling form—like any per-query DP mechanism—cannot prevent eventual reconstruction. We therefore position EDAR as a deployment-time defense for query-limited settings and state this assumption explicitly. A natural query-robust extension is to return a single cached sampled action per state, so that repeated queries to the same state reuse one draw and the cumulative budget remains ε ( s ) regardless of T ; this, together with a formal cumulative-budget composition analysis, is left for future work.

6.6. Comparison of SA and GA Attacks

To verify that the SA-based attack provides a sufficiently strong evaluation baseline, we compare it directly with the genetic-algorithm (GA) attack of Pan et al. [7] on the no-defense agent. Table 6 reports NRR and wall-clock time for both methods on the 7 × 7 map; the comparison is limited to this scale owing to GA’s prohibitive computational cost at larger map sizes.
SA achieves higher NRR (1.000 vs. 0.895) while reducing runtime by a factor of approximately 4100. The NRR difference is partly attributable to the query strategies of the two methods: SA evaluates each candidate map by issuing multiple direct queries to the frozen target policy per state, providing a dense fitness signal that guides the search; GA instead retrains a separate policy for each candidate and uses policy-level action matching as the scoring criterion, which introduces additional variance from the retraining process and yields a coarser fitness signal. The computational advantage of SA stems from this same design: avoiding retraining makes each fitness evaluation a lightweight forward-pass operation, whereas GA’s bottleneck is repeated policy training. These results show that SA is at least as strong as the prior-art GA attacker while being substantially more practical, and we therefore adopt it as the evaluation tool across all four map scales in this paper.

6.7. Sensitivity Analysis

To assess whether the reported advantage depends on the specific budget bounds, we vary each bound independently. Table 7 reports NRR and reward retention for a range of ε m i n and ε m a x configurations on the 9 × 9 map, with each configuration evaluated over five independent SA attack trials.
Varying ε m i n over { 1 ,   2 ,   3 ,   4 } with ε m a x fixed at 10 produces a consistent privacy–utility trade-off: larger ε m i n allocates a more relaxed budget to low-entropy states, yielding higher NRR and higher reward retention, while smaller ε m i n strengthens protection at the cost of utility.
Varying ε m a x over { 10 ,   9 ,   8 ,   7 } with ε m i n fixed at 1 shows a similar directional pattern: as ε m a x decreases, NRR and reward retention both decline, indicating stronger privacy protection at higher utility cost. The modest overall NRR variation across this range indicates that EDAR is robust to the choice of ε m a x . Taken together, the results confirm that the conclusions of Section 6.2 and Section 6.3 hold across the examined range of parameter settings, and that varying the bounds shifts the operating point along the privacy–utility trade-off in a predictable and interpretable manner.
To verify that the advantage of EDAR is not specific to the entropy-based budget signal or the linear mapping in Equation (8), we compare two alternative per-state uncertainty proxies under the same experimental protocol (9 × 9 map, ε m i n   =   1 , ε m a x   =   10 , five independent SA attack trials). The first alternative replaces the linear mapping with a square-root mapping applied to the same entropy signal; the second replaces the entropy signal entirely with a top-2 Q-gap measure, defined as the normalized difference between the two highest Q-values, with the direction inverted so that a larger gap—indicating higher action certainty and greater privacy exposure—yields a smaller budget. Table 8 reports the results. All three signals achieve NRR in the range 0.82–0.85, well below the no-defense baseline (NRR = 1.00), and reward retention in the range 74.0–78.4%, far above the fixed-budget baseline at ε   =   1 . The NRR spread across the three signals is only 0.03, indicating that the EDAR advantage is robust to the choice of uncertainty measure and mapping function. The linear entropy mapping is therefore a practically convenient default rather than a critical design dependency.

7. Conclusions

This work addresses environment-privacy leakage in deep reinforcement learning, where an attacker with black-box query access can reconstruct the training environment from the agent’s action outputs. We propose Entropy-Driven Action Randomization (EDAR), a deployment-time defense that samples actions through the exponential mechanism with a state-adaptive privacy budget guided by the Shannon entropy of the action distribution. A simulated-annealing-based policy inversion attack is designed as the evaluation tool, and the normalized recovery rate (NRR) is adopted as the privacy metric. Across four GridWorld scales, EDAR approaches the privacy of the strongest fixed-budget baseline (Avg. NRR 0.79) while raising reward retention from 6.2% to 78.9%, substantially outperforming four representative training-stage DP methods.
The evaluation is currently confined to discrete GridWorld environments with goal-directed navigation tasks, and extending the entropy-driven mechanism to continuous state spaces and non-navigation objectives remains an open problem. Beyond the empirical scope, the differential-privacy analysis in this work is restricted to single-query, mechanism-level guarantees with respect to neighboring observation states.
The central open challenge for practical deployment is constraining and formally composing the per-query budget across a full black-box interaction: while the single-query ε -DP guarantee of Equation (6) is rigorous, a realistic deployment in which the attacker can issue many queries requires a formal cumulative-budget composition analysis and, ultimately, an end-to-end privacy guarantee with respect to the training environment. We identify this as the primary direction for future work.
Secondary extensions include applying the entropy-driven budget mechanism to continuous-action algorithms and higher-dimensional perception inputs, developing query-robust variants such as returning a cached sampled action per state to maintain the cumulative budget at ε ( s ) regardless of query count, extending the framework to human–machine cooperative control settings where dynamic authority allocation strategies [22] share a conceptually similar state-adaptive design philosophy with the entropy-driven budget mechanism, and incorporating hierarchical attention-based uncertainty estimation techniques [23] to further refine per-state budget allocation.

Author Contributions

Conceptualization, X.C. and J.T.; methodology, X.C.; software, X.C.; validation, X.C.; formal analysis, X.C.; investigation, X.C.; resources, J.T.; data curation, X.C.; writing—original draft preparation, X.C.; writing—review and editing, X.C., J.T. and S.D.; visualization, X.C.; supervision, J.T.; project administration, J.T.; funding acquisition, J.T. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Guizhou Provincial Science and Technology Department, grant numbers QianKeHe Basic MS [2025] 622 and QianKeHe Basic—[2024] Youth 126. The APC was funded by the authors.

Data Availability Statement

The complete implementation of this work, including the EDAR defense, the SA-based policy inversion attack, and the GridWorld evaluation environment, is publicly available at https://github.com/Cc44-a/EDAR-attack (accessed on 5 July 2026).

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Ilahi, I.; Usama, M.; Qadir, J.; Janjua, M.U.; Al-Fuqaha, A.; Hoefler, T.; Crowcroft, J. Challenges and countermeasures for adversarial attacks on deep reinforcement learning. IEEE Trans. Artif. Intell. 2022, 3, 90–109. [Google Scholar] [CrossRef]
  2. Mo, K.; Ye, P.; Ren, X.; Liu, W.; Zhu, T.; Zhou, W. Security and privacy issues in deep reinforcement learning: Threats and countermeasures. ACM Comput. Surv. 2024, 56, 1–39. [Google Scholar] [CrossRef]
  3. Shokri, R.; Stronati, M.; Song, C.; Shmatikov, V. Membership inference attacks against machine learning models. In Proceedings of the 2017 IEEE Symposium on Security and Privacy (SP), San Jose, CA, USA, 22–26 May 2017; pp. 3–18. [Google Scholar] [CrossRef]
  4. Fredrikson, M.; Jha, S.; Ristenpart, T. Model inversion attacks that exploit confidence information and basic countermeasures. In Proceedings of the 22nd ACM SIGSAC Conference on Computer and Communications Security (CCS), Denver, CO, USA, 12–16 October 2015; pp. 1322–1333. [Google Scholar] [CrossRef]
  5. Carlini, N.; Chien, S.; Nasr, M.; Song, S.; Terzis, A.; Tramer, F. Membership inference attacks from first principles. In Proceedings of the 2022 IEEE Symposium on Security and Privacy (SP), San Francisco, CA, USA, 22–26 May 2022; pp. 1897–1914. [Google Scholar] [CrossRef]
  6. Hu, H.; Salcic, Z.; Sun, L.; Dobbie, G.; Yu, P.S.; Zhang, X. Membership inference attacks on machine learning: A survey. ACM Comput. Surv. 2022, 54, 1–37. [Google Scholar] [CrossRef]
  7. Pan, X.; Wang, W.; Zhang, X.; Li, B.; Yi, J.; Song, D. How you act tells a lot: Privacy-leaking attack on deep reinforcement learning. In Proceedings of the 18th International Conference on Autonomous Agents and Multi-Agent Systems (AAMAS), Montreal, QC, Canada, 13–17 May 2019; pp. 368–376. [Google Scholar]
  8. Dwork, C.; Roth, A. The algorithmic foundations of differential privacy. Found. Trends Theor. Comput. Sci. 2014, 9, 211–487. [Google Scholar] [CrossRef]
  9. Abadi, M.; Chu, A.; Goodfellow, I.; McMahan, H.B.; Mironov, I.; Talwar, K.; Zhang, L. Deep learning with differential privacy. In Proceedings of the 2016 ACM SIGSAC Conference on Computer and Communications Security (CCS), Vienna, Austria, 24–28 October 2016; pp. 308–318. [Google Scholar] [CrossRef]
  10. Wang, B.; Hegde, N. Privacy-preserving Q-learning with functional noise in continuous spaces. Adv. Neural Inf. Process. Syst. 2019, 32, 1501–1512. [Google Scholar]
  11. Abahussein, S.; Cheng, Z.; Zhu, T.; Ye, D.; Zhou, W. Privacy-preserving in double deep-Q-network with differential privacy in continuous spaces. In Proceedings of the Australasian Joint Conference on Artificial Intelligence (AI 2021), Sydney, NSW, Australia, 2–3 February 2022; Lecture Notes in Computer Science; Springer: Cham, Switzerland; Volume 13151, pp. 15–26. [CrossRef]
  12. Qiao, D.; Wang, Y.-X. Offline reinforcement learning with differential privacy. Adv. Neural Inf. Process. Syst. 2023, 36, 61395–61436. [Google Scholar] [CrossRef]
  13. Vietri, G.; Balle, B.; Krishnamurthy, A.; Wu, Z.S. Private reinforcement learning with PAC and regret guarantees. In Proceedings of the 37th International Conference on Machine Learning (ICML), Virtual, 13–18 July 2020; Volume 119, pp. 9754–9764. [Google Scholar]
  14. Garcelon, E.; Perchet, V.; Pike-Burke, C.; Pirotta, M. Local differential privacy for regret minimization in reinforcement learning. Adv. Neural Inf. Process. Syst. 2021, 34, 10561–10573. [Google Scholar]
  15. Qiao, D.; Wang, Y.-X. Near-optimal differentially private reinforcement learning. In Proceedings of the 26th International Conference on Artificial Intelligence and Statistics (AISTATS), Valencia, Spain, 25–27 April 2023; Volume 206, pp. 9914–9940. [Google Scholar]
  16. Rio, A.; Barlier, M.; Colin, I. Differentially private policy gradient. arXiv 2025, arXiv:2501.19080. [Google Scholar]
  17. Shen, S.; Ye, D.; Zhu, T.; Zhou, W.; Yu, P.S. Privacy preservation in deep reinforcement learning: A training perspective. Knowl.-Based Syst. 2024, 304, 112558. [Google Scholar] [CrossRef]
  18. Mnih, V.; Kavukcuoglu, K.; Silver, D.; Rusu, A.A.; Veness, J.; Bellemare, M.G.; Graves, A.; Riedmiller, M.; Fidjeland, A.K.; Ostrovski, G.; et al. Human-level control through deep reinforcement learning. Nature 2015, 518, 529–533. [Google Scholar] [CrossRef] [PubMed]
  19. Van Hasselt, H.; Guez, A.; Silver, D. Deep reinforcement learning with double Q-learning. In Proceedings of the 30th AAAI Conference on Artificial Intelligence (AAAI), Phoenix, AZ, USA, 12–17 February 2016; AAAI Press: Palo Alto, CA, USA, 2016; Volume 30, pp. 2094–2100. [Google Scholar] [CrossRef]
  20. McSherry, F.; Talwar, K. Mechanism design via differential privacy. In Proceedings of the 48th Annual IEEE Symposium on Foundations of Computer Science (FOCS), Providence, RI, USA, 21–23 October 2007; pp. 94–103. [Google Scholar] [CrossRef]
  21. Kirkpatrick, S.; Gelatt, C.D.; Vecchi, M.P. Optimization by simulated annealing. Science 1983, 220, 671–680. [Google Scholar] [CrossRef] [PubMed]
  22. Zhang, D.; Meng, L.; Liang, L.; Qin, C.; Liu, D. Dynamic event-triggered control for human–machine cooperative systems based on dynamic authority allocation. IEEE Trans. Syst. Man Cybern. Syst. 2026, 56, 3733–3744. [Google Scholar] [CrossRef]
  23. Wu, H.; Fan, C.; Zhang, D. An innovative neural network architecture designed for industrial fault diagnosis with hierarchical adaptive attention mechanism. Process Saf. Environ. Prot. 2025, 205, 108162. [Google Scholar] [CrossRef]
Figure 1. Overall workflow of the proposed deployment-time defense. During the forward pass, the Q-network maps the current state s to the Q-values Q ( s ,   a ) . In the action-randomization stage, the Q-values are min–max normalized into the utility u ( s ,   a ) , while a temperature-scaled Softmax of the Q-values p ( s ,   a ) yields the normalized Shannon entropy H ( a   |   s ) ; H ( a   |   s ) then determines the state-adaptive privacy budget ε ( s ) . The exponential mechanism combines u ( s ,   a ) and ε ( s ) to produce the randomized sampling distribution P ( ·   |   s ) , from which the action a is drawn and applied to the environment, which in turn returns the next state s and the tuple ( r ,   d o n e ) . P ( ·   |   s ) denotes the conditional probability distribution over actions given state s , as defined in Equation (6). In the Q-value Normalization panel, the red dashed line indicates the normalized maximum value of 1, representing the upper bound of the min–max normalized Q-values. In the Q-Network diagram, orange circles denote the input- and output-layer neurons and blue circles denote the hidden-layer neurons. The blue star symbol represents the agent’s current state s.
Figure 1. Overall workflow of the proposed deployment-time defense. During the forward pass, the Q-network maps the current state s to the Q-values Q ( s ,   a ) . In the action-randomization stage, the Q-values are min–max normalized into the utility u ( s ,   a ) , while a temperature-scaled Softmax of the Q-values p ( s ,   a ) yields the normalized Shannon entropy H ( a   |   s ) ; H ( a   |   s ) then determines the state-adaptive privacy budget ε ( s ) . The exponential mechanism combines u ( s ,   a ) and ε ( s ) to produce the randomized sampling distribution P ( ·   |   s ) , from which the action a is drawn and applied to the environment, which in turn returns the next state s and the tuple ( r ,   d o n e ) . P ( ·   |   s ) denotes the conditional probability distribution over actions given state s , as defined in Equation (6). In the Q-value Normalization panel, the red dashed line indicates the normalized maximum value of 1, representing the upper bound of the min–max normalized Q-values. In the Q-Network diagram, orange circles denote the input- and output-layer neurons and blue circles denote the hidden-layer neurons. The blue star symbol represents the agent’s current state s.
Electronics 15 02998 g001
Figure 2. Representative GridWorld environments of the four scales used in the experiments: (a) 7 × 7; (b) 9 × 9; (c) 11 × 11; (d) 13 × 13. Black cells denote walls, white cells denote free space, green marks the start position, and red marks the goal.
Figure 2. Representative GridWorld environments of the four scales used in the experiments: (a) 7 × 7; (b) 9 × 9; (c) 11 × 11; (d) 13 × 13. Black cells denote walls, white cells denote free space, green marks the start position, and red marks the goal.
Electronics 15 02998 g002
Figure 3. Visualization of maps inferred by the simulated-annealing attack under different defenses on the four GridWorld environments: (a) 7 × 7; (b) 9 × 9; (c) 11 × 11; (d) 13 × 13. Each row shows the maps recovered under no defense, three fixed-budget schemes ( ε   =   1 ,   5 ,   10 ), and the proposed Entropy-Driven Action Randomization (EDAR). Red crosses (×) mark interior cells whose reconstructed state differs from the ground-truth map. The normalized recovery rate (NRR) value below each panel quantifies the recovery rate; lower NRR indicates stronger privacy protection.
Figure 3. Visualization of maps inferred by the simulated-annealing attack under different defenses on the four GridWorld environments: (a) 7 × 7; (b) 9 × 9; (c) 11 × 11; (d) 13 × 13. Each row shows the maps recovered under no defense, three fixed-budget schemes ( ε   =   1 ,   5 ,   10 ), and the proposed Entropy-Driven Action Randomization (EDAR). Red crosses (×) mark interior cells whose reconstructed state differs from the ground-truth map. The normalized recovery rate (NRR) value below each panel quantifies the recovery rate; lower NRR indicates stronger privacy protection.
Electronics 15 02998 g003
Figure 4. NRR versus the per-state query count T on the 9 × 9 GridWorld map.
Figure 4. NRR versus the per-state query count T on the 9 × 9 GridWorld map.
Electronics 15 02998 g004
Table 1. Training hyperparameters of the Double Deep Q-Network (DDQN) agent.
Table 1. Training hyperparameters of the Double Deep Q-Network (DDQN) agent.
ParameterSymbolValue
Learning rate l r 0.001
Discount factor γ 0.99
Episodes1000
Replay buffer size15,000
Target network update interval500
Initial exploration rate1
Final exploration rate0.05
Exploration decay rate0.996
Table 2. Parameters of the simulated-annealing-based policy inversion attack.
Table 2. Parameters of the simulated-annealing-based policy inversion attack.
ParameterSymbolValue
Initial temperature τ 0 2.0
Minimum temperature τ 0.01
Cooling rate α 0.98
Maximum iterations per restart N 3000
Number of independent restarts K 3
Queries per state T 20(EDAR); 1(NoDefense)
Table 3. NRR of the simulated-annealing attack under different defenses across the four GridWorld scales. Lower is better. Results report means ± standard deviations across three independent training seeds.
Table 3. NRR of the simulated-annealing attack under different defenses across the four GridWorld scales. Lower is better. Results report means ± standard deviations across three independent training seeds.
ScaleNo Defense ε = 1 ε = 5 ε = 10 EDAR
7 × 71.00 ± 0.000.95 ± 0.051.00 ± 0.001.00 ± 0.000.95 ± 0.02
9 × 91.00 ± 0.000.77 ± 0.010.90 ± 0.050.97 ± 0.010.82 ± 0.04
11 × 110.96 ± 0.040.69 ± 0.040.85 ± 0.080.86 ± 0.040.73 ± 0.01
13 × 130.84 ± 0.020.66 ± 0.030.78 ± 0.040.77 ± 0.020.68 ± 0.03
Average0.950.770.880.900.79
Table 4. Average privacy and utility metrics across the four GridWorld scales. RR: reward retention = mean episode return of the agent/mean episode return of the no-defense baseline × 100%; Avg. Return: mean episode return of the agent; SR: success rate (percentage of episodes reaching the goal); Steps: average number of steps per episode; NRR Red: NRR reduction (baseline NRR minus protected NRR; larger is better). Results report means ± standard deviations across three independent training seeds.
Table 4. Average privacy and utility metrics across the four GridWorld scales. RR: reward retention = mean episode return of the agent/mean episode return of the no-defense baseline × 100%; Avg. Return: mean episode return of the agent; SR: success rate (percentage of episodes reaching the goal); Steps: average number of steps per episode; NRR Red: NRR reduction (baseline NRR minus protected NRR; larger is better). Results report means ± standard deviations across three independent training seeds.
SchemeRRAvg. ReturnSRStepsNRR Red
No Defense100%+1.00 ± 0.00100%15
ε = 16.2% ± 1.2%+0.06 ± 0.0199.3%13419.3%
ε = 599.4% ± 0.1%+0.99 ± 0.00100%237.0%
ε = 10100% ± 0.0%+1.00 ± 0.00100%165.3%
EDAR78.9% ± 1.2%+0.79 ± 0.01100%5816.4%
Table 5. Comparison between EDAR and four training-stage differential privacy (DP) methods on the four GridWorld scales, in terms of per-map NRR, average NRR (Avg. NRR), and utility metrics (RR, SR, Steps). Lower NRR and higher reward retention indicate better privacy and utility, respectively.
Table 5. Comparison between EDAR and four training-stage differential privacy (DP) methods on the four GridWorld scales, in terms of per-map NRR, average NRR (Avg. NRR), and utility metrics (RR, SR, Steps). Lower NRR and higher reward retention indicate better privacy and utility, respectively.
MethodDP Layer7 × 79 × 911 × 1113 × 13Avg. NRRRRSRSteps
No Defense1.001.001.000.840.96100%100%15
DDQN-DP-SGDGradient1.001.000.970.850.95100%100%16
PPO-DP-SGDPolicy Gradient1.000.930.950.790.9174.8%75.0%134
DQN-RewPerturbReward1.001.001.000.780.94100%100%15
DP-DRLObservation1.001.000.980.890.9698.3%100%17
EDARAction0.950.820.730.680.7978.9%100%58
Table 6. Comparison of simulated annealing (SA) and genetic-algorithm (GA) policy inversion attacks on the 7 × 7 GridWorld map under the no-defense DQN agent.
Table 6. Comparison of simulated annealing (SA) and genetic-algorithm (GA) policy inversion attacks on the 7 × 7 GridWorld map under the no-defense DQN agent.
AttackRetraining RequiredTime (s)NRR
GAYes45110.895
SANo1.11.000
Table 7. Sensitivity of EDAR to the budget bounds ε m i n and ε m a x on the 9 × 9 map. Each configuration is evaluated over five independent SA attack trials. Lower NRR indicates stronger privacy, and higher reward retention indicates better utility. The configuration ( ε m i n   =   1 , ε m a x   =   10 ) appears as the anchor row in both blocks; the two entries report independent sets of five trials, and the small numerical differences reflect sampling variance.
Table 7. Sensitivity of EDAR to the budget bounds ε m i n and ε m a x on the 9 × 9 map. Each configuration is evaluated over five independent SA attack trials. Lower NRR indicates stronger privacy, and higher reward retention indicates better utility. The configuration ( ε m i n   =   1 , ε m a x   =   10 ) appears as the anchor row in both blocks; the two entries report independent sets of five trials, and the small numerical differences reflect sampling variance.
ConfigurationNRRRRSteps
ε m a x = 10 fixed
ε m i n = 1 0.82 ± 0.0674.0%55
ε m i n = 2 0.83 ± 0.0880.2%51
ε m i n = 3 0.87 ± 0.0790.5%33
ε m i n = 4 0.91 ± 0.0697.2%29
ε m i n = 1 fixed
ε m a x = 10 0.83 ± 0.0875.2%54
ε m a x = 9 0.81 ± 0.0771.6%58
ε m a x = 8 0.79 ± 0.0468.5%64
ε m a x = 7 0.78 ± 0.0352.6%68
Table 8. Budget signal ablation on the 9 × 9 map ( ε m i n   =   1 , ε m a x   =   10 , five trials each). All three signals preserve the core EDAR advantage over fixed-budget baselines.
Table 8. Budget signal ablation on the 9 × 9 map ( ε m i n   =   1 , ε m a x   =   10 , five trials each). All three signals preserve the core EDAR advantage over fixed-budget baselines.
Budget SignalNRRRR
Entropy + Linear (default)0.82 ± 0.0674.0%
Entropy + Sqrt0.84 ± 0.0876.7%
Q-gap + Linear0.85 ± 0.0478.4%
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Cheng, X.; Tang, J.; Dang, S. Entropy-Driven Action Randomization: A Deployment-Time Defense for Environment Privacy in Deep Reinforcement Learning. Electronics 2026, 15, 2998. https://doi.org/10.3390/electronics15142998

AMA Style

Cheng X, Tang J, Dang S. Entropy-Driven Action Randomization: A Deployment-Time Defense for Environment Privacy in Deep Reinforcement Learning. Electronics. 2026; 15(14):2998. https://doi.org/10.3390/electronics15142998

Chicago/Turabian Style

Cheng, Xin, Jinchuan Tang, and Shuping Dang. 2026. "Entropy-Driven Action Randomization: A Deployment-Time Defense for Environment Privacy in Deep Reinforcement Learning" Electronics 15, no. 14: 2998. https://doi.org/10.3390/electronics15142998

APA Style

Cheng, X., Tang, J., & Dang, S. (2026). Entropy-Driven Action Randomization: A Deployment-Time Defense for Environment Privacy in Deep Reinforcement Learning. Electronics, 15(14), 2998. https://doi.org/10.3390/electronics15142998

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop