Manuscript Offprint
arXiv:2610.19898Bilinear Compressive Security with Finitely Many Samples
Axel Flinth, Semira Einsele, Matilda Kylberg, Hubert Orlicki, Gerhard Wunder.
Abstract—Bilinear Compressive Security (BCS) is a lightweight encryption scheme that combines compressed sensing with a fresh random convolution filter to improve resistance against key-recovery attacks under key reuse. Previous work derived information-theoretic guarantees for BCS by relating key identifiability to phase retrieval under the assumption that an adversary has access to the full ciphertext distribution induced by the random filter. In practice, however, an adversary only observes finitely many encryptions, leaving the security of BCS in the finite-sample regime largely unexplored.
In this paper, we study key recovery from only finitely many observations. We first develop a covariance-based attack that estimates the linear measurements from repeated encryptions of the same plaintext and subsequently recovers the secret measurement matrix. We analyze the estimation procedure and derive finite-sample guarantees together with corresponding sample-complexity bounds. We further investigate the complete attack experimentally and compare its observed recovery behavior with the previously established information-theoretic identifiability results.
Our experiments show two qualitatively different recovery regimes on the structure of the measurement matrix. For dense matrices, including Gaussian matrices, the number of measurements required for successful recovery appears to grow linearly with the signal dimension. This differs from the worst-case behavior suggested by information theory. In contrast, for matrices with sparse rows, we observe a quadratic growth consistent with the theoretical bound.
These results suggest that the sparsity structure of the measurement matrix plays an important role in the security of BCS and should be taken into account when selecting parameters and designing practical instances of the scheme.
I. INTRODUCTION
Compressed sensing [3], [4] enables the recovery of a sparse signal from a reduced number of linear measurements
provided that the measurement matrix satisfies suitable structural conditions, such as the restricted isometry property [5]. In addition to reducing the dimensionality of the transmitted data, this observation has naturally motivated lightweight communication schemes in which the measurement matrix Q is shared as a secret key: Alice transmits Qx, while Bob reconstructs the original x using a compressed-sensing recovery algorithm. Such constructions are attractive in resource-constrained communication settings because compression and encryption are performed simultaneously.
By letting Q be unknown to an eavesdropper, this communication scheme naturally offers a layer of security [6], [7]. The security of this linear construction, however, deteriorates when the same secret measurement matrix is reused [8], [9]. If an adversary Eve obtains sufficiently many plaintext-ciphertext pairs , then the secret matrix Q can be recovered by solving a linear system. In particular, n linearly independent plaintexts uniquely determine a measurement matrix with n columns. Consequently, without additional randomization, key reuse provides no information-theoretic protection against sufficiently strong known- or chosen-plaintext attacks.
The distribution of h is public, while its concrete realization is neither transmitted nor stored. Bob, who knows Q but not h, recovers the plaintext by solving a sparse blind deconvolution problem. Under suitable assumptions on the sparsity of the message x and the filter h, existing efficient blind deconvolution recovery algorithms such as HiHTP [10] and sparse power factorization [11], [12] allow efficient recovery with high probability.
The random filter hides the linear measurement from the adversary and changes the key-recovery problem. In the mentioned [1], the identifiability of the secret codebook Q and its connection to phase retrieval was studied. In particular, it established conditions under which different codebooks cannot be distinguished, even if Eve has access to the full ciphertext distributions. However, it leaves the problem whether Eve can recover the codebook when only finitely many ciphertexts are available open.
The use of fresh randomness to prevent key recovery under repeated observations is also familiar from cryptographic constructions based on the Learning Parity with Noise (LPN) problem. In LPN, randomness enters additively through Bernoulli noise, whereas in BCS it enters multiplicatively through the random convolution filter. We mention this analogy only at a conceptual level; the resulting recovery problems are otherwise different.
A. Flinth and M. Kylberg are with Umeå University, Sweden
H. Orlicki is with Cracow University of Technology, Poland
S. Einsele and G. Wunder are with Freie Universität Berlin, Germany
Part of this work was presented at the IEEE International Conference on Communications (ICC) 2026 [1], and in Kylberg's Master's thesis [2].
B. Injectivity and practical recoverability in the infinite sample regime
As mentioned, a preliminary version of BCS together with its information-theoretic security analysis was presented by a subset of the authors in [1]. There, the security of BCS was studied in an idealized known- and chosen plaintext setting in which the adversary has access to perfect knowledge of the ciphertext distributions induced by the random filter conditioned on different plaintexts . In other words, the eavesdropper is assumed to have access to an infinite amount of samples , for each . An injectivity result was shown: Under the weak assumption that the distribution of is phase-symmetric, there exists two non-equal codebooks that cannot be distinguished from the -distributions if and only if the vector cannot be determined from the knowledge of the amplitude measurements . That is, if and only if the do not do phase retrieval [13]. Using this connection, it was shown that when the messages are -sparse, recovery of in general necessitates observation from , rather than the needed for ordinary, linear, compressed sensing.
Crucially, the result shown in [1] is an injectivity result: It only gives a condition when there exists two that are confounded by the BCS protocol – it does not give a condition that implies that every is confounded. In this work, we will therefore perform a more thorough numerical study of the relevance of the injectivity result for practical recovery.
C. A practical attack for the finite sample regime
Another limitation of the analysis from [1] is the assumption that the adversary is assumed to be given perfect knowledge of the ciphertext distributions directly. In practice, they instead only have access to finitely many samples from the distributions of ciphertexts from each plaintext. The present paper intends to bridge this gap, by proposing and analyzing a practical attack only needing access finitely many samples of the . We will also describe designs of the filter and codebook in which the distribution can be recovered from a single sample, and the finite sampling regime hence provides no extra layer of security.
D. Contributions
Our main contributions are as follows.
• We develop a practical covariance-based key-recovery attack for BCS in the finite-sample setting. The attack estimates the hidden measurements projectively (i.e. modulo unit scalars) from repeated ciphertexts, and subsequently reconstructs the secret measurement matrix. We give sample complexity bounds and describe failure cases.
• We give a complementary single-sample result showing that, for particular structured choices of the codebook and the filter, a finite sample setting provides no additional level of security compared to the infinite-sample setting.
• We perform an extended numerical study to quantify the gap between worst-case identifiability and recovery of concrete codebooks. We find that dense codebooks exhibit an approximately linear recovery threshold in the signal dimension, whereas codebooks with sparse rows exhibit quadratic -type behavior suggested by the information-theoretic bound.
- Finally, we complete the preliminary conference version by providing full proofs of the information-theoretic identifiability results.
Our results separate two distinct aspects of key recovery in BCS: the identifiability of the codebook from the projective measurements , and the statistical difficulty of estimating these measurements from finitely many ciphertext observations. Our experiments further show that practical codebook recovery depends strongly on the structure of the sensing matrix, while the feasibility and sample complexity of our finite-sample attack depend on the distribution of the random filter.
The remainder of this paper is organized as follows. Section II introduces the system model and adversarial setting. Section III revisits the information-theoretic identifiability analysis, and Section IV provides the complete proof of our guarantees. Section V presents the finite-sample recovery attack together with its theoretical analysis. Experimental results are reported in Section VI, followed by a discussion and conclusion.
II. SYSTEM MODEL
We begin by giving a formal definition of the BCS scheme, and subsequently discuss its correctness, and the adversarial observation model.
A. Notation
Vectors and matrices are defined over C unless stated otherwise. The Euclidean and Frobenius norm are denoted by and , respectively. The support and sparsity of a vector v are denoted by
A vector is called s-sparse when .
For a matrix , we write and for its th row and th column, respectively. The circular convolution of two vectors is denoted *, and the discrete Fourier transform by . The Fourier transform of a vector is written as . For convenience, we will define the Fourier transformation of a matrix differently: , .
Let denote the unit circle in . For , let
We denote the corresponding quotient space
and write for the equivalence class of modulo a global phase.
B. Bilinear Compressive Security
The Bilinear Compressive Security (BCS) scheme, introduced in [1], combines compressed sensing with sparse blind deconvolution to provide lightweight encryption that remains resistant to key-recovery attacks under key reuse. The scheme is parameterized by
(i) a secret measurement matrix (codebook)
shared between Alice and Bob, and
(ii) a public probability distribution D of convolution filters
The concrete realization of the filter is generated independently for every encryption and is never transmitted nor stored. The BCS scheme consists of the following algorithms.
a) Key generation: Alice and Bob agree on a secret measurement matrix
The distribution D from which random filters are drawn is publicly known.
b) Encryption: To encrypt a plaintext , Alice first computes the compressed representation
She then samples an independent random filter and forms the ciphertext
The filter realization is discarded immediately after encryption, so encrypting the same plaintext twice produces different ciphertexts with overwhelming probability.
c) Decryption: Bob receives the ciphertext y and knows the sensing matrix Q, but not the realization of the random filter. Recovering the plaintext therefore amounts to solving the blind deconvolution problem
We discuss the corresponding recovery guarantees in the following subsection.
C. Correctness
The correctness of the BCS scheme follows from existing recovery guarantees for sparse blind deconvolution. Recall that Bob observes
and knows Q, but not the realization of the random filter h.
As is standard in blind deconvolution, is identifiable only up to a nonzero scaling factor, since
for every . Under suitable assumptions on , , and , this is the only ambiguity.
Several efficient algorithms have been proposed for sparse blind deconvolution, including convex optimization

Fig. 1: A graphical depiction of the BCS scheme, and the considered known plaintext attack.
approaches [14], alternating minimization [15], Sparse Power Factorization [12], and HiHTP [10], [11].
The following theorem summarizes the recovery guarantees most relevant to BCS.
Theorem 1 ([11], [12]). Let be a random matrix with independent Gaussian entries, and suppose that the plaintext is -sparse and the filter is -sparse. Then there exists a constant such that if
algorithms such as HiHTP and Sparse Power Factorization recover the pair , up to the inherent scaling ambiguity, with high probability over the draw of Q. If, in addition, both h and x satisfy suitable spectral flatness conditions, Sparse Power Factorization requires only
measurements.
Throughout this paper we assume that the parameters of the BCS scheme are chosen such that decryption succeeds with overwhelming probability. The particular choice of the blind deconvolution algorithm is not important for the subsequent security analysis; we only require that legitimate users can reliably recover the transmitted plaintext under the stated assumptions. For further details on sparse blind deconvolution and its recovery guarantees we refer the reader to [2], [11].
D. Complexity
On the encryption side, BCS introduces only the additional cost of sampling a fresh filter h and computing the convolution
after the linear measurement . The filter does not need to be stored or transmitted and the convolution is simple to implement.
Decryption is computationally more demanding, since Bob must solve a blind deconvolution problem, and at the same time recover the unknown filter and plaintext. Its exact computational cost depends on the chosen recovery algorithm. However, there do exist numerically efficient algorithms to perform the blind deconvolutions. The sparse power factorization essentially boils down to repeatedly applying operations used for linear recovery, and hence has essentially the same cost.
One has to take into account that the measurement matrix Q needs to have more rows in order for blind recovery to succeed compared to solving the standard linear compressed sensing problem . However, for a fixed filter-sparsity , the number of required measurements still grows linearly with the number of non-zero elements in x. Thus, for fixed filter sparsity , the dependence on the plaintext sparsity s remains linear, up to logarithmic factors, as in standard compressed sensing.
E. Adversarial Model
Throughout this paper, we consider a strong known-plaintext or chosen-plaintext adversary, denoted by Eve. The adversary knows the public parameters of the scheme, including the distribution D of the random convolution filters, but neither the secret sensing matrix
nor the individual filter realizations used during encryption.
Eve observes plaintext–ciphertext pairs
where
and each filter
is sampled independently. Here, M denotes the number of distinct plaintexts available to Eve, and r the number of independent encryptions observed for each plaintext. In the known-plaintext setting, these observations arise from legitimate communications, whereas in the chosen-plaintext setting Eve may choose the plaintexts and obtain repeated independent encryptions of each.
Eve’s objective is to recover the secret sensing matrix Q. Knowledge of Q allows Eve to apply the same blind deconvolution procedure as a legitimate receiver to future ciphertexts. Thus, key recovery compromises the confidentiality of subsequent encryptions under the same measurement matrix.
Our key-recovery attack naturally decomposes into two stages.
First, for each plaintext , Eve uses the repeated ciphertext observations to estimate the corresponding projective codeword by exploiting the statistical properties of the random filters. Second, the resulting projective measurements
are used to reconstruct the secret sensing matrix Q. The first stage is statistical and constitutes the main novel contribution beyond the information-theoretic setting of [1], whereas the second relies on the identifiability results established in the next section.
III. SECURITY ANALYSIS
In this section, we revisit the information-theoretic security analysis of Bilinear Compressive Security. Unlike the finite-sample setting considered later in the paper, we assume here that Eve has access to the exact ciphertext distribution induced by the random filters. This idealized observation model allows us to characterize when the secret measurement matrix is uniquely determined by the available observations. The resulting identifiability results form the theoretical foundation for the finite-sample attack developed in Section V.
A. Attack model
As discussed in Subsection II-E, Eve observes encryptions
for a collection of plaintexts , . In this section, we consider the idealized infinite-sample limit of this adversarial model: for each plaintext , Eve is assumed to know the exact ciphertext distribution induced by the random filter.
This idealization removes the finite-sample estimation problem and allows us to focus solely on the information-theoretic identifiability:
Under what conditions on and do these ciphertext distributions uniquely determine the secret measurement matrix ?
We formalize this idealized observation model as follows:
Attack model 2 (Infinite-sample observation model). Let be plaintexts available to Eve. For each , Eve has access to the exact probability distribution of
Eve has complete knowledge of the filter distribution D, and can observe as many ciphertexts , as needed, but does not observe the individual filter realizations.
This model is highly favorable to Eve. In particular, exact knowledge of the ciphertext distributions corresponds to the idealized limit of arbitrarily many independent encryptions of each plaintext. In Section V, we return to the practical setting in which Eve observes only finitely many ciphertexts per plaintext.
B. Preliminaries
What should we consider a successful recovery of the secret key Q? We first formalize what it means to recover the measurement matrix Q. Note, since here is a scaling ambiguity, the ciphertext distributions considered below may be invariant under multiplication of Q by a global unit scalar, we consider key recovery up to such a global phase. Recall that .
Definition 3 (Key retrieval). Let have a known distribution . We say that a set of vectors can retrieve the key for -distributed if the map
from to the set of probability distributions on is injective, where the right-hand side denotes the probability distribution induced by the draw .
Remark 4. The intuitive meaning of Definition 3 is most easily explained in the negative: Key retrieval fails, if there exist two keys , that are not unit scalar multiples of each other but for which and have the same distribution for every .
Before we get to the actual assumption on D that we wish to study, we shortly discuss, as in [1], the case where h is standard complex Gaussian with covariance matrix I. This example illustrates the main ideas of the analysis.
By the Fourier convolution theorem, the distribution of is equivalently described in the Fourier domain by
where denotes the pointwise product. Since is standard complex Gaussian, so is its Fourier transform . Consequently, its entries are independent and rotationally symmetric, so the ciphertext distributions will never reveal more than the magnitude vectors , , where denotes the Fourier matrix.
Since F is invertible, recovering Q from these magnitude vectors is equivalent to recovering from
Let denote the th row of N. These observations are precisely the magnitude measurements
However, these measurements can never determine up to a single global phase: Multiplying each row with different unit scalars leaves all measurements in (1) unchanged. Thus:
Proposition 5. No set of vectors can retrieve the key for standard complex Gaussian distributed h.
Remark 6. We stress that the above proposition is only of illustrative relevance. Indeed, when h is Gaussian distributed, it will almost surely have all entries non-zero, making the discussed sparse blind deconvolution procedures inapplicable.
Now let us now take a step back and inspect (1). Mathematically, it is a system of uncoupled phase retrieval problems.
Definition 7 (Phase retrieval). Let be a set of vectors in . The problem of recovering a vector up to a global phase from the measurements
is called the phase retrieval problem. We say that vectors do phase retrieval if the map
is injective.
There are many sets of vectors that do phase retrieval. In fact, a generic set of vectors in with does [13]. The reason (1) cannot be solved is hence not that we are dealing with a set of phase retrieval problems, but rather that they are uncoupled. Indeed, a set of vectors that do phase retrieval will be able to recover each row of up to a unit scalar , but since these unit scalars may be different, that will not reveal up to one global unit scalar.
C. Phase symmetric filters
As already discussed, the assumption that the filters are standard complex Gaussian is too powerful to allow for codebook retrieval: the independence of the entries of their Fourier transforms leads to the uncoupled phase-retrieval problems in (1). On the other hand, some randomness in the filter distribution D is necessary for BCS to provide additional security over the linear compressed-sensing case. Namely, if D is deterministic and, for example, always outputs the trivial filter , then
and the problem reduces to the linear case.
It turns out that one only needs the following non-restrictive assumption in order to obtain security:
Definition 8 (Phase-symmetric filter distribution). A filter distribution D is phase symmetric if, for and for every unit scalar , the random filters h and have the same distribution.
This condition is fulfilled by many distributions. For instance, Alice may use the identity filter multiplied by a uniformly random unit scalar, leaving the vector minimally confounded. Another, more general, class of models that are phase symmetric is the following:
where a random support is first selected and its nonzero entries are then filled using entries of a possibly non-standard Gaussian vector.
Phase symmetry implies the following necessary condition for key retrieval:
Lemma 9. If is phase symmetric, a set of vectors can only retrieve the key if the map
\begin{align*}\Phi:\mathbb{C}^{m\times n}/\mathbb{S}^{1}&\to(\mathbb{C}^{m}/\mathbb{S}^{1})^{M},\\[Q]&\mapsto([Qx_{k}])_{k\in\{1,\ldots,M\}}\end{align*}is injective.
Proof. Assume that is not injective. Then there exist matrices that are not unit scalar multiples of each other as well as unit scalars such that
Consequently,
Now, since is phase symmetric, and have the same distribution. Hence, the above equation shows that and have the same distribution for every . Therefore, and cannot be distinguished from ciphertext distributions, and the key cannot be retrieved.
Remark 10. It should be noted that Lemma 9 is a one-way statement: the injectivity of is necessary but not sufficient for key retrieval. In particular, we do not claim that can be determined from the ciphertext distributions induced by , let alone from finitely many samples of these distributions.
Indeed, Proposition 5 gives a concrete and simple counterexample to the converse of Lemma 9. A standard Gaussian filter h is phase-symmetric, but the proposition shows that the key cannot be retrieved, irrespective of whether is injective.
What is the mathematical structure of the problem of inverting the map ? Recall that
so the image of [Q] consists of M vectors , each determined only up to an individual unit scalar. Equivalently, the amplitudes and relative phases for each are known, while its global phase remains undetermined.
Variants of relative phase retrieval, including practical recovery algorithms, were studied in [16]. However, that work does not provide fundamental guarantees of injectivity of required here. We establish the following Theorem, which is an interesting theoretical contribution of its own.
Theorem 11. The map from Lemma 9 is injective if and only if the set of vectors does phase retrieval.
The proof of Theorem 11 is postponed to the next section as it is quite involved. Let us here instead use it to derive our fundamental security result. Combined with Lemma 9, the theorem shows that as long as the distribution of h is guaranteed to be sparse, universal retrievability of the key will require observing ciphertexts for a number of plaintexts quadratic in the dimension n, in contrast to the linearly many needed to break the linear compressed sensing scheme.
The following characterization of phase retrieval will be useful for proving our main result.
Lemma 12 ([13, Lemma 9]). A set of vectors does phase retrieval if and only if there is no nonzero Hermitian of rank one or two such that
We can now state our main information-theoretic security result.
Theorem 13. Let and let be phase symmetric. Then no sets of s-sparse vectors can retrieve the key (a) for any if ,
(b) if and
Proof. By Theorem 11 and Lemma 9, it suffices to show that does not do phase retrieval.
Fundamental lower bound results on phase retrieval as given in Theorem 3 in [17], show that phase retrieval is not possible when
which already proves one part of (b).
For the remaining claims, by Lemma 12, it suffices to construct a nonzero Hermitian matrix H of rank one or two satisfying
Now let us prove (a). Suppose that the are 1-sparse. Then each matrix is diagonal. For any distinct , the matrix
is Hermitian, has rank two, and has zero diagonal. Thus,
Implying that does not do phase retrieval, independently of .
Now let us prove the remaining part of (b). Suppose now that . Each s-sparse vector has at most ordered pairs of distinct indices such that both and belong to . Hence, the vectors together cover at most
of the ordered pairs with .
If
then there must exist distinct such that, for every , at least one of and does not belong to . Thus,
We let
which again yields in a nonzero Hermitian matrix of rank two, satisfying
By Lemma 12, the vectors do not do phase retrieval, which proves the claim.
Before moving on to the proof, we discuss a few remarks concerning the interpretation of Theorem 13. First, it should be stressed that the theorem is an injectivity result. It states that under certain condition, there will exist two codebooks Q and that cannot be distinguished through an observation of . It hence does not say that there for every given codebook Q exists a that it is confounded with. This means that certain classes of codebooks Q may be retrievable from the measurements with fewer than quadratically many . On the other hand, the theorem only concerns injectivity. It does not say that recovery of Q through an efficient algorithm is possible as soon as the number of measurements exceeds the threshold. We study these questions empirically in Section VI. As we will see, recovery of Q from the observation of indeed is possible, and the quadratic threshold seems to only be realised for special distributions of the Q.
The result in part (a) for 1-sparse plaintexts deserves a special comment. While at first glance, it might seem very strong, it should be interpreted with caution in terms of safety for the communication scheme. In the case of 1-sparse , the determination of up to a global scalar is namely not necessary in order for Eve to decrypt messages. Instead, it suffices to be able to calculate for any set of 1-sparse vectors from observations of the ciphertexts. Doing so means that every column of is known up to a scalar. When phased with decoding a new unknown sparse message , one can simply compare the new with the known columns, and from that determine for which one has modulo unit scalars.
One should also note that we thus far only have been conserved with the idealised infinite sampling setting. We will return to the finite sampling setting once we have presented the proof of Theorem 11.
IV. PROOF OF THEOREM 11
In this section we prove Theorem 11. We begin with the following auxiliary result, which allows us to circumvent the slightly inconvenient structure of the space .
Lemma 14. The map
is injective.
Proof. First, it is clear that the map is well defined. Namely, if for some , then
Now suppose that . Inspecting the diagonals of that matrix equation, we obtain
In particular, if , then also , and thus . Else, choose an index such that . Since , there exists a such that . Now, since , we may argue that
and thus
Multiplying this equation by yields for every . Hence, implies that , and thus . Therefore, is injective, which is what we wanted to prove.
An immediate consequence of Lemma 14 is that is injective if and only if the map
is injective. More explicitly,
With this fact in our hands, proving one direction of Theorem 11 is straightforward.
Proposition 15. If is injective, then does phase retrieval.
Proof. We prove the contrapositive. Assume that does not do phase retrieval. Then there exist two vectors with such that
But with
where is the first standard basis vector, we get
It is also clear that : if for some , then , which contradicts . Hence, is not injective, and by Lemma 14, neither is , which proves the claim.
To prove the other direction of Theorem 11 is considerably more involved. The first step is to realize that the recovery of Q from can be interpreted as a generalized phase retrieval problem, as defined in [18].
Definition 16 (Generalized phase retrieval). Let be a set of Hermitian sesquilinear forms on a complex Hilbert space . The problem of recovering up to a global phase scalar from the measurements
is a generalized phase retrieval problem. We say that the forms do generalized phase retrieval if the map
is injective.
Ψ does not directly define a generalized phase retrieval problem as defined above. To relate this definition to Ψ, consider as a complex Hilbert space and define, for and , so Ψ define a number of sesquilinear forms:
These forms are not Hermitian in general, but instead satisfy
Le therefore define the following construction:
Both forms and are Hermitian, and we have
In fact, and are the real and imaginary parts of , respectively. So we have
Thus, is injective if and only if the collection of forms does generalized phase retrieval.
In order to show the other direction of Theorem 11, we hence need to argue that the do generalized phase retrieval when the do classical phase retrieval. To do so, we will need some fundamental results from the literature about generalized and classical phase retrieval, which we now present. We have slightly reformulated the statements to better match our notation.
Theorem 17. (a) [18, Theorem 2.2] The forms do generalized phase retrieval if and only if there do not exist with
such that
for all and .
(b) ([13, Theorem 4]) If does phase retrieval, then
for every . That is, the real span of the vectors is equal to the orthogonal complement with respect to the real inner product of the vector .
(c) ([13, Theorem 7], [19, Theorem 2.2]) If does phase retrieval, then it has the complement property: for every subset of , either or spans .
We now have all the tools to show the other direction of Theorem 11.
Proposition 18. If do phase retrieval, then is injective.
Proof. By Theorem 17(a), Lemma 14, and the discussion above, it is enough to prove that for any pair of matrices satisfy
we must have . If , it is surely in , so that case can be excluded.
Write
We begin by assuming that all . We will return to the other case later.
Taking , the condition gives
for every .
By Theorem 17(b), , and the fact that the do phase retrieval
Hence, by taking real linear combination of the above equation, we obtain that
and thus
Hence, for every , there exists such that
It remains to show that the can be chosen independently of . Substituting and into
and defining
gives
By simply looking at the real and imaginary parts separately and utilizing that , we see from (4) that either or , and that (5) implies that either or , (5) implies that either or .
Thus, if , then
But that means
Let
For every , we then have . By the complement property from Theorem 17(c), either or spans . In the first case, , while in the second case , both of which we have ruled out. Since and are arbitrary, we have shown that
whenever .
It follows that there exists a single such that
for every i with .
It remains the case when certain . In that case, we however have for all and . The equations
therefore imply that
for all j and k, i.e.,
for all , .
Since by assumption , there exists some j such that . Applying the complement property as above to this and shows that either or . Since by assumption, we must have . Thus, for every i with ,
for any given . Together with the previous case, this gives
for some common , and consequently,
which concludes our proof.
This concludes the proof of Theorem 11, since it is the combination of Proposition 15 and Proposition 18.
V. LEARNING FROM FINITE SAMPLES
Until now, Eve has been granted an idealized advantage: unlimited access to the distributions . This assumption is analytically convenient but practically unrealistic, as it requires arbitrarily many encryptions of each plaintext. In this section, we drop this idealization and ask if Eve's attack survives when instead we only let her observe finitely many samples of each .
A. A no-go case
We first show that if Bob and Alice are careless in their design of Q and D, namely if h has its nonzero values concentrated, the filter provides no additional security whatsoever.
The idea is that, for certain configurations of Q and h, Eve can use the blind deconvolution algorithm in [20] directly to recover modulo unit scalar, without ever drawing samples of h - making the role of the filter irrelevant. The algorithm in [20] exploits a simple separation property and is designed to retrieve a pair from only the observation of . For it to work, we need to make strong structural assumptions on u and v, namely that the non-zero entries in u all are concentrated in a short block of indices, while the nonzero indices in v are sufficiently spread out. Then, the convolution will consist a small number of separated copies of u, each multiplied with a different entry , written next to each other. From this, u and v can be read directly up to the unavoidable scalar ambiguity. See also Figure 2
Remark 19. The authors of [20] go further in that they also consider the case where is only partially observed. Here, we only use the fully observed case as a theoretical tool.
Let us formalize the aforementioned structural assumptions.
Definition 20. (a) A vector is -separated if , and writing
satisfies
We denote the set of all such vectors by .
(b) A pair is -structurally sparse if
and
i.e., u has its nonzero entries concentrated among its first indices, where and v is -separated.
The algorithm in [20] applies to a pair whenever it is -structurally sparse. The following condition on the design of Q guarantees that this will be the case for all values of .
Definition 21. For a matrix , let denote the i-th row of Q, and let
denote the set of indices of its nonzero rows.
We say that Q satisfies the -structure if and writing
we have
Indeed, if we assume that Q satisfies the -structure, and has its nonzero entries concentrated among the first -zero indices, then is -structured, and Eve can determine modulo a scalar from a single observation . A formal statement is as follows.
Theorem 22. Suppose Q satisfies the -structure, and that
meaning has all nonzero values among its first entries. Further suppose that the norm of is a known positive constant. Then Eve learns the mapping in Lemma 9 from a single observation of each

Fig. 2: Illustration of the separation property used in Theorem 22. Note that if the support of v is not sufficiently separated, the copies of u in will start overlapping each other, making the algorithm not applicable.
Proof. Let us fix . Since satisfies the -structure,
Indeed, if , then . Thus, has at most nonzero entries, whose indices are separated by more than , and thus,
see also [2, Lemma 2].
If , then and Eve immediately recovers . Otherwise, write
where and
By assumption
Hence, is -structurally sparse. In particular, the locations of the blocks determine , while their relative scalings determine the ratios between the corresponding nonzero entries of . Indeed, since the nonzero entries of are concentrated in its first indices, convolving with spreads each nonzero entry into a block of length . Taking the block corresponding to as a reference, the block corresponding to determines
Hence, is determined up to a common nonzero scalar. Now, since the norm of is a known constant, this scalar is even in and Eve therefore recovers the projective class
Repeating the argument for every , Eve obtains all projective measurements . By Lemma 9, these determine . Hence, Eve learns from a single observation of each .
We emphasize that Theorem 22 does not say that recovering from finitely many samples is easy in general. Instead, it only identifies specific choices of Q and D for which a single observation per plaintext suffices to recover , and Eve hence has a clear path to attacking their communication. While it is easy that such choices can be avoided, the result shows that the hardness of recovering the codebook from finitely many observations will depend on both the filter distribution D, as well as the structure of the measurement matrix Q.
B. A Covariance-based Attack
Let us now present a simple algorithm for estimating from finitely many samples, based on covariance estimation. The algorithm is again based on the Fourier convolution theorem, which says that convolution in the time domain corresponds to pointwise multiplication in the Fourier domain:
Letting
we have
If we consider as fixed, the covariance matrices of and of , respectively, satisfy
Equivalently,
Using our convention for the Fourier transform , this can also be written as
Hence, letting denote the element-wise division, whenever has no vanishing entries, we obtain
Taking the inverse Fourier transform then isolates the rank-one matrix :
By extracting the leading eigenvector of this matrix, is then recovered up to a global phase.
Now, the covariance is known from the public filter distribution , and is simple to estimate from repeated encryptions of the same plaintext . Hence, as long as has no vanishing entries, Eve will be able to estimate modulo unit scalars from finitely many observations of . The Pseudocode for the entire algorithm is given in Algorithm 1.
It is well known that samples are needed to obtain an estimate of a covariance with error less than . Concretely, we have the following result.
Theorem 23. Let
Algorithm 1 Covariance-based recovery of
Require: ciphertext samples with
, and known covariance
Ensure: Estimate of up to a global phase
1: Compute the sample covariance matrix of :
2: Transform the covariance matrices to the Fourier domain:
3: Compute the element-wise ratio in the Fourier domain:
4: Recover the rank-1 matrix via the inverse Fourier transform:
5: Compute the SVD of , extract the leading singular vector and let be its leading eigenpair.
6: Return
where is a constant. For and , if the sample size is at least
then any element of is within of its true value with probability .
The proof of Theorem 23 is derived in detail in [2]. Its proof relies on the subexponential Bernstein inequality (see for example [21]), applicable since each entry of is a sum of subexponential random variables.
This algorithm is simple, but its existence shows that as long as has no vanishing entry, Eve can in principle obtain from finitely many ciphertext samples. Repeating the procedure for the plaintexts gives the measurements required to recover as in Lemma 9. The practicality of the attack boils down to how many samples she needs, and this boils down to how high fidelity the estimate of needs to be. Note that the theorem predicts that the recovery may be quite heavy in – to reach an error of , samples are needed. We investigate this empirically in Section VI.
Equally important to note is however that the algorithm is easy to defend against: First, the bound in Theorem 23 immediately shows that by increasing , more samples are need to obtain the same error. Secondly, it fails completely when contains zero values. It turns out this is the case for several natural choices of the filter distribution, as we show next.
Theorem 24. Consider the model , as in Equation 2. Suppose that either
(a) the entries of b are i.i.d. centered, and the entries of z have equal second moments,
(b) the entries of z are i.i.d. centered, and the entries of b have equal second moments.
Then is a scalar multiple of the identity. Therefore is also a scalar multiple of the identity, and thus, has no vanishing off-diagonal entries. Hence Algorithm 1 cannot recover using the covariance-based method.
Proof. By the law of total covariance [22],
From (2),
Taking expectations pointwise gives
Analogously,
Substituting into (6), gives us
in particular, reduces this to .
Now, assume (a). Since the entries of are centered i.i.d., is a scalar multiple of the identity matrix. Also, by the equal moments assumptions, the diagonal entries of are also equal. Equation (7) therefore shows that also is a scalar multiple of the identity, and consequently also .
The argument is similar in case (b) – here, due to the i.i.d centered distributions of the , is a multiple of the identity matrix. Since in this case have equal diagonal entries, will again be a multiple of the identity matrix.
Remark 25. While Theorem 24 yields a way of defending against Algorithm 1, one should note that we do not claim Eve can’t find another way to estimate . To analyse whether alternative finite-sample attacks are possible for these filter distributions is an interesting question, but beyond the scope of this work.
Remark 26. In [2], it is shown (specifically in Lemmas 11 and 13) that the algorithm can also be rendered inapplicable when . However, in this case, the phase symmetry assumption is violated, which is why we do not present it in detail here.
VI. NUMERICAL EXPERIMENTS
In light of the discussion at the end of Section III, it is important to empirically test whether Q can be recovered from channel observations. We do so by considering two settings in the experiments. In the first, the idealized infinite sample setting, Eve is given directly. This allows us to compare practical recovery with the information-theoretic identifiability results developed in Section III. In the second, the finite-sample setting, must first be estimated from ciphertext observations using the covariance-based attack described in Subsection V-B.
In all experiments, we draw random s-sparse vectors by first drawing their support uniformly at random among all supports of size s, and then populating the selected coordinates with i.i.d. Gaussians, for different values of s. We specify the mechanism for generating Q later, since it differs between experiment runs.
We are quite lenient in deeming a recovery successful: we do so already when the relative error modulo global phase satisfies
We do so to take into account the fact that, any practical scenario, involves a quantization step, meaning that a rough estimate of Q should be likely to suffice for the practical resolution of the blind deconvolution afterwards. Note that this is, if anything, in Eve’s favor.
A. Recovery from Infinite Samples
In the infinite sampling regime, we are tasked with recovering Q directly from the measurements
Our approach to do this is simple: we try fit the values to the values , taking the global phase ambiguity for each vector into account. That is, we minimize the loss function
Note that is well defined independently of the choice of the representative , and can hence be calculated also when each is only known modulo a global unit scalar.
To minimize L, we use the L-BFGS-B optimization algorithm (as implemented in numpy) [23], a quasi-Newton method designed for high-dimensional optimization problems with variable constraints. Unlike full-memory quasi-Newton methods, which require storing and updating the entire Hessian matrix, L-BFGS-B uses a limited-memory approach, retaining only a small subset of gradient and variable updates, making it a good choice for solving large-scale optimization problems. Its effectiveness in addressing similar relative phase retrieval problems has been demonstrated in prior research, which justifies its selection for this study [16], [24].
To make the experiments feasible, we consider relatively small parameter values: and . For different values of messages M and samples per message r we draw 500 instances of Q and , where Q is drawn as a Gaussian random matrix. We apply L-BFGS-B to minimize L, and record the error.
The results are plotted in Figure 3 . There are two clear observations to be made: First, the recovery does get harder with smaller s – and in particular impossible for s = 1, but the effect saturates quite early. This part of Theorem 13 is hence confirmed. It however also shows that it does not tell the full story. Theorem 13 in particular implies that cannot
Success probability, n = 50, m = 5

Success probability, n = 100, m = 3

Fig. 3: Success probabilities for and different s and M. Top: n = 50, m = 5. Bottom: n = 100, m = 3.
be injective for , but recovery occurs much earlier than that in both settings. As we already discussed, this does not contradict Theorem 13, but it is sobering.
As we have discussed above, Theorem 11 and Theorem 13 do not rule out that there are particular classes of codebooks that can be recovered when do not do phase retrieval, and that the Gaussian matrices very likely belong to these sets. Studying the proofs of these theorems, in particular that of Proposition 15, reveals two properties that might make recovery harder.
(i) Having only one nonzero row – the matrices used in the proof of Proposition 15 have this property.
(ii) Having sparse rows – the matrices constructed in the proof of Theorem 13 have this property, and these matrices directly reveal vectors that are confounded by the [13].
This motivates us to test these two properties separately.
We thus test the recoverability of four types of matrices: matrices with one sparse row ((i) and (ii)), many sparse rows (just (ii)), one dense row (just (i)) and many dense rows (neither (i) nor (ii)). We here fix s = 3, m = 3 and vary n between 25 and 200 and M between 100 and 10000. The rows that we generate for matrices of type (ii) only have two nonzero entries, and the indices of the rows for matrices of type (i) are drawn uniformly. Any non-zero entries are generated as i.i.d Gaussians.
In Figure 4, we plot the success rates of the experiments against the two values
The results differ slightly from the corresponding experiment in the conference version [1] of this article. The reason is an improvement of the code this time around – the previous experiments used a derivative-free version of the L-BFGS-B algorithm, whereas we provide it symbolically this time around. This has both sped up experiments, and improved recovery slightly.
| Linear | Quadratic | |
|---|---|---|
| Many dense rows | ||
| One dense row | ||
| Many sparse rows | ||
| One sparse row |
TABLE I: Average KL-distance between predicted and measured probabilities for the different cases. Lower value indicates better fit.
that correspond to linear and and quadratic scaling, respectively. We see that in the cases (both one and multiple) of sparse rows, the recovery threshold fits much better to a logistic curve using (the logarithm) of as a feature than . This is also confirmed when we calculate the average distance between the measured and the (by the logistic regression) predicted probabilities as measured by KL-divergence on the data – it is consistently lower for the fits based on the quadratic features for the sparse row codebooks, and lower for the linear feature fit for the others. Hence, it is first and foremost property (ii) that seems to be important to realize the quadratic growth with .
We conclude that the quadratic scaling predicted by Theorem 13 does not seem to be realized for dense codebooks, but that it does emerge when the are drawn to have sparse rows. Since our pipeline is dependent on the blind deconvolution problem being solvable, and that such guarantees almost always assume that the is drawn according to a dense distribution, this puts an asterisk on our theoretical results. We will discuss this later, but let us first present the results for the finite sample setting.
B. Retrieving the key from finite samples
We now test the layer of security for our protocol given by the fact that only is indirectly revealed through samples. We here concentrate entirely on the case of being dense, since it is more practically relevant. We sample the -vector from a distribution of type (2), with having i.i.d. Bernouilli entries () and Gaussian, with diagonal covariance matrix, with diagonal , where the entries of are absolute values of i.i.d. Gaussian. Note that the latter choice is to ensure that a situation like in Theorem 24 does not occur. In other words, we make sure that Eve is in a position where Algorithm 1 has a chance to succeed. When repeating the below experiments with the covariance of being the identity, the algorithm of course always fails.
a) Theorem 23: First, we validate the -decay rate of the estimation of the vectors predicted by Theorem 23. For , we plot the relative error (modulo global phase) for different values of and in Figure 7. As can be seen, the decay rate is very close to the predicted -rate.
b) Full-pipeline recovery: We now test the empirical recovery performance of the covariance-based attack. That is, given samples from different ,
we first use Algorithm 1 to estimate the values of

Fig. 4: Recovery for the four classes of . Every point in the scatter plots correspond to one set of experiments, and the curves are logistic regression fits. In the two cases with dense rows (above), the recovery is better explained by a linear scaling with of , whereas it with sparse rows (below) is better explained by a quadratic scaling.
We then use those estimates to recover by minimizing . We stay in the setting , and test two sparsity levels and and a wide range of sample counts . The results are plotted in Figure 5, with the results for from above as a reference. The results reveal that the attack per se works – and with a growing number of samples, the performance gets closer and closer to the infinite-sample performance.
While the fact that the attack works is important to note, it is equally important to note that it is very expensive. This is even better illustrated by Figure 6. Here, we plot the recovery performance against the total number of samples , where is the number of distinct plaintexts and the number of samples per ). We see that in order to recover the codebook reliably, Eve empirically needs to observe more than a total of samples. This should be compared to the samples she needs to recover in the linear case.

Success probability, n = 50, m = 5, s = 8
Fig. 5: Recovery probabilities for finite number of samples for n = 50, m = 5 and different values of r. Top: s = 4. Bottom: s = 8.
Success probability, n = 50, m = 5, s = 4

Fig. 6: The recovery probability in dependence on the total number of samples for and . x-scale is logarithmic.

Fig. 7: Log-scaled error of estimated for varying sample sizes and dimensions.
VII. Discussion
The experiments reveal a fundamental gap between our theoretical results and the security of BCS in practice. While the injectivity of is a fundamental source of security of the scheme – if is not injective, there are pairs of codebooks , that cannot be distinguished from an observation of – it is not equivalent to the security of any given codebook. For regular, dense , our experiments instead suggest that a linear cost may suffice. If are instead constructed to have sparse rows, the quadratic scaling fit the results better.
Can Alice and Bob use a Q with sparse rows in our pipeline? Not without extra assumptions. Note that when the rows of Q are sparse, whenever the support of the sparse is disjoint from the support of the rows of Q. Bob will have no chance to recover the message from such measurements. However, if all rows in Q have the same support S, Alice and Bob can always make sure to send sparse messages that themselves are supported on S. They would then effectively obtain a standard blind deconvolution problem of smaller dimension that they are able to solve. The empirical results from above do not directly apply to this modified protocol, at least not when Eve performs a known plaintext attack. If she sees the messages Alice sends, they will reveal the set S, and Eve's recovery problem will also be reduced to a dense problem with a(n appearant) linear scaling. If she, however, needs to choose the messages herself, i.e., perform a chosen plaintext attack, and chooses supports of the messages randomly, Figure 4 gives again a good picture of how her chances of success to recover Q will look like.
One should however note that in any case, our theoretical results and the above discussion always presumes that Eve has access to . This is a very beneficial for Eve. Indeed, our results reveal that if she applies the covariance-based attack, Algorithm 1, she will need a large number of samples to get the same recovery rate as when she is given directly. Now, there is of course the possibility that better algorithms than the one we have considered here exist that require fewer samples. Investigating and analyzing such attacks is an interesting direction for future work.
VIII. Conclusion
In this work, we studied the security of Bilinear Compressive Security in the finite-sampling setting. Building upon the previous information-theoretic analysis, we developed the first practical key-recovery attack based on covariance estimation and analyzed its sample complexity. We further investigated the attack experimentally, and showed that, although key recovery from finitely many ciphertext observations is feasible for suitable filter distributions, it requires substantially more observations than the corresponding attack against ordinary linear compressed sensing.
Our experiments also show an interesting gap between the theoretical worst-case identifiability results and the empirical recoverability of particular codebooks. While the theoretical analysis predicts a quadratic dependence on the relevant sparsity parameter, the empirical recovery transition for dense Gaussian codebooks is better described by a linear dependence for the tested parameters. In contrast, the quadratic scaling is only realized when the rows of the codebook Q are sparse.
Finally, it should be said that the above issue only occurs for the idealized recovery problem, where one assumes that Eve gets access to all . In practice, these measurements must be estimated from finitely many ciphertext observations. Our covariance-based attack shows that this is possible with the help of covariance estimation under additional suitable assumptions on the filter distribution. However, our experiments indicate that this requires many samples. In future work, we intend to investigate this 'computational security'-aspect more thoroughly by considering more sophisticated algorithms for recovery from finite observations.
Declaration of AI usage
We used Claude for assistance when writing the code.
Acknowledgement
AF acknowledges support from the Wallenberg AI, Autonomous Systems and Software Program (WASP) funded by the Knut and Alice Wallenberg Foundation. HO performed his research during an internship at the department of mathematics and mathematical statistics at Umeå University, and acknowledges support from them. GW and SE were supported by the Federal Ministry for Research, Technology and Space (BMFTR) by the "EASEPROFIT: Agile and Post-Quantum-Secure Protocols for the Finance Industry" project, identification number 16KIS2124K, as well as the "6G-RIC: 6G Research and Innovation Cluster" project, identification number 16KISK025. GW is also supported by the German Science Foundation (DFG) within priority program SPP 2378: "ResNets: Resilience in Connected Worlds" under grant WU 598/12-1.
REFERENCES
[1] A. Flinth, H. Orlicki, S. Einsele, and G. Wunder, “Bilinear compressive security,” in ICC 2026-IEEE International Conference on Communications. IEEE, 2026, pp. 1–6.
[2] M. Kylberg, “Security of bilinear compressive security based on finite samples - an analytical study,” Master’s thesis, Umeå University, 2026. [Online]. Available: https://urn.kb.se/resolve?urn=urn:nbn:se:umu:diva-256308
[3] E. J. Candes and T. Tao, “Decoding by linear programming,” IEEE transactions on information theory, vol. 51, no. 12, pp. 4203–4215, 2005.
[4] S. Foucart and H. Rauhut, A Mathematical Introduction to Compressive Sensing. Birkhäuser, 2013.
[5] E. J. Candes, “The restricted isometry property and its implications for compressed sensing,” Compte Rendus de l’Académie des Sciences, vol. 346, pp. 589–592, May 2008. [Online]. Available: http://linkinghub.elsevier.com/retrieve/pii/S1631073X08000964
[6] Y. Rachlin and D. Baron, “The secrecy of compressed sensing measurements,” in 2008 46th Annual Allerton conference on communication, control, and computing. IEEE, 2008, pp. 813–817.
[7] M. Testa, D. Valsesia, T. Bianchi, and E. Magli, Compressed Sensing for Privacy-Preserving Data Processing. Springer, 2019.
[8] T. Bianchi, V. Bioglio, and E. Magli, “On the security of random linear measurements,” in 2014 IEEE international conference on acoustics, speech and signal processing (ICASSP). IEEE, 2014, pp. 3992–3996.
[9] V. Cambareri, M. Mangia, F. Pareschi, R. Rovatti, and G. Setti, “On known-plaintext attacks to a compressed sensing-based encryption: A quantitative analysis,” IEEE Transactions on Information Forensics and Security, vol. 10, no. 10, pp. 2182–2195, 2015.
[10] I. Roth, M. Kliesch, A. Flinth, G. Wunder, and J. Eisert, “Reliable recovery of hierarchically sparse signals for gaussian and kronecker product measurements,” IEEE Transactions on Signal Processing, vol. 68, pp. 4002–4016, 2020.
[11] A. Flinth, I. Roth, and G. Wunder, “Bisparse blind deconvolution through hierarchical sparse recovery,” Advances in Computational Mathematics, vol. 58, 2025.
[12] K. Lee, Y. Wu, and Y. Bresler, “Near-optimal compressed sensing of a class of sparse low-rank matrices via sparse power factorization,” IEEE Trans. Inf. Th., vol. 64, pp. 1666–1698, 2017.
[13] A. S. Bandeira, J. Cahill, D. G. Mixon, and A. A. Nelson, “Saving phase: Injectivity and stability for phase retrieval,” Applied and Computational Harmonic Analysis, vol. 37, no. 1, pp. 106–125, 2014.
[14] A. Ahmed, B. Recht, and J. Romberg, “Blind deconvolution using convex programming,” IEEE Transactions on information theory, vol. 60, no. 3, 2014.
[15] K. Lee, Y. Li, M. Junge, and Y. Bresler, “Blind recovery of sparse signals from subsampled convolution,” 2015. [Online]. Available: https://arxiv.org/abs/1511.06149
[16] J. Kornprobst, A. Paulus, J. Knapp, and T. F. Eibert, “Phase retrieval for partially coherent observations,” IEEE Transactions on Signal Processing, vol. 69, pp. 1394–1406, 2021.
[17] T. Heinosaari, L. Mazzarella, and M. M. Wolf, “Quantum tomography under prior information,” Communications in Mathematical Physics, vol. 318, no. 2, pp. 355–374, 2013.
[18] Y. Wang and Z. Xu, “Generalized phase retrieval: measurement number, matrix recovery and beyond,” Applied and Computational Harmonic Analysis, vol. 47, no. 2, pp. 423–446, 2019.
[19] P. Grohs, S. Koppensteiner, and M. Rathmair, “Phase retrieval: uniqueness and stability,” SIAM Review, vol. 62, no. 2, pp. 301–350, 2020.
[20] C. Hegde and R. Baraniuk, “Sampling and recovery of pulse streams,” IEEE Transactions on Signal Processing, vol. 59, no. 4, pp. 1505–1517, 2011.
[21] R. Vershynin, High-Dimensional Probability: An Introduction with Applications in Data Science, 2nd ed., ser. Cambridge Series in Statistical and Probabilistic Mathematics. Cambridge: Cambridge University Press, 2026.
[22] C. W. Champ and A. V. Sills, “The generalized law of total covariance,” 2022. [Online]. Available: https://arxiv.org/abs/2205.14525
[23] D. C. Liu and J. Nocedal, “On the limited memory bfgs method for large scale optimization,” Mathematical programming, vol. 45, no. 1, pp. 503–528, 1989.
[24] L. Ji and Z. Tie, “On gradient descent algorithm for generalized phase retrieval problem,” in 2016 IEEE 13th International Conference on Signal Processing (ICSP). IEEE, Nov. 2016, p. 320–325. [Online]. Available: http://dx.doi.org/10.1109/ICSP.2016.7877848