arXiv:2610.38429cs.ITOct 2026

Manuscript Offprint

arXiv:2610.38429

Polynomial-Time Constructions of Asymptotically Good Random Access Codes from Linear Codes

Ruho Kondo, Yota Maeda

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Ruho Kondo and Yota Maeda

Abstract—Random access codes (RACs) encode a qq-ary input string into fewer qq-ary symbols while allowing any requested input symbol to be recovered with probability above the random-guessing value 1/q1/q. However, it remains unclear what asymptotic guarantees on compression and recovery probability should be required of RACs. We address this question by introducing the notion of asymptotically good RACs and give two polynomial-time constructions. First, an [n,k,d]q[n, k, d]_q linear code with d≥2d \geq 2, together with an encoder based on its orthogonal-array property, yields an (n,n−k)q(n, n-k)_q-RAC with worst-case decoding success probability

pwc=1q+(1−1q)d−2n.p_{\mathrm{wc}} = \frac{1}{q} + \left(1 - \frac{1}{q}\right) \frac{d-2}{n}.

These OA-RACs are asymptotically good whenever the underlying linear codes are, and Garcia-Stichtenoth algebraic-geometry codes give a concrete polynomial-time realization. Second, a direct-sum strategy using OA-RACs derived from qq-ary Hamming codes and the trivial (1,1)q(1,1)_q-RAC yields asymptotically good RAC families at every prescribed RAC rate RRAC=(n−k)/n∈(0,1)R_{\mathrm{RAC}} = (n-k)/n \in (0,1). Numerical results demonstrate favorable finite-length performance of both constructions.

Index Terms—random access codes, linear codes, dual distance, orthogonal arrays, algebraic geometry codes, concatenated codes

I. INTRODUCTION

A random access code (RAC) compresses an input string into a shorter message while allowing any designated input symbol to be decoded with probability strictly above random guessing. For binary classical RACs, Ambainis et al. [1] established an asymptotically tight tradeoff between the message rate and the decoding success probability, and the corresponding entropy converse extends to quantum messages [2]. Their achievability result, however, is non-constructive, relying on existence arguments for suitable codes and a probabilistic encoder. This motivates the study of explicit RAC constructions, particularly those admitting efficient encoding and decoding algorithms for practical implementations.

Explicit classical and quantum RACs have been investigated for various finite parameters and particular parameter families, with results on their constructions, decoding performance, and optimality [3-11]. Recent work has also provided a geometric framework for explicit classical RAC constructions with general finite parameters [10], but no

polynomial-time algorithm is known for the general construction. Although direct sums of fixed-size RACs trivially yield polynomial-time constructible families with nonvanishing compression and worst-case decoding advantage, developing efficient explicit constructions that accommodate general parameter choices while maintaining these properties remains a challenge.

In this work, we introduce asymptotically good RACs, whose compression fractions and worst-case decoding advantages over random guessing both remain bounded away from zero. By the Ambainis-Nayak-Ta-Shma-Vazirani (ANTV) converse, these conditions also keep the message rate bounded away from zero and the worst-case decoding success probability bounded away from one.

We give two approaches to constructing such families. First, building on the geometric connection between RACs and classical codes [10], we introduce an OA encoder based on the orthogonal-array property of linear codes. Using dual codes as RAC codebooks, we show that any asymptotically good family of linear codes yields an asymptotically good family of OA-RACs. When the underlying codes and required operations are efficient, the resulting OA-RACs are also efficient. As a concrete polynomial-time realization, we use concatenated codes with Garcia-Stichtenoth algebraic geometry outer codes [12].

Second, we consider a direct-sum strategy that constructs large RACs from smaller ones. Using OA-RACs derived from qq-ary Hamming codes together with the trivial (1,1)q(1,1)_q-RAC, we show that this strategy constructs asymptotically good RAC families at any prescribed rate.

Finally, we numerically examine the finite-length performance of both constructions. OA-RACs substantially outperform the Improved RAC construction [3] over much of the examined range, although they do not generally attain the optimum. For the direct-sum strategy, incorporating OA-RACs derived from additional linear-code families, including algebraic geometry codes, further improves the worst-case decoding success probability over a wide range of RAC rates.