Manuscript Offprint
arXiv:2611.24676Can Bandits Learn to Share a Channel? Distributed Multi-Armed Bandits for Slotted ALOHA
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Slotted ALOHA networks constitute a playground for research on machine learning (ML)-based channel access schemes. We consider ML agents deployed in such networks and operating under severe constraints: fully distributed (independent operation), fully online (no pre-training), aperiodic (no fixed schedule), and with no explicit coordination (no signaling). We ask whether a multi-armed bandit (MAB), a minimal reinforcement learning agent, can learn the optimal policy for a capture-free slotted ALOHA system. We evaluate several MAB algorithms on aggregate network throughput and per-node fairness. Our best-performing agent is based on a Softmax bandit, which we call SALSA (Softmax ALOHA Learning for Shared Access). SALSA learns a per-node transmission policy close to optimal, with throughput near the theoretical maximum for fair random access. We achieve performance comparable to a competing state-of-the-art solution, but without requiring a priori knowledge of the network size.
Keywords:
Machine learning; multiaccess communication; reinforcement learning; wireless networks.
So far, MABs have been mostly used in research on wireless networks to optimize channel access parameters or to perform resource allocation [5, 6, 7, 8]. Most relevant to our work, Zhao et al. [4] design MAB-based throughput-optimal access with local rewards (MTOA-L) for both capture-free and capture-based systems. The latter (capture-based MTOA-L) achieves high throughput but suffers from short-term unfairness. In contrast, capture-free MTOA-L requires a priori knowledge of the network size. Our goal is to maintain high short-term fairness without knowing the network size.
Our contributions are the following. First, we show that under our operating assumptions (no mobility, a fixed set of nodes, and full buffers), distributed channel access reduces to a multi-agent, non-contextual bandit problem (Section II-A). Second, we implement several MAB agents along with state-of-the-art baselines (Section II-D) in an open-source channel access simulator (Section II-B). Third, we evaluate our preselected and hyperparameter-tuned group of MAB algorithms (Section III-A) and determine that Softmax-based agents perform the best. We call this approach SALSA (Softmax ALOHA Learning for Shared Access). Fourth, we evaluate SALSA against selected baselines (Section III-B) and study the impact of PHY layer errors on convergence and network performance (Section III-C). We find that SALSA operates close to the theoretically optimal throughput of fair channel access, i.e., , while ensuring high per-node fairness, without requiring a priori knowledge of the network size. Finally, in Section IV, we conclude our study and outline future work.
II System Model
II-A Problem Formulation
The network consists of independent agents that share a common wireless channel and operate in synchronous time slots indexed by . Each agent is fully autonomous: it runs its own learning and decision making, the network has no central controller, and no control messages. We further assume full-buffer traffic, so that every node always has data to send, no mobility, and a fixed number of nodes throughout the experiment. Thus, the problem involves no state transitions and takes the form of a bandit problem. The agents are trained separately and optimize the same reward function, which makes the interaction a non-cooperative game in which one agent’s payoff is coupled to the choices of the others. Therefore, from the perspective of an individual agent, the environment is not stationary, since the channel state is shaped by the evolving policies of other agents. We investigate whether the agents find an equilibrium point, maximizing the aggregate network throughput while achieving high fairness.
We formulate the problem as a multi-agent, non-contextual bandit problem with agents. No agent observes the actions or rewards of the others, and the goal of each agent is to maximize its own cumulative reward over the time horizon of slots. At every slot , each agent selects one action , corresponding to transmit or idle. When the agent selects , let denote the transmission outcome, where marks a successful transmission and a collision. The reward is then
Thus, the agent is rewarded for a successful transmission but penalized for colliding.
II-B Network Simulator
We implement the system in a custom Python-based network simulator, using JAX to accelerate execution. Our simulator follows a slotted (Monte Carlo) model with abstract, unitless time intervals. Within each slot, exactly one of three channel states occurs: a successful packet transmission, a collision, or an idle channel. In addition, random channel errors can be configured following a Bernoulli process with a specified error probability. Such errors are indistinguishable from a collision. We assume all nodes lie within each other’s transmission range (no hidden nodes) so no channel attenuation is required.
Our main metric is throughput defined as the ratio of the number of slots with successful transmissions to all slots. We use aggregate throughput (of all nodes) to determine network performance and per-node throughput as input for Jain’s fairness index, , to assess throughput distribution, where denotes a perfectly equal share.
II-C MAB Agents
We apply well-known MAB algorithms to the problem: Thompson sampling (TS), EXP3 [9], and Softmax (i.e., the gradient bandit) [10]. Two variants of TS are used: continuous and discrete. The former models the reward with a Gaussian likelihood and a normal-inverse-gamma conjugate prior [11]. The latter uses a Dirichlet prior, which is the conjugate prior of the categorical reward distribution (since the reward takes only one of three values: , , and ) [12]. Softmax is implemented with a temperature parameter that controls the exploration and exploitation trade-off, together with an exponential recency-weighted average of the rewards. The continuous TS additionally discounts its posterior parameters over time, preventing it from collapsing into an policy.
Algorithm hyperparameters are tuned to maximize both throughput and fairness and are uniform across all agents in the network. We perform the tuning with Optuna [13] on networks of and agents, and the resulting values are reused in all experiments throughout the paper (Table I).
TABLE I: Hyperparameters of the MAB agents.
| Algorithm | Parameter | Value | Description |
|---|---|---|---|
| EXP3 | Exploration factor | ||
| Softmax | Step size | ||
| Recency weight | |||
| Temperature | |||
| Continuous TS | Inverse-gamma shape | ||
| Inverse-gamma scale | |||
| Pseudo-observation count | |||
| Prior mean | |||
| Discount factor | |||
| Discrete TS | Dirichlet concentration |
II-D Baselines
We evaluate our approach against three baselines:
- Exponential Backoff ALOHA (EB-ALOHA) [14]: A standard slotted ALOHA baseline with a contention window range of .
- ALOHA-Q [15]: A Q-learning MAC protocol where autonomous agents learn to occupy reserved slots within synchronized transmission cycles. As the active node count is unknown a priori, we use a fixed cycle length of slots across all network sizes.
- MTOA-L [4]: The distributed variant of MTOA, where nodes select between a transmission action and null actions. We evaluate both its capture-free and capture-based variants. For capture-free operation, optimal throughput requires . Since is unknown a priori, we set (matching ) as a fixed reference.
The first baseline is a heuristic and approximates channel access in IEEE 802.11 networks. The remaining baselines are state-of-the-art competing solutions.
III Performance Evaluation
We evaluate the performance of the selected MAB agents, present the policies they learn, compare our best-performing agent against the baselines, and assess its robustness under a noisy channel. We present the means of five independent runs as well as 95% confidence intervals.
III-A MAB Evaluation
Fig. 1 shows the aggregate throughput achieved by each MAB agent as a function of the number of stations in the network. For large , Softmax and EXP3 remain close to , i.e., the maximum theoretical throughput of fair random channel access [1]. Continuous TS achieves high throughput for a small number of stations (up to 0.92 at ), but this drops sharply between and with substantial variance across seeds, and continues to decline gradually thereafter, falling below Softmax and EXP3. Discrete TS maintains throughput close to 1 regardless of .
Since aggregate throughput alone does not reveal how evenly this throughput is shared among stations, we examine the per-station policies learned by each agent. Fig. 2 shows that Softmax and EXP3 agents converge to nearly identical transmission probabilities across all stations, so the resulting throughput is distributed almost equally. However, the variance of the Softmax policy is slightly lower, implying a higher Jain’s fairness index than EXP3. Conversely, agents using continuous and discrete TS learn a highly bimodal policy; most stations converge to , while a few stations (or even just one for discrete TS) reach . Thus, a small subset of stations captures almost all the channel access opportunities, while the remaining stations almost never transmit, which translates into low fairness.
In general, among the MAB agents evaluated, Softmax achieves the best trade-off between throughput and fairness. Henceforth, we refer to our solution with Softmax agents as SALSA and evaluate it against the literature baselines.
Fig. 1: Aggregate throughput of MAB agents. Results averaged over the last 10% of slots.
Fig. 2: Learned per-node transmission policy for nodes across all seeds. Each point is one node in one run; the highlighted marker denotes the mean value for each agent type. The optimal policy is .
III-B Comparing SALSA with Baselines
Fig. 3 presents the Pareto front, comparing the combined throughput and fairness of SALSA with baseline channel access schemes. The performance of EB-ALOHA and ALOHA-Q is highly dependent on the number of nodes in the network. EB-ALOHA’s performance declines as the number of nodes increases, and the algorithm operates close to the optimum only when the number of nodes is 5 or 10, due to the fixed contention window range used by the algorithm. Similarly, ALOHA-Q operates at full efficiency only when , matching its fixed cycle length; otherwise throughput drops.
Fig. 3: Pareto front of aggregate throughput vs. Jain’s fairness index for the proposed SALSA and baseline channel-access algorithms as a function of the number of nodes. Partially overlapping points around have been enlarged to improve readability. Results averaged over the last 10% of slots.
Another technique that requires a priori knowledge of the number of nodes is capture-free MTOA-L. With , it achieves performance similar to our proposed approach [4]. In our tests, we use a fixed to illustrate the impact of this setting on MTOA-L operation under a varying number of nodes. We observe that, for , fairness is high and throughput is similar to that of SALSA. As deviates from this optimal value in either direction, MTOA-L throughput likewise degrades.
MTOA-L also offers a capture-based mode that does not require knowledge of the exact number of nodes, using (e.g., ). In this mode, network throughput is close to 1 regardless of the number of nodes in the network. However, this comes at the cost of a drastic drop in the fairness coefficient, since MTOA-L achieves high aggregate throughput at the expense of short-term fairness. In contrast, SALSA provides throughput close to the theoretical maximum for fair channel access (for large ), i.e., near , while maintaining high fairness (over 0.93).
A further study of fairness is given in Fig. 4, which shows Jain’s fairness index in the short-term as a function of the observation window for the network composed of nodes. SALSA and capture-free MTOA-L (with ) reach a fairness of 0.9 the fastest, after and slots, respectively. Capture-based MTOA-L with reaches the same fairness level much slower (), indicating that the capture-based resolution mechanism itself decreases short-term fairness even when is set to its optimal value. Capture-based MTOA-L with does not reach a fairness of 0.9 within the observation range considered, which is consistent with its low fairness observed in Fig. 3.
Fig. 4: Short-term Jain’s fairness index as a function of the observation window (number of trailing slots) for nodes and no channel errors, for SALSA and three MTOA-L variants. Vertical lines mark the window size at which each curve reaches a fairness of 0.9 (horizontal dotted line).
III-C Robustness to Channel Errors
Fig. 5 shows the aggregate network throughput over successive steps for SALSA tested in five independent trials on channels with varying probabilities of channel errors . As increases, the maximum achievable network throughput decreases in proportion to . Furthermore, we do not observe a prolonged convergence time as increases, meaning that SALSA is able to find the optimal solution even in a non-ideal radio channel, which increases the algorithm’s potential for practical application.
IV Conclusions
We investigated whether minimal RL agents can learn to equally share a channel. Our answer is affirmative: of the MAB algorithms evaluated, Softmax-based agents (SALSA) converge to near-identical per-node transmission probabilities and operate close to , the throughput limit of fair random access, while maintaining a high Jain’s fairness index, all without a priori knowledge of , without signaling, and without pre-training. Comparing to the state of the art, SALSA matches capture-free MTOA-L configured with its optimal but does not require that configuration, and reaches short-term fairness several times faster than the capture-based variant. SALSA also tolerates imperfect channels, with throughput scaling as while having convergence time unaffected. The main limitation of MABs is that they are stateless so as future work we foresee replacing bandits with deep RL agents, while retaining the same constraints. Relaxing the fixed, saturated, homogeneous population assumption towards dynamic arrivals, non-saturated traffic, and legacy coexistence remains open.
Fig. 5: Aggregate network throughput over successive steps for SALSA at nodes, under different channel error probabilities .
References
[1] N. Abramson (1977) The throughput of packet broadcasting channels. IEEE Transactions on Communications 25 (1), pp. 117–128. External Links: Document Cited by: §I, §III-A, footnote 1.
[2] J. Seo, Y. Hu, H. Jin, and S. De (2025) ALOHA With SIC-Aided Collision Resolution. IEEE Internet of Things Journal 12 (8). External Links: Document Cited by: §I.
[3] V. Fidele Adanvo et al. (2026) Analytical Modeling of Slotted Aloha-Based Direct-to-Satellite-IoT Sensor Networks Over Nakagami-m Fading Channels. IEEE Sensors Journal 26 (2). External Links: Document Cited by: §I.
[4] X. Zhao and L. Dai (2025) Throughput-optimal random access: a queueing-theoretical analysis for learning-based access design. arXiv preprint arXiv:2504.03178. Cited by: §I, §I, 3rd item, §III-B.
[5] Z. Xu, Z. Zhang, S. Wang, X. Hu, Y. Jia, and B. Ren (2025) Energy-Constrained Distributed MAC in CR-IoT Networks: A Budgeted Multi-Player Multi-Armed Bandit Approach. IEEE Transactions on Cognitive Communications and Networking 11 (4), pp. 2512–2526. External Links: Document Cited by: §I.
[6] M. Casasnovas, F. Wilhelmi, R. Combes, M. Wojnar, K. Kosek-Szott, S. Szott, A. Jonsson, L. Esteve, and B. Bellalta (2025) Learning-Based Channel Access in Wi-Fi: A Multi-Armed Bandit Approach. arXiv preprint arXiv:2511.10143. Cited by: §I.
[7] M. A. Raza et al. (2024) Multi-agent multi-armed bandit learning for grant-free access in ultra-dense IoT networks. IEEE Transactions on Cognitive Communications and Networking 10 (4). Cited by: §I.
[8] N. Peng and L. Dai (2024) Multi-armed-bandit-based framed slotted ALOHA for throughput optimization. IEEE Communications Letters 28 (4), pp. 847–851. Cited by: §I.
[9] P. Auer, N. Cesa-Bianchi, Y. Freund, and R. E. Schapire (2003) The nonstochastic multiarmed bandit problem. SIAM Journal on Computing 32 (1), pp. 48–77. External Links: Document Cited by: §II-C.
[10] R. S. Sutton and A. G. Barto (2018) Reinforcement learning: an introduction. 2nd edition, MIT Press, Cambridge, MA, USA. Cited by: §II-C.
[11] K. P. Murphy (2007) Conjugate Bayesian analysis of the Gaussian distribution. Technical report University of British Columbia. Note: https://www.cs.ubc.ca/~murphyk/Papers/bayesGauss.pdf, accessed 2026-06-25 Cited by: §II-C.
[12] S. Tu The Dirichlet-Multinomial and Dirichlet-Categorical models for Bayesian inference. Note: https://stephentu.github.io/writeups/dirichlet-conjugate-prior.pdfAccessed 2026-06-25 Cited by: §II-C.
[13] T. Akiba, S. Sano, T. Yanase, T. Ohta, and M. Koyama (2019) Optuna: a next-generation hyperparameter optimization framework. In Proc. of the 25th ACM SIGKDD, pp. 2623–2631. External Links: Document Cited by: §II-C.
[14] Y. Yu, T. Wang, and S. C. Liew (2019) Deep-reinforcement learning multiple access for heterogeneous wireless networks. IEEE Journal on Selected Areas in Communications 37 (6), pp. 1277–1290. Cited by: 1st item.
[15] Y. Chu, P. D. Mitchell, and D. Grace (2012) ALOHA and Q-Learning based medium access control for Wireless Sensor Networks. In Proc. of ISWCS, Vol. . External Links: Document Cited by: 2nd item.