Efficient Use of Limited-Memory Accelerators for Linear Learning on Heterogeneous Systems
Paper · 2017 · Celestine Dunner, Thomas Parnell and Martin Jaggi
Summary
A GPU can process training data quickly once the data are in its memory. When only part of the dataset fits, the training algorithm also has to decide what to move and when. A fixed sequence of batches gives each part of the dataset a turn, even when some parts would do little to improve the current solution. The authors develop a way to make that decision using information already available during convex optimization. Their question is which data the accelerator should work on at this stage of training, given both the cost of moving them and the opportunity to reuse what is already there.
The technique, called DUHL, divides the job between a larger, slower compute unit and a faster one with less memory. The larger unit keeps the full dataset and estimates how much individual coordinates contribute to the current duality gap, a measure that bounds how far the current objective is from its optimum. The accelerator works on a block of coordinates with high estimated contributions. While it improves that block, the larger unit updates some of the estimates for the next round. The same columns can stay on the accelerator if they are selected again. Depending on the training objective, those columns can represent features or examples.
The paper separates the quality of the block choice from the accuracy of the solver that works on it. Its analysis shows how the average gap contribution of the chosen block enters the convergence bound, relative to the average across all coordinates. This explains why choosing a block using current gaps can improve on uniform selection, and why the benefit varies as training proceeds. The system uses a cheaper approximation to that rule, ranking coordinates with cached scores that can reflect different past rounds.
In experiments on the dense epsilon dataset, selection using current gaps reached a 10× convergence improvement over random selection in the ridge regression comparison. A separate Lasso experiment examined how much of the benefit remained when the scores were refreshed only intermittently. On a 30GB image dataset and an accelerator with 8GB of memory, the authors report that DUHL converged 10× faster than the reference schemes for Lasso and a linear support vector machine. Ridge regression also benefited on that dataset. The large-data experiments track progress and column replacements together, showing how better block choices can improve the optimization and reduce the work of moving data.
Deep dive: Efficient Use of Limited-Memory Accelerators for Linear Learning on Heterogeneous Systems
DUHL uses duality gaps to choose which data to keep on a memory-limited GPU, speeding up coordinate descent for large linear learning tasks. · about 39 minutes to read
The problem and its context
Fast computation depends on where the data are
The paper studies a practical constraint on large-scale machine learning. One compute unit can hold the training matrix in full, while another can access and process data more quickly but can store only a portion of that matrix. The two units can exchange information, at a cost. In the experimental system, the larger memory belongs to the CPU and the smaller, faster working memory belongs to the GPU. The paper also describes other pairings with the same basic structure, including an FPGA attached to a host and different levels of a memory hierarchy. Its concrete implementation falls within GPU and parallel computing.
If the full dataset fits on the accelerator, it can remain available while the optimizer revisits it. When capacity is limited, repeated passes may require repeated transfers. The rate at which the accelerator can solve its current problem then describes only part of training time. How often it needs new data, how many columns have to be replaced, and how much progress it gets from each resident set also matter. The decision about which data to move becomes part of the optimization procedure.
The authors organize this decision around coordinate descent. A coordinate is one entry in the vector being optimized. Updating a coordinate uses its associated column of the data matrix. A block update permits a group of entries to change while the rest stay fixed. If the columns for that group already reside on the accelerator and the shared state is available, the accelerator can devote computation to that group without reading the full matrix. Once another group is selected, the system needs to move only the columns that group adds. A block is therefore both a mathematical choice about which variables to improve and a memory choice about what to keep close to the solver.
The usefulness of a block can change even though the dataset stays fixed. An update to one group of coordinates changes the current solution, which in turn can change the case for revisiting other coordinates. A feature that matters early in a regression problem may need little adjustment later. A feature whose coefficient is currently zero can still have a large role to play if the current fit would benefit from changing it. The authors need a criterion that reflects this changing state and applies to objectives with different regularizers, including ones designed to produce sparse solutions.
What earlier approaches addressed
In the earlier limited-memory support vector machine work described by the paper, the data could reside on disk while blocks were brought into RAM and processed sequentially. Grouping data into contiguous blocks makes those reads efficient. It also makes the order of work mostly a consequence of how the data were partitioned. Each block comes up for processing as the solver cycles through the dataset. The policy does not use the current solution to decide which block deserves more attention.
The authors describe subsequent support vector machine methods that selectively loaded informative examples or retained them in memory. Those approaches recognized that some examples continue to matter more than others as a solution develops. Their selection criteria were tied to the role of support vectors. The theory discussed in the paper established that a linear convergence rate was preserved asymptotically in those settings. The question here is whether the effect of selection can be quantified as an improvement over uniform choices, including for objectives where the coordinates are features and support vectors have no corresponding role.
Another body of work studied steepest coordinate selection. If changing a particular coordinate promises more immediate progress, choosing it can improve convergence relative to drawing a coordinate uniformly. The paper discusses this advantage for single-coordinate updates on smooth objectives and notes the difficulties that arise with more general convex objectives, including those with an absolute-value penalty. Earlier work with adaptive probabilities also used information from the current solution to alter which coordinates were sampled. Those studies motivate the use of state-dependent importance, while the heterogeneous setup requires a result for a whole block whose local solution may be approximate.
Static importance sampling provides a different point of comparison. It can give some columns a higher selection probability based on a property of the data, such as a column norm. These probabilities can be established before training progresses. A large norm and a large current optimization error are different pieces of information. The former describes a column, while the latter describes what happens when that column, its current coefficient, and the rest of the solution are considered together. The authors use that second kind of information to decide which columns to place in limited memory.
The setting also leaves room for both processors to contribute at once. The unit with the full dataset can inspect candidate columns, including those absent from the accelerator. The accelerator can perform the more intensive work of repeatedly updating the current block. The challenge is to schedule those jobs so that the faster solver spends little time waiting for a fresh global ranking. This is the reason the paper develops an ideal selection rule for the analysis and a delayed version for the actual system.
The method, step by step
What an update changes
Start with a vector of parameters, one for each column of the training matrix. The vector determines a shared state through a matrix–vector product. In least-squares regression, that product is the current prediction vector, and subtracting the labels gives the current residual. A coordinate change adds a multiple of one column to the state. If several coordinates change together, their columns and coefficient changes determine the whole update to the state. This is the property that lets the accelerator work with selected columns and a summary of the full iterate.
DUHL keeps a score for every coordinate. At the start of a round, it chooses a block using those scores and brings its missing columns onto the accelerator. The accelerator solves the resulting local optimization problem to some accuracy. The larger unit uses the same interval to sample entries from its full collection and refresh their scores. At the end of the round, the block update becomes part of the global solution. The next selection uses the scores available at that point. With this schedule, an unselected column can earn a place in the next block and a resident column can remain through several rounds.
A round of DUHL training
The steps in order.
The paper uses the same letter for the larger compute unit and the data matrix. In the formulas below, A always denotes the matrix. The prose calls the two devices the host and the accelerator. The host can hold the complete matrix, and the accelerator has room for a block whose size is denoted by m. The analysis treats the block size as fixed. In the implementation, memory capacity determines the amount of data that can be resident at a time.
The class of objectives
The common objective combines a term that depends on the shared state with terms that act on individual coefficients.
min over α ∈ ℝⁿ O(α) = f(Aα) + ∑ᵢ∈[n] gᵢ(αᵢ)
Here α is the parameter vector, αᵢ is its entry at index i, ℝⁿ is the space of real vectors with n entries, and [n] is the set of coordinate indices. The matrix A has d rows and n columns, and its column aᵢ has d entries. The function O is the objective being minimized. The function f is convex and smooth, meaning here that its gradient has a Lipschitz bound, and gᵢ is the convex term for coordinate i. The sum adds those terms over the coordinate indices. The paper also writes g for their sum, so g is separable across coordinates.
The two terms can play different roles in different applications. For ridge regression and Lasso, the parameter vector contains the coefficients of the original regression, the product Aα contains predictions, and f measures squared fitting error. The coordinate terms penalize coefficient size. For the support vector machine formulation the paper uses, α is a vector of dual variables. Its entries are associated with training examples, and the smooth term comes from the regularizer of the corresponding primal problem. A block contains feature columns in the regression view and sample columns in the support vector machine view. The mechanism for selecting a block remains the same.
Smoothness and separability do different jobs. Smoothness controls the change in f when a block update changes the shared state. Separability means that the part of the penalty affected by a block can be evaluated from the entries in that block. The coordinate terms can include an absolute-value penalty or a constraint on the allowed range of a variable. This flexibility matters both to the solver, which needs to respect the particular coordinate terms, and to the analysis, which treats strongly convex terms separately from terms with bounded support.
Turning a global gap into coordinate scores
The gap compares the objective at the current iterate with information from a dual problem. The dual is an associated optimization problem whose value gives a lower bound on the objective being minimized. Given a primal–dual pair in this formulation, the difference between the current value and that bound can be written as a sum of the primal terms and convex conjugates. A convex conjugate describes the best value of a linear function minus the original function, as the point at which the original function is evaluated varies.
h*(q) = sup over u ∈ ℝᵈ [qᵀu − h(u)]
In this definition h is a convex function on real vectors with d entries, and h* is its convex conjugate. The vector q is the argument of that conjugate, u ranges over the domain space, and the superscript T denotes transpose, so qᵀu is their inner product. The supremum, written sup, is the least upper bound of the expression over the allowed u. The same definition applies to a scalar coordinate term with scalar arguments.
gap(α; w) = f(Aα) + g(α) + f*(w) + g*(−Aᵀw)
Here gap is the duality gap for α and the dual vector w. The matrix A maps the parameters to the state, and Aᵀ maps w back to coordinate space. The functions f and g are the smooth and separable terms of the objective, and f* and g* are their convex conjugates. The minus sign specifies the argument of g* under this dual convention. The gap is non-negative, and a finite gap bounds the current objective error from above.
The choice of w is important because DUHL needs scores for individual columns. The authors take the dual vector supplied by the gradient at the current shared state.
w(α) = ∇f(Aα)
The expression w(α) means that the dual vector is determined by the current α. The symbol ∇f is the gradient of f with respect to its input, evaluated here at Aα. Convex conjugacy then gives equality between the sum of f at that state and its conjugate at w, and the inner product of the state with w. The inner product splits into column contributions, and the conjugate of the separable term also splits over coordinates. This gives a score that depends on the current coefficient, its column, and the shared dual vector.
gapᵢ(αᵢ) = (aᵢᵀw)αᵢ + gᵢ(αᵢ) + gᵢ*(−aᵢᵀw)
The subscript i selects a coordinate. The dot product aᵢᵀw measures how its data column aligns with the current dual vector, and αᵢ multiplies that dot product in the first term. The function gᵢ charges the coordinate's current value, and gᵢ* is its convex conjugate. Although the score is written as a function of αᵢ, it also depends on the rest of the current solution through w. This dependence explains why a change to the working block can make previously recorded scores inaccurate even for coefficients that stayed fixed.
gap(α) = ∑ᵢ∈[n] gapᵢ(αᵢ)
The left side denotes the global gap at the gradient-derived w for α. The right side sums the contributions of all n coordinates in [n]. Each contribution is non-negative by the inequality relating a convex function to its conjugate. For selection, the useful information is how the contributions are distributed. A global gap can stay substantial while being concentrated in a small set of coordinates, or it can be spread across a much larger part of the matrix. These cases offer different opportunities for a device that can hold only m columns.
Choosing a block and solving it approximately
The generic algorithm starts with zero parameters. At round t it chooses a set P of m coordinate indices and changes only those entries. To express this restriction, the paper writes Δα[P] for an update vector with zeros outside P. Its generic local problem is to find the block-supported update that makes the full objective as small as possible.
Δα*[P] ∈ arg min over Δα[P] ∈ ℝⁿ O(α + Δα[P])
Here Δ denotes a change, P is the selected index set, and the bracketed P restricts the allowed non-zero entries of the update. The domain ℝⁿ keeps the update in the same vector space as α. The notation arg min refers to the set of minimizing updates. The star on Δα*[P] denotes an exact minimizer of the block problem. The objective O is evaluated at the current α plus the candidate update, with all entries outside P held fixed.
The authors allow a solver to stop before attaining the block minimum. Their accuracy parameter describes the fraction of the block's available objective improvement that the returned update must attain.
O(α + Δα[P]) ≤ θ O(α + Δα*[P]) + (1 − θ) O(α)
The update without a star is the one actually returned. The scalar θ is defined on the interval [0, 1], and the right side interpolates between the objective after the exact block solution and the objective before any change. An update with θ equal to 1 attains the exact block objective. With θ equal to 0, the condition guarantees only that the objective does not increase. The number of passes of a local solver is a way to control accuracy in the implementation. The definition of θ itself concerns the resulting objective values.
α⁽ᵗ⁺¹⁾ = α⁽ᵗ⁾ + Δα[P]
The superscript in parentheses is an iteration index. The vector α⁽ᵗ⁾ is the state at the beginning of round t, and α⁽ᵗ⁺¹⁾ is the result after committing the calculated block update. The addition leaves all coordinates outside P unchanged. Different solvers and different block-selection rules can be placed inside this same outer procedure. This gives the authors a common mathematical description for exact gap selection, uniform sampling, and the delayed selection used by DUHL.
What the convergence analysis measures
The analysis uses a ratio between the mean gap of the selected coordinates and the mean gap across the full iterate. This compares blocks on the same scale even though the total gap changes during training.
ρₜ,ₚ = [(1/m) ∑ⱼ∈P gapⱼ(αⱼ⁽ᵗ⁾)] / [(1/n) ∑ⱼ∈[n] gapⱼ(αⱼ⁽ᵗ⁾)]
The symbol ρₜ,ₚ denotes the ratio for round t and block P, with the subscript p representing the chosen set. The index j ranges over P in the numerator and all of [n] in the denominator. The numbers of coordinates are m and n, respectively. Each gap is evaluated at the current iterate, using αⱼ⁽ᵗ⁾ and its associated shared dual vector. The ratio describes a state with a positive global gap. A ratio above 1 says that the block contains more gap per coordinate than the dataset as a whole. A uniform random block has conditional expected ratio 1, because each coordinate has the same chance to contribute to the block average.
The best choice for this ratio at a given iterate consists of the coordinates with the largest current scores. It is the selection rule studied in the paper's exact-gap comparison.
P ∈ arg max over Q ⊂ [n], |Q| = m ∑ⱼ∈Q gapⱼ(αⱼ⁽ᵗ⁾)
Here Q is a candidate index set, |Q| counts its members, and the constraint fixes that count at m. The notation arg max denotes the sets that attain the maximum, so P may be any maximizing set if scores are tied. The expression being maximized sums the current contributions of the coordinates indexed by j in Q. Since the denominator of the ratio and the block size are fixed during selection, maximizing this sum also maximizes the ratio. The resulting block has a ratio at least 1 whenever the ratio is defined.
To connect the ratio to objective error, the authors first consider what progress a specific trial update would make. They choose a target for each selected coordinate from a subgradient of the conjugate of its coordinate term. This is a way of picking a value that attains the equality relating that term and its conjugate at the current dual argument. The trial update moves partway from the current coefficient toward that target. Entries outside the block stay where they are. Smoothness bounds the effect of this movement on f, while convexity bounds the change in the coordinate terms. Together they produce a term proportional to the gap captured by the block and a correction for the size and direction of the move.
The target used in the proof is a device for bounding progress. The accelerator can use any solver that meets the block accuracy condition. Since the exact local optimum is at least as good as the trial update, the approximate solver can be analyzed through the share of the available improvement that it captures. In the strongly convex case, the positive curvature from the coordinate terms can be used to control the correction from f. This leads to a contraction in objective error. The paper summarizes the per-round dependence as follows.
ε⁽ᵗ⁺¹⁾ ≤ (1 − ρₜ,ₚ θc) ε⁽ᵗ⁾
The quantity ε⁽ᵗ⁾ is objective suboptimality at round t, meaning O at α⁽ᵗ⁾ minus O at an optimal vector α*. The next round's error is ε⁽ᵗ⁺¹⁾. The ratio ρₜ,ₚ measures the chosen block's gap concentration, θ measures update quality, and c is the positive factor supplied by the block size and the smoothness and curvature bounds. A better block choice improves the stated contraction through its gap ratio, under the conditions used to obtain this inequality. Better local accuracy enters as a separate factor.
For the full convergence statements, the selection and solver quantities are combined into a factor for the run.
ηₚ = min over t θ 𝔼ₚ[ρₜ,ₚ | α⁽ᵗ⁾]
The symbol ηₚ denotes the factor for the block-selection scheme. The minimum takes the weakest value over the rounds indexed by t in the bound. The symbol 𝔼ₚ denotes expectation over the block choice P, and the vertical bar conditions that expectation on the current iterate α⁽ᵗ⁾. The parameter θ gives the relative accuracy of the block solver. This formulation accommodates deterministic selection as well as randomized selection. For a deterministic choice the conditional expectation is the ratio for that block. The minimum in the bound keeps a strong individual round from standing in for all the other rounds.
𝔼ₚ[ε⁽ᵗ⁾ | α⁽⁰⁾] ≤ [1 − ηₚ (m/n) μ/(σL + μ)]ᵗ ε⁽⁰⁾
The left side is expected suboptimality after t rounds, conditional on the initial vector α⁽⁰⁾, and ε⁽⁰⁾ is that vector's starting suboptimality. The positive scalar μ is the strong convexity parameter available for every coordinate term. The scalar L bounds how rapidly the gradient of f can change. The quantity σ measures how large the change in Aα can be relative to a parameter change on a selected block. The fraction m/n is the share of coordinates in the block, and ηₚ is the selection-and-accuracy factor. Raising the contraction factor to t expresses the geometric decrease, which the paper calls linear convergence.
σ = ‖A[P]‖ₒₚ²
The notation A[P] restricts the matrix to columns whose indices are in P. The operator norm, written with subscript op, is the largest ratio of Euclidean output length to Euclidean input length for the block matrix acting on a non-zero vector. Its square is σ. When reasoning about a run that changes blocks, a common bound on this quantity provides a way to control the possible amplification across the blocks under consideration. Two sets of columns can have different gap contributions and different effects on the shared state. The convergence formula includes both aspects of the block geometry.
When the coordinate terms lack strong convexity, the paper has a separate bound under a bounded-support assumption. This means the allowed values of the coordinate terms are restricted to a bounded region. The proof uses that assumption to control the distance between the current coordinate values and the trial targets. The stated bound has an inverse dependence on elapsed rounds after an initial period.
𝔼ₚ[ε⁽ᵗ⁾ | α⁽⁰⁾] ≤ (1/ηₚ) (2γn²/m) / (2n + t − t₀)
Here 𝔼ₚ, ε⁽ᵗ⁾, α⁽⁰⁾, and ηₚ have the same roles as in the strongly convex case. The counts n and m again refer to all coordinates and the selected block. The quantity γ bundles the smoothness, support, and data-matrix bounds. The index t₀ is the threshold for the initial phase in the theorem, and the inequality applies from that threshold onward. The denominator grows with the round count t. The proof treats the error bound differently during the initial phase, when it must first control the influence of the starting error.
γ = 2LB²σ
The constant L measures the smoothness of f, B is the support bound used in the analysis, and σ measures the action of the block matrix. The symbol B in this formula is a bound on permissible parameter values and is unrelated to the paper's name for the faster compute unit. The squared support bound controls how large a move the proof needs to consider. For a fixed strong convexity or bounded-support setting, the results explain how better selection can improve an iteration bound. A wall-clock comparison also needs to account for the work of selecting and solving each block.
The paper relates this analysis to ordinary coordinate descent by considering a block containing a single coordinate and solving that coordinate exactly. The block ratio then becomes the coordinate's own gap divided by the global mean gap. Under uniform sampling this ratio averages to 1 at each iterate, and exact solution gives θ equal to 1. This recovers the classical setting discussed by the authors. Allowing a block and approximate accuracy is what turns the selection analysis into a useful framework for work performed between transfers.
Making the local problem fit the device
The information available to the accelerator consists of the selected columns, the corresponding coefficient entries, and a shared state that represents the effects of the whole dataset. The state is defined by the current matrix–vector product.
v = Aα
The vector v has d entries and belongs to the input space of f. The data matrix A has d rows, and α has n coefficients. Contributions from unselected coordinates are already included in v. Their columns never have to be brought onto the device solely to reconstruct that part of the state. If the accelerator proposes a block update, its effect on v is obtained from the resident columns multiplied by their changes.
For a general smooth term the authors use a local upper bound formed using the gradient and a quadratic term. The coordinate penalties on the resident block are kept in their original form.
min over Δα[P] ∈ ℝⁿ f(v) + ⟨∇f(v), AΔα[P]⟩ + (L/2)‖AΔα[P]‖₂² + ∑ᵢ∈P gᵢ((α + Δα[P])ᵢ)
Here f(v) is the smooth term at the current state and ∇f(v) is its gradient there. The brackets ⟨·, ·⟩ denote an inner product. The vector AΔα[P] is the change in the state produced by the candidate update, and ‖·‖₂² denotes squared Euclidean length. The factor L supplies the smoothness bound. The final sum evaluates gᵢ at the proposed entry for each selected coordinate i. The remaining coordinate penalties stay constant, so omitting them leaves the minimizers unchanged. The optimization variable ranges over real vectors of length n with support restricted to P.
The linear term describes the direction of local improvement in f. The quadratic term limits how optimistic that linear prediction can be as the update becomes larger. Including the unchanged penalties would make the surrogate equal to the full objective at a zero update and an upper bound on it after an update. The objectives used in the experiments have a smooth quadratic term whose curvature matches the expression used in the surrogate. For them, solving the local expression gives the same block problem as restricting the original objective. For other smooth terms, the upper-bound property supplies the argument for actual objective improvement. The paper shows that the same convergence analysis applies to an approximate solution of this surrogate.
Keeping the ranking current enough
Computing every score just before selection would require looking across all the columns at the current iterate. In the proposed hardware arrangement, that operation would belong to the unit with the larger memory. As a serial step, it would delay the accelerator before every local solve. DUHL instead maintains a vector of cached values and permits each value to come from a different round. A score stays in the cache until the host refreshes that entry.
zᵢ = gapᵢ(αᵢ⁽ᵗ′⁾), t′ ∈ [0, t]
The vector z is the gap cache, and zᵢ is its entry for coordinate i. The index t′ is the round whose iterate was used for that entry, and t is the current round. The interval means that a refreshed value can be current or can originate at an earlier iterate. The gap at t′ uses both the coordinate value and the dual vector derived from that iterate. The algorithm initializes z to zero. As computation proceeds, some entries can have been refreshed recently, others can still reflect earlier states, and some may still await their first refresh.
P ∈ arg max over Q ⊂ [n], |Q| = m ∑ⱼ∈Q zⱼ
Here P is the selected block, Q is a candidate set of size m, and zⱼ supplies the ranking value for its coordinate j. The maximization chooses the m largest cached scores, with arbitrary resolution of ties. Unlike the exact-gap expression, this maximization uses quantities that can refer to different states. Its resulting block can be evaluated through the true current gaps in the convergence framework, even though those gaps are unavailable in full to the selector.
During the accelerator's local solve, the host repeatedly samples coordinates from the entire dataset and evaluates their gap contributions at the outer iterate for that round. Sampling is how the host decides what to inspect. Ranking cached values is how the algorithm decides what goes onto the accelerator. Keeping these operations distinct matters because a random refresh policy can still lead to a highly concentrated accelerator workload. After the solve, the next ranking can retain columns that are still useful and add columns whose scores have made them competitive with the resident ones.
The amount of useful parallel work depends on the time the accelerator spends in each solve and how fast the host computes scores. More work on a resident block can yield a better update and give the host more time to refresh entries. It also extends the round and delays the next decision about which block to solve. Fewer passes through the block can make an individual round shorter, while leaving more scoring work to later rounds. The paper uses the number of passes to tune this tradeoff in the hardware experiments.
How the experimental objectives are handled
For ridge regression the loss is the squared length of the residual, and the regularizer charges squared coefficient size.
min over α ∈ ℝⁿ (1/(2d))‖Aα − b‖₂² + (λ/2)‖α‖₂²
Here b is the vector of labels in ℝᵈ, d is the number of entries in that vector, and Aα − b is the residual. The parameter λ scales the regularizer, and the squared norms sum squared entries of the residual and coefficient vectors. With a positive regularization coefficient the coordinate penalty is strongly convex. The gap for a coordinate uses its current coefficient, the dot product between its column and the residual, and quadratic terms from the penalty and its conjugate. The appendix writes the regression gap using the unscaled residual, placing the loss scaling outside the corresponding coordinate expressions.
For Lasso the squared loss has the same form, and the regularizer uses absolute coefficient values.
min over α ∈ ℝⁿ (1/(2d))‖Aα − b‖₂² + λ‖α‖₁
The symbols A, α, b, d, and λ have the same roles as in ridge regression. The norm ‖α‖₁ sums the absolute values of the coefficients. The resulting penalty can favor solutions in which many entries are zero. Computing a finite coordinate gap throughout training requires an additional step. The conjugate of an unrestricted absolute-value penalty can be infinite when its input is outside the corresponding interval. The authors restrict the original coordinate terms to a bounded region chosen to contain the iterates. Inside that region the objective used by the optimizer is unchanged.
B = ‖b‖₂²/(2λd)
Here B is the bound used for the Lasso gap construction, b is the label vector, λ is the penalty coefficient, and d is the number of rows of the regression matrix. The squared norm is the sum of squared labels. From a zero initialization, the starting objective is the squared loss at zero. Since the objective stays at or below that starting value and the loss is non-negative, the coefficient penalty gives an upper bound on the sum of absolute coefficient values. This bound also contains each individual coefficient. The paper applies the restriction at the coordinate level so that the gap remains separable. The conjugate contribution can then register how far a residual correlation lies beyond the penalty threshold, while remaining finite.
For the linear support vector machine, the block solver works with the dual objective.
min over α ∈ ℝⁿ (1/n)∑ᵢ∈n + ‖Aα‖₂²/(2λn²)
subject to yᵢαᵢ ∈ [0, 1] for i ∈ [n]
The coefficient αᵢ is a dual variable for training example i, yᵢ is that example's label, and aᵢ is its column in A. The count n is the number of examples in this formulation. The sum adds the linear contributions, and the squared norm is the smooth quadratic term controlled by λ. The interval specifies the allowable signed coefficient for each example. In the associated primal problem, the loss penalizes an example according to its signed margin through hinge loss, and the regularizer penalizes squared weight length.
w = Aα/(nλ)
The vector w here is the weight vector of that associated primal support vector machine, recovered from the current dual coefficients. The numerator is the current shared state, and the denominator uses the example count n and the regularization coefficient λ. A coordinate's gap can be evaluated from the dot product of its sample column with this weight vector, its signed coefficient, and its hinge loss. This expression evaluates the current state of a sample in relation to the optimization problem. The same cached-selection structure can therefore cover both the feature and sample cases.
The GPU solver used throughout the experiments is TPA-SCD, a previously proposed asynchronous stochastic coordinate descent implementation for ridge regression. The authors extend it to the other objectives. In a local solve, a GPU thread block handles a coordinate update, while the hardware can schedule multiple thread blocks in parallel. Threads within a block divide operations such as computing the dot product of a column with a shared state and calculating the column norm. After a coordinate changes, its column multiplied by the change is added to the shared vector using atomic additions. The regression implementation shares the residual, and the support vector machine implementation shares the matrix–coefficient product.
The Lasso solver obtains a coordinate value by soft thresholding. The squared loss supplies a candidate coefficient, and the absolute-value penalty shrinks its magnitude toward zero. A candidate within the threshold is set to zero. The appendix presents this rule under an elastic net objective that can include both squared and absolute-value penalties. For the support vector machine, the solver first obtains a coordinate step from the quadratic objective and then clips the signed result to the allowed interval. These are local changes within the resident block. The outer round's accuracy depends on the progress made on the full block by the time the solver returns.
Experiments and results
The two experimental settings measure different effects
The implementation used an 8-core Intel Xeon E5 x86 CPU with 64GB of RAM and an NVIDIA Quadro M4000 GPU with 8GB of RAM. The devices communicated over PCIe Gen3. The host held the full training matrix and supplied gap updates, and the GPU ran the local solver on resident columns. Changing which columns were selected affected the data that had to cross the bus. The experiments considered both the progress from a choice of block and the costs that enter when those choices are put into practice.
The first group of experiments used the publicly available epsilon dataset from LIBSVM. It is fully dense, with 400’000 samples and 2’000 features. For these experiments the authors set the GPU block capacity to 25% of the training data. They used ridge regression to test the link between the exact gap ratio and convergence. They used Lasso to study the effect of score freshness and column reuse. The regularizer for the epsilon Lasso experiment was chosen for a support size of ∼ 12%, where support size refers to the share of coefficients that are non-zero.
An expanded version of Kaggle Dogs vs. served as the dataset for the larger experiment. Cats ImageNet dataset described in earlier work. The authors doubled the number of samples and used single precision. The matrix in this experiment was fully dense, with 40’000 samples, 200’704 features, and over 8 billion non-zero elements. Its reported size was 30GB. With 8GB of GPU memory, the authors report that ∼ 25% of the data could be placed on the accelerator. In this experiment they chose the Lasso regularizer for a support size of 12% and selected the support vector machine regularizer through cross-validation.
Objective suboptimality is the central measure of convergence. It describes the remaining optimization error for a given training objective. The analysis of stale scores counts rounds to a specified error target. The large-data comparison looks at convergence performance alongside the number of columns replaced per round. These quantities address related questions. Rounds to a target capture how much useful optimization is done with each block, while replacement counts describe how the algorithm uses the limited memory over time. Runtime reflects the interaction of those effects with solver work and transfer costs.
Testing the convergence prediction on epsilon
In the ridge regression experiment on epsilon, the authors compared exact gap selection with random selection while holding the local block accuracy fixed. Exact gap selection used the scores computed at the current iterate. Random selection used a uniformly drawn block. The comparison asks whether two policies that devote comparable local effort to each block get different objective improvements because of their choices of coordinates. It also provides a way to compare the observed difference with the ratio introduced in the theory.
For each round, the authors measured the gap ratio and the empirical convergence gain. They used random selection as the reference for both. The predicted and observed gains tracked each other, with a reported average deviation of 0.42 between the relative quantities. This number is a measure of agreement in the ridge experiment. It does not represent an objective gap or a runtime. In the accompanying convergence comparison, the authors report that gap selection can reach a 10× improvement relative to random selection. The chart expresses the reported improvement on the random-reference scale.
Relative convergence improvement for ridge regression on epsilon
Current-gap selection achieves a larger convergence gain than uniform random block selection.
The numbers
| System or setting | × relative to uniform random selection |
|---|---|
| Uniform random selection, reference | 1 |
| Current-gap selection (this paper) | 10 |
The chart records a reported level of improvement reached in the comparison. The paper also plots the relative gain through the course of the run. The optimization state changes during that course, so the difference between the policies can change as well. A block chosen for high current gaps can become especially valuable when much of the remaining error lies in a portion of the matrix that fits in memory. The experiment is about the value of the selection rule at fixed local accuracy. Computing fresh gaps across the entire matrix has a separate cost, which is the reason the practical method uses cached scores.
In the sparse epsilon setting, the authors also report that the oracle's gap ratio approached n/m within a few rounds when the support was small enough to fit in the GPU block. In this expression n is the full coordinate count and m is the block size. The ratio can attain that upper scale when the selected block captures essentially all of the current gap. The observation gives a concrete case in which selected coordinates can become much more useful than a block drawn across the whole coordinate set. It also supplies a reason to look at the early rounds, while the algorithm is still identifying that useful set.
Comparison with limited-memory training schemes
The large-data experiment compares DUHL with four references. The sequential GPU scheme partitions the columns into blocks of size m and processes them in order. It copies each contiguous block efficiently and represents the usual batch-based response to limited memory described in the paper. Uniform random GPU selection changes the composition of the block without using the current iterate to rank coordinates. These schemes give different views of the value of gap selection, since the sequential scheme has advantages for copying and the random scheme provides a direct reference for coordinate choice.
The importance-sampling scheme, called IS, assigns fixed nonuniform sampling probabilities to columns. The CPU draws the next block in parallel with GPU work, as it can in DUHL, while the probabilities remain fixed as training advances. The authors note that the column norms used to motivate selection can have little variation in dense datasets. In those circumstances IS can offer little gain over uniform random selection. The remaining reference is a single-threaded CPU implementation of stochastic coordinate descent. It shows what acceleration provides relative to that CPU solver when the GPU approaches must repeatedly move data.
The GPU schemes use the same TPA-SCD block solver. The authors adjust the number of randomized passes through a resident block for each scheme. This matters because sending the same number of passes to every policy would impose a shared operating point even if the policies differed in their transfer costs and in how quickly their selected blocks could be improved. The fixed-accuracy epsilon comparison is the controlled test of selection in round terms. The hardware comparison allows per-scheme tuning to assess the combined training procedure.
On the 30GB dataset, the paper reports 10× faster convergence for DUHL than the reference schemes in both the Lasso and linear support vector machine comparisons. The conclusion describes the advantage relative to existing sequential approaches as over 10× for those tasks. The figures pair convergence curves with plots of the number of columns replaced per round, and the authors attribute the gains to both improved optimization progress and less replacement work. The large-data results concern solving the specified training objectives under the stated memory constraints.
For ridge regression on the same data, DUHL also outperformed the sequential, random, and importance-sampling GPU schemes and the single-threaded CPU implementation. The paper describes that advantage without giving a matching numerical speedup in its text. The ridge comparison helps establish the scope of the observed effect. The algorithm can benefit a dense squared-penalty objective, even though the strongest reported large-data speedups are for Lasso and the support vector machine. The reason for selecting coordinates is their current gap contribution, which exists across all three objectives.
Refresh work and data movement on epsilon
A separate experiment used Lasso on epsilon to compare practical score refresh schedules with o-DUHL, a reference selector supplied with the true current gaps by an oracle. The authors kept the local update accuracy fixed and varied how many gap entries were refreshed per round. They measured how many rounds it took to reach objective suboptimality of 10⁻⁴. By using rounds as the outcome, the experiment asks how much the ranking degrades as the scores get older, independently of whether a particular host could perform the prescribed refresh work in a given time.
According to the paper, with average delays of up to 20 iterations, the number of rounds DUHL needed to reach that target remained within a factor of two of the oracle’s round count. With less frequent refreshes, the initial rounds progressed more slowly. The authors associate this delay with finding the active set of the sparse problem. If the entries in the cache take longer to reflect which features can improve the objective, meaningful columns take longer to enter and settle into the working block. As more of the relevant scores are refreshed, the block becomes a better place to spend local solver work.
The authors also tracked column replacements on epsilon for a gap-update frequency of 5%. The number of replacements per round declined during the Lasso run. With fresher estimates, they observed that the number of swaps reached zero faster. A block can stay stable when a recent ranking continues to favor its resident columns. The count gives an operational consequence of selection that a convergence curve alone would miss. It measures changes to residency, while elapsed data-transfer time also depends on how copies are arranged and on the characteristics of the interconnect.
What the ablations show
Selection changes the value of a round
The exact-gap and random ridge comparison is the cleanest test of whether concentrating the current gap leads to better block updates. Both approaches use the same local update accuracy, so the principal intervention is the identity of the selected coordinates. The agreement between the measured gain and the gap ratio indicates that, on this dense dataset and objective, the ratio describes the practical advantage of a well-chosen block. This supports the paper's use of gap contributions as a way to prioritize variables, beyond their role in describing overall objective error.
A further distinction is between a measure of progress and an explanation of time. The ratio is constructed from a snapshot of the optimization state. It has no terms for ranking the cache, copying columns, or scheduling accelerator work. The controlled ridge experiment identifies a benefit that survives when these issues are set aside. The hardware comparisons then ask whether the benefit remains once the practical selection procedure is substituted and transfer costs are present. Keeping those questions separate makes it possible to see what the experiment validates about the convergence analysis.
The comparison also helps explain why uniform random selection is a useful reference. A block drawn uniformly is representative of the mean gap in expectation, even if an individual draw happens to contain unusually useful or unusually unhelpful coordinates. A deterministic block built from the highest current gaps is selected precisely to depart from that mean. The amount of departure is a property of the distribution of gaps at that iterate. The observed speedup can therefore change with the problem and during the run, even though the underlying rule remains identical.
Delayed scores mainly affect the early search in the sparse run
The refresh-frequency experiment changes the quality of the information used for selection. The oracle provides an upper reference for the ranking rule using exact current gaps. Practical DUHL updates only part of its cache during each round. With local solve accuracy held fixed, the differences in the rounds to the target show the cost of using a less current ranking. The result through the reported average delay shows that delayed values can remain sufficiently informative to make progress in this Lasso setting.
The location of the slowdown matters. The authors see it in the initial rounds when refreshes are less frequent. A sparse objective can eventually concentrate much of its useful work on relatively few features, but those features first have to be identified. Before a relevant coordinate is sampled for a fresh score, its cache entry may carry little evidence of its present value. A high old score can also preserve a place for a coordinate that has since become less useful. Both effects can make it take more rounds for the block to reflect the active part of the problem.
The experiment varies the amount of refresh work while keeping accuracy fixed. On the physical system, freshness and solver work interact because the host samples coordinates during the time taken by the local solve. A longer round can allow more refreshes, and a stronger update can also change the rankings more substantially. The controlled experiment establishes tolerance to delayed information under its own schedule. It gives a basis for understanding that interaction without assigning a universally suitable refresh rate to all hardware or objectives.
Column reuse is a separate outcome of block selection
Tracking replacements identifies another consequence of the scoring rule. If successive selected blocks share columns, the accelerator can work again using the data already in its memory. A score policy that regularly returns useful resident columns makes such reuse a result of the optimization trajectory. In the epsilon Lasso experiment, replacements diminish as the run advances. The faster stabilization with fresher entries is consistent with the ranking more quickly identifying a lasting working set.
This analysis also distinguishes the role of a fixed batch layout from the role of keeping a useful subset. A sequential method gains copy efficiency from contiguous blocks, but the next scheduled block can still involve a large change in residency. DUHL can use fewer column replacements when the selected sets overlap. The paper's plots show that the count can decline along with the remaining optimization error. They give a direct measurement of how working-set changes evolve. They do not assign a fixed cost to every possible replacement pattern.
The large-scale comparisons provide a broader test of this explanation. In the Lasso and support vector machine experiments, the figures show differences in both convergence and replacement behavior, and the paper attributes the advantage to both. The comparison with importance sampling further examines whether a static preference based on the columns is enough. On the dense problems considered, the authors describe limited separation between importance sampling and uniform random selection. The state-dependent scores can still distinguish coordinates whose column norms supply little basis for separating them.
The large-scale ridge result also gives a check on interpreting the Lasso observations. Stabilization around a sparse support can explain pronounced reuse in that specific controlled setting. Ridge regression has a different penalty, yet it still benefits from DUHL in the reported comparisons. Across the experiments, the shared mechanism is that different columns offer different prospects for improving the current objective. The evidence about identifying a sparse support explains one way those prospects can become concentrated.
Limitations
Limits identified by the authors
The hardware design assumes a unit that can hold the full dataset and a faster unit that can hold a subset. The faster unit must actually process its resident data more quickly for the division of labor to be useful. The implementation satisfies that need by using a solver designed for GPU parallelism. The authors describe using the approach within distributed training or across levels of a memory hierarchy as possible applications of the same building block. The experiments address a single CPU and GPU connected through PCIe, so the results establish behavior in that specific heterogeneous arrangement.
The theoretical results concern convex objectives of the stated smooth-plus-separable form. The strongly convex analysis requires positive curvature in each coordinate term. The other main bound requires bounded support. The Lasso experiment uses a modification that makes the chosen coordinate domains bounded while preserving the original objective within the region reached by training. That construction is part of obtaining the finite gap scores and connecting this example to the assumptions. The paper's argument for a local surrogate also depends on the smoothness bound for the shared-state term.
The authors explicitly identify the use of delayed scores as an approximation. An exact ranking would need current gaps for all coordinates at the beginning of every round and would put expensive host work on the serial path. In DUHL the host can update scores concurrently, at the cost of letting them age. The paper relates freshness to the relative speed of the two devices and to the accuracy sought in the local solve. More favorable timing for overlap can give a better-informed cache. The epsilon experiment checks one range of delays for one sparse problem.
Limits visible in the analysis and comparisons
The guarantee that the selected block has at least the global mean gap applies to the choice made using true current scores. A block chosen from cached entries maximizes their sum, which can differ from the sum at the current iterate. The general convergence framework can describe a delayed choice through the true gap ratio it achieves. The paper does not give a general age-to-ratio guarantee that would allow the result of the refresh experiment to stand in for every possible workload. The oracle is especially helpful for measuring this distinction because its information is available by assumption.
There is also a qualification in the non-strongly-convex argument. The appendix's proof of the displayed rate invokes a selection-and-accuracy factor at least 1 in the induction. Arbitrary selection with an approximate solve need not attain that value. For instance, the expected gap ratio for uniform selection is 1, leaving the accuracy factor to determine the product. The proof condition matters when applying the particular bound to such a policy. The per-step analysis explains how block choice and solve quality enter, while use of the stated global rate depends on the assumptions needed to make that step into a bound for the run.
The speedups compare optimization performance for dense datasets and the stated training tasks. The experiments report convergence and data movement, with cross-validation used to choose the support vector machine regularizer. They give no corresponding comparison of final predictive quality on a held-out split. For a reader interested in training efficiency, objective suboptimality is directly relevant because the methods aim to solve the same objective. A claim about prediction quality would require a separate outcome measured on the resulting solutions.
The CPU reference is a single-threaded stochastic coordinate descent solver, even though the host has several cores. The reported comparison with CPU-only training therefore applies to that solver configuration. The GPU comparisons establish an advantage against the studied sequential, random, and importance-sampling policies with their local passes tuned individually. They do not give a speedup for every accelerator capacity, interconnect, or CPU implementation. The setting is particularly favorable for observing both optimization and I/O effects because the larger dataset exceeds GPU capacity and the columns are dense.
The two main measurements of data movement are the identity of resident columns and the count replaced in a round. A replacement count can show why a policy avoids some transfer work, while actual transfer time also depends on the layout and cost of moving those columns. Contiguous copies are a stated advantage of the sequential reference. The experiments report the combined performance of the methods and trace changes in replacement counts. They leave the exact share of the wall-clock gain due to the selection effect, the transfer effect, and their interaction without a separate numerical decomposition.
Finally, the larger experiments cover Lasso, ridge regression, and a linear support vector machine. The two kinds of coordinate used in those tasks make the method's scope more informative than a test restricted to one formulation. They still share the mathematical structure that makes column-level scoring and block-local solving possible. The paper gives a framework for extending the method within that structure, with the appropriate gap expressions and local solver. The numerical results are tied to the objectives, data, and hardware on which those components were exercised.
What came after
There are no documented follow-up studies to trace here.
Cite
Cite as Celestine Dunner, Thomas Parnell and Martin Jaggi. 2017. Efficient Use of Limited-Memory Accelerators for Linear Learning on Heterogeneous Systems. arXiv:1708.05357.
@misc{dunner2017efficient,
title = {{Efficient Use of Limited-Memory Accelerators for Linear Learning on Heterogeneous Systems}},
author = {Celestine Dunner, Thomas Parnell and Martin Jaggi},
year = {2017},
doi = {10.48550/arxiv.1708.05357},
eprint = {1708.05357},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.1708.05357}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/dunner-2017-efficient-use-limited-memory-accelerators/