Xiaohong Cai, Ruze Zhang, Laigang Guo, Raymond W. Yeung
Xiaohong Cai, Ruze Zhang, Laigang Guo, and Raymond W. Yeung
Abstract—We study cache-aided linear computation in distributed systems where each source generates and stores its own data. An external receiver requests a linear combination of these data, and the sources use information cached before the request is known to reduce the communication needed to recover the requested result. In our model, each of the N sources stores its own independent file over a finite field and has an additional cache of normalized size M. The receiver must recover any requested linear combination with zero error from the messages sent by the sources over separate noiseless links. We establish a lower bound on the worst-case communication rate over any finite field by analyzing several requests under the same cache placement. This bound determines the optimal rate when no additional cache is available. For binary files, we propose parity-aided placement (PAP), a coded-placement scheme that combines cached parities with uncoded symbols. For every N≥3, we characterize its communication rate for each request and optimize its placement parameters to obtain a closed-form worst-case rate. The resulting achievable rate meets the lower bound for 0≤M≤1/(2N−1) and M≥(N−1)/N, establishing the optimal memory-rate tradeoff in these two ranges.
Index Terms—Cache-aided computation, coded placement, distributed computation, linear computation, memory-rate tradeoff
I. INTRODUCTION
In distributed systems with locally generated data, different source nodes retain their own data, while an external receiver may request a function of the data held by multiple sources. For example, Earth observation satellites can share observation data for processing in orbit [1], and multiple aerial sensing nodes can send their observations to a ground station for data fusion through an unmanned aerial vehicle (UAV) relay [2]. When the receiver needs only a function of the source data, a small result does not necessarily mean that little communication is required. The receiver may still need separate transmissions from many sources, whose total size can far exceed that of the result. Exchanging and caching information before the requested function is specified can change the information available at each source and reduce the communication needed for subsequent computation. The challenge is to select cache contents that support different future requests without knowing which function will be requested.
Caching can reduce the transmission load by making information available before requests arrive. In the classical coded-caching model, a server holds the entire file library, and receivers cache information to reduce the communication required for subsequent file requests over a shared link [3], [4]. Subsequent work established bounds for general placement [5] and developed coded placements that cache linear combinations of file segments [6]. Cache-aided scalar and general linear function retrieval extend this setting to requests for linear functions of the library files, with the entire library still held by a central server and caches located at the receivers [7], [8]. Device-to-device caching enables users to retrieve files from one another's caches [9], [10]. Coding can also reduce communication in distributed computing [11], [12].
Network function computation studies the recovery of functions of distributed source messages over a network. Previous work established cut-set bounds for network function computation [13], algebraic conditions for computing linear functions [14], and improved capacity bounds for general target functions and network topologies [15]. For the binary arithmetic sum, the zero-error compression capacity has been characterized under different source-observation patterns at two encoders [16].
We study how caching at the sources can reduce the communication required for linear function computation. In our model, each of the N sources retains its own file and has an additional cache of normalized size M. The caching functions are fixed before the request is revealed and must support every linear combination requested by an external receiver. We seek to characterize the tradeoff between cache size and the worst-case total communication required for zero-error recovery. Our main results are as follows.
We establish a converse bound for an arbitrary finite field. For any m×N query matrix A, the bound depends on the average rank of its m×n column submatrices. Maximizing this quantity over A for each pair (m,n) gives
Xiaohong Cai and Raymond W. Yeung are with the Department of Information Engineering, The Chinese University of Hong Kong, Hong Kong SAR, China (e-mail: cx021@ie.cuhk.edu.hk; whyeung@ie.cuhk.edu.hk).
Ruze Zhang is with the School of Mathematical Sciences and the Key Laboratory of Pure Mathematics and Combinatorics (LPMC), Nankai University, Tianjin 300071, China (e-mail: rzzhang@nankai.edu.cn).
Laigang Guo is with the Laboratory of Mathematics and Complex Systems (Ministry of Education), School of Mathematical Sciences, Beijing Normal University, Beijing 100875, China (e-mail: lgguo@bnu.edu.cn).
R(Fq,N,M)≥1≤m,n≤NmaxmnN(rankm,n,N−(N−n)M).(1)
For the binary case, we introduce parity-aided placement (PAP), which combines cached parities with uncoded symbols. For every N≥3, we derive its communication rate for each request support size and optimize the placement parameters to obtain a closed-form worst-case rate, asymptotically achievable for every M. In the small-cache regime, PAP meets the m=n=1 instance of (1) and gives
R(F2,N,M)=N−N(N−1)M,0≤M≤2N−11.(2)
Receiver ρ
Fig. 1. The model of cache-aided linear computation ( Fq,N,M).
PAP also achieves the optimal rate R(F2,N,M)=1 for M≥(N−1)/N, thereby determining the optimal memory-rate tradeoff in these two regimes.
II. MODEL OF CACHE-AIDED LINEAR COMPUTATION
We consider a cache-aided linear computation model (Fq,N,M) as depicted in Fig.1. In the model, there are N sources σ1,σ2,⋯,σN and a receiver ρ, where each source is connected to the receiver by a noiseless link. For each i∈[N]≜{1,2,⋯,N}, let the file generated by the source σi be a random L-dimensional row vector Fi=(Fi,1,Fi,2,⋯,Fi,L) uniformly distributed over FqL, where Fq is a finite field of size q and L is a positive integer referred to as the file length. All files F1,F2,⋯,FN are assumed to be mutually independent. Further, let F≜[F1⊤F2⊤⋯FN⊤]⊤, which is referred to as the file matrix.
Furthermore, due to prior data exchanges, prefetching, or overhearing via the broadcast nature of the wireless channel, the sources have access to some side information about other files. More precisely, for each i∈[N], the source σi can store an arbitrary (possibly nonlinear) function of the file matrix F as the cached content, and the cached content takes at most qML possible values. Accordingly, we refer to ML as the cache size. Here, M is a nonnegative real number called the normalized cache size. The caching functions are fixed before the coefficient vector α is revealed. For each coefficient vector α≜(α1,α2,⋯,αN)∈FqN, the receiver ρ is required to compute the linear function αF=∑i=1NαiFi with zero error through the following steps:
the receiver ρ first broadcasts the coefficient vector α to all source nodes;
each source node σi generates and transmits an encoded message, say Xi,α, based on its local file, its cached content and the coefficient vector α;
after receiving all transmitted messages, the receiver ρ computes αF with zero error.
Now, we formally define an L-dimensional (linear-computation) code for the model (Fq,N,M) such that for each coefficient vector α∈FqN, the receiver ρ can compute the linear function αF of the L-dimensional files F1,F2,⋯,FN with zero error. To be specific, an L-dimensional code for the model (Fq,N,M) consists of
a caching function φi for generating the cache content at every source node σiφi:FqN×L→Imφi such that the cached content takes at most qML possible values, i.e., ∣Imφi∣≤qML;
an encoding function ϕi,α for each α∈FqN at every source node σiϕi,α:FqL×Imφi→Imϕi,α, which is used to generate a message transmitted from the source node σi to the receiver ρ based on the local file Fi, the cached content φi(F) and the coefficient vector α;
a decoding function ψα for each α∈FqN at the receiver ρ, given by ψα:∏i=1NImϕi,α→FqL, which is used to compute the linear function αF based on the messages received from all the N sources.
We write this code as C={φi,ϕi,α,ψα:i∈[N],α∈FqN}, and it is called admissible if
ψα(ϕi,α(Fi,φi(F)):i∈[N])=αF,∀α∈FqN.
For the code C, we define
Rα(C)≜L1⋅i=1∑Nlog∣Imϕi,α∣,∀α∈FqN,(3)
where “log” denotes “log_q”, the logarithm with base q. Then, Rα(C) is the total communication cost, normalized by the file length, from all source nodes to the receiver ρ by using the code C for computing the linear function αF. The (worst-case) communication rate of the code C is defined by
R(C)≜α∈FqNmaxRα(C).(4)
Consequently, the optimal communication rate for the model (Fq,N,M) is defined by
R(Fq,N,M)≜inf{R(C):C is an admissible L
dimensional code, where L is an arbitrary positive integer.
When the model (Fq,N,M) is clear from the context, we simply write the optimal rate R(Fq,N,M) as R(M).
III. LOWER BOUND ON THE OPTIMAL COMMUNICATION RATE
In this section, we prove a general lower bound on the optimal communication rate R(Fq,N,M), which is applicable for an arbitrary finite field Fq, an arbitrary number N of sources, and an arbitrary normalized cache size M. Fix 1≤m,n≤N. For A∈Fqm×N and θ⊆[N] with ∣θ∣=n, let A[θ] be the submatrix formed by the columns indexed by θ. Define
1In this paper, for any positive integer Z, we use FqZ to denote the set of all Z-dimensional row vectors over Fq.
2In the paper, we use Im φ to stand for the image set of a function φ.
Theorem 1. For every finite field Fq, N≥1, and M≥0,
R(Fq,N,M)≥max1≤m,n≤NmnN(rankm,n,N−(N−n)M).
Proof. See Appendix A.
IV. CODE CONSTRUCTION AND UPPER BOUND ON THE OPTIMAL COMMUNICATION RATE
In this section, we focus on the model (F2,N,M) over the binary field F2. We construct a class of codes, referred to as parity-aided-placement (PAP) codes. With this code construction, we prove an upper bound on the optimal communication rate R(F2,N,M).
A. Three Elementary Codes
We first present three elementary codes: an uncached code, a full-placement code, and an all-but-one parity (ABO) code, which will be combined to construct a PAP code.
• Uncached Code: Consider the model (F2,N,M=0), where N is an arbitrary positive integer and M=0 indicates that no cached content is available at any source node. For each positive integer L, we define an L-dimensional uncached code C={φi,ϕi,α,ψα:i∈[N],α∈F2N} for the model (F2,N,0) as follows:
no cached content is stored at any source node, i.e., the caching function φi at every source σi satisfies φi(F)=⟨⟩ for i∈[N], where ⟨⟩ denotes the empty vector;
the encoding function ϕi,α for each coefficient vector α=(α1,α2,⋯,αN)∈F2N at every source node σi is given by ϕi,α(Fi,φi(F))=αiFi;
the decoding function ψα for each α∈F2N at the receiver ρ is given by
ψα(ϕi,α(Fi,φi(F)):i∈[N])=i=1∑NαiFi=αF.
For an arbitrary i∈[N] and an arbitrary coefficient vector α=(α1,α2,⋯,αN)∈F2N, we can readily see that
log∣Imϕi,α∣={L,0,αi=0,αi=0.
This further implies that
i=1∑Nlog∣Imϕi,α∣=∣{i∈[N]:αi=0}∣L=∣α∣L,
(7)
where ∣α∣ denotes the Hamming weight of α, i.e., the number of nonzero components of α.
• Full-Placement Code: Consider the model (F2,N,M=(N−1)/N), where N is an arbitrary positive integer. For each positive integer L such that N divides L, we define an L-dimensional full-placement code C={φi,ϕi,α,ψα:i∈[N],α∈F2N} for the model (F2,N,(N−1)/N) as follows. First, we partition [L] into N disjoint subsets L1,L2,⋯,LN of equal size, i.e.,
[L]=i=1⋃NLi,and∣Li∣=NL,∀i∈[N].(8)
the caching function φi for generating the cache content at every source node σi is given by
φi(F)=(Fn,ℓ:n∈[N]∖{i},ℓ∈Li),(9)
where we note that ∣Imφi∣=2(N−1)∣Li∣=2(N−1)L/N;
the encoding function ϕi,α for each coefficient vector α=(α1,α2,⋯,αN)∈F2N at every source node σi is given by
ϕi,α(Fi,φi(F))=(n=1∑NαnFn,ℓ:ℓ∈Li);(10)
the decoding function ψα for each α∈F2N at the receiver ρ is given by
We can readily see from (8), (10), and the definition of the decoding function that the code C is admissible. Furthermore, for any coefficient vector α=(α1,α2,⋯,αN)∈F2N,
i=1∑Nlog∣Imϕi,α∣={0Lif∣α∣=0,if∣α∣>0.(11)
To show this, when ∣α∣=0, we have α=0, and hence log∣Imϕi,α∣=0 for all i∈[N]. This immediately implies that ∑i=1Nlog∣Imϕi,α∣=0. When ∣α∣>0, by (8) and (10), we have log∣Imϕi,α∣=NL for all i∈[N]. Therefore, we obtain that ∑i=1Nlog∣Imϕi,α∣=∑i=1NNL=L.
• All-But-One Parity Code: Consider the model (F2,N,M=1/N), where N≥2 is an arbitrary positive integer. For each positive integer L such that N divides L, we define an L-dimensional all-but-one (ABO) parity code C={φi,ϕi,α,ψα:i∈[N],α∈F2N} for the model (F2,N,1/N) as follows. First, we partition [L] into N disjoint subsets L1,L2,⋯,LN of equal size as in (8).
The caching function φi for generating the cache content at every source node σi is given by
φi(F)=n∈[N]\{i}∑Fn,ℓ:ℓ∈Li,(12)
where we note that ∣Imφi∣=2∣Li∣=2L/N by (8);
the encoding function ϕi,α for each coefficient vector α=(α1,α2,⋯,αN)∈F2N at every source node σi is given by
We next show that the code C is admissible, i.e., for each α=(α1,α2,⋯,αN)∈F2N and each ℓ∈[L], ∑i=1NXi,α=∑i=1NαiFi,ℓ; and for any α=(α1,α2,⋯,αN)∈F2N,
In this subsection, we consider the model (F2,N,M) with N≥2 and construct a parity-aided-placement (PAP) code for this model by concatenating an uncached code, a full-placement code, and an ABO parity code.
We first present some notation. Let L0,L1,L2 be arbitrary nonnegative integers such that N divides both L1 and L2 and
(N−1)L1+L2≤NM(L0+L1+L2).(16)
Let L≜L0+L1+L2>0. As will become clear below, the condition in (16) guarantees that the cache capacity constraint is satisfied. Further, we let
λ0≜LL0,λ1≜LL1,andλ2≜LL2.(17)
Correspondingly, the inequality (16) can be rewritten as
(N−1)λ1+λ2≤NM.(18)
For every i∈[N], partition the file as Fi=[Fi(0)Fi(1)Fi(2)], where Fi(j)∈F2Lj for j=0,1,2. Let F(j)∈F2N×Lj be the matrix whose ith row is Fi(j).
Furthermore, we let C(0), C(1), and C(2) denote an L0-dimensional uncached code for the model (F2,N,0), an L1-dimensional full-placement code for the model (F2,N,(N−1)/N), and an L2-dimensional ABO parity code for the model (F2,N,1/N), respectively. Specifically, we write
Since the three elementary codes are admissible, we can readily see that the code C is also admissible. For every i∈[N], the caching functions act on disjoint file blocks, so ∣Imφi∣=∏j=02∣Imφi(j)∣=2[(N−1)L1+L2]/N≤2ML, where the inequality follows from (16).
In the following, we calculate the communication rate of the code C. Consider an arbitrary coefficient vector α∈F2N. For each i∈[N], we readily see that ∣Imϕi,α∣=∣Imϕi,α(0)∣⋅∣Imϕi,α(1)∣⋅∣Imϕi,α(2)∣. It follows that
We note that L0,L1,L2 can be arbitrarily chosen such that N divides both L1 and L2 and (16) holds. Thus, by (17), any nonnegative (λ0,λ1,λ2) satisfying λ0+λ1+λ2=1 and (18) can be approximated arbitrarily closely. Together with (22), this immediately gives the following theorem.
Theorem 2. Consider the model (F2,N,M) with N≥2. Let RPAP(N,M)≜minλ0,λ1,λ2maxw∈[N]{λ0w+λ1+λ2gN(w)}, where the minimum is subject to λ0,λ1,λ2≥0,λ0+λ1+λ2=1, (N−1)λ1+λ2≤NM. Then, R(F2,N,M)≤RPAP(N,M).
The following theorem gives an explicit expression for RPAP(N,M), whose proof is given in Appendix B.
Theorem 3. For the model (F2,N,M) with N≥3, RPAP(N,M) is given as follows.
Combining this achievable rate with the converse gives the following exact characterization.
Cache size M
Fig. 2. Binary memory-rate tradeoffs for N = 4, 5. Shaded intervals mark the exact regimes in Corollary 1. The uncoded baseline uses only full and uncached coordinates.
Corollary 1. For every N≥3,
R(F2,N,M)={N−N(N−1)M1if0≤M≤2N−11,ifM≥NN−1.
V. NUMERICAL RESULTS AND DISCUSSION
Figure 2 compares the PAP rate in Theorem 3 with the converse in Theorem 1 for N = 4, 5. The maximum average ranks are evaluated by enumerating binary query row spaces for each pair (m,n). We also consider an uncoded baseline using only full and uncached coordinates, which achieves the worst-case rate max{1,N(1−M)}.
For 0≤M≤1/(2N−1), PAP meets the converse and reduces the rate with increasing cache size at N−1 times the slope magnitude of the baseline. In this regime, full-support requests determine the worst-case rate. An ABO coordinate serves such a request with one transmitted bit using one cached parity and the holder's local symbol, whereas a full coordinate requires caching N−1 symbols to achieve the same delivery cost. For M≥(N−1)/N, both schemes achieve the optimal rate of one.
For N = 4, 5, PAP improves upon the baseline at intermediate cache sizes but does not meet the lower bound. At N = 5 and M = 0.5, for example, the PAP rate is 1.774, compared with 2.5 for the baseline and a lower bound of 1.094. The optimal memory-rate tradeoff in this intermediate regime remains open.
VI. Conclusion
We formulated a cache-aided linear computation model in which each source retains its own file and caches additional information before the requested linear combination is known. We established a converse bound over arbitrary finite fields by considering multiple requests under the same cache placement. For binary files, we proposed parity-aided placement (PAP) and obtained a closed-form worst-case rate for every N≥3 by optimizing its placement parameters. The resulting achievable rate meets the converse for 0≤M≤1/(2N−1) and M≥(N−1)/N, establishing the optimal memory-rate tradeoff in these two regimes.
ACKNOWLEDGMENT
The authors used ChatGPT to assist with language editing throughout the manuscript and to provide supplementary checks of mathematical arguments, particularly the proof of Theorem 3. The research conception, model formulation, code constructions, proof development, and initial manuscript were the original work of the authors. The authors reviewed and revised the AI-assisted edits, independently verified the mathematical arguments and results, and take full responsibility for the final content.
REFERENCES
[1] F. Valente, V. Eramo, and F. G. Lavacca, “Optimal bandwidth and computing resource allocation in low earth orbit satellite constellation for earth observation applications,” Computer Networks, vol. 232, p. 109849, 2023.
[2] N. Xing, Y. Wang, L. Teng, and L. Li, “Communication and trajectory design in UAV-enabled flying network,” Digital Signal Processing, vol. 126, p. 103489, 2022.
[3] M. A. Maddah-Ali and U. Niesen, “Fundamental limits of caching,” IEEE Transactions on Information Theory, vol. 60, no. 5, pp. 2856–2867, May 2014.
[4] Q. Yu, M. A. Maddah-Ali, and A. S. Avestimehr, “The exact rate-memory tradeoff for caching with uncoded prefetching,” IEEE Transactions on Information Theory, vol. 64, no. 2, pp. 1281–1296, Feb. 2018.
[5] ___,“Characterizing the rate-memory tradeoff in cache networks within a factor of 2,” IEEE Transactions on Information Theory, vol. 65, no. 1, pp. 647–663, Jan. 2019.
[6] C. Tian and J. Chen, “Caching and delivery via interference elimination,” IEEE Transactions on Information Theory, vol. 64, no. 3, pp. 1548–1560, Mar. 2018.
[7] K. Wan, H. Sun, M. Ji, D. Tuninetti, and G. Caire, “On the optimal load-memory tradeoff of cache-aided scalar linear function retrieval,” IEEE Transactions on Information Theory, vol. 67, no. 6, pp. 4001–4018, Jun. 2021.
[8] ___,“Cache-aided general linear function retrieval,” Entropy, vol. 23, no. 1, p. 25, 2021.
[9] M. Ji, G. Caire, and A. F. Molisch, “Fundamental limits of caching in wireless D2D networks,” IEEE Transactions on Information Theory, vol. 62, no. 2, pp. 849–869, Feb. 2016.
[10] C. Yapar, K. Wan, R. F. Schaefer, and G. Caire, “On the optimality of D2D coded caching with uncoded cache placement and one-shot delivery,” IEEE Transactions on Communications, vol. 67, no. 12, pp. 8179–8192, Dec. 2019.
[11] S. Li, M. A. Maddah-Ali, Q. Yu, and A. S. Avestimehr, “A fundamental tradeoff between computation and communication in distributed computing,” IEEE Transactions on Information Theory, vol. 64, no. 1, pp. 109–128, Jan. 2018.
[12] K. Wan, H. Sun, M. Ji, and G. Caire, “Distributed linearly separable computation,” IEEE Transactions on Information Theory, vol. 68, no. 2, pp. 1259–1278, Feb. 2022.
[13] R. Appuswamy, M. Franceschetti, N. Karamchandani, and K. Zeger, "Network coding for computing: Cut-set bounds," IEEE Transactions on Information Theory, vol. 57, no. 2, pp. 1015–1030, Feb. 2011.
[14] R. Appuswamy and M. Franceschetti, “Computing linear functions by linear coding over networks,” IEEE Transactions on Information Theory, vol. 60, no. 1, pp. 422–431, Jan. 2014.
[15] X. Guang, R. W. Yeung, S. Yang, and C. Li, “Improved upper bound on the network function computing capacity,” IEEE Transactions on Information Theory, vol. 65, no. 6, pp. 3790–3811, Jun. 2019.
[16] X. Guang and R. Zhang, “Zero-error distributed compression of binary arithmetic sum,” IEEE Transactions on Information Theory, vol. 70, no. 5, pp. 3100–3117, May 2024.
APPENDIX A PROOF OF THE CONVERSE
Proof: Consider an admissible L-dimensional code C={φi,ϕi,α,ψα:i∈[N],α∈FqN} for the model (Fq,N,M). We let m,n be arbitrary positive integers with 1≤m,n≤N. Further, we let α1,α2,⋯,αm be m arbitrary coefficient vectors. We consider the communication rate of the code C
where H(⋅) denotes the entropy function computed with logarithm base q.
For each i∈[N] and k∈[m], let Xi,αk be the encoded message from the source node σi to the receiver ρ associated with the coefficient vector αk, i.e.,
where the equality (27) follows because for any given i∈[N], the number of subsets θ⊆[N] satisfying ∣θ∣=n and i∈θ is equal to (n−1N−1), and the inequality (28) follows from the subadditivity of entropy.
Furthermore, we consider H(Xθ) for a subset θ⊆[N] with ∣θ∣=n. For the file matrix F∈FqN×L, we let Fθ be the submatrix of F containing the ith row if i∈θ, and let Fθc be the submatrix of F containing the ith row if i∈θc≜[N]∖θ. Then,
where the equality in (29) follows from the chain rule of entropy.
We first consider H(X∣Fθc) in (29). Note that for each coefficient vector αk with k∈[m], the code C can compute the linear function αkF with zero error, i.e.,
We further note that for each i∈θc, the random vector Xi=(Xi,α1,Xi,α2,⋯,Xi,αm) is a deterministic function of (Fi,φi(F)) (cf. (24)), which implies that H(Xi∣Fi)≤H(φi(F)∣Fi). Continuing from (34), we obtain that
Furthermore, the inequality (39) is true for arbitrary positive integers 1≤m,n≤N. As such, we have
R(C)≥1≤m,n≤NmaxmnN⋅(rankm,n,N−(N−n)M).(40)
We finally note that the above lower bound (40) is valid for any positive integer L and any admissible L-dimensional code C for the model (Fq,N,M). The theorem is proved.
APPENDIX B
DETAILED DERIVATION OF THE PAP MINIMAX SOLUTION
For N=2, ABO placement coincides with full placement because the cached parity contains only the other source's symbol. Combining uncached and full-placement coordinates with full-placement fraction λ1=min{2M,1} achieves worst-case rate 2−λ1. The m=n=1 and m=n=2 instances of (1) give the matching lower bound, so R(F2,2,M)=RPAP(2,M)=max{2−2M,1} for all M≥0.
Proof of Theorem 3. For a nonzero request of weight w, write
rPAP(w;λ1,λ2)≜(1−λ1−λ2)w+λ1+λ2gN(w).
This is the per-request rate in (20), with λ0=1−λ1−λ2.
For M≥(N−1)/N, choosing (λ1,λ2)=(1,0) makes every coordinate a full coordinate and achieves rate 1. Moreover, rPAP(1;λ1,λ2)=1 for every feasible pair (λ1,λ2), so no PAP code can have worst-case rate below 1.
It remains to consider 0≤M≤(N−1)/N. Over this range, we first reduce the optimization to one parameter. The three coordinate types are ordered by their per-source cache costs: an uncached coordinate requires no cache, a parity coordinate requires 1/N, and a full coordinate requires (N−1)/N. Moving upward in this order never increases any per-request cost: replacing an uncached coordinate by a parity coordinate changes its cost from w to gN(w)≤w, while replacing a parity coordinate by a full coordinate changes its cost from gN(w)≥1 to 1.
Consequently, any feasible pair with N(N−1)λ1+λ2<M can be modified to increase its cache usage without increasing the value of the objective function, until the cache constraint is met with equality. It is therefore sufficient to optimize over pairs satisfying N(N−1)λ1+λ2=M. By (18),
(N−1)λ1+λ2=NM.(41)
We eliminate λ2=NM−(N−1)λ1 and write
rPAP(w;λ1)≜rPAP(w;λ1,NM−(N−1)λ1).
After this substitution, the nonnegativity constraints λ1≥0, λ2≥0, and 1−λ1−λ2≥0 reduce to the feasible interval
max{0,N−2NM−1}≤λ1≤N−1NM.(42)
The resulting one-dimensional optimization is
λ1minw∈[N]maxrPAP(w;λ1),
where λ1 ranges over the interval above. It remains to characterize and minimize the upper envelope of the functions rPAP(w;λ1).
We next determine which request sizes w∈[N] can attain maxu∈[N]rPAP(u;λ1). For a fixed w, substituting λ2=NM−(N−1)λ1 into (20) gives
Thus, each request size defines an affine function of λ1, and the worst-case rate is their upper envelope. To determine where the maximum over w, i.e., maxw∈[N]rPAP(w;λ1), is attained, we separately consider w≤N/2, for which gN(w)=w, and w>N/2, for which gN(w)=N−w+w/N.
For w≥2, this rate is strictly decreasing in λ1. Moreover, λ1≤1 throughout the feasible interval, so the last expression is non-decreasing in w. Hence, the maximum over w≤N/2 is attained at
Having reduced the worst-case rate to three affine functions, we now minimize their upper envelope by comparing how these functions vary with λ1. For w>N/2, define
Γ(w)≜1−N2+N+Nw(2N2−4N+1),
so that Γ(w) is the slope of rPAP(w;λ1) with respect to λ1.
From (43) and (44), the slopes of rPAP(wL;λ1), rPAP(wH;λ1), and rPAP(N;λ1) with respect to λ1 are, respectively,
1−wL,Γ(wH),Γ(N).
For N≥3,
1−wL≤0,Γ(N)=(N−1)(N−2)>0.
Thus, rPAP(wL;λ1) is non-increasing and rPAP(N;λ1) is strictly increasing in λ1.
The sign of Γ(wH) depends on whether N is odd or even, so we consider these two cases separately.
Odd N.
For odd N,
wL=2N−1,wH=2N+1.
The preceding envelope reduction leaves wL, wH, and N as the only candidate request sizes. We first show that the rate at wL never exceeds that at wH. Indeed,
gN(wL)=wL,gN(wH)=wL+2NN+1.
Therefore, (20) gives, for every feasible pair (λ1,λ2),
The slopes of rPAP(wH;λ1) and rPAP(N;λ1) with respect to λ1 are
Γ(wH)=−2NN−1<0
and
Γ(N)=(N−1)(N−2)>0,
respectively. Thus, rPAP(wH;λ1) is strictly decreasing in λ1, whereas rPAP(N;λ1) is strictly increasing. Their unique intersection is equivalently characterized by G(λ1)=0 and occurs at
λ1,bal≜2N2−4N+1N((2N−1)M−1).(47)
The maximum of these two rates is minimized at λ1,bal when the intersection lies in the feasible interval. If the intersection lies to the left or right of this interval, the minimum is attained at the corresponding endpoint.
Case O1: 0≤M≤1/(2N−1).
By (42), the lower endpoint of the feasible interval for λ1 is
max{0,N−2NM−1}.
Since
M≤2N−11<N1,
we have NM - 1 < 0, so this lower endpoint equals 0. Moreover, (47) gives
λ1,bal≤0.
The intersection therefore lies at or to the left of the feasible interval. For every feasible λ1, (42) gives
λ1≥0≥λ1,bal.
Since rPAP(N;λ1) is increasing, rPAP(wH;λ1) is decreasing, and the two rates are equal at λ1,bal, we have
Thus, rPAP(N;λ1) determines the upper envelope throughout the feasible interval. Since this rate is strictly increasing, the upper envelope is minimized at λ1⋆=0. Substituting λ1⋆=0 into (41) gives λ2⋆=NM, and
RPAP(N,M)=rPAP(N;0)=N−N(N−1)M.
Case O2: 1/(2N−1)<M≤(N−1)/N.
In this range, (47) gives λ1,bal>0. By (42), the feasible interval is
max{0,N−2NM−1}≤λ1≤N−1NM.
Its upper endpoint is NM/(N−1). The difference between this endpoint and λ1,bal is
N−1NM−λ1,bal=(N−1)(2N2−4N+1)N(N−1−NM)≥0.
Hence, λ1,bal does not exceed the upper endpoint.
It remains to compare λ1,bal with the lower endpoint. If M≤1/N, then NM−1≤0, so the lower endpoint is 0 and is strictly smaller than λ1,bal. If M>1/N, then the lower endpoint is (NM−1)/(N−2), and
λ1,bal−N−2NM−1=(N−2)(2N2−4N+1)(N−1)(N−1−NM)≥0.
Since λ1,bal lies in the feasible interval throughout Case O2, the upper envelope is minimized at
At M=(N−1)/N, the optimal pair becomes (λ1⋆,λ2⋆)=(1,0) and the rate becomes 1, consistent with the full-coordinate regime.
Even N.
For even N, assume N≥4. Then
wL=2N,wH=2N+1.
By (46), only the rates corresponding to wL, wH, and N can determine the upper envelope. Their dependence on λ1 is particularly simple. For wL=N/2,
rPAP(wL;λ1)=2N−2N−2λ1,
which is strictly decreasing in λ1. For the other two request sizes,
Γ(wH)=2N(2N−1)(N−2)>0,Γ(N)=(N−1)(N−2)>0.
Hence, both rPAP(wH;λ1) and rPAP(N;λ1) are strictly increasing in λ1.
We first determine when λ1=0 minimizes the upper envelope. By (42), this choice is feasible precisely when M≤1/N.
If one of the two increasing rates attains the maximum at λ1=0, then increasing λ1 increases that rate and cannot reduce the upper envelope. We therefore compare the three rates at λ1=0.
The two differences change sign at M=1/(2N−1) and M=2/(3N−2), respectively. Since 1/(2N−1)<2/(3N−2)<1/N, both transitions occur while λ1=0 is feasible. These two thresholds give the following three ranges of M.
Case E1: 0≤M≤1/(2N−1).
Both differences in (49) are nonnegative, so (48) gives
rPAP(N;0)≥rPAP(wH;0)≥rPAP(wL;0).
Thus, the upper envelope at λ1=0 equals rPAP(N;0). For every feasible λ1≥0, the monotonicity of rPAP(N;λ1) gives
w∈[N]maxrPAP(w;λ1)≥rPAP(N;λ1)≥rPAP(N;0).
Therefore, the upper envelope is minimized at λ1⋆=0. Equation (41) then gives λ2⋆=NM, and
RPAP(N,M)=rPAP(N;0)=N−N(N−1)M.
Case E2: 1/(2N−1)<M≤2/(3N−2).
The first difference in (49) is negative, whereas the second is nonnegative. Hence,
rPAP(wH;0)≥max{rPAP(wL;0),rPAP(N;0)},
so the upper envelope at λ1=0 equals rPAP(wH;0). For every feasible λ1≥0, the monotonicity of rPAP(wH;λ1) gives
Therefore, the upper envelope is again minimized at λ1⋆=0. By (41), λ2⋆=NM, and
RPAP(N,M)=rPAP(wH;0)=2N+1−23N−2M.
Case E3: 2/(3N−2)<M≤(N−1)/N.
For 2/(3N−2)<M≤1/N, (49) shows that rPAP(wL;0) strictly exceeds both increasing rates at λ1=0. Thus, a sufficiently small feasible increase in λ1 decreases the upper envelope. For M>1/N, λ1=0 is infeasible. We therefore seek a minimizer with λ1>0.
In this regime, the rate rPAP(wL;λ1) decreases with λ1, whereas rPAP(wH;λ1) increases. Their unique intersection is
λ1,bal(e)≜(3N−1)(N−2)N((3N−2)M−2).(50)
We first verify that this intersection lies in the feasible interval (42). The lower bound on M in Case E3 gives λ1,bal(e)>0, and
N−1NM−λ1,bal(e)=(N−1)(3N−1)(N−2)2N(N−1−NM)≥0,
so the intersection does not exceed the upper endpoint. If M≤1/N, the lower endpoint in (42) is 0 and is therefore smaller than λ1,bal(e). If M>1/N, then the lower endpoint is (NM−1)/(N−2), and
λ1,bal(e)−N−2NM−1=(3N−1)(N−2)N−1−NM≥0.
Thus, (50) is feasible throughout Case E3.
Since rPAP(wL;λ1) decreases and rPAP(wH;λ1) increases, their common value at the feasible intersection λ1,bal(e) is a lower bound on the worst-case rate. To show that this lower bound is attained, it remains to verify that the third candidate rate, rPAP(N;λ1), does not exceed this common value at the balancing point. Substituting (50) into (45) gives
Together with (46), this shows that the upper envelope at λ1,bal(e) equals the common value of the rates for wL and wH. The preceding lower bound therefore proves that
At M=(N−1)/N, the optimal pair is (λ1⋆,λ2⋆)=(1,0) and the rate is 1, matching the full-coordinate regime.
APPENDIX C FINITE-LENGTH REALIZATION
Fix rational λ1,λ2≥0 with λ1+λ2≤1 and (N−1)λ1+λ2≤NM. Choose L so that λ1L,λ2L,λ1L/N, and λ2L/N are integers. Partition [L] into full, ABO, and uncached sets of the prescribed sizes. Assign exactly λ1L/N full coordinates and λ2L/N ABO coordinates to each source. Source i caches the N−1 nonlocal symbols at each of its assigned full coordinates and one ABO parity at each of its assigned ABO coordinates. Its cache image has size
2L[(N−1)λ1+λ2]/N.
The cached symbols at a full coordinate are independent, and an ABO parity is a nonzero linear form. Different coordinates involve disjoint file symbols, so the stated image size is exact. The delivery rules in Section IV recover every requested coordinate. Each source's transmitted nonzero linear forms also involve disjoint symbols, so the logarithm of its message image size equals its transmitted bit count. Summing these counts gives (20).
For a real feasible pair (λ1,λ2), choose rational sequences 0≤λ1,k≤λ1 and 0≤λ2,k≤λ2 converging to these parameters. Then λ1,k+λ2,k≤1 and (N−1)λ1,k+λ2,k≤NM, so every approximating pair is feasible. The maximum of the finitely many request rates in (20) is continuous. The rational constructions therefore approach the rate of (λ1,λ2) while respecting the same cache budget, proving asymptotic achievability.