# lifelong_learning_with_noniid_tasks__28459a24.pdf Lifelong Learning with Non-i.i.d. Tasks Anastasia Pentina IST Austria Klosterneuburg, Austria apentina@ist.ac.at Christoph H. Lampert IST Austria Klosterneuburg, Austria chl@ist.ac.at In this work we aim at extending the theoretical foundations of lifelong learning. Previous work analyzing this scenario is based on the assumption that learning tasks are sampled i.i.d. from a task environment or limited to strongly constrained data distributions. Instead, we study two scenarios when lifelong learning is possible, even though the observed tasks do not form an i.i.d. sample: first, when they are sampled from the same environment, but possibly with dependencies, and second, when the task environment is allowed to change over time in a consistent way. In the first case we prove a PAC-Bayesian theorem that can be seen as a direct generalization of the analogous previous result for the i.i.d. case. For the second scenario we propose to learn an inductive bias in form of a transfer procedure. We present a generalization bound and show on a toy example how it can be used to identify a beneficial transfer algorithm. 1 Introduction Despite the tremendous growth of available data over the past decade, the lack of fully annotated data, which is an essential part of success of any traditional supervised learning algorithm, demands methods that allow good generalization from limited amounts of training data. One way to approach this is provided by the lifelong learning (or learning to learn [1]) paradigm, which is based on the idea of accumulating knowledge over the course of learning multiple tasks in order to improve the performance on future tasks. In order for this scenario to make sense one has to define what kind of relations connect the observed tasks with the future ones. The first formal model of lifelong learning was proposed by Baxter in [2]. He introduced the notion of task environment a set of all tasks that may need to be solved together with a probability distribution over them. In Baxter s model the lifelong learning system observes tasks that are sampled i.i.d. from the task environment. This allows proving bounds in the PAC framework [3, 4] that guarantee that a hypothesis set or inductive bias that works well on the observed tasks will also work well on future tasks from the same environment. Baxter s results were later extended using algorithmic stability [5], task similarity measures [6], and PAC-Bayesian analysis [7]. Specific cases that were studied include feature learning [8] and sparse coding [9]. All these works, however, assume that the observed tasks are independently and identically distributed, as the original work by Baxter did. This assumption allows making predictions about the future of the learning process, but it limits the applicability of the results in practice. To our knowledge, only the recent [10] has studied lifelong learning without an i.i.d. assumption. However, the considered framework is limited to binary classification with linearly separable classes and isotropic log-concave data distributions. In this work we use the PAC-Bayesian framework to study two possible relaxations of the i.i.d. assumption without restricting the class of possible data distributions. First, we study the case in which tasks can have dependencies between them, but are still sampled from a fixed task environment. An illustrative example would be when task are to predict the outcome of chess games. Whenever a player plays multiple games the corresponding tasks are not be independent. In this setting we retain many concepts of [7] and learn an inductive bias in the form of a probability distribution. We prove a bound relating the expected error when relying on the learned bias for future tasks to its empirical error over the observed tasks. It has the same form as for the i.i.d. situation, except for a slowdown of convergence proportional to a parameter capturing the amount of dependence between tasks. Second, we introduce a new and more flexible lifelong learning setting, in which the learner observes a sequence of tasks from different task environments. This could be, e.g., classification tasks of increasing difficulty. In this setting one cannot expect that transferring an inductive bias from observed tasks to future tasks will be beneficial, because the task environment is not stationary. Instead, we aim at learning an effective transfer algorithm: a procedure that solves a task taking information from a previous task into account. We bound the expected performance of such algorithms when applied to future tasks based on their performance on the observed tasks. 2 Preliminaries Following Baxter s model [2] we assume that all tasks that may need to be solved share the same input space X and output space Y. The lifelong learning system observes n tasks t1, . . . , tn in form of training sets S1, . . . , Sn, where each Si = {(xi 1, yi 1), . . . , (xi m, yi m)} is a set of m points sampled i.i.d. from the corresponding unknown data distribution Di over X Y. In contrast to previous works on lifelong learning [2, 5, 8] we omit the assumption that the observed tasks are independently and identically distributed. In order to theoretically analyze lifelong learning in the case of non-i.i.d. tasks we use techniques from PAC-Bayesian theory [11]. We assume that the learner uses the same hypothesis set H = {h : X Y} and the same loss function ℓ: Y Y [0, 1] for solving all tasks. PAC-Bayesian theory studies the performance of randomized, Gibbs, predictors. Formally, for any probability distribution Q over the hypothesis set, the corresponding Gibbs predictor for every point x X randomly samples h Q and returns h(x). The expected loss of such Gibbs predictor on a task corresponding to a data distribution D is given by: er(Q) = Eh QE(x,y) Dℓ(h(x), y) (1) and its empirical counterpart based on a training set S sampled from Dm is given by: ber(Q) = Eh Q 1 m i=1 ℓ(h(xi), yi). (2) PAC-Bayesian theory allows us to obtain upper bounds on the difference between these two quantities of the following form: Theorem 1. Let P be any distribution over H, fixed before observing the sample S. Then for any δ > 0 the following holds uniformly for all distributions Q over H with probability at least 1 δ: er(Q) ber(Q) + 1 m KL(Q||P) + 1 + 8 log 1/δ where KL denotes the Kullback-Leibler divergence. The distribution P should be chosen before observing any data and therefore is usually referred as prior distribution. In contrast, the bound holds uniformly with respect to the distributions Q. Whenever it consists only of computable quantities, it can be used to choose a data-dependent Q that minimizes the right hand side of the inequality (3) and thus provides a Gibbs predictor with expected error bounded by a hopefully low value. Suchwise Q is usually referred as a posterior distribution. Note that besides explicit bounds, such as (3), in the case of 0/1-loss one can also derive implicit bound that can be tighter in some regimes [12]. Instead of the error difference, er ber, these bound their KL-divergence, kl(ber er), where kl(q p) denotes the KL-divergence between two Bernoulli random variables with success probabilities p and q. In this work, we prefer explicit bounds as they are more intuitive and allow for more freedom in the choice of different loss functions. They also allow us to combine several inequalities in an additive way, which we make use of in Sections 3 and 4. 3 Dependent tasks The first extension of Baxter s model that we study is the case, when the observed tasks are sampled from the same task environment, but with some interdependencies. In other words, in this case the tasks are identically, but not independently, distributed. Since the task environment is assumed to be constant we can build on ideas from the situation of i.i.d. tasks in [7]. We assume that for all tasks the learner uses the same deterministic learning algorithm that produces a posterior distribution Q based on a prior distribution P and a sample set S. We also assume that there is a set of possible prior distributions and some hyper-prior distribution P over it. The goal of the learner is to find a hyper-posterior distribution Q over this set such that, when the prior is sampled according to Q, the expected loss on the next, yet unobserved task is minimized: er(Q) = EP QE(t,St)Eh Q(P,St)E(x,y) Dtℓ(h(x), y). (4) The empirical counterpart of the above quantity is given by: ber(Q) = EP Q 1 n i=1 Eh Qi(P,Si) 1 m j=1 ℓ(h(xi j), yi j). (5) In order to bound the difference between these two quantities we adopt the two-staged procedure used in [7]. First, we bound the difference between the empirical error ber(Q) and the corresponding expected multi-task risk given by: eer(Q) = EP Q 1 n i=1 Eh Qi(P,Si)E(x,y) Diℓ(h(x), y). (6) Then we continue with bounding the difference between er(Q) and eer(Q). Since conditioned on the observed tasks the corresponding training samples are independent, we can reuse the following results from [7] in order to perform the first step of the proof. Theorem 2. With probability at least 1 δ uniformly for all Q: eer(Q) ber(Q) + 1 n m i=1 EP Q KL(Qi(P, Si)||P) + n + 8 log(1/δ) To bound the difference between er(Q) and eer(Q), however, the results from [7] cannot be used, because they rely on the assumption that the observed tasks are independent. Instead we adopt ideas from chromatic PAC-Bayesian bounds [13] that rely on the properties of a dependency graph built with respect to the dependencies within the observed tasks. Definition 1 (Dependency graph). The dependency graph Γ(t) = (V, E) of a set of random variables t = (t1, . . . , tn) is such that: the set of vertices V equals {1, . . . , n}, there is no edge between i and j if and only if ti and tj are independent. Definition 2 (Exact fractional cover [14]). Let Γ = (V, E) be an undirected graph with V = {1, . . . , n}. A set C = {(Cj, wj)}k j=1, where Cj V and wj [0, 1] for all j, is a proper exact fractional cover if: for every j all vertices in Cj are independent, for every i V Pk j=1 wj Ii Cj = 1. The sum of the weights w(C) = Pk j=1 wj is the chromatic weight of C and k is the size of C. Then the following holds: Theorem 3. For any fixed hyper-prior distribution P, any proper exact fractional cover C of the dependency graph Γ(t1, . . . , tn) of size k and any δ > 0 the following holds with probability at least 1 δ uniformly for all hyper-posterior distributions Q: er(Q) eer(Q) + n KL(Q||P) + w(C)(1 8 log δ + 8 log k) Proof. By Donsker-Varadhan s variational formula [15]: er(Q) eer(Q) = wj w(C)EP Q w(C) i Cj E(t,St) ert(Qt) eri(Qi) (9) wj w(C) 1 λj KL(Q||P) + log EP P exp λjw(C) i Cj E(t,St) ert(Qt) eri(Qi) . Since the tasks within every Cj are independent, for every fixed prior P {E(t,St) ert(Qt) eri(Qi)}i Cj are i.i.d. and take values in [b 1, b] , where b = E(t,St) ert(Qt). Therefore, by Hoeffding s lemma [16]: E(ti,Si),i Cj exp λjw(C) i Cj E(t,St) ert(Qt) eri(Qi) exp λ2 jw(C)2|Cj| Therefore, by Markov s inequality with probability at least 1 δj it holds that: log EP P exp λjw(C) i Cj E(t,St) ert(Qt) eri(Qi) λ2 jw(C)2|Cj| 8n2 log δj. (11) Consequently, we obtain with probability at least 1 Pk j=1 δj: er(Q) eer(Q) wj w(C) 1 λj KL(Q||P) + wjλjw(C)|Cj| wj w(C)λj log δj. (12) By setting λ1 = = λk = p n/w(C) and δj = δ/k we obtain the statement of the theorem. By combining Theorems 2 and 3 we obtain the main result of this section: Theorem 4. For any fixed hyper-prior distribution P, any proper exact fractional cover C of the dependency graph Γ(t1, . . . , tn) of size k and any δ > 0 the following holds with probability at least 1 δ uniformly for all hyper-posterior distributions Q: er(Q) ber(Q)+1 + p w(C)mn n m KL(Q||P) + 1 n m i=1 EP Q KL(Qi(P, Si)||P)+ n + 8 log(2/δ) w(C)(1 + 8 log(2/δ) + 8 log k) Theorem 4 shows that even in the case of non-independent tasks a bound very similar to that in [7] can be obtained. In particular, it contains two types of complexity terms: KL(Q||P) corresponds to the level of the task environment and KL(Qi||P) corresponds specifically to the i-th task. Similarly to the i.i.d. case, when the learner has access to unlimited amount of data, but for finitely many observed tasks (m , n < ), the complexity terms of the second type converge to 0 as 1/ m, while the first one does not, as there is still uncertainty on the task environment level. In the opposite situation, when the learner has access to infinitely many tasks, but with only finitely many samples per task (m < , n ), the first complexity term converges to 0 as p w(C)/n, up to logarithmic terms. Thus there is a worsening comparing to the i.i.d. case proportional to p w(C), which represents the amount of dependence among the tasks. If the tasks are actually i.i.d., the dependency graph contains no edges, so we can form a cover of size 1 with chromatic weight 1. Thus we recover the result from [7] as a special case of Theorem 4. For general dependence graph, fastest convergence is obtained by using a cover with minimal chromatic weight. It is known that the minimal chromatic weight, χ (Γ), satisfies the following inequality [14]: 1 c(Γ) χ (Γ) (Γ) + 1, where c(Γ) is the order of the largest clique in Γ and (Γ) is the maximum degree of a vertex in Γ. In some situations, even the bound obtainable from Theorem 4 by plugging in a cover with the minimal chromatic weight can be improved: Theorem 4 also holds for any subset ts, |ts| = s, of the observed tasks with the induced dependency subgraph Γs. Therefore it might provide a tighter bound if χ (Γs)/s is smaller than χ (Γ)/n. However, this is not guaranteed since the empirical error ber computed on ts might become larger, as well as the second part of the bound, which decreases with n and does not depend on the chromatic weight of the cover. Note also that such a subset needs to be chosen before observing the data, since the bound of Theorem 4 holds with probability 1 δ only for a fixed set of tasks and a fixed cover. Another important aspect of Theorem 4 as a PAC-Bayesian bound is that the right hand side of inequality (13) consists only of computable quantities. Therefore it can be seen as quality measure of a hyper-posterior Q and by minimizing it one could obtain a distribution that is adjusted to a particular task environment. The resulting minimizer can be expected to work well even on new, yet unobserved tasks, because the guarantees of Theorem 4 still hold due to the uniformity of the bound. To do so, one can use the same techniques as in [7], because Theorem 4 differs from the bound provided there only by constant factors. 4 Changing Task Environments In this section we study a situation, when the task environment is gradually changing: every next task ti+1 is sampled from a distribution Ti+1 over the tasks that can depend on the history of the process. Due to the change of task environment the previous idea of learning one prior for all tasks does not seem reasonable anymore. In contrast, we propose to learn a transfer algorithm that produces a solution for the current task based on the corresponding sample set and the sample set from the previous task. Formally, we assume that there is a set A of learning algorithms that produce a posterior distribution Qi+1 for task ti+1 based on the training samples Si and Si+1. The goal of the learner is to identify an algorithm A in this set that leads to good performance when applied to a new, yet unobserved task, while using the last observed training sample Sn1. For each task ti and each algorithm A A we define the expected and empirical error of applying this algorithm as follows: eri(A) = Eh Qi E(x,y) Diℓ(h(x), y), beri(A) = Eh Qi 1 m j=1 ℓ(h(xi j), yi j), (14) where Qi = A(Si, Si 1).The goal of the learner is to find A that minimizes ern+1 given the history of the observed tasks. However, if the task environment would change arbitrarily from step to step, the observed tasks would not contain any relevant information for a new task. To overcome this difficulty, we make the assumption that the expected performance of the algorithms in A does not change over time. Formally, we assume for each A A there exists a value, er(A), such that for every i = 2, . . . , n + 1, with Ei = (Ti, ti, Si): E{Ei 1,Ei}[ eri(A) | E1, . . . , Ei 2 ] = er(A). (15) In words, the quality of a transfer algorithm does not depend on when during the task sequence it is applied, provided that it is always applied to the subsequent sample sets. Note that this is a natural assumption for lifelong learning: without it, the quality of transfer algorithms could change over time, so an algorithm that works well for all observed tasks might not work anymore for future tasks. The goal of the learner can be reformulated as identifying A A with minimal er(A), which can be seen as the expected value of the expected risk of applying algorithm A on the next, yet unobserved task. Since er(A) is unknown, we derive an upper bound based on the observed data that holds uniformly for all algorithms A and therefore can be used to guide the learner. To do so, we again use 1Note that this setup includes the possibility of model selection, such as predictors using different feature representations or (hyper)parameter values. the construction with hyper-priors and hyper-posteriors from the previous section. Formally, let P be a prior distribution over the set of possible algorithms that is fixed before any data arrives and let Q be a possibly data-dependent hyper-posterior. The quality of the hyper-posterior and its empirical counterpart are given by the following quantities: er(Q) = EA Q er(A), ber(Q) = EA Q 1 n 1 i=2 beri(A). (16) Similarly to the previous section, we first bound the difference between ber(Q) and multi-task expected error given by: eer(Q) = EA Q 1 n 1 i=2 eri(A). (17) Even though Theorem 2 is not directly applicable here, a more careful modification of it allows to obtain the following result (see supplementary material for a detailed proof): Theorem 5. For any fixed hyper-prior distribution P with probability at least 1 δ the following holds uniformly for all hyper-posterior distributions Q: eer(Q) ber(Q)+ 1 (n 1) m KL(Q Q2 Qn||P P2 Pn)+ (n 1) + 8 log(1/δ) where P2, . . . , Pn are some reference prior distributions that do not depend on the training sets of subsequent tasks. Possible choices include using just one prior distribution P fixed before observing any data, or using the posterior distributions obtained from the previous task, i.e. Pi = Qi 1. To complete the proof we need to bound the difference between er(Q) and eer(Q). We use techniques from [17] in combination of those from [13], resulting in the following lemma: Lemma 1. For any fixed algorithm A and any λ the following holds: EE1,...,En exp λ er(A) 1 n 1 i=2 eri(A) exp λ2 Proof. First, define Xi = (Ei 1, Ei) for i = 2, . . . , n and g : Xi 7 eri(A) and b = er(A). Then: exp λ er(A) 1 n 1 i=2 eri(A) = exp λ n 1 even i (b g(Xi)) + X odd i (b g(Xi)) even i (b g(Xi)) + 1 odd i (b g(Xi)) . (19) Note, that both, the set of Xi-s corresponding to even i and the set of Xi-s corresponding to odd i, form a martingale difference sequence. Therefore by using Lemma 2 from the supplementary material (or similarly Lemma 2 in [17]) and Hoeffding s lemma [16] we obtain: EE1,...,En exp 2λ even i (b g(Xi)) exp 4λ2 and the same for the odd i. Together with inequality (19) it gives the statement of the lemma. Now we can prove the following statement: Theorem 6. For any hyper-prior distribution P and any δ > 0 with probability at least 1 δ the following inequality holds uniformly for all Q: er(Q) eer(Q) + 1 n 1 KL(Q||P) + 1 + 2 log(1/δ) 2 n 1 . (21) Proof. By applying Donsker-Varadhan s variational formula [15] one obtains that: er(Q) eer(Q) 1 KL(Q||P) + log EA P exp λ er(A) 1 n 1 i=2 eri(A) . (22) Figure 1: Illustration of three learning tasks sampled from a non-stationary environment. Shaded areas illustrate the data distribution, + and indicate positive and negative training examples. Between subsequent tasks, the data distribution changes by a rotation. A transfer algorithm with access to two subsequent tasks can compensate for this by rotating the previous data into the new position, thereby obtaining more data samples to train on. For a fixed algorithm A we obtain from Lemma 1: EE1,...,En exp λ er(A) 1 n 1 i=2 eri(A) exp λ2 Since P does not depend on the process, by Markov s inequality, with probability at least 1 δ, we obtain EA P exp λ er(A) 1 n 1 i=2 eri(A) 1 The statement of the theorem follows by setting λ = n 1. By combining Theorems 5 and 6 we obtain the main result of this section: Theorem 7. For any hyper-prior distribution P and any δ > 0 with probability at least 1 δ the following holds uniformly for all Q: er(Q) ber(Q) + (n 1)m + 1 (n 1) m KL(Q P) + 1 (n 1) m i=2 EA Q KL(Qi Pi) + (n 1) + 8 log(2/δ) 8(n 1) m + 1 + 2 log(2/δ) 2 n 1 , (25) where P2, . . . , Pn are some reference prior distributions that should not depend on the data of subsequent tasks. Similarly to Theorem 4 the above bound contains two types of complexity terms: one corresponding to the level of the changes in the task environment and task-specific terms. The first complexity term converges to 0 like 1/ n 1 when the number of the observed tasks increases, indicating that more observed tasks allow for better estimation of the behavior of the transfer algorithms. The taskspecific complexity terms vanish only when the amount of observed data m per tasks grows. In addition, since the right hand side of the inequality (25) consists only of computable quantities and at the same time holds uniformly for all Q, one can obtain a posterior distribution by minimizing it over the transfer algorithms that is adjusted to particularly changing task environments. We illustrate this process by discussing a toy example (Figure 1). Suppose that X = R2, Y = { 1, 1} and that the learner uses linear classifiers, h(x) = sign w, x , and 0/1-loss, ℓ(y1, y2) = Jy1 = y2K, for solving every task. For simplicity we assume that every task environment contains only one task or, equivalently, every Ti is a delta peak, and that the change in the environment between two steps is due to a constant rotation by θ0 = π 6 of the feature space. For the set A we use a one-parameter family of transfer algorithms, Aα for α R. Given sample sets Sprev and Scur, any algorithm Aα first rotates Sprev by the angle α, and then trains a linear support vector machine on the union of both sets. Clearly, the quality of each transfer algorithm depends on the chosen angle, and an elementary calculation shows that condition (15) is fulfilled. We can therefore use the bound (25) as a criterion to determine a beneficial angle2. For that we set Qi = N(wi, I2), i.e. unit variance Gaussian distributions with means wi. Similarly, we choose all reference prior distributions as unit variance Gaussian with zero mean, Pi = N(0, I2). Analogously, we set the hyper-prior P to be N(0, 10), a zero mean normal distribution with enlarged variance in order to make all reasonable rotations α lie within one standard deviation from the mean. As hyper-posteriors Q we choose N(θ, 1) and the goal of the learning is to identify the best θ. In order to obtain the objective function from equation (25) we first compute the complexity terms (and approximate all expectations with respect to Q by the values at its mean θ): KL(Q||P) = θ2 20, EA Q KL(Qi Pi) wi 2 The empirical error of the Gibbs classifiers in the case of 0/1-loss and Gaussian distributions is given by the following expression (we again approximate the expectation by the value at θ) [20, 21]: ber(Q) 1 n 1 yi j wi, xi j xi j where Φ(z) = 1 2 1 erf( z 2) and erf(z) is the Gauss error function. The resulting objective function that we obtain for identifying a beneficial angle θ is the following: (n 1)m + 1 (n 1) m θ2 yi j wi, xi j xi j Numeric experiments confirm that by optimizing J (θ) with respect to θ one can obtain an advantageous angle: using n = 2, . . . , 11 tasks, each with m = 10 samples, we obtain an average test error of 14.2% for the (n + 1)th task. As can be expected, this lies in between the error for the same setting without transfer, which was 15.0%, and the error when always rotating by π 6 , which was 13.5%. 5 Conclusion In this work we present a PAC-Bayesian analysis of lifelong learning under two types of relaxations of the i.i.d. assumption on the tasks. Our results show that accumulating knowledge over the course of learning multiple tasks can be beneficial for the future even if these tasks are not i.i.d. In particular, for the situation when the observed tasks are sampled from the same task environment but with possible dependencies we prove a theorem that generalizes the existing bound for the i.i.d. case. As a second setting we further relax the i.i.d. assumption and allow the task environment to change over time. Our bound shows that it is possible to estimate the performance of applying a transfer algorithm on future tasks based on its performance on the observed ones. Furthermore, our result can be used to identify a beneficial algorithm based on the given data and we illustrate this process on a toy example. For future work, we plan to expand on this aspect. Essentially, any existing domain adaptation algorithm can be used as a transfer method in our setting. However, the success of domain adaptation techniques is often caused by asymmetry between the source and the target - such algorithms usually rely on availability of extensive amounts of data from the source and only limited amounts from the target. In contrast, in lifelong learning setting all the tasks are assumed to be equipped with limited training data. Therefore we are particularly interested in identifying how far the constant quality assumption can be carried over to existing domain adaptation techniques and real-world lifelong learning situations. Acknowledgments. This work was in parts funded by the European Research Council under the European Union s Seventh Framework Programme (FP7/2007-2013)/ERC grant agreement no 308036. 2Note that Theorem 7 provides an upper bound for the expected error of stochastic Gibbs classifiers, and not deterministic ones that are preferable in practice. However for 0/1-loss the error of a Gibbs classifier is bounded from below by half the error of the corresponding majority vote predictor [18, 19] and therefore twice the right hand side of (25) provides a bound for deterministic classifiers. [1] Sebastian Thrun and Tom M. Mitchell. Lifelong robot learning. Technical report, Robotics and Autonomous Systems, 1993. [2] Jonathan Baxter. A model of inductive bias learning. Journal of Artificial Intelligence Research, 12:149 198, 2000. [3] Leslie G. Valiant. A theory of the learnable. Communications of the ACM, 27(11):1134 1142, 1984. [4] Vladimir N. Vapnik. Estimation of Dependencies Based on Empirical Data. Springer, 1982. [5] Andreas Maurer. Algorithmic stability and meta-learning. Journal of Machine Learning Research (JMLR), 6:967 994, 2005. [6] Gilles Blanchard, Gyemin Lee, and Clayton Scott. Generalizing from several related classification tasks to a new unlabeled sample. In Conference on Neural Information Processing Systems (NIPS), 2011. [7] Anastasia Pentina and Christoph H. Lampert. A PAC-Bayesian bound for lifelong learning. In International Conference on Machine Learing (ICML), 2014. [8] Andreas Maurer. Transfer bounds for linear feature learning. Machine Learning, 75:327 350, 2009. [9] Andreas Maurer, Massimiliano Pontil, and Bernardino Romera-Paredes. Sparse coding for multitask and transfer learning. In International Conference on Machine Learing (ICML), 2013. [10] Maria-Florina Balcan, Avrim Blum, and Santosh Vempala. Efficient representations for lifelong learning and autoencoding. In Workshop on Computational Learning Theory (COLT), 2015. [11] David A. Mc Allester. Some PAC-Bayesian theorems. Machine Learning, 37(3):355 363, 1999. [12] Matthias Seeger. PAC-Bayesian generalisation error bounds for gaussian process classification. Journal of Machine Learning Research (JMLR), 3:233 269, 2003. [13] Liva Ralaivola, Marie Szafranski, and Guillaume Stempfel. Chromatic PAC-Bayes bounds for non-iid data: Applications to ranking and stationary β-mixing processes. Journal of Machine Learning Research (JMLR), 2010. [14] Daniel Ullman and Edward Scheinerman. Fractional Graph Theory: A Rational Approach to the Theory of Graphs. Wiley Interscience Series in Discrete Mathematics, 1997. [15] Monroe. D. Donsker and S. R. Srinivasa Varadhan. Asymptotic evaluation of certain Markov process expectations for large time. I. Communications on Pure and Applied Mathematics, 28:1 47, 1975. [16] Wassily Hoeffding. Probability inequalities for sums of bounded random variables. Journal of the American Statistical Association, 58:13 30, 1963. [17] Yevgeny Seldin, Franois Laviolette, Nicol Cesa-Bianchi, John Shawe-Taylor, and Peter Auer. PAC-Bayesian inequalities for martingales. IEEE Transactions on Information Theory, 58:7086 7093, 2012. [18] David A. Mc Allester. Simplified PAC-Bayesian margin bounds. In Workshop on Computational Learning Theory (COLT), 2003. [19] Franc ois Laviolette and Mario Marchand. PAC-Bayes risk bounds for stochastic averages and majority votes of sample-compressed classifiers. Journal of Machine Learning Research (JMLR), 8:1461 1487, 2007. [20] John Langford and John Shawe-Taylor. PAC-Bayes and margins. In Conference on Neural Information Processing Systems (NIPS), 2002. [21] Pascal Germain, Alexandre Lacasse, Franc ois Laviolette, and Mario Marchand. PAC-Bayesian learning of linear classifiers. In International Conference on Machine Learing (ICML), 2009.