Manuscript Offprint
arXiv:2610.10236q-ary GRAND
Reza Dianat, Majid Nasiri Khormuji, Senior Member, IEEE, and Hiroyuki Seki
Abstract—We develop q-ary Guessing Random Additive Noise Decoding (GRAND) for linear codes over a q-ary alphabet. The decoder works on a sorted symbol-likelihood array and uses three local child generation rules to generate symbol-deviation patterns. We then prove that these rules induce a monotone rooted spanning tree of the full row-index space, so best-first traversal gives maximum-likelihood (ML) decoding under unlimited search. Reed–Solomon simulations verify ML agreement and show the finite-budget performance–complexity tradeoff.
Index Terms—q-ary GRAND, ML decoding, symbol-level decoding, non-binary codes, higher-order modulation.
I. INTRODUCTION
Guessing Random Additive Noise Decoding (GRAND) decodes by ordering noise patterns rather than codewords. It queries candidate noise patterns from most to least likely and accepts the first pattern whose removal from the received word produces a valid codeword [1]. With exact ordering, this stopping rule gives the maximum-likelihood (ML) decision. Soft-input GRAND (SGRAND) extends the same principle to soft-output channels, including binary-input additive white Gaussian noise (AWGN), and remains ML under unlimited search [2]. SGRAND's exact enumeration, however, is recursive and uses dynamic data structures, which complicates parallel hardware implementation. Ordered Reliability Bits GRAND (ORBGRAND) was introduced to make the search more implementation-friendly by replacing exact reliability ordering with structured ordered-reliability approximations [3]. This gives a highly effective binary-input GRAND architecture, but its ordering is approximate and its natural formulation is tied to binary ordered-reliability patterns.
For non-binary codes and higher-order modulations, the decoder receives ordered symbol likelihoods at each coordinate, so a purely bit-reliability view does not fully expose the available structure. Prior GRAND-based work has considered channels with non-binary inputs [4], and several approximate GRAND-based algorithms for non-binary modulations have also been proposed [5]–[10]. However, the symbol-level construction in [4] can generate a number of child patterns that grows with the block length, while approximate variants trade exact likelihood ordering for reduced complexity. Thus, to the best of our knowledge, existing symbol-level GRAND constructions do not simultaneously provide bounded local branching and a proof of global likelihood-ordered coverage of the full q-ary pattern space.
We therefore develop q-ary GRAND as a symbol-level construction for length-n linear codes over a q-ary finite field alphabet . The decoder first forms a sorted likelihood array. Within each coordinate, vertical sorting ranks the q candidate symbols by likelihood; across coordinates, horizontal sorting orders the first-deviation costs. Candidate patterns are then represented by row-index vectors in , where each entry specifies which ranked symbol is selected in the corresponding ordered coordinate. From any non-root pattern, q-ary GRAND generates at most three children. The first starts a new deviation, the second deepens the current deviation, and the third shifts a depth-one deviation to the next ordered coordinate. This contrasts with [4], where the child-generation burden grows with block length; here, each parent generates at most three children, independent of block length, modulation alphabet size, and code alphabet size.
Our main contribution is to show that this bounded local generation is not merely a heuristic reduction of the search space. We prove that the three child rules induce a rooted spanning tree over the full row-index space and that every generated edge is likelihood non-increasing. Consequently, best-first traversal visits candidate patterns in global non-increasing likelihood order, and unlimited-search q-ary GRAND returns the ML codeword. We then discuss algorithmic cost and implementation considerations, and evaluate the decoder on non-binary Reed-Solomon and binary extended Bose-Chaudhuri-Hocquenghem (eBCH) benchmarks against Wolf's syndrome-trellis ML decoder [11], Berlekamp-Massey (BM) decoding [12], symbol-level ORBGRAND [6], ordered statistics decoding (OSD) [13], and Chase decoding [14].
The remainder of this letter is organized as follows. Section II presents the q-ary GRAND search construction and decoding algorithm. Section III proves ML optimality, Section IV discusses complexity, Section V reports representative numerical results, and Section VI concludes the letter.
with parity-check matrix , where denotes the size of the code alphabet. Let
denote the modulation constellation, where . For notational simplicity, the construction and proof below are presented for . The method itself is not restricted to this case and also applies when , as demonstrated by the numerical examples in Sec. V. Candidate patterns are generated in the modulation domain and mapped to the corresponding code-field symbols before the parity-check test. Under the presentation, each field symbol is mapped
Reza Dianat is with the Electrical Engineering Department, Persian Gulf University, Bushehr, Iran (e-mail: dianat@pgu.ac.ir). Majid Nasiri Khormuji and Hiroyuki Seki are with 1Finity Inc., Japan (e-mail: majid.n.k@ieee.org, hseki@fujitsu.com).
one-to-one to a modulation symbol. Assume a memoryless channel and let
denote the received vector. The log-likelihood (LL) of modulation symbol at coordinate j is defined as
For complex AWGN, is, up to terms independent of , proportional to the negative squared Euclidean distance between and .
The LLs in (4) are arranged in a array. Fig. 1(a) illustrates the construction for a , example. The decoder first sorts the likelihood array in two steps. For each original coordinate , vertical sorting orders the local symbol candidates from most likely to least likely. Let denote the index of the -th ranked symbol in coordinate , so that
In Fig. 1(a), sorts column 0, so that , , and . Functions and sort columns 1 and 2, respectively. Fig. 1(b) shows the vertically sorted pair array. A pair in row and column means that modulation-symbol index in coordinate has vertical rank and log-likelihood LL. Horizontal sorting then orders the sorted coordinates (the sorted columns) by their first-deviation costs. Fig. 1(c) is the horizontally sorted triplet array of Fig. 1(b). A triplet in row and column means that modulation-symbol index in original coordinate has log-likelihood LL and its vertical and horizontal ranks are and , respectively. The sorted column 2 of Fig. 1(b) comes first in Fig. 1(c), followed by column 1 and then column 0. Let be the original coordinate (column) placed in ordered column . The ordering is chosen such that
(6)
for . Define the sorted likelihoods
Then
and
In Fig. 1, the ordered coordinates become because the first-deviation costs in Fig. 1(b) are ranked as .
Property (8) says that moving downward within a coordinate cannot increase likelihood, while (9) orders the first-step deviation costs from left to right. Using the fully sorted array, a graph with a node matrix is constructed. Each node corresponds to a triplet in the sorted array. A candidate symbol-deviation pattern is represented by a row-index vector

Fig. 1: Non-binary likelihoods for a , example. (a) Original array. (b) Vertically sorted array. (c) Vertically and horizontally sorted array.

Fig. 2: Three child-generation moves from a parent row-index pattern r: the 1st and 2nd children (left) and the 3rd exchange child (right). Hollow circles mark the generator nodes.
The entry means that ordered coordinate j uses its -th ranked local symbol. A pattern is represented in the graph by a path that is created by selecting one node in each coordinate and connecting the selected nodes. The corresponding code-symbol vector is denoted by , and its log-likelihood is
The root pattern is , which selects the most likely symbol in every coordinate. In Fig. 1, these symbols are in the sorted array, corresponding to with .
For every non-root pattern, define its canonical generator by
For the root pattern, we use the trivial generator . Thus, is the rightmost active coordinate and is the current row used in that coordinate. From a pattern with generator , q-ary GRAND creates up to three children:
• First child: if , start a new deviation by setting .
• Second child: if and , deepen the current deviation by replacing with .
• Third child: if and , shift a depth-one deviation to the next ordered coordinate by setting and .
The first child starts a new deviation, the second child deepens the current deviation, and the third child performs the exchange move enabled by (8) and (9). Cf. Fig. 2.
The vector is mapped back to by assigning to original coordinate the field symbol corresponding to the modulation-symbol index associated with the -th ranked candidate in ordered coordinate . The candidate is valid if
Equivalently, each candidate can be represented as a deviation from the most-likely word, allowing the code-membership test to be implemented in the syndrome domain. Related connections between guessing noise patterns and guessing codewords are discussed in [15]. The complete decoding procedure is summarized in Algorithm 1. The decoder maintains a priority queue ordered by (11). At each step it extracts the currently most likely pattern, checks whether it satisfies (13), and otherwise inserts up to three children according to the rules above.
Section III uses exactly the two ordering properties in (8) and (9) to show that the search induced by Algorithm 1 is globally likelihood-ordered.
III. ML OPTIMALITY
We now prove that the local child-generation rules of Section II recover the global likelihood order on the full row-index space. Assume uniform codeword priors, a memoryless channel, a one-to-one symbol mapping, and deterministic tie-breaking. The proof has two ingredients: likelihood monotonicity along every generated edge, and the fact that the generated graph is a rooted spanning tree.
Lemma 1 (Edge monotonicity). Every child generated by q-ary GRAND has LL no larger than that of its parent.
Proof. Let r be a parent pattern with generator . For the first child, only coordinate changes, from row 0 to row 1. Hence
by (8). For the second child, only coordinate changes, from row to row , and therefore
For the third child, a depth-one deviation is moved from to . Thus
(16)
where the last inequality follows from (9). Hence all generated edges are likelihood non-increasing.
Lemma 2 (Spanning-tree property). The child-generation rules induce a rooted spanning tree on , rooted at .
Proof. Let denote the unit vector in coordinate . For every non-root pattern , using its generator in (12), define a parent map by
The four cases are mutually exclusive. In the first case, r is obtained from by a second-child move. In the second case, is obtained from the root by a first-child move. In the third case, r is obtained from by a first-child move, and in the fourth case by a third-child move. Thus every non-root pattern has a unique parent under the proposed rules.
Algorithm 1 q-ary GRAND
Require: Parity-check matrix H, received vector y, budget B 1: Construct the sorted likelihood array using (8)-(9) 2: Initialize root and queue 3: for m = 1 to B do 4: Extract of maximum likelihood from S 5: if then 6: return 7: end if 8: if then 9: ; ; insert first child 10: if then 11: ; , ; insert third child ) 12: end if 13: end if 14: if then 15: ; ; insert second child ) 16: end if 17: end for 18: return failure
It remains to show that every parent chain reaches the root. Define
In each case of (17),
The first three cases remove a positive contribution at , while the fourth replaces by . Hence cycles are impossible, and repeated parent application must terminate at the unique vector with , namely the root. Therefore every row-index vector is connected to the root by a unique parent chain, and the generated graph is a rooted spanning tree.
The tree generates each row-index pattern once, so no duplicate-removal table is required.
Theorem 1 (ML optimality). Under unlimited search, Algorithm 1 returns a maximum-likelihood codeword.
Proof. By Lemma 1, likelihood is non-increasing along every generated edge. By Lemma 2, the generated graph is a rooted spanning tree of the full row-index space. At any stage of the best-first search, the priority queue contains the frontier of the explored subtree. Every unseen pattern is a descendant of some frontier pattern and therefore has likelihood no larger than that frontier ancestor. Hence the most likely unseen pattern always lies on the frontier, and best-first extraction tests patterns in global non-increasing likelihood order.
Let be the first tested candidate satisfying . If another codeword had strictly larger likelihood, then would have appeared earlier in the globally ordered test sequence and would have been accepted before , a contradiction. Therefore is maximum-likelihood.
IV. ALGORITHMIC COST AND IMPLEMENTATION CONSIDERATIONS
The computational cost of q-ary GRAND is determined by more than the number of tested patterns. Let m denote the number of candidate patterns submitted to the parity-check test

Fig. 3: Performance of decoders for RS(20, 18) over with 64-QAM. BLER is shown on the left and the average number of queries on the right.
before termination, and let denote the peak number of live patterns in the search frontier. We distinguish preprocessing, finite-field arithmetic, frontier management, storage, and query count. The quantity is retained as a measure of search depth rather than as a complete measure of implementation complexity. With a finite budget , one has , while under unlimited search is the stopping time at which the first valid codeword is found. The one-time preprocessing consists of computing and sorting the symbol likelihoods. Computing all local metrics costs , vertical sorting costs , and horizontal sorting of the first-deviation costs requires . The total preprocessing cost is therefore
During the search, each expansion requires one priority-queue extraction and generates at most three children. Let denote the code redundancy. With incremental syndromes, a child that changes one coordinate requires finite-field operations, while the exchange child changes two coordinates and has the same asymptotic cost up to a constant factor. Priority-queue insertion and extraction require operations. The resulting post-preprocessing complexity for m tested patterns is therefore
Since the search graph is a tree, each row-index pattern has a unique parent and no duplicate-pattern table is required. Exact best-first ordering nevertheless requires a dynamic frontier. If a direct implementation stores the full row-index vector and syndrome for every live node, the storage scales as
Parent-pointer or difference-based representations can reduce the pattern-description storage, at the expense of reconstruction or additional cached state. Thus, the bounded three-child expansion does not imply bounded overall memory, since F remains dependent on the received vector and search depth. This dynamic-frontier requirement is also characteristic of exact soft-input SGRAND [2]. A distinguishing feature of

Fig. 4: Same as Fig. 3 but for eBCH(256, 231) with QPSK.
the proposed construction is its canonical three-child, unique-parent organization, which preserves exact likelihood ordering without duplicate suppression. Symbol-level ORBGRAND [6] makes a different implementation tradeoff. It replaces exact likelihood ordering by a more regular approximate schedule that is attractive for parallel hardware. Its scheduler and storage can consequently be provisioned more regularly than the received-vector-dependent frontier of exact best-first search. Its generated patterns may include invalid symbol combinations that are discarded before the parity-check test, so raw generated patterns and parity-check queries are distinct quantities. In contrast, the proposed tree generates row-index patterns directly, while retaining the priority-queue and dynamic-memory costs associated with exact best-first ordering. OSD [13] has a different complexity structure again, requiring reliability ordering and code-dependent most-reliable-basis reprocessing followed by enumeration of a predetermined set of test codewords. These distinctions prevent query count alone from establishing universal implementation superiority. The proposed decoder provides exact likelihood ordering, bounded local generation, and data-dependent stopping, whereas ORBGRAND offers a more regular generation structure suited to highly parallel implementations and OSD exchanges dynamic search for code-dependent reprocessing.
V. NUMERICAL RESULTS
We consider two simulation settings. The first evaluates q-ary GRAND on RS(20, 18) over with 64-QAM. The code has rate , minimum distance , and throughput bits per channel use (bpcu). The second considers a longer, high-rate binary QPSK-modulated extended BCH(256, 231) code with code rate , minimum distance , and throughput bpcu. In this case, the modulation alphabet size is , whereas the code alphabet size is . Test patterns are generated in the modulation domain, while the parity check is performed after mapping each pattern to the binary code domain. The RS and BCH codes are implemented in nonsystematic form using Fourier transform (FT) over finite-field constructions [12]. The RS code is constructed using 21-point FT followed by shortening a symbol. The eBCH(256, 231) code is obtained by extending the corresponding length-255 BCH code using 255-point FT. All constellations are normalized to unit average symbol energy, and the channel is complex AWGN with distribution . We define signal-to-noise ratio (SNR) as , where is the average modulation-symbol energy and is the information-bit energy. A finite budget means that at most row-index patterns are tested.
We compare q-ary GRAND with several benchmark decoders. BM decoding [12] is used as a hard-decision baseline. Chase decoding [14] provides a small-list soft-decision reference. It selects the L least reliable symbols, tests hard-decision patterns using BM decoding, and retains the valid codeword with minimum Euclidean distance to the received vector. Symbol-level ORBGRAND [6] considers the most likely options for each received symbol, sorts their reliabilities, approximates the ordered reliabilities by a three-segment linear function, and generates test patterns according to this approximation. Invalid patterns are discarded. We also evaluate ordered-statistics decoding (OSD) [13]. To keep its complexity manageable, OSD generates test codewords by modifying up to t symbols among the k most reliable symbols, with the most likely symbol options considered at each selected position. For the RS(20, 18) case, Wolf's syndrome-trellis decoder [11] is used as the exact ML reference.
Fig. 3 reports the results for RS(20, 18) over with 64-QAM. Wolf's syndrome-trellis decoder is feasible for this high-rate code because its complexity is governed primarily by the redundancy . For OSD, test codewords are generated by modifying up to symbols among the 18 most reliable symbols, with most likely symbol options considered at each selected position. Hence, OSD tests codewords per received block. As shown in Fig. 3, q-ary GRAND with operates very close to the ML benchmark. OSD is also close to ML, as is symbol-level ORBGRAND with and valid test patterns.
Fig. 4 reports the results for the QPSK-modulated binary extended BCH(256, 231) code. Symbol-level ORBGRAND with and q-ary GRAND achieve similar performance for a budget of , whereas the performance of ORBGRAND with degrades at high . For OSD, bit log-likelihoods are first calculated from the 128 received QPSK symbols, and decoding is then performed in the binary domain. With a maximum test-pattern weight of , OSD tests codewords per received block. In this case, OSD achieves performance similar to the GRAND decoders with . BM and Chase decoding with and exhibit a substantial SNR loss compared with GRAND and OSD. GRAND-based algorithms achieve near-ML performance with a budget of queries. For a fixed , as increases (i.e., code rate decreases), the performance of the algorithms degrades when the computation burden limits to a level much lower than .
In the figures, ORBGRAND, Chase, OSD, and q-ary GRAND are denoted by ORB( , B), Chase(L), OSD( , t) and GND(B), respectively.
The number of tested patterns is the main finite-budget search statistic. Unlike Chase decoding and OSD, which test a fixed number of candidate patterns or codewords, q-ary GRAND has a data-dependent stopping time. Figs. 3 and 4 show that the average number of tested patterns decreases rapidly with SNR. For RS(20, 18), the average count is approximately 2.2 at 14 dB and 1.5 at 14.5 dB, already below the Chase list size of four. Thus, the finite-budget advantage is not limited to BLER performance. The number of tested patterns also becomes small in the same SNR region where the decoder approaches ML performance. The average valid-query curves for ORBGRAND with for M = 64 and with for M = 4 are close to those of the corresponding q-ary GRAND cases. Overall, unlimited-search q-ary GRAND reproduces exact ML decoding in the representative non-binary RS benchmark, while finite-budget q-ary GRAND provides an advantageous search depth on average at high SNR values.
VI. Conclusion
We introduced q-ary GRAND as a likelihood-ordered symbol-level decoder for binary and non-binary linear codes with higher-order modulation. Its three local generation rules form a monotone spanning tree over the symbol-deviation space and therefore recover ML decoding under unlimited search. Agreement with Wolf decoding in the RS case verifies the ML result numerically. The RS and eBCH experiments further show that finite search budgets retain most of this decoding gain while the average number of tested patterns falls to only a few at high SNR.
REFERENCES
[1] K. R. Duffy, J. Li, and M. Médard, “Capacity-achieving guessing random additive noise decoding,” IEEE Trans. Inf. Theory, vol. 65, no. 7, pp. 4023–4040, 2019.
[2] A. Solomon, K. R. Duffy, and M. Médard, “Soft maximum likelihood decoding using GRAND,” in IEEE Int. Conf. Commun. (ICC), 2020.
[3] K. R. Duffy, W. An, and M. Médard, “Ordered reliability bits guessing random additive noise decoding,” IEEE Trans. Signal Process., vol. 70, pp. 4528–4542, 2022.
[4] A. Solomon, “Noise-centric decoding,” Ph.D. dissertation, Massachusetts Institute of Technology, 2021.
[5] I. Chatzigeorgiou and F. A. Monteiro, “Symbol-level GRAND for high-order modulation over block fading channels,” IEEE Commun. Lett., vol. 27, no. 2, pp. 447–451, 2023.
[6] W. An, M. Médard, and K. R. Duffy, “Soft decoding without soft demapping with ORBGRAND,” in IEEE Int. Symp. Inf. Theory (ISIT), 2023, pp. 1080–1084.
[7] K. R. Duffy, M. Grundei, and M. Médard, “Using channel correlation to improve decoding-ORBGRAND-AI,” in IEEE Global Commun. Conf. (GLOBECOM), 2023.
[8] L. Rapp, M. Médard, and K. R. Duffy, “Group probability decoding of turbo product codes over higher-order fields,” IEEE Trans. Commun., 2026.
[9] Z. E. Kizilates, A. Riaz, A. Bali, M. Grundei, M. Médard, K. R. Duffy, and R. T. Yazicigil, “Low-latency modulation- and correlation-adaptive ORBGRAND-AI decoder,” in 2025 IEEE Eur. Solid-State Electron. Res. Conf. (ESSERC), 2025.
[10] P. Yuan, M. Médard, K. Galligan, and K. R. Duffy, “Soft-output (SO) GRAND and iterative decoding to outperform LDPC codes,” IEEE Trans. Wireless Commun., vol. 24, no. 4, pp. 3386–3399, 2025.
[11] J. Wolf, “Efficient maximum likelihood decoding of linear block codes using a trellis,” IEEE Trans. Inf. Theory, vol. 24, no. 1, pp. 76–80, 1978.
[12] R. E. Blahut, Algebraic codes for data transmission. Cambridge University Press, 2003.
[13] M. P. Fossorier and S. Lin, “Soft-decision decoding of linear block codes based on ordered statistics,” IEEE Trans. Inf. Theory, vol. 41, no. 5, pp. 1379–1396, 1995.
[14] D. Chase, “Class of algorithms for decoding block codes with channel
measurement information," IEEE Trans. Inf. Theory, vol. 18, no. 1, pp. 170–182, 1972.
[15] X. Ma, “Guessing what, noise or codeword?” in IEEE Inf. Theory Workshop (ITW), 2024.