Convex multi-task feature learning
Paper · 2008 · Andreas Argyriou, Theodoros Evgeniou and Massimiliano Pontil
Summary
When several prediction tasks have little training data of their own, they may still have enough data together to reveal which features matter. People rating computers, for example, may respond to similar tradeoffs between price and technical attributes even when their preferences differ. Argyriou, Evgeniou, and Pontil ask how to learn such tradeoffs from labeled examples. Their method gives each task its own predictor while encouraging the predictors to draw on a small shared set of features. Those features can be combinations of the original inputs, and the method can discover how many are useful without requiring the researcher to specify the number in advance.
The starting point is a penalty on the coefficients that connect features to tasks. The penalty groups together all the coefficients for a given feature, so an entire feature can drop out of the representation. Learning those coefficients and finding the directions that define the features initially gives a non-convex optimization problem. The authors prove that an equivalent convex problem can be written using the task predictors and a matrix that describes their shared representation. Their algorithm alternates between fitting each task with the current representation and updating the representation from all the fitted predictors. They prove convergence for a version with a positive perturbation, and show that limits of the resulting optima solve the original problem as the perturbation vanishes. A kernel extension permits nonlinear features.
The simulations test both prediction and feature recovery. When the tasks were generated from a small common set of features, fitting more of them together improved estimates of the shared structure and generally reduced test error. The kernel that included the terms used to generate the nonlinear responses gave the best predictions in that simulation. For computer purchase ratings, linear feature learning achieved an average test root mean square error of 1.93 across respondents, compared with 3.88 for independent ridge regressions. For the school examination data, linear feature learning also improved on fitting separate predictors or pooling all schools into a single predictor.
The dermatology experiment shows why a common representation and common feature use are separate questions. The learned coefficients indicated that different disease classifiers relied on different features, and fitting them jointly gave similar test misclassification counts to fitting them separately with the same kernel. Across the experiments, the paper uses prediction error to assess whether sharing helps and the fitted coefficients to examine what the tasks actually share. The optimization results explain how to fit the proposed objective. The experiments show when that objective recovered useful structure in the settings the authors studied.
Deep dive: Convex multi-task feature learning
Convex multi-task feature learning finds a small set of features for related prediction tasks while letting each task use them differently. · about 38 minutes to read
The problem and its context
What can related tasks share?
A supervised task starts with examples that pair an input with a known outcome. In the computer survey, an input describes a computer and the outcome is a person's rating. Each person defines a task because the goal is to predict that person's ratings. The input attributes have the same meaning across people, so it is possible to compare their predictors even though their responses differ. This arrangement is typical of the kind of problem the authors study. Tasks use a common input description, and each gets a prediction function fitted to its own outcomes.
The paper distinguishes between sharing a feature and responding to it in the same way. A feature could combine technical attributes and price into a direction along which computers differ. One person's rating may be sensitive to that direction while another person's rating responds weakly. Both can use the same feature through different coefficients. The common direction determines how the attributes enter the feature. The task coefficient determines how much the resulting feature value contributes to that person's prediction.
This distinction matters when the researcher has only a small labeled sample for each task. Separate fits must each infer which directions in the input matter from their own examples. Pooling the responses under one predictor would let all examples influence a single fit, but it would also impose the same relationship between input and outcome across tasks. The authors study an intermediate possibility. All tasks contribute to deciding which directions are useful, and the labeled examples for each task determine how its predictor responds along those directions.
The same reasoning applies to the paper's example from object detection. A task can be defined by the object to be detected, while a representation based on image measurements can be useful across several objects. The representation can differ from the given pixel coordinates because it is derived from the input. The preference example makes the same point with named attributes. A list of attributes tells the researcher what was measured. Learning their combinations asks which variations in those measurements help explain the responses for the tasks under study.
The paper uses sparsity to make this idea operational. A sparse representation uses relatively few features out of the available directions. A feature is active when at least one task uses it. Individual tasks can place zero weight on some active features, so sparsity is assessed across the collection. With a small active set, a task may have many fewer effective directions to use than the original input would permit. The authors use the same structure to inspect which tasks rely on which features after fitting.
How earlier methods approached the problem
The paper situates its approach between familiar forms of supervised and unsupervised machine learning. In single-task supervised learning, a penalty based on the 1-norm can make some fitted coefficients exactly zero. For a fixed set of inputs, each non-zero coefficient identifies a variable the predictor uses. Extending that idea across tasks raises a question about the unit of selection. Penalizing every coefficient individually can produce a different set of inputs for every task. Penalizing the coefficients for an entire feature together gives the procedure a way to select a set for the collection.
Principal component analysis and independent component analysis are the paper's examples of unsupervised representation learning. Their features can be combinations of the original variables, so they illustrate a broader meaning of feature learning than choosing input columns. The authors' concern is that a representation for prediction should take the outcomes into account. A direction can be prominent in the inputs while being of little use to the predictors. In the proposed approach, outcomes shape the task fits, and the common representation is estimated from those fitted functions.
The authors also describe prior supervised approaches that learned what to share. In the neural-network examples they discuss, tasks have separate predictors that share hidden weights. Those weights define a common internal representation. Ando and Zhang likewise alternate between updating task parameters and updating shared features. The authors identify two differences in their own approach. They let the regularization parameter govern the number of active directions, and they obtain a convex reformulation that permits a global optimization guarantee. They present this as a contribution to shared feature learning, while recognizing earlier convex work on the simpler problem of choosing from given variables.
The distinction between selection and learning can be expressed using the original coordinate axes. With selection, any retained feature is one of those axes. With linear feature learning, the axes can be rotated before the procedure chooses which directions to use. For instance, the relative contribution of price and technical attributes can be fixed inside a common direction, while each person assigns that direction a separate coefficient. Choosing price and technical attributes as separate inputs instead leaves their relative coefficients to be estimated within each task. These are different restrictions on the fitted predictors, even though both start from the same measurements.
Several other lines of work help explain the form of the problem. The authors relate their method to collaborative filtering research that uses the trace norm to favor low-rank matrices. Here, low rank means the set of task parameter vectors can be expressed using a small basis. They also discuss reduced rank regression, partial least squares, and canonical correlation analysis as ways of studying related variables or responses. In the comparison the paper draws, those multivariate methods require the tasks to share input examples. The proposed formulation needs a common input space and can use different example sets in different tasks. That distinction matters when schools, for instance, have records for different students.
A separate question is whether task coefficients should be pulled towards a common central predictor. The authors discuss prior regularization that learns a shared matrix and penalizes differences from a common mean. The feature-learning objective in this paper centers its penalty at zero. It therefore expresses relatedness through the directions that the predictors occupy. It leaves room for predictors with different magnitudes or signs along a common direction. This difference becomes relevant in the purchase-rating comparisons, where prior methods that use a common mean provide a stronger test than independent fits alone.
The method, step by step
From labeled examples to shared directions
The procedure can be understood as a conversation between two estimates. A set of task predictors supplies evidence about the directions the tasks use. A representation estimated from those directions then influences the next fit of every task. At initialization, all directions have the same status. After an update, directions prominent across the fitted predictors receive more room in the next round of fitting. Repeating this process yields task-specific predictions and an estimate of the subspace they use.
The two updates use information differently. Fitting a task is supervised because both its inputs and its outcomes enter the fit. Updating the representation uses the current task parameter vectors as its data. It needs no separate labels for what a good feature would be. The shared matrix transmits information from all the fitted tasks into each subsequent supervised update. This is how the overall fit can use evidence across tasks even though, with the matrix fixed, each prediction problem can be solved independently.
Alternating updates for multi-task feature learning
The steps in order.
The paper develops the method first for linear predictors. A training example has an input vector and a scalar outcome. It can be a measured rating or examination score, or the label used to fit a classification score. The notation gives every task the same sample count for convenience. The objective extends to unequal counts by summing over the examples available to each task, as is necessary for the school data.
The initial hypothesis is that each task function can be written using a small set of features. The feature functions are common to the tasks. A separate coefficient for every task and feature determines the contribution to a given prediction.
fₜ(x) = ∑ᵢ₌₁ᴺ aᵢₜ hᵢ(x)
Here fₜ is the prediction function for task t, x is an input, N is the number of features used in this representation, and i indexes those features. The function hᵢ maps an input to its value along feature i. The scalar aᵢₜ is the weight task t assigns to that feature, and ∑ adds their contributions.
In the linear case, each feature evaluates the inner product of the input with a direction. The authors require the directions to be orthonormal. Thus they have unit length and distinct directions are perpendicular. Any smaller set of such directions can be treated as part of a complete orthonormal basis, with unused directions receiving zero coefficients. This lets the optimization start with space for as many directions as there are input dimensions, then use the penalty to yield a smaller active set.
fₜ(x) = ⟨aₜ, Uᵀx⟩ = ⟨wₜ, x⟩, wₜ = Uaₜ
Here U is the square matrix whose columns are the orthonormal directions, Uᵀ denotes its transpose, and aₜ contains task t's coefficients in that basis. The vector wₜ contains the same predictor's weights in the original input coordinates. The brackets ⟨·, ·⟩ denote the inner product, and fₜ(x) is the prediction at x. The transposes matter because applying Uᵀ to the input computes its feature values, while applying U to the coefficients returns the predictor to the original coordinates.
To see where sparsity enters, imagine writing the feature coefficients with a column for each task and a row for each direction. If every entry in a row is zero, the corresponding direction contributes nothing to any task. A large row can arise from several tasks assigning weight to a feature or from a feature carrying a large weight in a smaller set of tasks. The regularizer groups weights by row and measures each group's magnitude before adding the row magnitudes.
‖A‖₂,₁ = ∑ᵢ₌₁ᵈ ‖Aᵢ,:‖₂
Here A is the feature coefficient matrix, with d rows for the d input dimensions and one column per task. The index i names a row, the colon in Aᵢ,: means that the row contains all task columns, and ‖·‖₂ is Euclidean length. The notation ‖A‖₂,₁ describes taking Euclidean lengths within rows and summing those lengths across rows. The Euclidean length uses magnitudes, so positive and negative coefficients for a feature contribute without canceling.
The authors illustrate the effect with a matrix containing a fixed set of unit entries. Concentrating those entries in one row produces a smaller mixed norm than placing each entry in a separate row, provided there are enough rows. The illustration isolates what the penalty rewards at a fixed coefficient scale. More generally, the directions that survive must also help account for the observed outputs. A penalty that favors concentration would be of limited use on its own, since assigning zero weight to every feature would minimize it.
E(A, U) = ∑ₜ₌₁ᵀ ∑ⱼ₌₁ᵐ L(yₜⱼ, ⟨aₜ, Uᵀxₜⱼ⟩) + γ‖A‖₂,₁²
Here E is the objective, T is the number of tasks, and m is the sample count per task in the common-count notation. The indices t and j identify a task and one of its training examples. The input is xₜⱼ, its observed outcome is yₜⱼ, and L measures the loss when the predictor supplies the second argument. The loss is convex in that second argument. The parameter γ is positive and controls the weight given to the squared mixed norm. The superscript ² applies to the sum of row lengths as a whole.
For one task with a fixed basis, this penalty reduces to the squared 1-norm of its coefficient vector. For multiple tasks, keeping U fixed at the identity produces the paper's variable selection version. An active row then represents an original input variable. Allowing U to vary lets that row represent a learned combination. With U fixed, the objective is convex in A. Optimizing the pair is non-convex because the predictor depends on their product and U must remain orthogonal. A change in the feature basis also changes the coefficients needed to represent a given predictor.
Rewriting the objective as a convex problem
The reformulation starts by putting all task predictors in one matrix W, using their coefficients in the original input coordinates. A second matrix D describes which directions are available and how costly it is for a task to use each of them. Its eigenvectors provide the candidate directions, and a large eigenvalue makes the associated direction cheaper to use. The matrix is positive semidefinite, which means its eigenvalues are non-negative. It can have zero eigenvalues, allowing the learned representation to exclude directions entirely.
R(W, D) = ∑ₜ₌₁ᵀ ∑ⱼ₌₁ᵐ L(yₜⱼ, ⟨wₜ, xₜⱼ⟩) + γ∑ₜ₌₁ᵀ ⟨wₜ, D⁺wₜ⟩
Here R is the reformulated objective, W collects the parameter vectors wₜ in its columns, and D is the shared matrix. The symbol D⁺ denotes the pseudoinverse. On a direction with a positive eigenvalue it applies the reciprocal of that eigenvalue, and on a direction with eigenvalue zero it acts as zero. The loss L, training pairs xₜⱼ and yₜⱼ, counts T and m, indices t and j, inner product brackets, and penalty weight γ have the same meanings as in E.
D ⪰ 0, trace(D) ≤ 1, range(W) ⊆ range(D)
Here D ⪰ 0 states that D is positive semidefinite. The trace is the sum of its diagonal entries, or equivalently its eigenvalues, and it is bounded above by 1. The range of a matrix is the span of its columns. The inclusion sign ⊆ requires every task's parameter vector in W to lie in the range of D.
Each constraint contributes to the meaning of the penalty. The trace bound sets a common budget for the eigenvalues. Without that budget, the fit could keep the same predictors and make their quadratic penalty arbitrarily small by scaling the matrix. The range constraint handles the zero eigenvalues. Taken alone, the pseudoinverse gives a zero contribution for a component in a null direction. The constraint instead makes that component infeasible. A direction with zero allocation is unavailable, and a direction with a small positive allocation remains available at high cost.
To see how this reproduces the original regularizer, temporarily fix a set of orthonormal directions. The coefficients along each direction have a row length. If that direction receives a positive eigenvalue, its contribution to the quadratic penalty is the square of the row length divided by the eigenvalue. Smaller allocations therefore increase the cost of heavily used directions. The best allocation at a fixed coefficient matrix distributes the trace budget in proportion to the row lengths.
λᵢ = ‖Aᵢ,:‖₂ / ‖A‖₂,₁
Here λᵢ is the eigenvalue associated with direction i. The numerator is the Euclidean length of row i of A, and the denominator is the sum of all row lengths. This expression assumes a non-zero coefficient matrix. A zero row receives a zero eigenvalue. The corresponding predictor coefficients already meet the range restriction.
The scalar argument behind this allocation uses the Cauchy–Schwarz inequality. Multiplying each row length by the square root of its allocation and dividing by the same factor leaves the row length unchanged. Applying the inequality to that sum bounds its square by the product of the total allocation and the sum of squared row lengths divided by allocations. The total allocation is at most 1. At the proportional allocation the inequality is tight, so the minimized quadratic penalty equals the square of the sum of row lengths.
D = U Diag(λ) Uᵀ
Here D is the matrix built from the original feature basis U. The vector λ contains the allocations λᵢ, Diag places them on a matrix diagonal, and Uᵀ is the transpose of U. With W formed from the columns Uaₜ, this construction gives the same predictions and penalty as the original objective. Conversely, for a feasible W and D, use an orthonormal eigenbasis of D for U and express W in that basis to obtain A. The range condition gives zero coefficient rows along the excluded directions. Reallocating the trace according to the row lengths can only lower the quadratic penalty. The minimum therefore agrees with the minimum in the feature formulation, and an optimal pair yields an optimal set of feature coefficients.
The authors prove joint convexity by examining the quadratic penalty with its feasibility condition built into its value. For a feasible vector and matrix, it takes the pseudoinverse quadratic value. For a vector outside the matrix range or a matrix with a negative eigenvalue, it has value positive infinity. They express this extended-valued function as the supremum of affine functions of the vector and matrix. The supremum is convex. The empirical loss is also convex because its prediction argument is linear in the task coefficients. The bound on the trace is linear, which completes the convex formulation.
There is also a version using only positive definite matrices, whose eigenvalues are all strictly positive. It can use the ordinary inverse and has no explicit range restriction. It has the same infimum, but a solution that needs to exclude directions can lie on the boundary of that domain. Such a solution can be approached by positive definite matrices. Permitting singular D in the original convex formulation lets the optimum represent that exclusion exactly.
The diagonal constraint gives the parallel result for variable selection. The coordinate directions are fixed, so only the weight on each coordinate can change. In that case the same allocation formula uses the row lengths of W in the original coordinates. A full D can assign its weight to rotated axes. This makes the relation between the two variants particularly direct. They use the same kind of loss, and the feasible representation determines whether the directions can be learned.
Fitting the predictors and updating the representation
Starting with equal directional weights, the algorithm holds D fixed and minimizes with respect to the predictor for each task. The regularizer then separates over tasks just as the losses do. Each fit uses the labels available for that task and an inverse quadratic penalty supplied by the common D. For squared loss, this is a form of ridge regression in which shrinking a parameter depends on its direction.
wₜ = argminᵥ [∑ⱼ₌₁ᵐ L(yₜⱼ, ⟨v, xₜⱼ⟩) + γ⟨v, D⁻¹v⟩]
Here argminᵥ returns a minimizing parameter vector v for task t, and wₜ is the result. The sum is over the m examples indexed by j. The quantity yₜⱼ is the observed outcome, xₜⱼ is the input, L is the loss, and γ is the penalty weight. The brackets denote inner products, and D⁻¹ is the inverse of the positive definite matrix used in this update. Equivalently, the fit can use a linear kernel whose inner product weights directions according to D. This interpretation is useful for seeing how separate fits receive a common representation.
With W fixed, the next step chooses D to minimize the quadratic penalty under the trace bound. To keep the new matrix invertible, the authors add a positive perturbation to the matrix product built from the current task vectors. In the objective this adds a penalty for large values of the trace of the inverse of D. When an eigenvalue of D approaches zero, its reciprocal grows. The perturbation therefore protects every direction from being eliminated during the alternating updates.
Rε(W, D) = ∑ₜ₌₁ᵀ ∑ⱼ₌₁ᵐ L(yₜⱼ, ⟨wₜ, xₜⱼ⟩) + γ trace[D⁻¹(WWᵀ + εI)]
Here Rε is the objective at a fixed positive perturbation ε. The matrix I is the identity of the input dimension, Wᵀ is the transpose of W, and WWᵀ combines the outer products of the parameter vectors. The trace adds the diagonal elements of the matrix expression, and D⁻¹ is the inverse of the current positive definite D. The remaining symbols denote the same losses, examples, indices, counts, parameter vectors, and penalty weight as in R. With D held fixed, the added term is independent of W, so it does not change the form of the individual task fits.
The matrix update has a closed form. The authors derive it by using the matrix counterpart of Cauchy–Schwarz for the trace minimization. At the minimum, D uses the entire trace budget and is proportional to the positive semidefinite square root of the matrix that summarizes the task vectors and the perturbation.
Dε(W) = (WWᵀ + εI)¹ᐟ² / trace[(WWᵀ + εI)¹ᐟ²]
Here Dε(W) is the new shared matrix, computed from W at perturbation ε. The exponent ¹ᐟ² is the matrix square root, which preserves the eigenvectors and takes the square root of each eigenvalue. The transpose is Wᵀ, I is the identity, and the trace in the denominator normalizes the new matrix to have trace 1. The division scales the whole matrix by that scalar. For the unperturbed objective and non-zero W, the same update with ε set to zero gives the minimizing D under the original range constraint.
This update estimates which directions describe the fitted predictors. It uses their outer products, so tasks can support the same direction even when their coefficients have opposite signs. The procedure squares before aggregating in the matrix product, instead of taking a mean vector that could erase opposite contributions. It then uses the square root before allocating the budget. The result is a matrix of directional weights tied to the spread of the fitted predictors, with no requirement that those predictors be small deviations around a common vector.
One round consists of the task fits followed by the matrix update. The paper's algorithm uses the change in W between successive rounds as its stopping criterion. The authors make a Matlab implementation available. Their mathematical convergence statements address the exact updates and the limiting problems. With a fixed positive ε, each step can only lower the objective or leave it unchanged. A lower bound ensures that the objective values converge, but that observation alone does not establish convergence of the parameter estimates.
The proof goes further by minimizing out D and studying the resulting function of W. With the perturbation in place, the spectral penalty is strictly convex, which yields a unique minimizing W. The authors prove continuity of the value attained by the task update and use it to analyze limits of subsequences of the iterates. At such a limit, the task update cannot decrease the objective, and the matrix is already optimal given the task parameters. Smoothness of the coupled penalty and joint convexity then establish joint optimality. Uniqueness for the perturbed problem lets them conclude that the iterates as a whole converge for fixed positive ε.
The original objective requires an additional limit. The authors consider the exact minimizers of successive perturbed problems with positive ε tending to zero. Any limit point of that sequence solves the original convex problem, and the equivalence result maps it back to a solution of the feature-learning problem. Running until the task parameters have nearly stabilized before reducing ε is the algorithmic interpretation given in the paper. Directly alternating at zero perturbation has weaker theoretical support. Once the updates are confined to an estimated range, they may be unable to recover an excluded direction. The authors report observing convergence to an optimum in practice for their unperturbed runs, while their proof uses the perturbation.
What the trace norm adds to the interpretation
A second way to view the same objective is to eliminate D altogether. In the unperturbed case, substituting the best D into the penalty leaves the square of the trace norm of W. The trace norm is the sum of singular values. These values measure the strength of the independent directions in the task parameter matrix.
‖W‖ₜᵣ = trace[(WWᵀ)¹ᐟ²]
Here ‖W‖ₜᵣ denotes the trace norm, W is the matrix of task parameters, and Wᵀ is its transpose. The exponent ¹ᐟ² takes the positive semidefinite matrix square root. The trace sums the eigenvalues of that square root, which are the singular values of W, with zeros making no contribution.
min over W [∑ₜ₌₁ᵀ ∑ⱼ₌₁ᵐ L(yₜⱼ, ⟨wₜ, xₜⱼ⟩) + γ‖W‖ₜᵣ²]
Here min over W means to minimize over the matrix of task parameters, whose t-th column is wₜ. The index j runs over the m training pairs for task t, and t runs over the T tasks. The observed outcome is yₜⱼ and the input is xₜⱼ. The brackets give the prediction as an inner product, L measures its loss, and γ multiplies the square of the trace norm.
This view connects sparsity of the learned rows to rank. In the original coordinates W may have entries in many rows. If its columns occupy only a small subspace, they can be written with few active rows in an adapted orthonormal basis. At an optimum, the rank of the corresponding D equals the number of rows of A with non-zero length. The trace-norm formulation captures the strength and number of directions through the spectrum of W. The alternating formulation retains the matrix that determines how sharing influences each task fit. The authors prefer that formulation for their algorithm because its updates have simple forms and direct interpretations.
The spectral view also clarifies what information is available for interpretation. The eigenbasis describes the fitted subspace, and expressing the predictors in that basis shows how the tasks use it. Where eigenvalues coincide, different orthonormal choices inside the same eigenspace can describe the same matrix and predictions. As a result, a direction is most informative when its loading pattern and prominence can be tied to the fitted representation. A coefficient plot conveys how those particular axes are used across tasks.
Making the features nonlinear
A kernel extends the method by assigning each input a feature vector in another space. The inner product between two such vectors is available from evaluations of the kernel on the original inputs. The feature space can be very large or infinite dimensional. In it, a task predictor is linear in the mapped vector, yet the mapping can make its output nonlinear as a function of the original input. For the polynomial kernel in the simulations, for example, products of input coordinates are available alongside simpler terms.
K(x, x′) = ⟨ϕ(x), ϕ(x′)⟩
Here K is the prescribed kernel, x and x′ are inputs, and ϕ is the map into the kernel's feature space. The brackets are the inner product of the mapped vectors. Prescribing K determines which kinds of directions are available to the procedure. The shared directions are then learned within that space from the tasks.
The trace-norm objective in this setting replaces the original input in each prediction by its mapped vector. The difficulty is that direct optimization could appear to require storing every coordinate of every predictor in that space. The authors prove a representer theorem, which identifies a smaller space that contains the optimal predictors. For any task, its optimal parameter vector lies in the span of mapped training inputs from all tasks. Using the full collection matters because each vector is estimated under a penalty shared with the others.
wₜ = ∑ₛ₌₁ᵀ ∑ⱼ₌₁ᵐ cₛⱼ,ₜ ϕ(xₛⱼ)
Here wₜ is the parameter vector for task t in the kernel feature space. The sum runs over source tasks s and their training indices j, with T tasks and m examples per task in the notation. The input xₛⱼ is mapped by ϕ, and cₛⱼ,ₜ is the scalar weight on that mapped input in task t's expansion. This expression uses the training inputs as a spanning set. It does not require the spanning set to be linearly independent.
The proof projects each task vector onto that span. An orthogonal component contributes zero to the inner product with every training input, so dropping it leaves every training prediction fixed. The matrix of such components adds a positive semidefinite term to the Gram matrix of task vectors. Keeping a non-zero orthogonal component raises the trace norm. Since it has no benefit for the loss, an optimum lies entirely inside the span. The argument explains why the theorem is suited to this particular penalty rather than to arbitrary feature restrictions.
For computation, the authors work in an orthonormal basis for the span. Write V for the matrix with those basis vectors as columns and δ for the dimension of the span. Each mapped input is represented by its inner products with those columns, and each task vector can be reconstructed by multiplying its basis coefficients by V. Orthogonality preserves the relevant inner products and preserves the non-zero singular values of the task parameter matrix. Thus the objective has the same form in these coordinates, and the alternating method operates in dimension δ.
z(x) = Vᵀϕ(x)
Here z(x) is the vector of coordinates of the input x along the basis of the training span. The map ϕ sends x into the kernel feature space. The transpose Vᵀ takes inner products with the orthonormal basis columns of V. For a new input whose mapped vector also has a component outside the span, these coordinates suffice because all fitted task vectors lie inside it.
The basis can be computed using only inner products between mapped inputs, which are kernel values. The algorithm chooses training inputs whose maps are independent, and represents the orthonormal basis as linear combinations of those vectors. The authors discuss Gram–Schmidt orthogonalization, which can detect when another mapped input enlarges the span but can be sensitive to round-off error. They also discuss an eigendecomposition of the full Gram matrix, whose entries are the pairwise kernel values. They suggest a compromise that builds an initial basis by eigendecomposition on a subset and extends it through orthogonalization.
Once the basis has been built, the task step fits coefficient vectors on the reduced inputs. The matrix step again computes a square root and normalizes it by its trace. The algorithm converts the final coefficient vectors back into weights on the selected training inputs. New predictions can therefore be evaluated through kernel values against those inputs. The learned features themselves can also be expressed in that basis through a singular value decomposition of the fitted task parameter matrix. This separates the weights that define a feature from the coefficients through which tasks use it.
The main computational quantity is δ, which depends on how many independent directions the mapped training inputs span. The paper reports an initialization cost of O(δmT) kernel computations in the orthogonalization procedure, and a cost of O(δ³) operations for the matrix square root within an iteration. It identifies settings such as shared training inputs where the span can be small enough to make the conversion especially effective. In the trials discussed in the paper, convergence usually took between 20 and 100 iterations for the linear and kernel algorithms. That observation concerns the reported runs, while the convergence argument itself establishes a limit.
Experiments and results
What the simulations measure
All the experiments use squared loss for fitting. The paper describes searching over powers of 10 with exponents from −6 through 3 to tune the regularization strength. It gives 5-fold cross-validation as the general procedure and specifies 15-fold cross-validation for the school experiment. These validation choices concern training and parameter selection. The reported test outcomes come from held-out data. Classification in the dermatology experiment is evaluated by counting mistakes even though squared loss is used in training.
The linear simulation creates tasks whose coefficients differ but all lie in a known coordinate subspace. The authors draw the relevant task coefficients from a zero-mean Gaussian distribution with diagonal covariance entries 1, 0.64, 0.49, 0.36, and 0.25. They add up to 10 irrelevant dimensions by assigning those coordinates zero coefficients. Inputs are sampled uniformly from the unit cube, with total input dimension ranging from 5 to 15. The generated outcome is a linear prediction plus independent-in-form additive Gaussian noise with zero mean and standard deviation 0.1. The experiment uses no bias term.
Each task has 5 training examples and 20 test examples. The authors fit groups of 10, 25, 100, and 200 tasks, and use random subsets of the full collection for the smaller groups. Their baseline fits each task separately by ridge regression. The joint procedure is free to rotate the inputs even though the generating features are original coordinates. The experiment therefore tests whether the method can recover the known directions without building that choice into the fit.
The test-error curves favor joint fitting and improve as more tasks are included. The advantage over independent fitting grows as irrelevant input variables are added. After scaling the generating covariance to have unit trace, the authors also monitor how far it is from D’s learned 5 × 5 principal submatrix in Frobenius distance. The Frobenius distance summarizes the discrepancy across all entries of the two matrices. By this measure the representation improves when the method sees more tasks. Comparing the estimated feature axes with the original coordinate axes gave a similar qualitative result.
The nonlinear simulation asks whether the kernel method can benefit when the true features include products of inputs. The response uses squared values of the first and fourth coordinates, the product of the first and second, the product of the third and fifth, individual terms for the second and fourth, and a constant. The coefficients are drawn from a zero-mean Gaussian distribution whose diagonal covariance entries are 0.5, 0.25, 0.1, 0.05, 0.15, 0.1, and 0.15 in that order. The input dimension ranges from 5 to 10. There are 20 examples per task in each of the training and test sets. The fit has no additional bias component appended to the input.
The kernel comparison uses a polynomial kernel containing quadratic, linear, and constant terms, a homogeneous quadratic kernel, and a linear kernel with a constant term. The first covers all the terms used to generate the responses. It gives the best test performance, and the linear method gives poorer predictions in this setting. With the kernel that includes the generating terms, the joint fit needs more than 10 tasks to improve on independent fitting in the reported comparison. The curves establish the ordering under this design, including what happens as irrelevant variables are introduced.
Purchase ratings for personal computers
The conjoint analysis data come from a survey of 180 people and describe their reported likelihood of buying configurations from a set of 20 personal computers. Each person forms a task. The inputs encode 13 binary attributes covering aspects of hardware, support, availability, software, guarantees, and price. A further input accounts for the bias. The outcomes are integer ratings on a 0–10 scale. The authors use the first 8 examples per person to train and the last 4 to test. They measure root mean square prediction error on the test ratings and average it across people.
Independent ridge regression has an average test RMSE of 3.88. With all 180 tasks fitted together, linear feature learning gives 1.93. The diagonal version that selects attributes gives 2.01. A Gaussian kernel, with its radial width parameter chosen by cross-validation, yields 1.85. The reported hierarchical Bayes and RR-Het comparisons give 1.90 and 1.79 respectively. Both offer ways to borrow across people, so they put the improvement over independent ridge regression in context. RR-Het has the lowest reported test RMSE in this comparison, and the Gaussian variant is the best of the paper's feature-learning and variable-selection variants.
Average test RMSE on the personal computer purchase-rating survey
Gaussian feature learning gives the lowest error among the paper's variants, while RR-Het has the lowest reported error overall.
The numbers
| System or setting | RMSE |
|---|---|
| Independent ridge regression | 3.88 |
| Linear feature learning | 1.93 |
| Shared variable selection | 2.01 |
| Hierarchical Bayes | 1.90 |
| RR-Het | 1.79 |
| Gaussian feature learning (this paper) | 1.85 |
The fitted linear representation also gives a view of which measurements enter the predictions together. The coefficient matrix has a few prominent rows, and the magnitudes in those rows are fairly stable across people. When the authors inspect the dominant feature, they see a direction that appears to put RAM, CPU speed, and CD-ROM capability on one side of a tradeoff with price. The combination defines a single feature for all respondents. Each respondent's coefficient determines how that feature enters their predicted rating. The interpretation comes from looking at both the direction in the original attributes and its use across tasks.
Examination scores across schools
The school data come from the Inner London Education Authority and contain examination scores for 15,362 students across 139 secondary schools during 1985, 1986, and 1987. Each school is a task. The inputs include examination year, school characteristics such as denomination and the proportion eligible for free school meals, and student characteristics including gender, verbal reasoning band, and ethnic group. The authors follow earlier preprocessing by converting categorical values to binary indicators, yielding 27 attributes. They report similar results with and without a bias.
The authors make 10 random splits, taking 75% of the examples in each school for training and 25% for testing. School sample sizes vary. On average there are about 80 training students and about 30 test students per school. The authors compute validation error within tasks and normalize according to school population. They use a similar treatment of the schools to obtain the overall mean squared test error. For comparison with prior work, they report percentage explained variance, defined from the mean squared test error relative to the outcome variance computed within tasks. Higher values indicate that the errors account for a smaller share of that variance.
Independent ridge regression fits and tunes a predictor for each school. Aggregate ridge regression trains one predictor as if all the students belonged to the same school. The aggregate result is 22.7 ± 1.3% explained variance and the independent result is 23.8 ±2.1%. Shared variable selection reaches 24.8 ± 2.0%. Linear feature learning reaches 26.7 ± 2.0%, and Gaussian feature learning reaches 26.4 ± 1.9%. The authors regard the two feature-learning kernels as performing comparably and judge the improvement from variable selection over independent learning as unclear.
Test explained variance on the Inner London school data
Both feature-learning variants have higher reported explained variance than aggregate fitting, independent fitting, or shared variable selection.
The numbers
| System or setting | explained variance % |
|---|---|
| Aggregate ridge regression | 22.7 |
| Independent ridge regression | 23.8 |
| Shared variable selection | 24.8 |
| Gaussian feature learning | 26.4 |
| Linear feature learning (this paper) | 26.7 |
School-by-school results vary more widely than the headline averages suggest. The across-task standard deviation of explained variance is 30% for independent fitting and 26% for aggregate fitting. The authors interpret this variation and the comparison between the two fits as evidence that collapsing the schools into a single predictor is a poor description of the problem. In the shared representation, the dominant direction is associated most strongly with students' verbal reasoning bands. Ethnic group and gender indicators also have some weight, while the school-specific attributes have little visible weight in that direction. This reading concerns the coefficients of the fitted predictor.
Disease classification in the dermatology data
The UCI dermatology data present a multiclass prediction problem with six disease categories. Inputs consist of 33 clinical and histopathological attributes plus a bias component. Following the earlier setup discussed in the paper, the authors formulate a binary task for each disease. They use 10 random splits, each with 200 training points and 166 test points, and compare test misclassification counts. Separate fits and joint feature learning are evaluated with linear and Gaussian kernels so that the contribution of sharing can be examined within each kernel choice.
The independent linear fits give 16.5 ± 4.0 misclassifications, and joint linear feature learning gives 16.5 ± 2.6. With a Gaussian kernel the corresponding results are 9.8 ± 3.1 and 9.5 ± 3.0. The change associated with using a Gaussian kernel is evident for both training arrangements. Within each kernel, the authors regard the independent and joint outcomes as similar. They also describe the joint linear performance as similar to that of the earlier work using shared feature selection with linear support vector classifiers.
Average test misclassifications on the UCI dermatology data
Gaussian fits make fewer mistakes in both training arrangements, with similar results for joint and independent fits within each kernel.
The numbers
| System or setting | misclassifications |
|---|---|
| Independent linear fits | 16.5 |
| Linear feature learning | 16.5 |
| Independent Gaussian fits | 9.8 |
| Gaussian feature learning (this paper) | 9.5 |
The linear coefficient plot helps explain why a joint fit can behave much like independent fitting. Its stronger entries are concentrated in different places for different diseases. The procedure supplies a common collection of axes, while different binary classifiers use different parts of it. The authors read this as consistent with weak task relatedness under their definition. The experiment supplies a real example where the evidence for broadly shared features is much weaker than in the simulations or purchase ratings.
What the ablations show
Adding tasks and adding irrelevant inputs
The linear simulation separates the effect of more related tasks from the effect of more irrelevant input coordinates. The counts of examples per task stay fixed when the authors fit larger task collections. Thus more joint evidence is available without giving any individual task a larger training set. Changing the input dimension introduces directions whose true weights are zero. The test curves show the largest benefit from joint fitting in settings where there are more such directions to contend with. The covariance comparison supports the same reading at the representation level. More tasks improve the estimate of the known underlying structure, rather than merely improving the prediction metric.
The coefficient plot checks a different aspect of recovery. For 6 irrelevant variables and all 200 tasks, the authors examine the fit using the regularization strength chosen by cross-validation. Five rows dominate. Their normalized Euclidean lengths are 0.31, 0.21, 0.12, 0.10 and 0.09, while the generating covariance's diagonal entries after normalization are 0.36, 0.23, 0.18, 0.13 and 0.09 in the reported comparison. The dominant directions and the concentration of weight are consistent with the generator. The reported magnitudes also show that estimating a small active set does not give exact recovery of the target weights in this sample.
Varying the penalty and the kernel
The paper varies γ to see whether stronger regularization actually reduces the number of learned features. In the linear simulation with 6 irrelevant variables, the reported rank of D falls as γ increases. Varying the penalty on the computer survey with all 180 tasks shows the same direction of change. The authors describe similar behavior for the school data. These comparisons address the practical role of γ. It and the fitted task structure together determine how many directions the algorithm retains, whereas the optimization proof concerns the minimum at a given γ.
The nonlinear simulation holds the generating mechanism fixed while changing the functions available to the learner. The kernel with linear and quadratic terms can express the full combination used to generate the outcomes. The homogeneous quadratic kernel excludes the linear terms, and the linear kernel excludes quadratic variation. The better test performance of the kernel that covers the generating terms demonstrates that the benefit of sharing depends in part on the available representation. Joint fitting cannot recover a generating term that the chosen feature space leaves out.
A coefficient plot complements that comparison. With no irrelevant variables and all 200 tasks, the authors report that the 7 directions associated with the generating terms dominate the remaining 14 directions in the polynomial representation. This supports a feature-recovery interpretation alongside the test-error result. The experiment is especially informative because the active structure is known before fitting, a condition the survey and school records cannot supply.
Learning combinations versus selecting attributes
Constraining D to be diagonal is a controlled change to the method. It retains the grouping of coefficients across tasks but removes the freedom to rotate the original attributes. In the computer survey, the feature-learning fit has lower test RMSE than the selection version. The loading pattern of the dominant linear feature suggests a concrete explanation. The learned direction can make the hardware and price terms vary together across people through each person's coefficient on that direction. Selecting those attributes gives the tasks a common list of available inputs, while leaving the relative weights of the attributes to be fitted separately.
The school results also favor learned directions over selected coordinates. The benefit of going further to a Gaussian kernel is less clear. The linear and Gaussian variants have similar explained variance there, while the Gaussian variant achieves lower RMSE on the computer survey. These comparisons expose two distinct choices. One concerns whether to learn directions in a space rather than selecting its given coordinates. The other concerns whether to enlarge the space through a nonlinear kernel. The reported results favor the first change in both datasets and give different answers about the second.
Checking the pattern of sharing
The comparison between joint and independent classifiers within each kernel is the most direct control for sharing in the dermatology experiment. Moving to a Gaussian kernel lowers the reported error for both. Moving from separate to joint fits within the same kernel changes the reported means little. The distribution of large coefficients across diseases is consistent with that performance comparison. The joint procedure can fit a shared basis without imposing that a strong feature for one classifier be strong for the rest.
The survey and school plots supply a counterpart to this result. There, large coefficients occur in a small number of rows that matter across the task collection. A visual account of the relationship between tasks therefore requires both the size of each feature row and the pattern of weights within it. A low-dimensional representation describes the predictors together. The individual coefficients reveal whether its dimensions are used widely or concentrated in particular tasks.
Limitations
Limits the authors identify
The method assumes orthonormal feature directions in the chosen space. That assumption makes the reformulation possible and shapes what the analysis can recover. The authors leave open whether other structural assumptions could lead to comparable convex problems. They mention features inspired by independent component analysis and hierarchical feature representations as examples of structures for which such a reformulation would be worth investigating. They also identify extensions beyond the trace norm and refer to work on representer theorems for a broader family of spectral penalties.
The authors distinguish optimization from learning theory. Their convergence proof concerns the objective built from the training examples and a specified regularization strength. An analysis of prediction and feature recovery under assumptions about how the tasks were sampled is left for future work. The paper likewise treats the observed decline in feature count as γ increases as an empirical pattern. Establishing conditions under which that decline must occur is a separate question. The positive perturbation introduces a further distinction between the theory and a finite run. The matrix is full rank at fixed positive perturbation, while exact exclusion of directions pertains to the original problem and its limit.
The kernel theorem applies to the trace-norm feature-learning objective. The authors explain that the argument does not extend to their diagonal variable-selection constraint, so the kernel procedure is not a general solution for selecting original variables in a kernel space. They also point out a practical interpretation cost. For the Gaussian kernel, a learned direction is a combination in an infinite-dimensional feature space. Understanding it in terms of a few named raw attributes is harder than reading the loadings of a linear feature.
The school comparisons with earlier work have explicit qualifications. The authors say that earlier methods appear to report better performance, but that their objectives differ and that the splits for one earlier comparison are unavailable. With large variation across schools, splits can influence the outcome. The strongest direct comparisons on this benchmark are therefore the methods the authors evaluate on their own splits. Similarly, for dermatology the authors present weak relatedness as a conjecture supported by the classifiers and coefficient plot. The true structure of the tasks is unknown.
Limits visible in the experimental design
The simulations give the cleanest evidence for recovery because they define the target in advance. They also give the learner a favorable kind of task relatedness. All tasks are sampled from the same prescribed family, irrelevant dimensions have exactly zero generating coefficients, and the most successful nonlinear kernel includes every term used to generate the responses. This establishes what can happen when many tasks contain aligned evidence of the kind the regularizer seeks. It leaves feature recovery in other forms of relatedness, or recovery with a poorly matched kernel, dependent on further evidence.
The computer survey shows why independent fitting is a useful but incomplete comparator. Predicting ratings jointly produces much smaller test errors than independent ridge regression in that setup. The separate comparison with RR-Het shows that the preferred structure of sharing can differ across data. A shrinkage target derived from a common mean can be valuable for preference prediction. The uncentered penalty in this paper addresses which subspace the predictors occupy, so the survey results combine a substantial gain from sharing with evidence that a different treatment of task similarity can yield lower error.
On the school data, prominent weights describe predictive associations inside a specified representation. The dominance of verbal reasoning band pertains to fitted examination scores on these inputs and splits. The relatively small visible weights on school-level attributes in the leading direction concern that direction. The coefficient plot cannot establish what would happen if a school characteristic changed, or establish that those characteristics have little influence in every predictor the method fits. Likewise, the apparent tradeoff between hardware and price in the survey describes a direction in reported purchase ratings, rather than behavior under an intervention on price.
The real-data experiments evaluate held-out examples for tasks represented during training. For the survey and school comparisons, each evaluated person or school contributes its own training observations. This is a test of fitting related, observed tasks with a common representation. It leaves open how much data would be needed to attach a new task to that representation, and how performance would change on people or schools drawn from a different collection. The dermatology result supports similar performance for joint and independent fitting on the reported splits. A general guarantee against harmful sharing would require evidence beyond that comparison.
What came after
The paper makes task relatedness a question about what information can be shared while retaining task-specific outputs. Its own answer is a small set of feature directions for predictors that work in the same input space. The two later citing works address different prediction problems under the broader multitask framing. One concerns estimating the quality of translations, and the other concerns forecasting performance across languages. Their stated problems show how the question of what tasks can share carries over to settings where the objects being predicted are quite different.
[Online Multitask Learning for Machine Translation Quality Estimation] applies multitask learning to the estimation of translation quality in an online setting. This changes both the subject of the prediction and how learning is organized. Argyriou and colleagues alternate repeatedly over a fixed collection of labeled datasets. The later work puts the sharing question in machine translation quality estimation and makes online learning part of its formulation. The citation connects the two through the use of multiple prediction tasks. The paper's title establishes that application and setting. It leaves the role of the earlier work's particular matrix penalty and update unspecified. /free/en/papers/souza-2015-online-multitask-learning-machine-translation/
[Multi Task Learning For Zero Shot Performance Prediction] uses the multitask framing for a forecasting problem in multilingual NLP. Its target is zero-shot performance. In that setting, the quantity to be predicted is how a multilingual system will perform, instead of the rating, examination score, or disease label at the level of an individual example. This places sharing at the level of performance prediction. The question it has in common with the earlier paper is whether evidence from related prediction tasks can inform each task's estimate. The citation and stated scope establish that relationship, while the choice of shared representation and optimization procedure in the later study remain unspecified here. /free/en/papers/ahuja-2022-multi-task-learning-zero-shot/
Cite
Cite as Andreas Argyriou, Theodoros Evgeniou and Massimiliano Pontil. 2008. Convex multi-task feature learning. Machine Learning.
@inproceedings{argyriou2008convex,
title = {{Convex multi-task feature learning}},
author = {Andreas Argyriou, Theodoros Evgeniou and Massimiliano Pontil},
booktitle = {Machine Learning},
year = {2008},
doi = {10.1007/s10994-007-5040-8},
url = {https://doi.org/10.1007/s10994-007-5040-8}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/argyriou-2008-convex-multi-task-feature-learning/