|
Algorithm 1 Hierarchical HG-SAC Algorithm for SSEE Maximization |
-
1:
Initialize: candidate semantic symbol set , , , .
-
2:
for each candidate semantic symbol number do
-
3:
Initialize: actor network , twin critic networks , , and target networks.
-
4:
Generate heuristic samples according to (41), initialize buffer .
-
5:
Pre-train the actor network using heuristic samples.
-
6:
for each training episode do
-
7:
Observe the initial state .
-
8:
for each time slot do
-
9:
Generate heuristic action according to (41).
-
10:
Select action according to the hybrid strategy (50).
-
11:
Execute action, obtain reward via (33), observe .
-
12:
Store transition into .
-
13:
Randomly sample a mini-batch from .
-
14:
Compute target Q-value according to (37).
-
15:
Update twin critic networks by minimizing (38).
-
16:
Update actor network according to (39).
-
17:
Softly update target networks according to (40).
-
18:
end for
-
19:
Decay heuristic guidance probability.
-
20:
end for
-
21:
Obtain the optimized policy .
-
22:
Evaluate the resulting SSEE .
-
23:
if then
-
24:
Update , , .
-
25:
end if
-
26:
end for
-
27:
Output: Optimal semantic symbol number and optimized policy .
|