WorksComputer Science
Exact Joint MAP Decoding for Unknown Load and Message Counts in Orthogonal Unsourced Random Access
Abstract
We study joint recovery of the load (the number of active users) and message-count vector in type-based unsourced random access with very short messages. Each user's -bit message activates one of orthogonal resources; coherent collisions therefore produce a noisy, unnormalized histogram of the transmitted messages. For arbitrary load and message priors, we propose an exact joint maximum-a-posteriori (MAP) decoder. Known-load allocation is separable and convex; our contribution is to show that the solutions for all candidate loads are nested prefixes of one greedy chain. Scoring these prefixes with the Bayesian posterior terms jointly estimates the load and message-count vector in time. We compare the proposed joint MAP decoder with marginal MAP, three scalar-count two-stage receivers, oracle-load MAP, a sum-only receiver, and a soft-pilot receiver. For at 2 dB, the proposed decoder cuts the no-activity false-alarm probability from to relative to the Bayesian-count two-stage receiver and, conditioned on , reduces normalized count error by . The advantage concentrates under idle or sparse uncertain activity, whereas support-count processing approaches joint MAP when the possible loads are well separated. We also prove that the sum-only statistic is insufficient and quantify prior and amplitude mismatch. The model targets synchronized, power-controlled, very-short payloads rather than general URA.
Introduction
Unsourced random access (URA) asks a receiver to recover an unordered collection of short messages from an unknown active set [1, 2]. Ordinary URA often reports a repeated message only once. In event reporting, however, its multiplicity is itself useful: a roadside unit may need the number of vehicles reporting each hazard or road state. This message-count target connects URA to type-based estimation [3] and type-based unsourced multiple access (TUMA) [4, 5].
We isolate the unknown-load question in a simple short-message regime. A -bit message activates one of real orthogonal resources, producing one bin of the received histogram. Exponential blocklength and high peak-to-average power ratio preclude a general URA claim, but payloads near ten bits give a useful model for low-duty-cycle, synchronized devices.
A recent concurrent work gives a greedy maximum-likelihood (ML) detector for type-based over-the-air computation when the total count is known [6]. Greedy fixed-cardinality allocation is also a classical separable resource-allocation result [7, 8]. We do not claim that component as new. Our contribution is the unknown-load Bayesian extension: arbitrary message probabilities preserve increasing marginal costs; all fixed-load optima are nested in one chain; and load-prior and multinomial-mass terms select the joint MAP solution in one greedy-chain pass.
We further (i) prove why a sum-only activity statistic discards information; (ii) compare joint MAP with independent marginal MAP, three scalar-count two-stage receivers, oracle-load MAP, and a joint soft-pilot receiver under the same energy; and (iii) characterize how performance depends on load-prior geometry and receiver mismatch. Unlike a hard pilot decision, the pilot receiver fuses pilot and data likelihoods and reduces to joint MAP at zero pilot energy. We include hotspot traffic to exercise multiplicities, ordinary binomial activity, prior-support mismatch, and user-level amplitude jitter.
Positioning relative to TUMA and OTA
The recovery target here differs from three related formulations. A conventional URA list records which messages occurred and may discard repeated instances. TUMA instead seeks the empirical message distribution, so retaining counts is essential; existing TUMA work develops coding formulations and achievability bounds for general channels [4, 5]. Over-the-air computation (OTA) also exploits waveform superposition, but usually targets a prescribed low-dimensional function such as a sum or average. Here the output is the full -dimensional unnormalized histogram together with its previously unknown total mass. Accordingly, the sum of all bins is one noisy activity feature, not the computation target.
Our scope is narrower than general TUMA but gives a complete receiver result for the orthogonal pulse codebook. When is supplied, minimizing the Gaussian fitting cost over integer message-count vectors is the allocation problem studied in [6]; its greedy/SIC solution overlaps the fixed-cardinality part of Theorem 1. Unknown changes the decision problem: the multinomial coefficient, nonuniform , and load prior all enter the posterior. The key structural fact is that these additions preserve the ordering within each marginal-cost chain, while the -only terms can be evaluated on its nested prefixes. Thus joint MAP needs neither a separately designed activity rule nor repetition of the known-load solver over all . This is a structural and computational claim: a well-designed two-stage receiver can be nearly equivalent when its initial count resolves widely separated load hypotheses, but not under every prior.
Model and Joint MAP Objective
Let the load , i.e., the number of active users, take values in with prior , and let each active user independently select message with probability . The message-count vector obeys
Here is the message-count vector, or unnormalized message histogram, and is the multiplicity of message . For , the normalized empirical type is ; unlike , it does not retain the load. With coherent equal-amplitude pulses,
For , under the real-noise convention . Up to constants independent of , the negative log-posterior is
The joint MAP estimate minimizes (3) over with . Direct enumeration has candidates. The nonuniform message prior changes the binwise costs, whereas scores the total load; § 3 shows how one nested chain handles both effects.
One Greedy Chain Solves Every Load
For fixed , the last two terms of (3) are constant. The incremental cost of changing coordinate from to is
It is strictly increasing since
Intuitively, each bin offers a queue of increasingly costly additional users: repeatedly taking the cheapest available increment produces one sequence whose length- prefix is optimal for every candidate load .
Theorem 1. Sort implicitly the increasing chains . For each , selecting the smallest increments yields a fixed-load optimum. These optima are nested; the prefix minimizing the complete score (3) is the joint MAP estimate.
Proof. Consider only the first increments of each chain, since no later increment can enter a size- allocation. By (5), if is selected among the smallest, every predecessor , , is smaller and is also selected. Thus, the smallest increments automatically form a feasible union
of coordinate prefixes. Any other feasible size- selection replaces at least one of them by an increment no smaller, so its separable cost cannot be lower. Adding the next globally smallest available increment constructs the size- optimum without changing the first selections. Finally, for each prefix add the fixed-cardinality term and choose the lowest score.
This is an exchange argument for separable convex allocation, in the spirit of marginal analyses [7, 8]; the new step here is scoring all nested cardinalities under the load and multinomial priors. Implementation uses a min-heap initialized with . Each pop increments one coordinate and inserts its next marginal cost. Recording the chosen coordinate and full score after each of pops costs time and memory. After selecting , replaying its prefix reconstructs . Exhaustive enumeration over 500 random small instances gave zero objective gap to numerical precision.
What a Sum-Only Receiver Discards
The sum-only statistic satisfies
It is therefore an exact scalar load channel, but it adds noise from all empty bins. Let and . Conditional on ,
Proposition 1. If at least two loads have positive prior probability, , , and is nondegenerate, then is not sufficient for .
Proof. Decompose the Gaussian noise into and . Their cross-covariance is zero, so they are independent. Moreover, , while ; hence . If were sufficient, it would also imply . Combining the two conditional independences would make the law of independent of , contradicting (7)--(8). For uniform , the mean vanishes but the covariance is on the orthogonal subspace.
Thus, full-vector Bayes load risk is no greater than sum-based risk and can be strictly smaller. The sum is retained below as a diagnostic separated receiver, not as the strongest competitor.
For two equiprobable loads separated by , the scalar MAP error is , where
| Receiver | Load information / role |
| Proposed joint MAP | Full , , / proposed decoder |
| Marginal MAP | Per-bin prior marginal / nonjoint baseline |
| Raw-count two-stage | / uncalibrated |
| Support-count two-stage | snapped to / support-aware |
| Bayesian-count two-stage | and / calibrated |
| Oracle-load MAP | True / known-load reference |
| Sum-only two-stage | / sufficiency diagnostic |
| Soft-pilot joint MAP | Full and / equal-energy audit |
Table I (PDF p. 3). Receivers used in the numerical study. Count-based and sum-only two-stage receivers apply known-load MAP after selecting .
The noise penalty makes close loads difficult for the sum even though sparse pulses remain individually visible.
Numerical Evidence
Receivers, metrics, and protocol
We use , , , and the specified . Marginal MAP independently estimates each using
Table 1 summarizes the proposed decoder and all comparison receivers. The three two-stage receivers first estimate the load from the marginal MAP bin decisions and then apply known-load MAP at that estimate. The raw-count receiver uses ; the support-count receiver snaps this value to
| Algorithm 1: Exact joint MAP decoder |
| 1) Set , ; initialize a min-heap with for every . |
| 2) For , pop , record , set and , then insert . |
| 3) Choose , skipping hypotheses with . |
| 4) Replay from zero counts and return the resulting . |
Table 1.
breaking ties by larger and then smaller . The Bayesian-count receiver instead calibrates its scalar count channel on data independent of evaluation. With , it estimates from 5000 trials per supported load, using Jeffreys smoothing, and selects
This prior-specific receiver has comparable online order but needs offline calibration.
We call the unnormalized half- error. For , the normalized count error is . At , we set if and otherwise.
When , the true and estimated empirical types are and ; their total-variation error is . Because a type is undefined at zero load, we set when exactly one load is zero and when both are zero.
To measure multiplicity specifically in collided bins, conditioned on at least one collision, define
and let be the probability that every true collided-bin multiplicity is exact. Reported intervals are paired empirical-bootstrap intervals; binomial probabilities use Wilson intervals.
The fixed priors are uniform on () or (). “Mix” denotes an equal mixture of two Binomial laws whose means equal the listed pair, with . The hotspot prior places total probability 0.5 on 16 bins and 0.5 uniformly on the other 1008. At , the expected number of colliding user pairs is 0.425 for uniform messages and 6.90 for hotspot messages.
What the separated receiver changes
For well-separated two-point priors, enforcing the load support almost eliminates the joint-versus-two-stage gap. At 2 dB, joint MAP lowers relative to independent marginal MAP by 23.2% and 24.6% for the two fixed uniform priors, but the support-count receiver is only 0.064% worse for and exactly matches joint MAP for . The hotspot rows show the same equality. Thus much of the apparent gain over marginal decisions in this setting comes from enforcing the prior support.
This equivalence strengthens with SNR. Figure 1 shows the support-count receiver reaching joint MAP at 3–4 dB under and from 1 dB onward under . Both approach oracle-load MAP, whereas the raw-count receiver and marginal MAP remain worse; at 4 dB joint MAP lowers marginal error by 82.6% and 83.5%.
Figure 1. Two-point load priors with common-random-number trials per point and 95% bootstrap intervals. The support-count two-stage receiver nearly reaches joint MAP by snapping the marginal pulse count to the prior support; the raw-count receiver does not.
Close load hypotheses reveal a residual gap. Figure 2(a) centers two equiprobable loads at 30 and sweeps their separation . At , the raw-count receiver is the best two-stage rule at a joint-relative ratio of 1.054; the Bayesian- and support-count ratios are 1.096 and 1.107. The Bayesian load decision minimizes load-classification error, but an incorrect support decision forces a two-user jump and need not minimize . By , the support-aware receivers are within 0.3% of joint MAP. Equivalence therefore depends on the load hypotheses being resolvable, whereas joint MAP requires no separate load-estimation design.
Figure 2. Load-geometry audit at 2 dB with held-out paired trials and 95% bootstrap intervals. (a) Candidate/joint count-error ratios for equiprobable two-point priors centered at 30. (b) Bayesian-count/joint ratios under , conditioned on and stratified by realized load; the result is reported separately in the text.
The sum-only receiver is substantially weaker. At 2 dB its is 0.03978 and 0.02416 for the fixed uniform priors, versus 0.00934 and 0.00947 jointly. (9) predicts load error 0.1895 for , consistent with the measured 0.18791 and with the insufficiency result.
Hotspot traffic directly exercises multiplicity recovery. Collisions occur in 99.17% and 96.70% of trials, and joint MAP recovers every true collided bin exactly in 98.57% and 98.45% of those trials, versus 97.71% and 97.60% for marginal MAP. Table III reports a denser diagnostic; it gives only 1.3–1.4% total- gains over the Bayesian-count receiver and no collision-mass-error advantage, so we do not claim universal superiority in dense collisions.
| Receiver | ||||
| 64 | Joint | .01900 [.01877,.01922] | .01801 [.01744,.01859] | .8186 [.8141,.8229] |
| 64 | Bayesian-count | .01924 [.01902,.01948] | .01737 [.01680,.01791] | .8164 [.8120,.8208] |
| 128 | Joint | .01756 [.01736,.01778] | .01547 [.01478,.01618] | .9016 [.8980,.9051] |
| 128 | Bayesian-count | .01781 [.01760,.01803] | .01498 [.01433,.01565] | .9002 [.8966,.9037] |
Table III. Dense-collision diagnostic at 2 dB with trials and . Entries are mean [95% interval]; conditions on a collision.
Held-out soft-pilot audit
Give a scalar pilot energy fraction and use
The receiver adds to prefix ’s score, rather than hard-detecting , and reduces to joint MAP at . Independent tuning uses trials/point over 15 fractions from 0 to 0.3; evaluation uses a fresh paired trials. Table IV tests random loads, where pilot-free joint MAP has – and an oracle gap remains.
| Activity | Ratio [95% CI] | ||||
| Mix 25/35 | .003 | .012216 | .012233 | 1.001 [.999,1.004] | .767 |
| Mix 20/40 | .0003 | .012494 | .012503 | 1.001 [.999,1.002] | .756 |
| Binom.(60,.5) | .0001 | .012012 | .012011 | 1.000 [.999,1.001] | .779 |
Table IV. Held-out equal-energy soft-pilot audit at 2 dB. Ratios are with paired 95% bootstrap intervals; is the full-energy oracle ratio.
The null result has a simple energy-resolution explanation. At 2 dB, . For adjacent random loads, the pilot distance is : at , gives pairwise error ; at , the error remains about 0.061 while the data lose dB. The held-out intervals exclude improvements much above 0.1%. Hence the tested scalar pilot cannot buy enough load resolution to offset its data-energy cost.
Load geometry and mismatch
Under a broad load prior, the advantage localizes to idle and sparse activity. For , the Bayesian- and support-count receivers select the same load in all trials, so calibration changes neither decisions nor risk. About half of the overall count-error gap comes from : the false-alarm probability is 0.035 jointly and 0.259 for either two-stage receiver. Conditioned on , joint MAP reduces by 21.4% and half- error by 4.6%. Figure 2(b) further localizes the nonidle gain: for –, the reductions are 53.5% and 46.0%, respectively; they diminish for – and disappear by –. Thus normalization amplifies the sparse-load effect but does not create it.
The mechanism is a load-adaptive threshold. For uniform messages, accepting a st pulse in an empty bin requires
The threshold rises at small inferred , whereas marginal MAP uses one prior-averaged scalar rule. The tested two-stage receivers compress their initial marginal decisions to the scalar and therefore do not retain the ordered bin evidence used when joint MAP selects a prefix. This explains their broad-prior low-load gap; it is not a claim against every possible separated architecture.
| Activity | Msg. | Joint | Support-count | Marginal | Joint | |||
| Fixed 25/35 | U | .00934 [.00924,.00944] | .00934 [.00924,.00944] | .01216 [.01208,.01226] | .00934 | .00000 | .00666 | .98386 |
| Fixed 25/35 | H | .00631 [.00622,.00640] | .00631 [.00623,.00640] | .00902 [.00895,.00910] | .00631 | .00000 | .00155 | .98574 |
| Fixed 20/40 | U | .00947 [.00936,.00957] | .00947 [.00936,.00957] | .01256 [.01246,.01265] | .00947 | .00000 | .00606 | .98378 |
| Fixed 20/40 | H | .00619 [.00610,.00628] | .00619 [.00610,.00628] | .00929 [.00920,.00937] | .00619 | .00000 | .00158 | .98454 |
| Mix 25/35 | U | .01215 [.01206,.01224] | .01218 [.01209,.01228] | .01218 [.01209,.01227] | .02094 | .44940 | .00975 | .97602 |
| Mix 20/40 | U | .01245 [.01235,.01255] | .01271 [.01261,.01281] | .01271 [.01261,.01280] | .02139 | .43712 | .00853 | .97773 |
Table II. Results at 2 dB from common-random-number trials. Entries for are mean [95% bootstrap interval]. U/H denote uniform/hotspot messages; for joint MAP. The last two metrics condition on a collision event.
If the true load is 30 but the decoder permits only 25 or 35, then ; the measured error is 0.08375, versus 0.00938 under a matched point mass. Mixing 1% flat mass into the two-point prior lowers it to 0.01530, and a fully flat prior gives 0.01215. Full-support softening is therefore prudent when the activity model is uncertain. With user-amplitude jitter, fixed-prior joint error grows by factors 1.078, 1.318, 2.269, and 4.115 at half-widths 0.5, 1, 2, and 3 dB; mixture factors are 1.066, 1.237, 1.938, and 3.288. Replacing by a tuned , with selected on independent data, chooses at every nonzero-jitter point and gives no held-out improvement, so simple variance inflation does not repair the mismatch.
Scope
The exact result assumes timing alignment, coherent equal-amplitude addition, independent Gaussian bins, i.i.d. categorical messages, and known nominal , , , and . Orthogonal one-pulse signaling also uses real dimensions and peak-to-average power ratio . The result is therefore a receiver theorem for synchronized, power-controlled, very-short payloads, not a general URA achievability claim; the support and jitter sweeps quantify its principal model sensitivities.
Conclusion
We derived the exact joint MAP decoder for the unknown load and complete message-count vector of an orthogonal pulse codebook. The new step beyond known-load greedy allocation is that every fixed-load optimum is a prefix of one marginal-cost chain; scoring those prefixes with the load prior and multinomial mass produces the joint solution in time. The result applies to arbitrary load priors and nonuniform message probabilities, and it needs neither a separate activity detector nor repeated optimization for each candidate load.
The experiments identify where joint decoding matters. The tested two-stage receivers nearly match joint MAP when a separated load support is reliably resolved, but the advantage concentrates under idle or sparse uncertain activity: for a uniform 0–60 load prior, joint MAP cuts the no-activity false-alarm probability from 25.9% to 3.5% and, conditioned on , lowers normalized count error by 21.4%. Hotspot tests further show exact collided-bin recovery in 98.45–98.57% of collision trials, about one percentage point above marginal MAP. Dense-collision and pilot audits show no universal joint-processing gain. Thus the contribution is an exact joint MAP decoder together with a delineation of when simpler two-stage processing is already sufficient.
References
- [1]Y. Polyanskiy, “A perspective on massive random-access,” in Proc. IEEE Int. Symp. Inf. Theory (ISIT), 2017, pp. 2523–2527.DOI
- [2]M. O. Z. Ates, M. J. Ahmadi, M. Kazemi, D. Gündüz, and T. M. Duman, “Unsourced random access: A comprehensive survey,” IEEE Commun. Surveys Tuts., vol. 28, pp. 955–984, 2026.
- [3]G. Mergen and L. Tong, “Type-based estimation over multiaccess channels,” IEEE Trans. Signal Process., vol. 54, no. 2, pp. 613–626, Feb. 2006.DOI
- [4]K.-H. Ngo, D. P. Krishnan, K. Okumus, G. Durisi, and E. G. Ström, “Type-based unsourced multiple access,” in Proc. IEEE SPAWC, 2024, pp. 911–915.arxiv.org/abs/2404.19552
- [5]D. P. Krishnan, K. Okumus, K.-H. Ngo, and G. Durisi, “An achievability bound for type-based unsourced multiple access,” in Proc. IEEE Int. Symp. Inf. Theory (ISIT), 2025.arxiv.org/abs/2504.19916
- [6]M. Martinez-Gost, M. A. Lagunas, and A. Pérez-Neira, “Low-complexity maximum likelihood detection for type-based over-the-air computation,” arXiv:2609.10136, Sep. 2026.
- [7]B. L. Fox, “Discrete optimization via marginal analysis,” Manage. Sci., vol. 13, no. 3, pp. 210–216, Nov. 1966.DOI
- [8]T. Ibaraki and N. Katoh, Resource Allocation Problems: Algorithmic Approaches. Cambridge, MA, USA: MIT Press, 1988.DOI

