Abstract. We study online sparse linear regression (OSLR) where any algorithm is restricted to accessing only b out of d attributes per instance for prediction and b0≥0 additional attributes after prediction, which was proved to be NP-hard. Previous work focused on designing computationally efficient algorithms under regularity assumptions, but did not characterize its information theoretic complexity. In this work, we give the first lower bound on the minimax regret of OSLR and design algorithms with better upper bounds without regularity assumptions. We characterize how minimax regret scales with problem-dependent parameters, capturing the information theoretic complexity of OSLR.
For most online prediction tasks, learning algorithms are assumed to observe all of the attributes of an instance xt∈Rd at each round t. However, the assumption is hard to be satisfied in some real-world scenarios due to various constraints, such as computational constraint, human labors and privacy constraint [5, 9, 12, 17, 16]. For instance, in the task of medical diagnosis of a disease [5], xt contains the results of a large number of medical tests. However, many patients can only
∗ The authors are listed in alphabetical order. This work was supported by the Fundamental Research Funds for the Central Universities. This work was accepted by IJTCS-FAW 2026.
Cao et al.
pay the cost for several medical tests. Thus xt is sparse. Another example is personalized recommendation [12]. Due to privacy constraint, search engines are not allowed to use sensitive attributes of users, such as gender, age, job and so on, xt is also sparse. Algorithms typically make predictions using limited attributes.
Previous work formulated online learning problems with limited access to attributes as online sparse linear regression (OSLR) [13, 6]. At each round t, an adversary gives an instance xt to a learner. The learner uses b, b<d, attributes of xt at most, and outputs a prediction y^t. Then the adversary gives the true output yt. The learner suffers a square loss (y^t−yt)2. The learner aims to minimize the cumulative losses. We usually compare the cumulative losses of the learner with any b-sparse competitor with bounded norm, and define the regret as follows,
in which U>0 is a constant. There is also a relaxation of OSLR, in which algorithms are allowed to observe additional b0=O(blnd) attributes after each prediction. For simplicity, we call the two problems (d,b,b0)-OSLR.
Previous work mainly focused on developing algorithms that run in time O(poly(T,d,b,b0)) per-iteration, and enjoy a regret of O(poly(d,b,b0)⋅o(T)). It has been proved that (d,b,b0)-OSLR is NP-hard [6]. Specifically, there is no algorithm running in time O(poly(T,d,b,b0)) per-iteration and enjoying a regret of O(poly(d,b,b0)⋅T1−δ) for any constant δ>0 unless NP⊆BPP. To address this computational barrier, it is necessary to restrict this problem with regularity assumptions. If the data matrix X=[x1,…,xT] satisfies the restricted isometry property (RIP) [4], then there is an algorithm for (d,b,b0)-OSLR with b0≥2, which runs in time O(poly(d)) per-iteration and enjoys a high-probability regret of O(poly(d,b,b0)ln2(Td)). If the expected covariance matrix E[xx⊤] is non-singular, a stronger one than RIP, then there are algorithms for (d,b,b0)-OSLR with b0≤1 and b0≥2 that run in time O(d) per-iteration and enjoy an expected regret of O(poly(d,k)T) [10]. Suppose X satisfies the compatibility condition [8], a weaker one than RIP, then there are algorithms for (d,b,b0)-OSLR with b0≤1 and b0≥3 that run in time O(poly(d)) and separately enjoy a high-probability regret of O(poly(d,b)T) and O(poly(d,b,b0)ln2(Td)) [15].
However, the information theoretic complexity of (d,b,b0)-OSLR remains unexplored. Specifically, without regularity assumptions, the minimax regret remains unknown. Prior work only gave two upper bounds on the minimax regret. In the case of b0≥2, there is an algorithm that enjoys an expected regret of O(b02d2TlnN) where N=(bd) [6]. In the case of b0≤1, there is an algorithm that enjoys an expected regret of O(N3−2q1−qT3−2q2−q),q∈(0,1) [11]. It seems that we can not obtain a O(T) regret in the case of b0≤1. As the lower bound is unknown, it is unknown that whether the two algorithms are optimal.
Table 1. Regret Lower Bound and Upper Bounds for (d,b,b0)-OSLR. N=(bd)
In this work, we aim to characterize the information theoretic complexity of (d,b,b0)-OSLR. We first prove a Ω(T) lower bound on the minimax regret for all b0≥0 and b0<d−b. Then we separately propose a new algorithm for the cases b0≥2 and b0≤1. All achieve a O(T) upper bound, yet differ in problem-dependent constants. Our main results are summarized in Table 1.
We give the first Ω(dT/(b(b+b0))) lower bound on the minimax regret of (d,b,b0)-OSLR. This lower bound shows how problem-dependent parameters decide the information theoretic complexity of (d,b,b0)-OSLR.
In the case of b0≤1, we propose a new algorithm that enjoys a O(NTlnT) regret bound, improving previous O(N3−2q1−qT3−2q2−q),q∈(0,1) regret bound [11] in terms of the dependence on T.
In the case of b0≥2, we propose a new algorithm that enjoys a O(b0dTlnN) regret bound, improving previous O(b02d2TlnN) regret bound [6].
Our work for the first time characterizes the information theoretic complexity of (d,b,b0)-OSLR. Although there are large gaps between the lower bound and the upper bounds in terms of problem-dependent constants, including d,b,b0, our work reveals that the O(T) factor is optimal, and the number of additional observed attributes b0 may decide the complexity of the problem.
1.2 Technical Challenges
At each round t, suppose St⊆[d] denotes the set of indices of attributes that an algorithm chooses to observe, and wt∈Rb denotes its model parameter. The regret of the algorithm depends on the observations xt, the true output yt, wt and St, making it challenging to analyze the lower bound. Our main techniques aim to reduce OSLR to a more simple problem.
To decouple xt and yt, let xt,i=σtzt,i for all i∈[d] and yt=γσt where both σt and zt,i are Bernoulli random variables, and γ is a constant depending on U. Given (xt,yt), for any w∈Rb and S⊆[d], the square loss only depends on zt.
To decouple St and wt, we construct a sequence of virtual model parameters denoted by wSt,∗∈Rb such that wSt,∗ is the optimal parameter if xt[St] are observed. Thus the loss of wSt,∗ is no more than that of wt, i.e.,
(⟨wSt,∗,xt[St]⟩−yt)2≤(⟨wt,xt[St]⟩−yt)2.
In this way, we only need to analyze the regret lower bound of {wSt,∗}t=1T, which depends on the index sets {St}t=1T and {zt}t=1T, reducing OSLR to the problem of identifying optimal attributes of zt given restricted observations.
2 Problem Setting
Let {(xt,yt)}t∈[T] be a sequence of examples where xt∈X={x∈Rd∣∥x∥2≤X} is an instance, ∣yt∣≤Y is the output, and [T]={1,…,T}. For any vector a∈Rd, denote by ai its i-th coordinate. For any matrix A∈Rm×n, denote by A[i,j] the element on the i-th row and j-th column. For any S={s1,s2,...,sb}⊂[d], we define a[S]:=(as1,as2,...,asb) and A[S,S]∈R∣S∣×∣S∣ the sub-matrix formed by the rows and columns indexed by S. Let N=(bd) and ΔN be the N−1 dimensional simplex. For a convex set Ω and a convex function ψ defined on Ω, the Bregman divergence denoted by Bψ(⋅,⋅), is defined as follows
∀u,v∈Ω,Bψ(u,v)=ψ(u)−ψ(v)−⟨∇ψ(v),u−v⟩.
Let Supp(w)={i∈[d]:wi=0} be the support set of a vector w.
3 Lower Bound on the Minimax Regret
Theorem 1. Let U>0, β≥12, 0<α<1−β3 and γ=min{1,U/3}. Suppose T≥25d and b≤αd. For any d>b0+b≥b≥1, the regret of any algorithm for (d,b,b0)-OSLR satisfies
where the expectation is taken over the internal randomness of algorithm.
Theorem 1 shows a Ω(T) lower bound for any b0≥0. In the case of b0≥2, there is an algorithm [6] that enjoys a O(b02d2TlnN) regret bound, demonstrating that the Θ(T) factor is optimal. However, there is a large gap in terms of problem-dependent constants, including d, b, b0. In the case of b0≤1, there is an algorithm enjoys a O(N3−2q1−qT3−2q2−q), q∈(0,1) regret bound [11]. There are large gaps in terms of problem-dependent constants and T. It remains unknown what the optimal order in T is. In the subsequent sections, we separately design a new algorithm for the cases b0≥2 and b0≤1, demonstrating that the Θ(T) factor is optimal for the two cases and improving the problem-dependent constant factor in the case of b0≥2.
Proof. Step 1: Constructing Hard Instances
For simplicity, let b′=b+b0. Suppose d>b′≥b≥1. We sample an attribute from [d] uniformly, denoted by h, then construct (xth,yt),t=1,...,T as follows.
Multiplying by the random variable σt on γ aims to deteriorate the deterministic learner who always outputs the prediction γ. Let S⊆[d] and ∣S∣=b be a support set. Let S¬=[d]∖S. For each i∈[d], let μi:=E[zt,ih] and G be the expected covariance matrix of zth given by
G=E[zth(zth)⊤]=D+μμ⊤,D=diag(1−μ⊙μ),
where ⊙ is element-wise multiplication.
Given a support set S⊆[d] and a model parameter w, at any round t∈[T], by (2), there is an important observation
Thus the loss function only depends on S and zth. In other words, given (2), OSLR is equivalent to a new partial information online learning problem, which we call it “online sparse linear learning (OSLL).
Definition 1 (OSLL). At each round t, the environment first assigns an observation zth following (2). A learner maintains a model parameter wt, selects a subset St⊆[d], and observes zth[St]. Then learner suffers a loss ℓˉ(wt,St,zth) and observes additional b0 elements of zth.
Given (2), from the perspective of regret minimization, OSLR is equivalent to OSLL. For any parameters {wt}t=1T and support sets {St}t=1T, it must be
in which we define w∗[S∗−]=0 for minimizing its norm. It can be verified that
∥w∗∥2=∥w∗[S∗]∥2≤3γ≤U.
Thus w∗∈Wb.
Step 2: Decoupling the Influence of wt and St on the Regret
The regret depends on the scale of wt,i for all i∈St, and the support set St itself, making it hard to analysis the lower bound. To decouple wt and St, we construct a virtual sequence of parameters {wSt,∗}t=1T where
wSt,∗[St]=γ⋅G[St]−1μ[St],wSt,∗[St−]=0.
As wSt,∗ is the optimal parameter tailed to St, we have
Thus we only need to analyze the regret of {wSt,∗}t=1T that only depends on St. Specifically, if h=St, then the expected per-round regret is given by
For simplicity, let Nh=∑t=1TIh∈St. Next we give an upper bound on Eh[Nh].
Step 3: Analyzing Eh[Nh]
At the end of each round t, the algorithm can observe additional b0 attributes. Thus total number of observed attributes is b′. Denote by Ot the index of observed attributes satisfying ∣Ot∣≤b′. Let rt=zth[Ot]∈{−1,1}b′. It is obvious that at each round t, Ih∈St is a function of the historical observations {rτ}τ=1t−1. Let Ph be the distribution of r=(r1,r2,…,rT)∈{−1,1}d′×T under that the h-attribution follows the distribution in (2). We also define a reference distribution Pu that satisfies for any i=1,…,d, P[zt,ih=1]=21+ρ and P[zt,ih=−1]=21−ρ.
The main idea of the proof is to show that the difference d1∑t=1TEh[Nh]−d1∑t=1TEu[Nh] is small enough where Eh[⋅] is the expectation under Ph, and Eu[⋅] is the expectation under Pu. Given d1∑t=1TEu[Nh]=dbT, we can derive a tight upper bound on d1∑t=1TEh[Nh], yielding a lower bound on the regret.
Finally, it holds that the lower bound for deterministic algorithm implies an identical lower bound for stochastic algorithm.
4 A Better Algorithm for (d,b,b0)-OSLR with b0≥2
The goal is to learn the optimal parameter w∗∈Wb. An intuitive approach is to construct N subsets of [d], each with size b, denoted by Si,i∈[N]. Each element in Si indexes the corresponding attributes of xt. Let wi∗∈Wb be the optimal parameter with Supp(wi∗)=Si. Thus w∗∈{w1∗,…,wN∗} and Supp(w∗)∈{S1,…,SN}. The main idea of our algorithm is to simultaneously learn a probability distribution over the N subsets, and wi∗ for all i∈[N]. Next we detail the algorithm.
At round t, our algorithm maintains N linear models ft,1,ft,2,…,ft,N and a probability distribution pt∈ΔN. For each i∈[N],ft,i is parameterized by wt,i∈Rb and uses the attributes indexed by Si to make a prediction, ft,i(xt)=⟨wt,i,xt[Si]⟩. Our algorithm randomly selects a model ft,It following pt, observes the attributes indexed by SIt, and outputs ft,It(xt). Since the attributes indexed by Si,i=It, can not be fully observed, both the square loss of ft,i and its gradient denoted by ∇t,i are unknown. It is necessary to estimate the loss and the gradient.
Cao et al.
For simplicity, let ct,i:=(ft,i(xt)−yt)2. Unfolding the square loss function, ct,i and ∇t,i can be rewritten as follows
To estimate the loss and the gradient, it is necessary to estimate the covariance matrix xtxt⊤ and xt itself. To this end, we uniformly sample b0 attributes from {xt,1,…,xt,d}∖{xt,i:i∈SIt} without replacement. For simplicity, let Ot={A1,…,Ab0} contain the indexes of the b0 attributes, and P[i∈Ot] be probability that the i-th attribute is observed and P[i,j∈Ot] be the probability that both the i-th attribute and the j-th attribute are observed. Let x^t=(x^t,1,x^t,2,…,x^t,d)⊤∈Rd and ht∈Rd×d satisfy
in which ψ(p) is the negative entropy regularizer [3]. It is easy to prove that ∀i∈/SIt,P[i∈Ot]=d−bb0, and ∀i=j∈/SIt,P[i,j∈Ot]=(d−b)(d−b−1)b0(b0−1).
Omitting the problem-independent constant factors, Algorithm 1 achieves a O(b0(b0−1)(d−b)(d−b−1)TlnN) regret bound. In the case of b0≥2, previous algorithm [6] enjoys a O(b02d2TlnN) regret bound. Our algorithm improves their regret bound by a factor of O(b0d). Our algorithm is similar to the algorithm in [6]. The main differences are the values of the two types learning rates η and {λt,i}t=1T. To be specific, our learning rates are larger than their learning rates by a factor O(b0d). We prove that the expectation of c~t,i2 and ∥∇~t,i∥22 only scale with O(q1), rather than O(q21). Thus the learning rates can scale with O(1/q). Another difference is that our estimators (7) make use of the observed attributes xt[SIt], while their estimators did not use the observed attributes. Thus our regret bound depends on (d−b)(d−b−1) rather than d2.
Cao et al.
Algorithm 2 Algorithm for (d,b,b0)-OSLR with b0≤1
Input: U,b,N
Initialization: {w1,i=0}i=1N
1: for t=1,…,T do
2: Obtain pt by CORRAL (c1,I1,…,ct−1,It−1) (Algorithm 3).
3: Sample It∈[N] following pt and observe xt[SIt];
4: Output the prediction y^t=⟨wt,It,xt[SIt]⟩;
5: Compute {∇~t,i}i=1N by (11)
6: Compute {wt+1,i}i=1N by (10)
7: end for
5 A Better Algorithm for (d,b,b0)-OSLR with b0≤1
If we do not use the additional attribute (in the case of b0=1), then selecting a subset from {Si}i=1N is indeed a N-armed bandit problem where the loss of each action is ct,i. Suppose SIt is selected at round t. If we just follow (10) with importance sampling estimators on the loss and gradient, then the variance of gradient estimator would scale with pt,i1, i∈[N]. The challenge is that it is hard to control pt,i which can approach to 0. For instance, if pt,i=O(T1), then it is impossible to obtain a o(T) regret bound. The same technical challenge arose in the problem of corralling a band of bandit algorithms [1] and online kernel selection under bandit feedback [14]. To address this issue, a customized master algorithm called CORRAL [1] is established to carefully update pt. To be specific, CORRAL follows OMD with the regularizer ψt(p)=−∑i=1Nηt1lnpi and non-decreasing learning rates η1≤η2≤…≤ηT. In this way, there is a negative term in the upper bound that scales with maxtpt,i1, and can be used to cancel with the cumulated gradient variances.
We use CORRAL (Algorithm 3) as a black-box algorithm that receives c1,I1,…,ct−1,It−1 as inputs and outputs pt. Then we sample SIt where It∈[N] follows pt and use ft,It to make a prediction y^t=ft,It(xt). Now we define an unbiased gradient estimator by
∀i∈[N],∇~t,i=pt,i∇t,i⋅Ii=It.(11)
Note that there is no need to define c~t,i, which is constructed by CORRAL. We give the pseudo-code in Algorithm 2.
Theorem 3. Denote by L=maxt,i∥∇t,i∥2 and c=maxt,ict,i. Let
Initialization: γ=T1,β=elnT1,η1,i=η,ρ1,i=2N for all i∈[N],q1=p1=N1N
1: for t=1,…,T do
2: ∀i∈[N],c~t,i=pt,ict,iIi=It;
3: Find λ∈[minic~t,i,maxic~t,i] such that ∑i=1Nqt,i−1+ηt,i(c~t,i−λ)1=1;
4: Compute qt+1 such that qt+1,i1=qt,i1+ηt,i(c~t,i−λ);
5: Set pt+1=(1−γ)qt+1+γN1N;
6: for i=1,…,N do
7: if pt+1,i1>ρt,i then
8: Set ρt+1,i=pt+1,i2,ηt+1,i=βηt,i;
9: else
10: Set ρt+1,i=ρt,i and ηt+1,i=ηt,i;
11: end if
12: end for
13: end for
14: Output: pt+1.
Omitting the problem-independent constant factors, compared with the lower bound in Theorem 1, Algorithm 2 achieves a O(NTlnT) regret bound, and is optimal up to O(lnT). In the case of b0≤1, previous algorithm [11] enjoys a O(N3−2q1−qT3−2q2−q),q∈(0,1) regret bound. Algorithm 2 improves their regret bound in terms of T. The O(lnT) factor in the upper bound can be removed by using better black-box algorithms, such as the algorithm in [7]. In this work, we use CORRAL as the black-box algorithm for the sake of simplicity.
6 Discussion
Our work opens several directions for future research. The first one is to prove a stronger lower bound. We conjecture the O(b1) factor can be removed. The second one is to design better algorithms for the cases b0≥2, b0=1 and b0=0. We did not design a customized algorithm for the case b0=1. In other words, Algorithm 2 did not use the additional attributes, and may be suboptimal.
References
Agarwal, A., Luo, H., Neyshabur, B., Schapire, R.E.: Corralling a band of bandit algorithms. In: Proceedings of the 30th Annual Conference on Learning Theory. pp. 12–38 (2017)
Boyd, S., Vandenberghe, L.: Convex Optimization. Cambridge University Press, New York, NY (2004)
Bubeck, S., Devanur, N.R., Huang, Z., Niazadeh, R.: Online auctions and multi-scale online learning. In: Proceedings of the 2017 ACM Conference on Economics and Computation. pp. 497–514 (2017)
Cao et al.
Candès, E.J., Tao, T.: Decoding by linear programming. IEEE Transactions on Information Theory 51(12), 4203–4215 (2005). https://doi.org/10.1109/TIT.2005.858979
Cesa-Bianchi, N., Shalev-Shwartz, S., Shamir, O.: Efficient learning with partially observed attributes. In: Proceedings of the 27th International Conference on Machine Learning. pp. 183–190 (2010)
Foster, D., Kale, S., Karloff, H.: Online sparse linear regression. In: Proceedings of the 29th Annual Conference on Learning Theory. pp. 960–970 (2016)
Foster, D.J., Gentile, C., Mohri, M., Zimmert, J.: Adapting to misspecification in contextual bandits. Advances in Neural Information Processing Systems 33, 11478–11489 (2020)
van de Geer, S.: The deterministic lasso. American Statistical Association (2007)
Hazan, E., Koren, T.: Linear regression with limited observation. In: Proceedings of the 29th International Conference on Machine Learning. pp. 807–814 (2012)
Ito, S., Hatano, D., Sumita, H., Yabe, A., Fukunaga, T., Kakimura, N., Kawarabayashi, K.: Efficient sublinear-regret algorithms for online sparse linear regression with limited observation. Advances in Neural Information Processing Systems 30, 4099–4108 (2017)
Ito, S., Hatano, D., Sumita, H., Yabe, A., Fukunaga, T., Kakimura, N., Kawarabayashi, K.I.: Online regression with partial information: Generalization and linear projection. In: Proceedings of the Twenty-First International Conference on Artificial Intelligence and Statistics. pp. 1599–1607 (2018)
Jain, P., Kothari, P., Thakurta, A.: Differentially private online learning. In: Proceedings of the 25th Annual Conference on Learning Theory. pp. 24.1–24.34 (2012)
Kale, S.: Open problem: Efficient online sparse regression. In: Proceedings of the 27th Annual Conference on Learning Theory. pp. 1299–1301 (2014)
Li, J., Liao, S.: Improved regret bounds for online kernel selection under bandit feedback. In: Proceedings of the European Conference on Machine Learning and Knowledge Discovery in Databases. pp. 333–348 (2022)
Li, J., Liao, S., Xu, Z., Nie, L.: A polynomial-time algorithm for online sparse linear regression with improved regret bound under weaker conditions. In: Proceedings of the 38th Annual Conference on Learning Theory. pp. 3623–3670 (2025)
Murata, T., Suzuki, T.: Sample efficient stochastic gradient iterative hard thresholding method for stochastic sparse linear regression with limited attribute observation. Advances in Neural Information Processing Systems 31, 5317–5326 (2018)
Zolghadr, N., Bartók, G., Greiner, R., György, A., Szepesvári, C.: Online Learning with Costly Features and Labels. Advances in Neural Information Processing Systems 26, 1241–1249 (2013)
Appendix
A. Preliminaries and Technical Lemma
A 1. Bregman Divergence
If ψt(p)=∑i=1Nη1pilnpi, then the Bregman divergence is
Lemma 1 (First Optimality Condition [2]). Assuming that Ψ(⋅):Ω→R is a convex and differential function, and Ω is a convex domain. Let f∗=argminf∈ΩΨ(f). Then
∀g∈Ω,⟨∇Ψ(f∗),g−f∗⟩≥0.
Next we show some properties of OMD that will be used in the subsequent analyses. pt+1 can be rewritten as follows