# Workshop 23979

- Kind: Workshop
- Talk page and recording: https://iclr.cc/virtual/2025/workshop/23979

> Transcript of the talk's recording (session_asr), made by speech recognition or taken from the host's captions. It may contain errors. The words are the speakers'; listen to the recording on the talk's page before quoting it.

Hello. You can all hear me even in the back? Uh s thank you. Uh so welcome to this uh workshop so M_C_D_C_ uh it's not easy to remember as an acronym uh but it stand for a workshop on modularity, collaborative, decentralised and continual deep learning. Uh so we want to do something collaborative where everyone across the world could all collaborate with their different expertise, their different subset of data, different architecture together. So also in a decentralised fashion.
Uh we want this to be continually updated, and so continual learning. And uh for that we believe that some sort of modularity will be needed, uh each of them bringing different kind of expertise and community k getting them in some way. Uh so it's quite a lot of topics. So we managed together uh different papers uh uh on different aspect of uh those uh few topics. Uh we have a line-up. So we have sixth uh oral uh papers and
We have six invited speakers. We will have a panel discussion at the end where we will have discussion with the panel and you will be welcome to ask any question you have. And we will also have the panel so every wall you can see here is a panel for your papers if you have the paper accepted. You show here is the master of the tape so ask him some tape in blue and he will give you the tape to put it in advance.
I will just ask every speaker if you can just check with a slide live in before to check up that your slide are right you don't have any audio or anything in it. Um and yeah, so uh we have a organiser here present uh Leo Choudhury at Global DevMine, Punkian at Vector Institute, and Ao Koon also at uh Vector Institute. Uh so if you have any question, just ask any of us. And myself, Arthur Drouillat. Um
So I think we can start. We're going to start with Sebastian on how to merge multimodal model over time.
Okay. Thank you very much. Um it's great to be here. It's a pleasure to kick off the workshop, looking forward to all the presentations, all the discussions and the posters. Um my name's Sebastian. I would like to talk about uh temporal model merging. So we before we dive into the temporal part, let's talk about model merging. So with some exceptions, most of the model merging literature
Assumes that we have a base model that is independently um trained on a bunch of tasks, and then all those model experts are merged simultaneously. Um however, in practice, those tasks can emerge over time. So in this work we asked the question, um what is the best strategy of temporal model merging?
And in order to answer that question we introduced this framework we call temporal integration of model expertise, or time for short. And we highlight three different axes that we analyze. So three different design choices that span the design space of temporal model merging.
The first one is initialization. Um then it's deployment and the choice of merge technique. So in the temporal setting we assume that at each task we have a bunch of data that we um train the model on. Uh and then we store all the past experts um from the previous tasks. And because we have those experts we are able to
um perform a merge of all the past experts so we we have a choice of either initializing with the base model with the last trained experts of with or with all the past experts uh and the last choice we have is the uh exponential moving average um so this we means that we just maintain a single additional set of weights and we always merge the last expert into that uh rolling average
Uh then we have the t choice of the deployment merge. So this is what happens after the training and here again we can either use the last experts, we can merge all the past experts or we can use an exponential moving average. Uh and finally we have the choice of the merging techniques. So this is what
um most of the uh multitask merging literature um innovates on and here we have a bunch of methods to to choose from. Uh so initialization is what happens before model training, deployment is what happens after model training on a specific task, and the merge technique just tells us uh how to reconcile reconcile the parameters of individual experts to combine them into a single
model. So before I show any results I would like to talk about um the data set that we use. Uh and it's called FOMO in flags uh foundational model in flags. Uh it's a data set we uh or rather a benchmark we introduced in a previous paper um and the idea here is that we take a bunch of um existing computer vision data sets um typically classification and retrieval data sets which come with some labels.
And for each image in that benchmark we um synthetically generate the caption and then merge that caption with the label to produce a caption that is grounded in this class information that we get from the data set. Um and all this covers a bunch of domains such as satellite images, paintings, sketches, um images of textures, medical images, data sets like um MNIST, synthetic data sets, and so on.
So one. So it's a broad variety of visual domains, um and then at each uh task we introduce new concepts from uh this benchmark.
uh and this uh there's two types of data sets in the in that benchmark. We have the held out evaluation data sets which we never train on and these are uh used to measure the foundational capabilities of the model. So sort of the zero shot retention capabilities. Um and then we have the adaptation data sets which are actually used for training.
Um so whenever you see knowledge accumulation on a on the plot, uh it means how well we're doing on the adaptation data sets. Um so these are the data sets we train on and we measure accuracy or retrieval performance. And whenever you see zero-shot retention, that's the performance on the held out data sets that we never trained on. And this is to measure um to what extent we're losing this foundational property of the model.
Um so here you see um sort of the first two um axes of the time frame work and that's the choice of the initialization merge. So how do we merge the past experts before we train and the deployment merge. So how do we merge them after we train.
Um so for example F_T_ dash all means we always start with the last expert before training, uh and we always deploy a merge of all past experts before evaluation. Um and uh the the grey star is the zero shot performance, so that's where all the models start and the um orange star is the multitask performance.

orange star is the multitask performance. So this is training jointly on all the task data. So there's two things I would like to highlight here. First of all is that those choices matter. So the curves are very different. Um the choice of initialization and deployment is important.
Um and the second thing I would like to highlight is that there is one choice that uh consistently performs the best across model scales, across the number of tasks, um across uh data orderings, uh and that's the choice of an exponential moving average initialisation and exponential moving average deployment. And there's an a neat thing about it because because it's an exponential moving average we don't really need to
You need to store all the past experts. We can just have a rolling average. So in terms of memory, it's also a much more attractive method. And it so happens that it's also the best uh performing one.
Now uh I've cover I've covered the first two axes and let's now move to the third one, which is um the choice of emerging technique. And what we find is that in the temporal setting that doesn't matter as much. Um so all of these are here applied on top of the exponential moving average uh initialization and deployment. And it turns out that um even though in the multitask settings those techniques perform very differently,
And in the temporal setting, um the the gains from using a better uh merging technique are are marginal compared to the gains you get from getting the right initialization and deployment. Um and the last thing I would like to show is the scaling behaviour in terms of uh both model size and compute. So
Um and again the the solid star is the zero shot performance, the outline star is the, um multi-task. So train jointly on all the tasks. Um and then each curve traces a trajectory in this knowledge accumulation zero shot retention space. So you can see that for um the smaller models um even the multi-task uh baseline uh even though it improves on accumulation uh it sacrifices a bit of
of this zero shot retention. And you can see that every curve, obviously it goes up so as the training progresses we gain knowledge accumulation. But um the simple replay, so continual fine-tuning with replay um suffers a lot in terms of zero shot uh retention. Um so for smaller models it it ends up being much worse than the than the multi-task. Uh however model merging, even for smaller models, offer a much
much better uh trade-off between zero-shot retention and knowledge accumulation. Uh and as the model scales up, it even closes the gap to the continual fine-tuning with replay in terms of knowledge accumulation. So not only it offers excellent zero -shot retention, in fact better uh than the multitask, um up around uh it also closes the gap to uh replay.
in terms of knowledge accumulation. And another remarkable result uh is the scaling in terms of uh compute budget. Um and here on the right we see uh that the best in time, so model merging with exponential moving average, initialization and deployment is able to not only um match the multi-task uh upper bound, but even exceed it at higher um computational budgets.
So to sum up, um our contributions are we introduce or and formalise the setting of temporal model merging uh and describe the structured framework. We show limitations of existing methods um I haven't shown that in this presentation, but you can have a look at the paper. We performed a systematic exploration of initialization deployment and merging techniques uh and we propose a um technique that works.
um optimally optimally balances knowledge accumulation and retention, and it's able to surpass joint training um with compute scale. Uh and with that thank you very much and you can have a look at the paper here. Thank you for your talk. Uh we have time for a few question. Anyone in the room have a question?
Do you have a sense if the results would vary with the number of tasks? Yeah, so we look into that uh and the best in time is still the best uh which is encouraging. Um and uh yeah model merging like it it it works surprisingly well even over like twenty uh so these results are for twenty tasks, but we look into fi fifty, one hundred and uh and still offers a good trade-off.
So that's in the paper if you if you wanna have a look.
I have a question maybe. Uh so you showed that as you increase number of flops, your best in time methods is closing the gap with the multi-task uh Yeah. or oracle in some way. Why uh with a n more flops is like just more flops like more training or bigger model? Yeah. And do you think that gap will be ever completely closed and you will be even better than this baseline? So I I think the uh so w what I showed is the is the average of zero-shot retention and and knowledge accumulation.
um as you increase the computational budget um the multitask um baseline it it really loses the zero-shot retention so that that's where the closing of the gap um is coming from mostly um this is the like largest budget we were able to to run on our compute but um yeah it would be interesting to see what happens even even further on
and all this budget is uh distributed, is it due to a bigger model? Or simply like a more uh smaller model, but much more training steps? It's the same model. So so model scaling is on the left here, it's a bigger model. Uh but on the right we fix the model um to be sixteen I think, and then we just train for longer.
Question. Um with the EMA uh initialization and deployment approach, uh was there anything s systematically observed in terms of like the uh parameters for the EMA uh weighting in terms of like how that changes with the number of tasks you are dealing with over time? Uh yeah, so we we just used a single weight uh across and uh we found that just point five works the best um so yeah not as exciting but
Okay, uh if there is no more question, please upload our speaker. Thank you. And uh now our new speaker, um Rachel who is gonna present us uh Molex.
Good morning everyone, I'm Rachel and um today I'll be presenting on my paper Molex: Mixture of Layout Experts for Fine-Tuning with Sparse Upcycling. So this is a paper that I wrote with my co -advisor Professor Tan from NUS and yeah, so we're from Singapore.
Okay. So first let's start off with some a little bit of background, but I think I'll try not to spend too much time on it as I think I don't ha have much time to speak. So I think everyone is also very familiar with sparse measurement of experts where basically we have um an L_M_O_V_ layer where each li example is acted on by a subset of the parameters and each expert focuses on predicting the right answer for a subset of cases. So you can see here that we will have a gating network,
that we'll send our input to either one, two or K experts, and we finally recombine the out the output from each expert to send to the following layer. And why is the advantage of this is because there is a degree of sparsity that decouples the parameter count from the compute, for example. So this allows us to have extremely large but efficient models and the citation is at the bottom here.
So um I just want to focus a little bit on the gating network which is the router because this is something that we will also implement in our method. So basically we represent the router by G_ and for each input to the layer X_T_ we have a linear gating network which is W_XT_ plus B_ so there's a little bias there. And each G_I_ from I_ from one to E_ and E_ is the total number of experts
um represents the affinity scores between the input and each expert. And so how do we choose which expert to use or which expert to route to? Um we basically take a top-k, which is the K maximum values out of this um vector G_ and then we do a softmax to have a linear combination of the outputs of each expert. So U_I_ here is the expert.

So, you I here is expert. Alright, so how does this like relate to more lex? So basically, our mixture of layer experts model, which is like M_O_L_E_X, more lex, recycles all the pre-trained layers as the experts. So instead of creating new experts in each layer, we basically use a pre-trained model to, um and each layer in that pre-trained model will represent one expert and we have a router
Now we'll route our input to each layer to an expert um which is just another layer in the whole model. Okay, it sounds a bit convoluted but let me just explain. So basically we have the input to the layer f the first layer, U_ one and this is z_ one. And so z_ one will be um processed by layer U_ one and the output is U_ one z_ one here. And then we'll also route
Z_ one to the router and our router will choose one expert and each an an expert is basically just one layer in the pre-trained model. So in this example our input has chosen U_ t minus one um which is the last layer in the model. And so we will route our input to U_ t minus one, take the output
and linearly combine that with the output from the first layer. So basically we linearly combine it using a weight alpha here, and then we send this as Z_ two to the next layer and we do the same thing all over again. So the output sorry, so the input to Z_ two is processed by U_ two and it also sends to our router and then we choose another layer as an expert and then we linearly recombine. So at every layer we are doing this.
So we can just imagine like when we do mixture experts, we kind of like have experts expanded horizontally in the model, but now instead of doing it horizontally we do it like vertically, so we just make it perpendicular. Yeah, okay, and yeah, so this is our model. Our, yeah, and our motivation for this is that we can view each layer in a pre-trained model as an expert in extracting distinct
linguistic features. So
I'm not sure if you're familiar with this paper on Bert, where someone did a probing experiment where we find that each layer actually can extract different types of linguistic features, for example, grammar or tenses or syntax. Yeah, so basically what we do is that we view each layer as an expert in extracting these kinds of different linguistic features and by facilitating this kind of inter-layer information exchange.
change, Molex actually enhances a model's performance while minimising the total parameter count because we do not have to duplicate all the different experts.
And so our method is quite simple and we are able to provide also another simple theoretical analysis on it. So basically we want to view Molex as an ensemble model and we only do this in a simple case where each layer is a linear layer which is basically just an MLP. And how we do this is that we unroll the input to each layer which is z_t and you can see here it's z_t minus 1 plus alpha u_t minus 1.
and so on. And U_I_T_ here is the is the layer chosen by the router um when we send our input Z_T_ to the router.
And so because of the linearity of Uj, we basically can um rewrite this as a composition of Uj and Ut minus one. And so if we continue to unroll this, we can actually find this expression at the bottom here, where we have a weight C_I_0_I_1_ and so on. And this weight is basically just to represent all of the alpha or one minus alpha alpha one minus alpha, depending on the
layer that is chosen by the router and the compositions of all the layers chosen by the router as well. So and okay so I0, I1 and so on is such a mouthful and it's so complicated so we just kind of re -label it to J here and so we can write this as a simple expression here on the right.
Alright, so now in doing all of this, our aim is to show that Molex will be a more robust model, because it's an ensemble. And I think this is also quite intuitive understanding, because an ensemble of models should be more robust than just like a single model. So basically we first define what is robustness, and okay, so this seems kind of complicated, but actually it's really simple. So basically if we have a classifier model,
that outputs like the class that we would like to classify our input.
And we have an input X, and we basically perturb it within an epsilon ball with a radius of epsilon and a center X. So basically you just move X to like X plus epsilon, and we want and we define robustness as the output, as the fact that the output from the classifier model does not change. And so in this way we say that F is actually epsilon robust at X.
And we have a little theorem here that will set up the next slide to show that Molex is more robust than just a regular dense model. And it basically says that if we satisfy these conditions, we can show that ensemble classifier model is actually epsilon prime robust with epsilon prime is greater than another epsilon that is greater than zero.
So we have our corollary which is that a linear molex model is actually more robust than a sequential model. And I think this is quite intuitive because we showed that molex was an ensemble and the sequential model which is basically just the dense model should always be one of the base models in our molex model. So yeah this is our intuition behind this theorem. Alright so now let's move on to our experimental results.
And we show that on glue tasks, we train a molex model and we compare it to if we just fine-tune the dense model with Laura. So I think we need to keep in mind that also when we fine-tune our molex model, we also use Laura to fine-tune it. So the only difference between let's say a dense model with Laura and a molex model with Laura is that we change the structure of the model by adding the router and routing it to different layer experts.
Well we do see that if we reuse these layers there's actually an improvement on glue tasks, on almost all glue tasks actually, yeah. And um yeah, so I think it's pretty good. Um however on generation task which is the end to end generation task, we c do have some improvement but not across all metrics. Yeah, I'm I'm not too sure why actually, but yeah there's some improvement.
So I think this shows us that reusing layers in a model can actually still boost performance, um even though we're using like the same number of parameters as just a pre-trained dense model. And that's all for my presentation. Thank you. Any question? Ah, yeah. Thank you so much for the talk. Um I was wondering uh if
I I saw correctly, the models that you tested are really, really, really small. So
Do you think it scales up? I mean I'm wondering if it's just a matter of just not having enough capacity to learn the task, because Yeah. it seems like most of the models were less than one million parameters. Yeah, you're right, actually. Um So and also there is the the difference between the results just didn't seem really significant to me, it's like a point two. Yeah, that's it it um yeah, so you're right in the sense that in the pape in the main text of the paper we do only have quite small models. But during the review uh sorry, the rebuttal time um we actually
actually it did add some um large language models. Well, we added llama 3.1 B_ and um we do still see improvement on I think we tested it on maybe um I can't re exactly remember what data set we tested on, but we do have some results on that in the appendix of our paper. Yeah, so it it does scale up. The .3 m is like trainable parameters, so that's different from the total size of the model, which Yeah, I yeah, think you're again right, is written. yeah.
Yeah, yeah, right. Thank you for the talk. Uh I have questions um about uh do you have any insights or guesses uh in terms of if you deploy it in real world and uh
How would you uh how would the parallelism strategies or um the speed performance uh be affected compared to uh maybe dense models? Yeah, actually that's a good question. Um so we m we can notice that um like similar to the mixture of experts we can actually um paralyze the um processing by each l by the layers um U_ one and let's say U_T_ minus one here. So the two different layers can be processed in parallel.
Oh. Because we're taking the same input, and we're just choosing two different layers in the model to process. So it's I think the compute will be kind of the same, similar to a dense model, because we can do those in parallel. But the things that could change is that we can no longer use like a static computational graph, because of the router. And we do not know which layer that will be chosen by the input to be routed to.
So in that sense we have to have a dynamic computational graph. And also the KV cache is affected because again we do not know which layer that we will route the input to. So we can only maintain the KV cache for the dense model. And then

dense model and then the output or the KV from whichever layer we route to will be different every time so we cannot maintain that and so I think some efficiency is lost there as well yeah but that's a good question
Okay. Um, I wanna ask uh did you identify any patterns from the trained router? Like uh what does a routing mechanism usually ended up learn. And uh what is the top K you the k number of K used for the router and do you route backward as as well only forward in after layers? Yeah, that's also a good question. So um basically we allow our input to be routed to any layer, so we can also go backwards.
Yes. But in the original, okay, the first time I implemented this, I didn't use any load balancing loss, which is actually I realised was a critical part of implementing this model. Because if we do not use the load balancing loss, we'll always choose, I think usually we choose like the next layer or the next two layers only. So within like that layer that we are at, plus one plus two. So if we use the load balancing loss, we spread that out more.
among all the layers but we rarely choose a layer that is earlier than the current layer with every ad and I think yeah oh sorry and I I think they had one more question um did you have any oh right the K value uh we use top one yeah just just for efficiency I guess yeah
Maybe I have one question. Do you use one router uh with the same set of parameter for all the decision or would you think it's better to have different router for different part of the networks, since it's different input features. Hmm, yes, okay. So we also we also did experiment with that. So basically um for most of the tasks we use one router to be shared among all the layers. But there are some tasks that I think could be more difficult to
P like for the model to learn. And on that we do use individual routers and we see a performance improvement. So I think maybe if you use individual routers, it could be better but I just want to minimise the total parameters that we need to train. Yeah.
And um this seems to be very interestingly connected to like these adaptive uh compute re-entrant methods right. Yeah, Like like you dynamic can computing. like dynamic computing, yeah. Of course you can basically reroute back to an earlier layer and redo it again. Right. Um which makes me think maybe some sort of reasoning type data set may be an interesting place to actually evaluate this, to see whether you have even if you don't improve your normal languaging language-modelling generation losses, but your reasoning performance may be more impacted by being able to
Being able to have very entrant that Yeah, actually mechanism, yeah. yeah, that's a that's a good idea. And I I saw a paper that also did like the you know deep thinking where they reuse the same layer over. So I feel like we could also we should we should have included that as one of the possibilities and so yeah, that that could be a good way to improve it. Any more questions? Did you Was already asked, okay okay, go ahead.
Awesome. Yeah. So how is that even routing to previous layers possible? Because previous computation has already been executed and you're routing back to previous layers, so how does that actually work? Um
I just send the input to the layer, like the earlier. So you know the it's just um when you have uh layers in a model it's just kind of like a a list of layers, so I just uh choose that one and then I just send it to the early layer. Okay, I guess I'll just uh look into details. Okay sure. Thank you very much. Thank you. Thank you. Here you go.
And now for our next speaker. Uh pleased to have our first invited speaker, Hamed, uh from Korea. Thank you. So we have thirty minutes including the question, and we will show your timer.
Hi everyone. Thanks for inviting me. Um my my name is Ahmet by the way. I am a researcher at uh coherent labs, formerly coherent for AI uh at and coherent.
um yeah thanks for uh having me here. Uh I'm really i I'm in it interested in modular or uh dis decentralised approaches. When I get in invitation I I thought like what can I talk because I'm both fun of all this uh different approaches starting from adaptors, hypernetworks, M_O_E_s or or merging. But also I'm uh I've worked on all of these uh topics more or less.
But uh based on some of our recent uh recent works, I wanted to talk about uh model merging at scale. So here uh the title of my work uh my presentation, model merging at scale as one of the most under-rated tool in L_L_M_ training toolbox. So one disclaimer, this is actually uh from a tweet that's uh from one of my colleagues tweet, I just uh slightly changed the uh the wording.
Um, so under-rated, uh it doesn't mean that it is unpopular. Uh I'm sure it is maybe one of the most popular uh tool currently, but uh I wanted to use this uh phrasing as under-rated because I think still it is very under-rated i uh when you think when when you are building a frontier uh language models or multi-model language models because at the very large scale I still don't see much application of model merge.
But as opposed to this c uh this trend or this uh this uh status, in at coherent uh coherent lamps we actually using modern merging as really a tool to build a frontier that I will uh talk a little bit on those.
I'm sure all of you, people to know what is model merging, but just for completeness I started with that. Model merging basically you combine the parameters of two or more uh neural networks into single neural networks. I mean most standard way, architecture should be the s same, but there are also v ways to do different architecture uh dif different model models with different architecture to merge them. But the general idea, you have different capabilities in different models and you want to compose these capabilities in
just into one model, right? So there are lots of different merging techniques. So I'm not definitely going into all these techniques. But the the simplest way is linear parameter averaging. You interpolate uh multiple models with different rates for uh th uh th their their parameters. So why we want to yeah, why you may want to do model merging, that is the first question, right?
Of course, the the first uh advantage of model merging is resource optimisation. So you think that you have five different models instead of
uh deploying five five of them or sort of doing inference o over five of them uh when you merge all all into one, you just need to do inference into one. So this is the the first, I think the simplest advantage of model merging. Similarly you don't you need to use all all of them in the memory. So you just use one model in the memory. So in that sense it is quite different than model ensemble. But
In terms of it so you probably want model merging not only because uh uh resource efficiency but also there are some inherent at other inherent advantages of model merging. One is this independent training or decentralised training, right? Maybe you have I will give some uh more concrete examples, but you have multiple expertise, multiple uh task languages and you want to train them separately with the maximum parallelization and then you want to reuse them. So this is
p potentially one of the inherent advantage. Or maybe you d don't you also don't want to train them, but you can just use one of the model that is been trained for somebody else. So actually reusable re-purposeful uh neural networks also uh in in that context merging is really effective. Uh the another thing, not only for independent training, but even if you have the all the resources uh that you can't train one single model,
But still, there are lots of optimization challenges when you have uh like a frontiers scale large language models, right? You have lots of different tasks that you want to optimise for. You may want to will have lots of different languages that you may uh want to optimise for. Then there are lots of tricks that you need to do in the data, ablations,
uh mixture ablations. So it might be super costly. So instead of doing those, you may want to ag train different models and compose these exper expertise. Actually this is the this is the part that I wanted to highlight a bit in the in our works. So these are the uh some some works that I am briefly uh going to touch. Uh so I.a experience and I.a vision are multi multilingual and along. One is uh
model, very very recent, and finally I will also touch a bit ab uh comment a which is our uh

Uh comment A_ which is our uh frontier L_L_M_ that we probably the first frontier scale L_L_M_ that uh used merging in the full scale. So let's start with eye expense. Uh uh eye expense is a model family that has both eight billion and thirty two billion uh parameter scale models, and the main highlight uh for eye expense models was uh optimise for twenty three languages. So the main uh target was mult multilingual expertise.
So here I uh I wa I will highlight the merging as a tool for combining uh capabilities across languages. So why uh I start I wanted to start with I expense because uh multilingual optimisation is actually quite hard. Because you have lots of different languages, from different scripts, from different linguistic structures, from different language families, and this actually presents a unique multi-task challenge, right?
So to to be able to solve this in one single training run probably you need to have really balanced data mixture. But this is also not super easy, because you want to balance different languages, but also you have some data sets only exist in some languages. Let's say you have you want to have of course mathematical capabilities, but potentially you only have mathematical capability data sets in English. But you also want to com sort of transfer this capability to I don't know Turkish.
That's why, if you really want to do in one training run, you potential need to run lots of different ablations to find both language act uh the balance accuracy lang languages, but also balance across tasks. So it's quite difficult. And yeah, requires lots of fine-tuning. Also, even if you you f you think you find the the right balance,
Still uh potentially you will have uneven improvement or uneven performance across different languages, right? So this is I_O_ twenty three eight B_ the the model family that is uh we we we deployed I mean we t we trained before I_X_ span's models. Here we have quite a good improvement for the the the baseline at the time it was uh a state of the art comparison.
Uh but in English, as you c as you can see, the improvement was n was not there. So we were gaining a lot for multiple languages but not in English. I think this is also re together with mu multiple factors, this was also about this balancing across languages because as we push towards the multilinguality, probably we heard some English performance there. So when we start I_EXPENSE, um
project uh just after I_A_ twenty three, we we were thinking like can we use merging across language specialised models to reduce this data mix uh ablations, aggregate computational cost?
So we have actually a work before uh p published before eye expense. There we sort of experimented merging language specific models into one model. So these are not so i think uh there was in total six languages, English, French, Spanish, Hindi, Arabic and Russian. In one experimental setup we mix all of them, only one model, train them, this is a mix. In another experiment we only
use English, French and Spanish separate language models. We merge this three three language models and in another experiment we merge seven different language specific monolingual language models. And here we see
This I am exp explaining this because to to to give some reference about what might be important for for this kind of situation. So as you can see merging actually actually outperforms mixing in both scenarios. But there is also a trick here. When you merge similar language language models, your performance is a bit more. So actually there is also interference in merging. Starting from this this observation
For the eye expense, we moved from like careful data mixture, applications to iterative model merging. So here we of course don't have only seven languages, we have twenty three languages. We wanted to have sufficiently diverse check points so that we can leverage this model merging uh advantages. But also we don't want to have twenty three different language models that potentially lead still an interference.
Also we wanted to leverage cross-lingual transfer, right? Just like in in this case, if the languages are similar, p probably we will have a better performance. So with this uh kind of requirements, what we did, we simply data into language families. So that we have less specific language m uh language models that we train separately and these languages that we put together are close to each other. So that we have m potentially a maximum cross-lingual transfer.
Together with that to in increase robustness we also add some languages to all language language models to all sort of clusters here to increase robustness there. And we did this in multiple stage which I sh I I will show to also to improve merging as we go. So this is uh the general uh training um
Uh sort of framework, uh you can disregard this this part this arbitrage is basically an S_F_T_ part.
uh the the technique that we uh name it for synthetic data generation was arbitrage. But merging was central piece of all this eye-expense post training recipe. So what we did, we as I said we cluster languages based on language families, separately train train them in S_F_D_ stage, which leads end number of different S_F_D_ S_F_D_ model. We also have some language languages like Spanish, English, French.
shared across all the clusters. Then we merge them, then we do another round of training, which in this case could be offline D_P_O_ offline uh it's preference training. Again, across clusters, then we merge them and we go on this, I think, it it was for iteration. So there are couple of important things here. One is iteration because uh I will also touch upon this in the in the last phase in the commandate, but
After you merge, you may not be still in the optimal place in the landscape. Probably all the different S_F_ or the S_F_D_ or D_P_O_ models or separate models that you trained learn separate information, you merge them, probably you are in between some uh lost point in the in the landscape between all these separate models. Training more m doing much more iteration actually
sort of polish this the in the i polish the i position in in it lost landscape. And when you combine this with depure and o also on online depure, you get actually the best performance. So this is uh the results that we get from uh I_expense merging experiments. So you can start uh comparing from here, S_F_T_ with uh our s uh s_ F_T_ with multidimensional arbitrage idea.
Uh and this is again uh against Java two. It was somewhat around forty eight. Then with only merging without any iteration, improved somewhat five points for the win rates. And when we combine this merging iteratively with preference training, this time we get also much higher performance improvement.
So here the of course there are two two uh factors. One preferences training, it improves already. But we did preference training with merging. That's uh that's the main thing uh for the expense. So the this is this is also for reference to the the previous generation I_I_ I_A_ models.
In there we were losing from English, right, because we had this uneven uh advantages when we pushed towards the multilinguality. But in the case of IXPAS, because we now have separately trained models potentially leveraging the performance much better for different languages, even for English we had actually quite a good performance. So actually this sort of merging s mitigates hurting some performance in sort of high resource languages.
Yeah, that was uh that was our expense. For uh after our expense we wanted to build a multiple multi-lingual language module, uh which name it I_I_ vision. We recently released paper is not released yet uh the the screenshot I showed uh uh from the paper gonna be released in in two weeks, I think. But here we actually did something I would say quite noble, this time merging across modalities.
So this is just like a recap about uh this sort of uh multi-model. Language models, late fusion uh basically. You have an L_L_M_ uh probably completely post-trained, including preference training and you have another region encoder, you want to fuse them to a multi-model language model, right? So you have a connector, but basically you do mostly multi-model training.
But as you do multi-model training, there is always this problem. You may lose performance from the text capabilities. Because the focus of this uh training now in the kind of equa uh im improving the multi-model understanding, uh but i i i mean you may want to add some text data, but still you will probably lose uh text only capabilities.
this here actually p you you can dis regard eye vision, I will ex explain eye vision later, but these are some uh baseline models that we want to s uh to understand even be beginning of the the project, whether these multi-model uh language models are really losing performance in text only domain. And this is a win race across multiple languages. Uh so each model compared to the its own original LLM.
For example, current 2.5 BL here, compared compared to current two point f

compared to Quanta 2.5 L_L_L_ And as you can see, all the l all the uh multi-model L_L_L_s here significantly lose uh text-on-the performance. But from the beginning, uh when we were developing i_ a vision, we wanted to combine both state of the art multi-model capabilities and state of the art uh text-on-the capabilities. So we don't did actually did not want to lose uh too much from text-on-the capabilities.
Uh but this is uh our first set of experiments for the I I a vision. When we did multiple model training with of course diverse set of uh multiple model uh and multilingual data. And uh compared with the baseline, uh our original L_L_M_ which was I expense, uh this is the win rate. So we were losing about twenty percent. This was a really high uh uh drop, right? So in general, if you look at the literature,
A different labs add a lot of uh text data to recover uh textural performance. But actually that is also quite tricky because if you add the same text all these language models are, as I said, potentially fully post-trained. So but you start again from the S_F_T_ so you undo some of the preference training operation, right. This is first problem. Secondly you have a set of as uh text only data, very high quality text only data that you use for L_L_M_ post-training.
So potentially you want to use all of them when you are training LLM, but then you jump to multi-model training to recover some text performance. You want to at this time again text only data, but then there is this potential of overfitting because you are reintroducing data multiple times, right? So
in best scenario, if you want to recover with text text mixture in the multi-model training, you need to find another data that you model probably did not see before, and you still need to do lots of different data ablations, how much how degree that uh uh how hmm I mean how how much uh text data do you need to add to text training. The multi-model training. But instead
In AAVision, actually we did something much more simpler. I mean in terms of prac uh practical point of view. But uh slightly bit more novel, I would say. We first did full multi-model training. Then we merge original LLM which is complete completely did not see any multi-model information, right. Just the LLM with the uh uh LLM and decoder of the multi-model uh language model.
So we test a couple of different uh emerging methods, but we basically use uh linear interpolation. Uh and after we u did the merging, these are these are the results. So first uh of course our main uh motivation was recovering the text performance, right? So it was somewhat about like a twenty uh twenty percent drop and after we did the merging, simple linear merging,
Uh with the two models. Now uh the eye vision, compared to the eye expense, which is the original ex uh original L_L_M. Was for forty six win rate. So it was almost in the same ballpark compared to the original L_L_M.
So that was pretty interesting, because I mean even w with the start of the project we did not really expect that much of high jump, and we were thinking maybe we first need to do mat uh multiple merging, then we need to do also some more training with the uh text mixture. But only multiple merging actually kind of recovered most of the text performance. But even more interesting, after we did multiple merging which the main motivation was text recovery,
Then the multi-model performance itself also improved. Because if you think about multi-model performance, this is uh uh it's especially important in the emerging context because of the compositionality between task and languages, you ask a model about uh an image, then you get a text generation, right? If your uh model has a better textural capability, your multi-model performance also potentially better. I think this is uh the improvement that we see with the multi-model merging was coming from this.
And this is quite a significant uh I level here. So all this evaluations were for uh win rates, which is much uh much easier to see this ki sort of improvement. But also we wanted to have the complete story and also look at the academic benchmarks here. So this is uh this is win rates that I show with a different merging fraction. So we did actually zero for zero for merging.
Uh zero four meaning the zero the weight of the multi-model LLM. And this in the in the right side you see the academic benchmarks and this i you actually you see quite uh same story, a although the smaller degree. Of course, uh the text performance improves quite a bit because you are putting more text weights into into the mixture. But even for the academic benchmarks
your Multilingual academic benchmarks, your uh Multimodal performance improves from I think fifty or forty eight to fifty, fifty one. That was actually quite uh surprising for us. And c uh combined with the and text performance here, because that was the main uh purpose of all all this uh exploration, we wanted to have like a sort of part optimal
area uh for the both multimedia and text performance, and this actually kind of allow us to be in that that region. Okay, uh in the last piece I w I'd like to briefly p talk about the command A_ uh coheres the frontier uh frontier model, which we full scale use merging uh across lots of different task task experties.
So, uh here like uh we we see uh merging works across languages and and diavision, we see merging works across modalities. But when you go to like super large scale, which is like a one hundred eleven billion language model and also targeted for multiple different expertise, including some enterprise needs and general purpose capabilities, you have too many much more domain of expertise, right? You want to combine.
And uh uh in the same just like in I I expense, you have lots uh you lots of data mixture problem, interference problem and commonly this uh this problems of in other research with the sequential uh training. So for example if you look at llama three I think they train with mu order of different tasks, mathematic, or multilingulaty then combine all the all the task altogether and do training in multiple order.
But then you have ordering problem. And when you do the sequential training, potentially you ha also have a forgetting problem. And each of this different expertise may actually require different sort of algorithmic interferer uh I mean alg algorithmic approach, and you are losing this sort of flexibility if you do one uh s uh like a s chain of uh training. Instead uh for the comment A_ we ask like how can we enable this
uh decentralised asynchronous training for different model capabilities and join and optimise uh all of them at at the end. So in that sense, as I said, comment A_ is the act actually first large scale attempt to combine all this uh kind of ar merging ideas in a very large scale. So the the general training recipe is quite similar with with I_ expense, with some really novel and new editions.
Starting from, so this is the general general recipe. Again, there is a multi-step uh merging uh you can see here. From the S_F_T_ we have uh one merging operation and for the preference training, we have another merging operation. So this is also iterative. But one new thing from uh the diverging from our expense, actually starting point also not the base L_L_M_ but this time starting point is
Another superv uh supervise fine-tune is start model. So I will uh touch upon uh on this point a bit, but this was quite important. Then in the first stage, we train multiple different experts for the in this time it's
quite a lot actually, and seven. And why this is important, not because of only a large number, but all these expertise are quite different from each other, right? You have safety expert or and you have long context expert. So it's quite uh likely that i in the same data mixture you may introduce loss of interference. But if you do in this uh separate training, you have much less interference if you do merging well.
After the first SFD training, we merge all of them, it's called SFD submodel here. And then again we are branching for seven times with the different expertise for the preference training. So the nice thing about this overall uh schema, for each expert you have you can try different SFD SFD methods, you can try different preference training methods, right? Maybe for long context,
You may just use offline offline R_L_ and but for uh multi-lingual expert you may want to use offline R_L_ and online R_L_ in different manner. And for male and reasoning expert you may want to use verifiable uh R_L_ from verifiable remote, right? So you gi this gives you maximum flexibility of algorithmic components.
And the last phase, this was also diverging from our expense, which was pretty pretty important for command A_, was polishing. Because as I said, after all all the merging, because there are quite a lot of number of uh m expert model here, you might end up somewhere sub-optimum and you want to do a little bit iteration to move this uh your your mo model to optimal place.

your your mood model to optimal place. And here we we experimented with uh both S_F_T_ and different uh preference training uh algorithms. So these are some uh plots for showing the before after uh merging operation. In the left side you see this is aggregated. Zero meaning um it the best expert performance match with the the final check point.
minus points are uh your final checkpoint are slightly bit l uh performing slightly bit lower than your best expert. If it is uh the plus, your final checkpoint actually performs slightly bit higher than the best expert for the corresponding task. But the main point here is merging preserve most of the the expert performance, including the top performance here. So it's between zero and t minus two point five is the main uh average for the expert performance.
And if you look at the the separate expertise here, expert domains, actually uh for for many domains like multilingual, rock or uh general, you have almost s the top expert performance in your final checkpoint. Actually all this leaves uh this uh this model to be very competitive with other uh other frontier models uh right. Uh because
Of course, these are benchmarks, does not directly correspond all the expertise. But the combination of all the expert models actually lead um these model to be uh excelli in economic benchmarks, agentic uh work-flows or code or multilingual. So there are some uh some learnings from Comente. Also linear merging, uh similar to I_EXPENSE and I_VISION was extremely efficient.
And in this in this case uh for the commentary it was even more efficient because when you have larger model, a linear merging seems to be much more smoother than more sophisticated approaches. Second one is is I think quite important, the kind of explaining why we started from the instructor checkpoint is consistency.
So maybe if you just start from the the base checkpoint, you may reach the better uh optimality for the particular expert, but somewhat co uh consistency between expert models are quite important and starting from a safety checkpoint, you actually allow the models to be more consistent between each other. The the third point here is uh model merging is course course operation, which meaning
Of course there is no guarantee that you will end up in the part of a part of a part of optimum point. So that's why this polishing even before polishing after each merging you may want to do small uh steps of uh updates S_F_T_s to to me to have like a optimal performance for the merge merge checkpoint itself.
And one this is sort of negative, but I think this is important when we are talking about emerging. Merging is cheap in a way, but is expen expensive in any other way, because you have this this time sweep of merging uh merging weights, right? You need to do lots of evaluation.
So I I I espe especially wanted to put that because this is one really nice future future research area in my opinion like uh this evalua from the evalu nation uh search and some other like maybe smart to to do less iteration for the uh finding the best merge checkpoint would be pretty important for for the large scale. Yeah. And overall takeaways from all these three models.
I think one thing which is pretty clear for us was merging is really a a tool in super large scale frontier model development. So it's a it's not maybe decen it doesn't need to be a central point, but it's definitely within the toolbox. Just like how how you have S_F_T_ or how you have any R_L_ algorithm, merging is also one of them. You can treat as a tech a method that you can use within all the all the framework.
It uh enables decentralised training. This helps organ organisational point of view, first of all. Uh it uh enables composing different capabilities in extreme version modalities. Uh and it's kind of uh enable us to avoid large data mix of views.
And another important thing is here is like a never a single step operation. I think we always see better performance when we iteratively merge models. And uh the last point, uh I think this is also really nice uh research area for the future project is
Very important what you are merging together. If the if the these the checkpoints are super different from each other, it's a another problem. If they are super similar to each other, it's also another problem, right? So there is another balance in this check point mixture that you want to merge that. Yep. Uh thanks all of you. Um
Oh, of course I I should give a short shout out to all my colleagues from Cohere and Cohere Labs. I mean uh this is a large amount of work for all this tree uh different models. Thank you, Amit. Very good to see like such a complex pipeline uh for a frontier model uh released to the public. Uh is there any question in the audience?
Hey, uh thanks for the talk. Uh I have a question about command A_ Do you have you maybe run on a smaller scale um experiments, ablation experiments in terms of okay how how does performance compare when we take the full data set and essentially train a model on that versus, you know, taking these expert's models and merging them? Yeah, actually that uh I showed command A. Uh
The sort of framework and the results, but the same sort of recipe applied also seven-day comment, R_ seven-day, and that was also performing really well. Uh actually we first did of course R_ seven-day, then the comment day to validate the the framework. So in small scale it also works uh same way.
Sorry. Uh I'm curious about have you done maybe the concrete ablation experiment of training on the full data sets? Like the the joint data set essentially of all of these tasks, versus training experts and merging them and how that uh compares in terms of performance. I don't have the results, but I'm sure those experiments definitely because that is the main baseline, right? You first want to combine all the data to one run a run and combine with the merge checkpoint.
Uh I'm I'm sure that uh that we had the of course leverage from the merging, but I don't have results to show. Okay. Alright, thanks.
Uh thank you for the very nice talk. Um I had a question on coming actually um I mean it's a two -fold question s uh just to grasp the the scale of the S_F_T_ versus the pre-training. So kind of a two-fold question is um do you tune all the parameters at that point? And second what is the amount of work in the in the pre-training of the model versus, you face?
So pretaining is beyond all this context, actually. So I yeah mean, of yeah but course there just to give a sense of like I don't know is it like 1% of the
What dollar whatever is the unit? Okay. So Or is it like ten percent or is it To be honest, I don't point have that one kind that sort of comparison for Uh-huh. pre-training run and S_F_T_ run. But I can surely say that S_F_T_ or all the post-training runs are much more smaller scale than for pre-training. Like two two thousands would be a good scale for example? I I I dunno. Okay. And uh and here you tune all the parameters?
Yeah. Well, for SFT, this is not like a uh separate like a Lora or another adaptor approach, but the all the parameters are tuned for old experts. Okay. Thank you.
Uh thank you very nice talk. Uh I would like to ask if like when you merge all the models p like does model architecture matters a lot since like we all know like some dense model merging might be straightforward but some MOE models or like larger models that might like have multiple layers and multiple activations does that change the recipe or does it remains the same? In Thank you. these models that I'm showing,
All of t all of these models are dance models. And architecture are also exactly same. Uh only like s I mean uh still architecture is exactly same, but only minor I think not here, uh this multi-model merging, because we merge only part of the model here, right? Uh this kind of shows that merging can be goes can go beyond the the s full same architecture uh m architecture models, but um
I think this is something also needs to be explored even more. I know there are works to m model merging for MOEs. Uh but I I I'm not sure like uh the trade-off when you compare dense model merging to sparse model merging to be honest. Thank you so much for the talk. Um if you go back to that um architecture slide you are showing Which one for uh which model? where you are showing the instruction
Checkpoint, How? yeah. How do you determine the readiness of the instruction during checkpoint and what metrics are you using to evaluate that? Mm-hmm. I mean there of course there is a bunch of evaluation Yeah uh yeah. that that we do here, But but at coherent, yeah, let's. uh but b before the evaluation, because this is not the final point that model reached, right. More important there is like uh the to provide the consistency you need to have a sort of data.
that the model should see and then branch to the to the experts. Because like uh for the for example compared to the drug expert to

the drug expert to long context expert there is quite a bit of difference in data set representations even. If you look at the data set, data sets are quite different, how the prompts and instruction and completions are formatted. The first instruction uh fine-tuning step is especially important for this having consistency that model won't go diverse with the separate style of data. Cool.
Thanks for the talk. Um I I I have the feeling that model merging is very counter-intuitive. Um maybe you have a an understanding uh better understanding of like what happens when you merge two model in a multilingual context? What what actually make it that it's actually working?
A so maybe I d I didn't I didn't understand the first part, can you can you repeat So it? uh my point is I think modern merging is very counterintuitive. And maybe you have an intuition of what's actually happening when we merge two model for two language and it's it's actually working. Yeah. I mean uh probably d there is much more hypothesis around that, but if you think about the normal gradient op optimisation,
If what you do in in in in in standard one run, you have like you are trying to go down through the lost landscape, right. But in in a multi merging case, this time you have se separate models, let's say two different languages. Of course uh when you combine them, there are some words that shows directionality of uh gradient is can be different. It's leading the interference normally, right. When you have separate training
Each each languages in this case going in own route when you merge you try to find somewhere in between that works for both both the models. Actually that's why there is no guarantee that you may not really find the the correct local optima. That's why that's why you may want to do a little bit more training. But I think that is the main reason for that. But I spe if you are asking a specific case
I agree that it is quite counter-intuitive, especially I was super surprised this multimodal merging uh to be completely fair. But um after I think more after I of course I see the results. So here there is this image encoder and we did not y even update the image encoder except the the connector. And these are all in the uh input space. And the model output space is actually same. So when we merge the original with the int
The main the multi-trend at the L_L_M_ Actually, these are in the same outputspace uh operating in the same outputspace in in in a degree. Since we did not touch the the input uh input space, it's kind of intuitive in that sense uh to get get the performance there.
And maybe a question from me related to this. Do you guys treat the vocabularies differently, like in terms of the embedding layers? I can see how if you're basically diverging for different languages, Mm-hmm. um you might have to basically d do you have to worry about treating the embedding layers differently or you just merge them like Uh in I ION something special? vision actually we did not update the uh the the embedding layer, but this is not because of merging this is because of the multi-model training. But for the eye expense
and the commentate, everything is completed, updated. So there is no different in terms of the embedding space as well. But my intuition is actually if you try to do something separate for embeddings, it may not help for the merging, in my opinion. Um thank you very much, Matt. Uh we are doing a ten minutes break uh and at uh ten fifteen uh we will start again the talks uh starting with asterisk swarm parallelism. Thank you, Matt.

Okay, uh we're going to continue our workshop uh this time with the distributed paper. Uh so please welcome uh Gilles uh to exploring asynchronou asynchronous asynchron sorry one in swarm parallelism. Thank you, Arthur. Um so hi everyone. My name is Gil Abraham. I'm uh representing Polaris research and today I'll be speaking about um
The short workshop paper we did, called exploring asynchronism in swarm parallelism, the authors are the employees of the company, Jan, myself, AJ, Samir and Alex. So here's the outline of what I'll be talking about. First I'll talk about... First I'll be talking about asynchronious training and distributed networks.
Um and then it's the kernels popular in parallel or those who don't know the background of that um I'll revisit um swarm parallelism and then I'll talk about nested recursive gradient for delay correction and finally some experiments. Um just a brief high level, so the gist of this talk, it was a two paper workshop.
And what we mainly explored is how to perform asynchronous updates in local nodes. And the change was actually very simple. It was to change the optimize from Adam W to um an optimizer. And I guess for those who sort of understood what I just said, um that's the gist of it. It's actually quite simple.
But for those who don't know pipeline parallel and async works in pipeline parallel or swarm at all, this talk will cover all of that. So first of all, why is asynchronous training in distributed networks important? Distributed training infrastructure is quite heterogeneous.
Um, that means you have different compute speeds, different GPUs, different bandwidth connections. Um, all this causes like you can have stackler effects, things can become quite slow. Um, it takes time to sync stuff and generally it can be quite messy. Um, the current dominating paradigm is synchronous type training.
In synchronous type training, you have a lot of nice convergence guarantees when you train stuff synchronously. You have good proofs with SGD, but the problem is when the model gets quite big, you need to start splitting your models across different stages so you have layer each layer going on a different stage. I'll be talking about that. That's pipeline parallel. Then you get stuff like synchronous bubbles.
Um, as the chronic straining is appealing because it alleviates a lot of these issues. So things can work asynchronously. Um you don't have to wait to, for stuff to sync. Um but it has a fair amount of challenging um some of the challenges we'll talk about here are gonna be um stale gradients and outdated weights. Those are two um dominating problems with these uh these kind of works.
So first of all, Pavlov and Parallel, for those who are less familiar with it, if you have a very large model, you want to split that model onto multiple stages, onto multiple GPUs, you take how many ever layers that fit onto a single GPU in your kind of cluster and then you put those layers on them.
Um the method was initially designed for synchronous type training because of the convergence guarantees I mentioned. So um the way it kind of works is pretty simple. Um you have a single batch. It gets processed um by uh it gets processed by uh the first uh the first stage and then it gets uh passed on and while uh this is happening um
The GPU will remain idle. So that's not very good. Various methods have been coming up over the years to improve the utility and reduce the idle time between the different layers. So the first one was G-pipe, which came with the approach of splitting up to micro-batches. So now you have a batch and it's split up into micro -batches and normally
You put the micro-batch to be some multiplication of uh the number of stages that you have. These uh these have what we call these sink bubbles and um over the years various methods like one F_ one B_ an interleaved one F_ one B_ and zero bubble um came through to try to reduce this uh kind of bubble time.
So the kind of less known methods in this area are asynchronous pipeline parallel. The promise of this kind of approaches is that there's no synchronous bubbles. So once, let's say once you have the startup state where you have your first initial micro batches that go through, from there on.
Each node performs the update of its gradients immediately once it sees the batch. So um different challenges occur in this kind of work, in this kind of method. Um you have outdated gradients, um you have outdated weights, and so the two main methods that um are known here are called pipe dream and pipe mirror. And the next few slides I'll be doing a bit of uh notation and formulation. So
We can all speak the same language. So let's formally talk about it. We have a model that's split into p-pipeline stages. Each function f is a

is uh um a function in your stage. So a composition of that gives you the final model. For an input X_ all the weights are W_ Similar for the backwards um every G_ is basically uh D_y to D_x_ so the derivative of uh the model stage and the air input at the stage P_ is your basically your loss.
So for the synchronized pipeline parallel, the definition is the error competed at stage i minus one is basically your backward gradients of the weights at that stage. There's a notation T here for the asynchronous case it's not that important, but we'll see when it's async this T does have importance.
And you have your error signal. And H is the chain rule for the layer I at time t and this is how you're computing your derivative at the stage of stage I. And so the update is HGD which we all know.
And for this for the synchronous case it's pretty much equivalent to the regular training we all uh we all kinda know without our pipeline parallel. So what happens with the ASIC pipeline parallel? Um what happens to these equations? So first of all, um the forward pass is updating the weights is uh performing the forward pass.
At a some time T minus tau because the activation is going from stage I all the way to the last stage and then coming back and by the time it comes back because you're performing local updates those weights have moved on. So in this case you have a staleness of the gradients and that's the error that will be computed will also be stale.
Um and then similar for the chain rule, um those weights have been updated. Though the gradient at the moment it comes to those weights um it's gonna be delayed by um tau which is uh corresponding to the stage and the number of stages. And finally the the whole um the whole gradient they're gonna be committing and updating your weights with is um
um delayed and using and and using a incorrect uh error signal. So one of the methods that tries to address this is uh what we call a pipe dream. Um this is the name of the paper and what it does it uses weight stashing. So the idea of weight stashing is that in every time you uh computer forward the pass
You stash those weights and later when you encounter the same activations that come back now in the gradient, you pop out those weights and so at least the error signal that's computed is computed with the correct weights. The update equation is still using old weights because you're popping the old weights for computing the chain rule.
But it's better than computing it with the new weights and an outdated error signal. So this is the notation for pipe dream. And these equations are recalling the issue we had when I defined that synchronous pipeline parallel. These are the same equations here and here.
And the work called PipeMirror actually doesn't do weight stashing. Um it handles the forward backward weight discrepancy by using a stagewise learning rate. So the kind of intuition they have is that uh early stages they experience more gradient distortion. And so the learning rate is uh inversely set to that delay. Um so the earlier stages are effectively have a lower learning rate.
And that's um they have this distortion when uh they're outdated. Um for those who don't know Swarm parallelism, I'll do a quick revisit because uh majority of um our work um was doing tests on this. Um Swarm is a two-dimensional parallel and parallel work. Um it does stochastic routing, um it has improved util u utilization.
And it supports fault tolerance and no-load elasticity. It aims to be close to synchronized training dynamics. What it does is that every node in the stage accumulates gradients. And once there's a target batch size that's hit, it all reduces performed.
Um one of the issues with form is that the kind of sync bubbles um become more dominant once you have more nodes in the stage and you have more stages. And so one of the things we explored in this work is performing uh local updates um in each node. In that case, um you don't have to accumulate gradients and uh sync those um once you hit your target batch size.
So a quick recap on this sort of accretory gradients. This is the equation. I think most of you know this. This is quite a well -known work. The velocity term is used to perform a look ahead and thus provide you a more stable convergence by stabilizing the training.
And then we call it in our case. Um the main intuition for us changing the optimiser from Adam W to uh optimiser that uses uh Nesterov style updates is that now we use the velocity term to perform um weight correction. So if the weights are delayed because they were computed um using uh old gradients
Um now we perform using the velocity perform uh weight correction and thus uh you alleviate some of the issues um that occur due to uh synchronous training. Uh these are the experimental setups. Um we use eight stages and we have uh two nodes for each stage which is quite small and to emulate uh the delays we add um we add a delay
Computation, so it's one second, uh point five seconds. And so here's a inspecting the turning stability. So what we do is uh half the warm-up uh half the warm-up time from uh one K_ to five hundred steps to see what happens and for our case it's what we call the async naddum.
Um, bad time 64, and um, this is quite more stable, more stable than other baselines which use the vanilla um Adam W. Um we explore what happens when uh we make use different bat sizes. Um in this case again um when you have uh the vanilla async without our optimizer.
It does not converge. And lastly, when we uh introduce uh more stillness by um randomizing the delays, um again you can see the vanilla case of batch size 64 does not converge at all and for our cases it does. Thanks everyone.
Thank you very much Gilles. Uh we can take maybe one question. Hmm. Thanks for the talk. Um I was wondering if if you know the impact of latency on the pipelining stage and and how the I think is uh is helping with the latency.
So You have to care yeah, when you have a asynchronous uh style Yes. updates, um you actually mask out Yes. the latency because you don't have to wait um for the asynchronous style to happen. So that's one of the benefits. Okay. Thank you very much, Gilles. Uh we are out of time. Uh thank you.
Just a quick note about the posters. Uh so we have a bunch of uh stickers to put the poster and also blue tape. Uh so feel f feel free to attack it from us and uh put your poster uh on any wall you wish. Uh now we have our new speaker. So Pierre is going to talk about uh sooping. Yes.
Oh, the colour is off. The colour is a bit weird.

Okay, so yeah, it's gonna be an orange talk, yeah. Uh Yes. Sorry? Okay. Um when does w yeah. Okay. Uh yeah. Well, I had some colours, but uh I guess we'll have to think about it. Yeah.
uh okay, uh it's okay. Uh so thanks a lot for the organisers for organising uh this great workshop. Uh I'm going to talk about uh new work called soup of experts, uh pre-training specialist models with parameter averaging. And it's a joint work with my colleagues at Apple, uh Anguelos, Skyler and David.
Um so we are going to play a game, okay? So let's uh try to play a game. It's very interactive. Um okay. So the rules of the game are the following. You have a very large training budget. So congrats, you have lots of time and lots of GPUs to pre-train a model. So you can spend maybe months pre-training a model. So that's great. And now after that time, so you have a very long time to pre-train a model, and then after let's say one month, I will come to you
with a d a s a very small data set. And I have this data set, and it's like a very precious data set to me. It may be the the cooking recipes of my grandma or something very precious. And so uh it has two uh different things. The first thing is that it's very small, so I have very little data in this data set. And also it's very uh precious to me, so I want to have a very good model on this data set. And now the game is the following. So I had this monster prepare, and then after a month
I receive a data set, I have never seen this data set before and I have to get a very small model, so maybe like just to give an order of magnitude, let's say we just want a hundred million parameters or maybe just one billion parameters, and we want this model to
To have a very good performance on this data set that we have never seen before. So you have lots of time to prepare, but you have never seen the data set before. And then up, I come to you, I give you a data set and now you have like maybe a minute or two to give me a model that is really good on that data set, okay. So I will give you a bit of time to think about it uh and try to see if you can come up with a method to do that. And so the the goal of my talk is to ch to to explain the method to d to answer this uh question.
So I will uh well you think about it, I will ki keep on my uh going with my presentation. So of course if for this to solve this this problem w we have two issues. So the first one is that
I have a very uh strong constraint on the size. So I need to have a small model. And that means that I cannot do the usual paradigm of just taking the whole of internet and training my mode my small model on this one, on thon on this uh on the data set. Because my model is small, so it has to do trade-offs. It has to allocate its capacity to do some things, and and and if it if it allocated its capacity to do one task, it cannot do another task as well. Because it has very uh very little bit of uh uh very little uh number of parameters.
meters. And so that means that if I do my usual uh pre-tuning recipe, I will never get a good specialist. So this method will most likely not be very efficient. Uh and then the other issue is that I don't have time. Okay, so uh I get this data set and I don't have to t I cannot train a model on it because it's too small. And I don't even have time to do so, maybe I don't even have a G_P_U_ or i it's gonna be a very uh complicated. But I have lots of time to prepare.
Okay, so to answer this problem, uh the first uh answer is that we have
As usual, not only one pre-trained domain, but we have multiple. So we have uh uh uh a collection of pre-trained domains. So I'm going to call them D_ one to D_K_ and these are different data sources. Okay, so uh i each one can be a different uh textual domains for instance, if we train language models. And we have uh lots of samples in each of those domains. We let's say that for the sake of this talk that we have infinitely many samples in uh in those. And so we can query samples from each of those domains.
Uh and that means that y I can sample from what we call a mixture. Okay, and the mixture is is very simple. You give me a probability vector H_ that I'm going to call a domain weights, it's a vector of size K_ and then I can uh sample from that from the corresponding mixture, that means that I will sample from the domain I_
with probability H_I and so if H_I is a large number I will sample a lot from domain I and if H_I is small I will sample a little bit from that domain. And so that's the that's an illustration here, it's just just a mixture of domains. And this is what everybody does when they pre-train models actually. Uh and so the idea is that now I can pre-train a mod I can train a model on for any given mixture. So if you give me a domain weights vector H_
I can pre-train a model that will be good for that mixture by just minimizing uh as usual the uh empirical loss over that mixture. And of course if I take a different mixture h I get to a very different model. The the model I get is very dependent on the mixture.
And so before I uh go go ahead I need to talk to you about a method called CRISP that we presented actually yesterday at the conference and that's the basics that the basic idea for the for what I'm going to talk about. And so the idea is to use important sampling. So the idea is super simple uh and it solves part of the issue. So if you come to me with a very small data set that is very precious, that has very little bit of data, the idea is super simple.
I'm going to do two two things. I'm going to first try to find a histogram or a domain weight H_ that
approximate my specular set. So the idea that I try to find an histogram age such that my specular set resembles the mixture corresponding to age. So that's uh d we have methods to do that, it's actually pretty simple. And then the idea that we train then um a model using that histogram. And that means that we have two things, we are going to train on data that looks like my specular data and we also have a lot of data because uh these are data coming from my training domains.
I mean so have these two things. And then I get to a model that will hope really be very good on my specification data set. Now of course this method does not solve the problem that I mentioned before, because you have to know the speciality set before you do your pre-training. Your pre training is okay I'm going to uh sample according to this mixture, but you need to know that what the mixture is, and that means that you need to know beforehand uh what is the speciality set.
And so that does not answer the question I was asking you. And so the idea actually is very simple, is to combine this idea of crisp with what people call in optimisation, amortisation. So amortisation is a very simple concept. The idea is that basically what we want to do when we train a model is that you have an histogram H and you want to minimise this loss that depends on H. And so
Amortization is the idea that these problems, even though they are not the same, they share a common structure. They are very similar. If you move h a bit, you're going to have a problem that is quite similar. And so we are going to try to amortize. And so amortization is the following concept. So it's when you have similar instances of the same problem that are repeated. And here, one problem is pre -training a model with an histogram h.
And the amortization is going to try to predict what is the solution to that problem with respect uh I mean as a function of h. And so trying to predict without doing any optimization what is the solution to that problem.
And so now you can wonder, what am I doing at that workshop, right? So that's a very fair question. And so the answer is this. So we are going to also use ideas from model merging. And so this slide is going to be very obvious for most of the audience, but I'm still going to do it. So the idea is that we can combine uh models parameters linearly. And so in i with respect to the to to the framework I was mentioning abo uh before, the idea is the following. So if you take a pretty model theta,
that that that you got. I mean uh that that's a print-in model, so it it was trained for a long time. And then you take two different domain weights, H_ one and H_ two. Then you let's say that you start from theta, you fine-tune on the mixture corresponding to the first domain weights and you get some weights theta one. So that those weights are obtained by fine-tuning on that mixture. So they are uh obtained by optimizing the loss with respect to H_ one. Now you do the same thing, but with uh the other histogram H_ two. You get another
Uh, yeah, set of weights theta two. And then as you all know here, if you average those weights, they are going to be good both on H_ one and on H_ two. So that's the that's the the basic idea of model merging. You can merge in m in more fancy ways, etcetera, but that that's the main idea. And so the the key insight that I'm going to use is that some models' parameters can be linearly combined. I mean that that's obvious to all of you, but I think it's a very important message. And so what we propose
to amortize this learning of uh uh optimization with respect to the mixture is the following architecture. It's what we call a soup of experts because we are going is a bit like a model soup uh that we learn. And so the idea is the following. It's an architecture that uh is instantiated for any different histogram. So the idea is the following. You give me a a a an histogram H_ uh uh some some domain weights H_
I simply uh make them pass through an M_L_P_ that's a very small M_ _L_P_ it it j it would give me N different scalar numbers and N is usually like a hundred or something, so this M_L_P_ is very small. And these numbers I use them to form a linear combination of shared weight. So S_ are shared so they do not depend on this programme, and expert's weights that depend that that that that so so all of these things here are banks of coefficients that are of exactly the same shape.
as the original model that you want to train and basically what

the model that you want to train. And basically what we do is very simple, we just take this shared parameters, and then we do linear combination of all of these expert weights, so like we do in the model merging. But we have the coefficients of this linear combination that are a function of the input histogram. So if you give
To a soup of expert a histogram. You pass the histogram for an M_L_P_ you get coefficients, and then you these coefficients are used to merge the parameters of the model, and then in the end you get a single parameter theta that is of the same shape as the shared parameters are all of the expert parameters.
Okay, so that's the architecture. And then N is the number of experts and the pa So it's it's a new model and its parameters are S, the shared parameters, the experts' weights and the M_L_P_s parameters. And we are going to learn all of those parameters jointly during pruning. So how do we learn to do that? Uh we have to do some kind of meta-learning.
So what we are going to do is that we are going to have a meta distribution H uh sorry, a meta distribution pi, and you are going it's a distribution that that gives you random histograms. And so not that you have this distribution that gives you random histograms, what do you do to train?
First you sample a domain weight. So you you sample a a random histogram from the distribution pi and then you do two things. So you have a histogram age, you first are going to instantiate the soup of experts as I mentioned before. So you take this histogram, pass it through an M_L_P_ get all of the experts weights, merge them and then you get the you get some parameters. And then on the other hand, so s so so that's on the side uh of the the model. And on the side of the data, you are going to take this uh
this this histogram and sample uh following the low this low. So here H_ one was large. So you're going to sample a lot of data from your first domain, a little bit of data from the second domain, etcetera. And that gives you a mini-batch X_ And now you have on one hand a model, on the other hand you have a mini-batch. So you can do what everybody does in machine learning, you merge these two things, you get a loss, and then you backprop for this, and that allows you to update as y the uh the experts and the M_L_P_s parameters.
And now, so the and uh my claim is that this answer is actually the riddle that I gave you in the beginning. Uh because now if I if you give so now if I have a a soup of expert that is pre-trained, and you come to me with a new specialization data set, I can do very simple thing. I first try to find just like we I explained to you in the uh crisp method, I try to find a a a histogram age that resembles this data set. So uh it's very easy to do and very quick. Uh and now that I have this histogram,
I can just pass it through the M_L_P_ I get the weights, I combine these experts, and I merge. And this is actually a very uh a very cheap process, right? I just have to do a forward pass through an M_L_P_ and combine the weights. So it's very fast, I can do this on a C_P_U_ because it's just about merging models, you don't have to do any training, and it's uh it's fast.
So for the experiment. So we used a generative pre-training set, red pajamas V_ two, and we used the clustering algorithm over embeddings to split it into four thousand different domains. And then for the base elogisation sets, we used sixteen different data sets from the pile. So GitHub, Wikipedia, etcetera. Uh we used model sizes mainly of size a hundred and ten million, and we used a hundred and twenty eight experts. We have different base lines, so the first base line is the
thing that everybody would do, which is generic pre-training. So you take a a model of fixed size and you train it on your uniform distribution. Uh we compare it to crisp which trains one model for each of the specialization set, and also to domain experts which would train one model for each training domain. And these are the results. We have many more in the paper, but basically what we want to see is our curves that are uh below uh the base lines. And um this is the average loss that you get on the
Sixteen specialists said, and you see that the soup of experts is um in terms of time uh more efficient than all of the other methods. And for and you see that the plateau is much lower than that of generic prototyping. So we get to a method that really helps you uh um instantiate uh experts uh very easy. And thank you for your attention. Thanks. Thank you for talk. Uh any question?
Yes. Do you have any sense for how many experts you should be making or like whether there's any sort of scaling laws for this? Uh yeah so that that's a very fair point so when you increase the number of experts so the thing about the number of experts that is going to increase kind of the model capacity but it's not going to increase the size of the final model you get so that's another axis of scaling and we actually have experience so in our experience we see that the actually do have the curves yes I do
So basically these are the little, so don't pay attention to, just pay attention to the stars and this is as a function of the number of experts. And so you see that this is, so the y axis is the last and the x axis is the kind of if you want the number of experts. And so you see that it decays and then it plateaus and so the fact that it plateaus a bit is is is uh I think it's maybe an optimization issue and so we probably if we could probably fix this this issue. But basically you see that
That it scales with the number of experts up to a point, so you have like kind of a kink for uh so far. Uh yeah, it's um but it yeah. Having more experts help having better models while you're still having the exact same model size in the end, if you want to ship a model.
I have a question. So you have a little bit of data that you use to basically figure out the domain mixing weights, Yes. right? And can you, do you have experiments where you basically try to adapt the combined model also on that little data? And if you do, one thing you could also use that little data for is to basically doing context learning with the larger model.
Does that like as another baseline of like comparing against yeah Um, so there are two parts. So the first part is exactly yes. So that's a very good point. We also, so if you have a bit of data and if you have a bit more time, so the idea that this is fast, Yeah if you have, for instance, if you can afford to backprop, Yeah then you can learn the weights alpha one to alpha n that are minimizing the loss on your data. You just have a hundred weights, so it will be pretty fast to do, but this is still costly because you have to backprop through the network.
Yeah, yeah. But but that but that that works fine. Actually in our experiments we found that you actually can in most cases you actually recover the ways that you would be using in the anyway. So Okay. Okay. so that's a that's a good point. And then about uh using this data to do in context learning, I think it's another baseline of course, but I don't uh uh that depends on uh it might not be fair if you are under a mother size constraint. And that's the case in uh I mean in our uh our whole uh project, we say we want in the end to ship a mother that has a hundred million parameters.
there's and then if you in the instead you try to use a seven bit model of course it's gonna be better, but it doesn't fin the constraint. So we discard those motors. Yeah. There are But some it there would be better of course. yeah, there are some works on like prompt prompted language uh like prompt prompted pruning where you can basically use use the in context data to prune the model just from prompting. Um that's also like an interesting basis Ah yes, to look into. I did I was not aware of this. That's interesting, thanks.
Uh we don't have time for the question. Uh please uh go speak with a speaker uh during the break and the poster room. Thank you very much. Thank you Pierre. And now we have our new speaker, uh Sneha. He's gonna present us our work.
I'm Sneha. I'll be talking about a paper called Mapformer on adaptive training. This is work I did with a bunch of folks at both DeepMind and at University of Washington. So transformers get super expensive as you scale up and different parts of your transformer can are more expensive than the other.
And one approach to look at this is thinking about adaptive architectures, which is thinking about coming up with training algorithms and architectures that dynamically adjust your computational cost per token based on your input data, your task demand and budget, or how many resources you have available right now.
You can adapt your computational cost in a whole bunch of ways. You could, so this is a bunch of work. Some of this was presented, or will be presented at this workshop today, or was, yeah, are pretty recent papers. You could change the depth of your model depending on your input.
You could even change your model altogether depending on your input, which has been pretty popular. There are even more approaches than the specific one I highlighted. Or if you're...

related? Or if you're considering MOE architectures, you could even change the number of experts depending on your budget or even change the expert size. So we specifically build upon some ideas in computer that were first proposed in computer vision. This is Matryoshka representation learning. So what we decide to do here is say, okay we think that we can learn
The same representation of images in activation space at different granularities within the same activation space. So specifically what we mean by that is suppose we have this matrix, this yellow matrix over here that is your output activations. Uh we will train our our model such that oh the first one sixteenth of this is gonna be a super
super coarse representation and then like oh the orange one that's a little bigger is a little bit more detailed and so on and for vision tasks you find that these like doing this actually ends up with you actually end up with representations that are about as good as training from scratch
And sometimes even work way better than doing post hoc impression methods. So what we specifically do is decide to instead of doing learning this granularity in the activation space, we learn this in the weight space. And by that what I mean we do is compute the loss for
Every single granularity and throughout this talk when I say granularity, I mean like the model size that we want to consider. We compute the loss for each granularity that we want to train our model to be good at dealing with and optimise this loss jointly. And throughout the talk I'll use sizes in English, XL, L, M and S to denote like different matrix sizes.
And for the experiments that I discussed in the paper, I will mostly be changing the size of the MLP hidden representation, but this method is pretty general and you can extend this to the attention heads, the input representations, or even embeddings of a transformer model. So, yep.
And another interesting property that we will show of the models that we train using this method is that even though at train time we train three or four different model sizes, you could actually just say, oh, actually I want to train the first half of my model on the full size of the transformer XL. And then...
change change the model size to the smallest model size that we've learned and then get model sizes that are in between and we find that you we can actually end up with models with in between sizes that we never really trained for but they're just as good as training from scratch. So for I'll talk a little bit about our experimental setup.
So we train models. So these are the model scales for the full model, the Excel model. We train models up to about 2.6 billion parameters and we explicitly train for four different model sizes and the smallest model, sub model size that we train within the main model is one -eighth of the hidden dimension.
And we also have baselines denoted by baseline X_L_L_M_ and S_ which are the same exact same shape as the different sub-models that uh we are optimizing for. So overall like we find out find that there's not little to no lot loss in our dev tests.
log perplexity and our downstream evals and without explicitly training for
these models. We are also able to get in between model sizes and we also are able to use these models to use routing techniques in these experiments we show experiments for speculative decoding which I will also cover a little bit for those who might not be familiar later in the presentation and we find that these work way better than just using independently trained baselines.
So over, yeah, so over here we showed the perplexity results for the 2.6B parameter model, which we trained for about like 160 billion tokens, which is like slightly over-trained, but not by that much.
And for our evaluations, like the log perplexities are within about 0.04 of the baseline for the same number of tokens. And the downstream evals are within about 0.5%. We and also like over here.
The stars are the in-between size models that I was talking about, which I, we denote as mix and match throughout this presentation. And these, these are downstream evaluations where also like our technique performs very similarly to independently trained baselines.
We also find that our technique scales about as well as vanilla transformer language models. Over here like what we do is we train a bunch of models of different sizes and we also are plotting the losses of all of the sub models in addition to the main models and we find that like all these
All the Excel large and medium and small models follow the same scaling law. So I'll talk a so
Earlier, I was talking, I was giving an example from vision about how like if you train models in this way, you can end up with a course to super fine and detailed and more expensive representation of the same input. And we find that that is actually, we actually find that that property carries over into text.
generative transformer models. So we do experiments where we measure this property called consistency. So consistency is the accuracy of the smaller submodels that we train when we assume that the output of the main model is the ground truth. So what we're trying to measure is like, oh how often do the smaller models we train agree with our larger models?
And we compared that to, oh, like how much do independently trained models of similar sizes, like say the base Excel baseline and the small baseline, how often do they agree with each other? And as for why we would care about consistency specifically for foundation models, like techniques like speculative decoding actually become more performant when you have a more consistent.
model and over here like in this and I will go into the specifics of why that is so for speculative techniques like speculative decoding in the next slide but over here what we're seeing is that that former models when compared to the output
The consistency of mat former models are way higher than when you compare the consistency of two similarly shaped baselines.
So for yeah, so a little bit about speculative decoding. So speculative decoding is an algorithm that you can use if you have a really large model and a really small model to speed up your to improve your the latency of decoding. So what you do over here is do a lot of decoding with your small model but use your large model as a verifier.
in order to get latency savings and over here you fall back to the large model when your small model messes up so you could see how like oh if your small model is actually agreeing with the larger model way more often you'll end up with better a much faster setup
So empirically we find that this is actually the case. The consistency games that we measure in a few slides before

in a few slides before, we find that that holds up with our speculative decoding experiments. So what we do over here is we take a 2.6 B billion verifier model and a 1.5 B draft model. In practice, like you can even use a way, way smaller draft model than this.
and get even bigger speedups but this is the setup we went with. So what um so yeah what what we measure here is we see like oh compared to just using the 2.6 beam model like how much faster we do we get when we use a speculative decoding baseline um algorithm and we find that we get about 10 to 15 percent gains depending on what we do.
tend um slightly mo if just using the baselines gives you a 10% gain, you get about a fifteen to sixteen percent gain uh using uh met farmer models as the back bone for this algorithm. And we also do some vision experiments, specifically on classification and retrieval.
Okay, I'm doing okay on time. Um so first we so we do this on a VIT set-up with ImageNet 22K and 1K uh data set, so we do first we look at cla classification of and measure the top one accuracy of the these models on ImageNet 1K and we find that these
work about as well as independently trained baselines and then we also like look at hierarchical encoding for
encoders for retrieval by that what I mean is when you're doing image retrieval you could use the largest model for building your index but use like a smaller query encoder to get way faster retrieval results.
So what we find over here is like without actually explicitly trying to train the set-up to work hierarchically, we get way better results when we use met former. We I_T_ models for retrieval compared to um our baseline, set-up independently trained. And for
And for future work, a lot of which has been done by different folks in the community and our collaborators, you could extend jointly optimizing submodels within the same representation space to other parts of the model for way more inference savings. And you...
We also like mostly just use speculative decoding to decide how to choose which set model we are using for a given input, which some folks have done work on. And you could even go further when it comes through your ordering your representations for quantization like over here and end up and be able to like use even like a to get your two bit representations and for it.
Representations that are better than independently trained quantized models at that granular at that level of detail. And this also extend works for different architectures. Some folks have tried this for Mamba. There are also non-trivial interesting things you could do both on the algorithm and hardware side to make this work for MOEs.
Yep. Do we have any question in the room?
Okay, I have the question. So if I understand correctly, in a math former you do interleave a for the small model, a for the medium model and a large model. But you have to it's quite hard to interleave properly on a hardware if I have like a certain amount of GPU. It's been when I do a for the small model and probably under utilizing the GPU. While if I do a for the big model, I'm using fully those capacity. Yeah. Could you maybe train in parallel on different kind of node?
of different size, each of the subset at the same time. Um, I think that's totally possible. Um, we did train larger models and found that like, yeah, maybe like a 10% overhead if you just like do this out of the box with like reasonably good sharding. Um, but yeah, I think, yeah, I think doing something like parallelly training things on different devices could make sense.
Okay. Thank you very much, Thank Anna. you.
Yep and uh we have one more talk before our poster session. Um it's gonna be Olga from Facebook.
Thank you. Uh my name is Olga uh I'm I work at media research, uh in a team that focuses on reasoning, alignment and memory. And today I'll be talking about collaborative and model training. Uh thank you very much for inviting me. Uh
So I I'll mix my talk with some introductory information for maybe for those of you who don't work in this specific field and pinpoint to some problems uh that exist in this areas and our attempts to resolve them. So we'll start with a mixture of expert's models that are represent a form of ensemble uh learning where each expert that's represented by a RAM and this picture um
Takes same input and produce some output. And then we mix them somehow together. In this way, mixture of experts were defined way before deep learning era, but we will talk about their specifics in a large language modelling. Next we'll move to multi-modal models. Multi-modal models are models that combine different modalities, which is just different type of inputs.
Um such as text, audio, video, images. We will move toward as we are moving toward more general intelligence, and our large language models become really good, it's only natural for researchers to expand these models with more ways to understand and reason about world. And we cannot reason without world without uh understanding different mentalities.
However, simply combining text and image, even these two modalities into single model is still a big challenge and requires significant computational resources. That's where combining multi-modal and MoE can help us. As since a mixture of experts are more efficient, they can reduce the burden on computer resources while preserving or even improving in accuracy.
So while a mixture of experts became so popular, uh to simply put, they are more efficient than their dense siblings of the same size. Mixture of experts are cheap to compute at test time, and they are much more parallelizable in training time. For training each expert can be stored on the separate machine and produce their output independently from other experts.
Still there is a s a bottleneck of collecting outputs from different uh experts where they need to be synchronised together. At inference for each query only a small subset of experts is usually activated. And this makes M_O_E_ in deep learning different from classical M_O_E_ where we uh combine weighted outputs from all experts together. Uh in deep learning the output of each query can only involve several experts.
Consequently, the 'K' design shows in M_ R_ because routing function uh given a bunch of queries, how do you uh route these queries to the best experts you have.
First work to appli that was applied mixture of experts in deep learning, uh dates back to two thousand thirteen uh where in their paper authors proposed to train a gating network that maps each input on each layer to distribution over the experts. And this synchronization on each layer becomes a bottleneck from the training efficiency point of view. I kind of combined three general design solutions uh
Uh in M_O_E_ architectures in this three big group decoupled, loosely coupled and tightly coupled. Uh in decoupled architectures we train experts independently and then somehow combine them. For example, we can average outputs to make next token prediction, we can optionally add classifier or rotor.

To add classifier or rotor to select sub experts for averaging as it was done in branch train merge paper. Or we can simply average model weights as it was done in LAMA3 heard of models. Uh in loosely coupled models expert weights are synchronized from time to time as in elastic averaging.
And but the most popular uh oh or we can uh train models separately uh in parallel, but fine tune them together. Uh in tightly coupled approach which is much much popular approach where we train models together with the router from the uh start on. For example, one of the most popular uh model uh mixed trial
eight experts with seven billion parameters. Uh it had uh eight feed word blocks in each layer with a rotor network that selects only two experts for each token. As a result this model was able to outperform larger SOTA models uh available at that time at the time of publishing uh as evaluated across multiple benchmarks.
Uh here I want to stop at one of the approaches to overcome high communication cost during training by loosely coupling models during training. Uh this paper was published uh last year um and was called branched uh train mix. In this models we took a seed model that was llama 2 7 billion at that time, and we trained several domain-specific experts on different subsets of data.
These experts were trained independently and in parallel. Then we combine these models and fine-tune on small sub-sample uh of data, mixed from different domain, to learn our output weights. How we do this? For each uh expert uh llm, to get a final model, we average weights
for a very rich attention weight. Uh the motivation behind this is the assumption that self-attention layers are less domain specialised than feedforward ne layers. But we keep feedforward layers and we add a router function that we fine tune during uh that we train during fine tuning. Uh we show that this approach uh requires a less uh GPU days as
uh p uh compared to similar uh approaches and results in higher average scores. Uh as shown on the bottom left picture when we evaluate on the main specific um subsets of data, uh our average models uh outperforms or performs similar to the main specific fine tuned experts.
Uh brain train mix approach is cost-efficient. It combines several aspects to make it this efficient. Uh first it relies on continuous training. So we don't pre-train model from scratch. We take this llama two semi seven billion which is quite uh good to begin with already. So we need less data to train it further.
Uh second it it allows for linear scaling with compute size. Uh normally when we increase computer size we in uh increase inefficient batch size, and it's not really linear. While here we just uh add we can add number of experts uh per GPU machines.
And finally it's a efficient uh in terms of inference because we keep only feed-forward layers in the final model and select uh top two experts uh at the inference using our router. Um
Here I want to briefly talk about one of the popular problem in MIE, dead expert problem. When we fine tune on some data we can sometimes see that some experts take over much more tokens than the others. And some experts can even die, meaning that there are probabilities of token being routed to this experts is close to zero. So on the top
left picture we s uh show the distribution per layer, the probability of tokens being routed to s different experts and there is like a uh hole uh uh in between there, there was a dead code expert. So the probability of routing the code expert was close to zero. Then uh this issue was overcome with adding load balancing.
And after load balancing was added, the probability distribution became more uniform. As a result in the final model uh we can see that even though w the um probability distribution is more uniform, still our domain specific experts fire on specific tasks. As an example here on the top Yosemit K_ task we coloured each token depending on which uh expert it was routed
to. And we saw that it's mostly like red and um orangish, which means that it was routed mostly to math uh and uh general uh expert knowledge. Human eval, which is code task, was mostly routed to math and code task, and general uh task natural questions was mostly covered by the uh general uh knowledge domain expert.
Uh next we will move on to multi-model models. Our multi-model language models is the models uh that can receive reason and output multi-model information. The process of fusing different modalities uh so that a model can learn from them is called multi-model fusion. On a high level uh multi-model architectures can be divided into two groups, early and late fusion, and there are like different uh in between approaches there as well.
Early fusion combines modalities at the input layer. Uh it creates fused representation that is then passed through a single model. In the late fusion uh models are trained separately for each modality, and then they combine their outputs uh or decisions at some later stage. Early fusion is simpler and more efficient as it avoids separate processing for each modality.
But it has issues when uh we need to combine modalities that have unique characteristics that has to be processed during modalities preprocessing, such as discreteness of the text or continuous nature of uh the images.
Uh live fusion models are truly modular and thus fault tolerant. As individual models can operate independently, in late fusion each modality is processed independently with their own models and the outputs from these models then combine in later stage. There can also be some intermediate approaches, for example when we process each modality separately, inter-latent representation, fuse them and then process the fused representation.
Early fusion models were most popular uh in the beginning of this multi-model uh models era when uh like a language models and vision models individually become uh quite powerful. But now as uh the we we progress uh early fusion models become more popular.
As an example, here are two models released by Meta, a chameleon and transfusion model. Transfusion model was presented here on this conference a few days ago. Both models consist of a single transformer model that process and produces text and image data.
Important research questions for multi-model models is how to create representations for modalities with different characteristics. In both works, each text string is tokenized into a sequence of discrete tokens from a fixed vocabulary, which is a standard approach in language modelling as we all know. But the trick is here how to combine these representations with images that are natural continuous.
Yes. In Chameleon, we used discretization approach. We used external pre-trade image tokenizer which encoded a fixed sized image into 1024 tokens out of a fixed vocabulary of 8000 tokens.
In transfusion, on the contrary, each image is encoded as latent patches using a variational auto-encoder, where each patch is represented as a continuous vector, thus preserving the continuous nature of the images. The patches are sequenced left to right and top to bottom to create a sequence of patch vectors from each image. For mixed model examples, authors surround each image sequence with special beginning of image and end of image tokens before inserting
shorten it to the next text sequence. While in Kalmanian we used single break token. Thus in in Kalmanian model we arrived at standard language model's token representation which we can feed into standard transformer model. Once transfusion authors arrived at a single sequence potentially containing both discrete elements tokens from text and continuous elements vectors representing image patches.
To convert this data into shared space of a single transformer model, authors use lightweight modality specific components within shared parameters. These are familiar embedding matrices for text that convert each token into vector and each output vector into a discrete distributions over tokens. For images, authors compress patch vectors into a single transformer vector using linearly.
Clear or you know.

linear layer or you net connectors. Another difference between text and images is that text is naturally sequential. We usually read in one direction while images don't have directions. So transfusion combines casual attention of text sequences and bidirectional attention within the elements of each individual image.
Finally, the chameleon uses a standard NEX token prediction loss because it operates on tokens, while transfusion is trained with two objectives, language modeling and diffusion. As a result of those improvements, transfusion model systematically outperforms its ancestor on multiple benchmark while producing high quality images as a result of the input text prompt.
Uh here we you can see also scaling laws for this models. As we increase the model size, uh train and compute, uh the improvement in performance across multiple benchmarks uh stays consistent.
Finally we will talk about multi-model mixture of expert models. Uh there are not many uh multi-model M_O_E_ models this days, uh it's still some uh we are in the early stages here. Um there are so many ways how you can combine multi-model mixture of uh expert architectures together and we will look into some of them.
One approach would be continuous training when you take a strong baseline multi-modal model and use it as an expert and then combine these experts together. As in this TLMOE model where authors used to love a seven billion model as a baseline uh as a backbone for continuous training.
Still uh probably the most popular approach is training from scratch. Like uh on this example unit moee area uh and multi-modal contrastive loss and with LIMO, uh all these papers propose to use early fusion approach uh t for multi-modality and then they have uh layer -specific experts that combines a rotor.
All these models uh share a common discretisation approach, meaning that the images are uh converted into tokens and the expert training is tightly coupled. Finally, in in lambda for uh heard of models, uh some feed-forward layers are replaced with mixture of expert layers.
And some are still dense. A lot more for employees early fusion approach, meaning different modalities are combined in uh very beginning of the models processing through discretization approach, meaning that takes the stockinesses into tokens unusual, uh and images are transformed into a sequence of visual tokens through encoder. Uh these tokens are then concatenated in a long sequence of tokens to train mixture of experts.
And there are two sizes presented with sixteen and one hundred twenty eight experts. Uh additional uh ch change um is uh introduction of share expert. It was actually used in some other models as well that uh helps uh to uh facilitate
better processing. As a result, the model was able to perform strongly on multiple benchmarks. To summarize, we talked about mixture of expert training approaches that include decoupled and loosely coupled, tightly coupled architectures. Which one should
be used. Uh performance would be one obvious metric, but also compute budget. Can you afford training from scratch or you have to start from something pre-trained?
Uh do you have enough GPUs to train in synchronous manner? Or for the fixed GPU budget do you better go after large expert but train one after another as in a like uh decoupled approaches. Uh multi-modal early fusion versus late fusion, late fusion become more popular because uh it's they probably learn better.
both modalities uh when they do it from scratch. Uh and combining collaborative and modelling training is an open area research. We just very less scratch the surface here. Uh yeah, I think that's it. Thank you. Thank you very much, Olga. Um do we have any question?
Yeah, um I have a question is um so MOI training seems to be very efficient in training, both like in bi-teaks or maybe even the lambda four. Uh however it's also hard to use in uh to serve, or even to serve in a small laptop. Like many people could train their own l use in in France their own small lambda tree. Mm-hmm. No lambda four it's so big, so it's better. But it's also very hard to actually use. What would you say what's kind of a discrepancy between the modularity in training and the modularity in inference?
Actually, uh as far as I remember, a LAM of four can be served on single G_P_U_ that's thanks to its um mixture of expert approach because it activate just small number of parameters. Uh in LAM of four fine-tuning without Lora will be a problem or without so some special tricks. Because then you would have to because you'll have to fine-tune all one twenty eight or sixteen experts. But since it's activate just some s sub sample uh inference is very efficient.
Washington.
Maybe one more question. Uh in B_T_M_ uh so you can do multiple runs of uh training independently and then uh merging back together. In B_T_X_ it's a single run. Would you see something similar where you could run like one B_T_X_ that create an M_O_E_ with four expert and a sim and the other side another B_T_X_ with four experts and then you merge them again together, so multiple run. Kind of like uh the command A_ from Korea, where you do multiple run of merging and training.
Yes, that sounds possible. Uh still will be quite expensive to combine because you probably need a lot of experiments to figure out how to combine them together efficiently. Uh what w what we saw in the in BTX experiments is probably scaling with more data, f w with more domain specific expert would be a very good choice, because when we have domain specific experts what we showed is that combined model is very good at selecting correct.
correct expert. So once you have this data specific task specific expert, then BTX approach will be very efficient. Yeah. Okay. Thank you very much, Olga.
'Kay. Uh we are done with the talk for this morning and now we have our poster session. Uh for those who haven't put a poster yet, we have uh both blue tape and uh white tape, uh choose whatever colour you prefer and stick the best.





























I hope you had a good lunch uh and a good post-session. Uh we're going to start again uh and we are starting on distributed with the mat and the sparse parameter averaging. Thank you. Um can wait, shall I move this? Can people hear me alright? Yeah? Okay, sweet. Um so I'm sure you can guess, I'm gonna be talking about distributed training. Um my name's Matt. I work at a company called ExoLabs where
Um, we started by doing, uh, inference on compute, uh, sorry, inference on consumer devices. We were a startup that let you do, um, like inference AI workloads on, uh, consumer devices like distributed like this. We started moving over towards, um, towards doing distributed training instead. Um, and so we've, we've worked on a lot of things internally, um, but one of them is, uh.
This idea called Sparta which builds on the Deloco paper out of Google DeepMind. So I'll start by recapping Deloco and then tell you about what we did with Sparta. So if you think about data-parallel training, in data-parallel training you have to, at every step, you do a forwards-backwards pass, and then every worker has to communicate the whole model, all of the gradients of the model, at every step.
And so what Deloco does to reduce this communication is let these workers train independently on their own, they go down their own path for H steps, and then after H steps they all synchronize with this outer step. This H number is really important, this characterizes how much you're reducing communication by, so if H is 10 then you're doing 10 times less communication than regular data parallel.
There's of course a bit of a trade-off here you can imagine and um and typical typical numbers that are used for H are maybe like thirty to a hundred. So for example this prime intellects run um or the scaling to loco paper um because you uh and

Because you and so if we think about what H does if you increase H too much so we can see here we increase H from a hundred up to ten K and the um the accuracy drops a lot, the the performance degrades a lot and this this makes sense. If you let them train for too long on their own, the the models will diverge, the the devices d diverge from each other and so when you do this averaging step to communicate them all
Back together again, it ends up being destructive instead of collaborative.
We can actually quantify this if we look at the correlation between models, the correlation between devices. So you've got two devices and they're allowed to train on their own. And you can see here for this is Hs5000, the correlation between the models goes down, down, down, down, down. And at 5000 they do this DeLoco outer step and so the model, they then synchronize and then model correlation between the two devices then spikes back up to one. And this makes sense why...
The, um, Deloco works so well with H is 100 because at T is 100, uh, after only 100 time steps, your correlation hasn't dropped that much. It's only ninety nine percent. But of course we want to be able to scale to higher H values than just uh 100, so that we can reduce um the communication requirements. So this is where Sparta comes in.
we said that the whole problem that we get with DeLoco is that the models drift too much. They diverge from each other if you let this h value be too high. And so what Sparta does is we take at every step we share just a small number of parameters between the models. You randomly sub-sample parameters from the model and these get shared between the devices.
and this helps us to reduce this kind of drift. It keeps the models in the same loss basin. They kind of are able to train in the same direction whilst still training pretty much separately. When I'm talking like a small number of parameters, I mean like really small, like 0.05% every 0 .05% of the model at every training step.
So it's not a large overhead. The amazing thing about Sparta actually is that these communications can be done asynchronously. If we do them asynchronously, if the sharings from one device to the next are actually delayed by a number of time steps, then it doesn't have any change in the performance of how Sparta works. The Sparta still is able to keep these models correlated, keep these models going in the same direction. As a result...
we introduce Sparta and it doesn't actually increase wall clock time for what we're doing at all. So as I'm sure you can guess, we're now gonna combine Sparta with Deloco. So we're running Deloco, we do this um this outer step, every here we're doing H is five thousand. So every five thousand steps we do this outer step, but we're also gonna do these Sparta parameter sharings at the same time.
And whereas for just the logo on its own we see this like big drop in model correlation if we include Sparta as well it keeps them much more correlated and they don't kind of drastically drop in correlation. The end result of this is that we can push H higher of course. So here is our kind of our
our test that we had at the start where we compared DeLoco with H's 100 and H's 10k and you see this big drop in performance when you increase H from 100 to 10k. And if we just add, we take this H's 10k case that doesn't do very well with DeLoco and add Sparsa in at the same time. So we just kind of use the spare bandwidth that you've got between these big synchronizations to share a few parameters from like from time to time.
Um, and this actually manages to beat the performance of Deloco with just H to the 100th. Um, yeah.
I'll talk a little bit about some of the other things we're working on, um because there are kind of some open problems and other things that we're excited about working on. One is scaling the number of nodes. We talked about um I t I talked throughout this whole pr presentation about scaling h, the number of um communications that you have to do, how frequently do you have to communicate to reduce this uh bandwidth requirement. The biggest problem actually is being able to scale the number of nodes. If we can scale
past these kind of limits that DeLoco and Sparta have. If you scale beyond n equals 8 or n equals 16, you get kind of diminishing returns from adding any more workers. It would be fantastic if we could scale beyond this. One idea that we have is that
You lose a lot of information when you do this Deloco outer step. You kind of, you do this one step and you kill all of the averaging the parameters and you kill all of this diversity when you've got eight separate nodes that have been trained in an ensemble and then you kind of kill all this information into just one node. So potentially there's more information that we can glean there if we keep them as an ensemble and don't do ever a full outer step.
Or maybe use other statistics such as the variance of the model, uh variants between models. Um, there's also a lot of things that we can do to improve Sparta. We kind of we wanted to keep Sparta as simple, kind of as dumb as possible, just to show that
Even in this really simple regime, you can actually get some fantastic like performance improvements. There are kind of three axes to which we think that it can be improved. Currently we're just averaging the parameters between models. So you just take, sub -sample these parameters across all of the devices and then average and probably you could do something smarter there. We're also, when we're choosing what...
parameters to average, we're just sampling these uniformly. This is again not very sensible. There's like um many more uh complicated, many more ben beneficial ways that we could probably sample these um these parameters. The final thing is that we keep this uh p-value, the the amount that we're sampling from the model is kept constant throughout the run. But we know from the same reason that we do a learning rate warm-up that um
that training dynamics aren't the same at the start versus the end of a training run, so we could potentially schedule this number. Finally, we've got some customers that are interested in working on training different architectures, for example different attention patterns or CNNs, and DeLoco struggles with...
With architectures that aren't autoregressive transformers, so we're excited to find other algorithms that are a bit more agnostic to the architecture.
So in conclusion we introduced Sparta in this paper but we also combined it with Deloco and showed that we can reduce the communication requirements of Deloco, reduce the synchronous communication requirements and that as a result this reduces the wall clock time whilst actually increasing the performance.
The other thing to note is that we have a open source repo called ExoGym that lets you kind of simulate these distributed training algos on consumer hardware at home. So if you have one device, it can simulate having multiple devices within that. You can potentially play around with Deloco and Sparta and all these things. Cool. Thank you very much. I hope you guys have enjoyed this. I.
If you want to find out more about what ExoLabs are up to, just give us a follow. We're also hiring if anyone's graduating soon. I'd be very interested to chat if you have any thoughts about the paper. Any questions?
I thank you for the talk. I was wondering how do you choose at each step which uh nodes should be sharing parameters? So at the moment we're sharing between every node. So it's like All all on the every. reducer, To get that. yeah. Got it. So you um one one master will like pick. Or they can they can either have the s same seed or one master picks what parameters they're gonna be sharing. Mm-hmm. And they all um sample those parameters and then all reduce them amongst. Got it, thank you.
Yeah, I wonder why the um basically spiral doesn't scale up more than N_ sixteen uh nodes. Because like uh uh the benefit from increasing like gap between communication is like hundred X, right, so it it can actually mean that you can scale like by n one order probably. But yeah, I'm not sure. I'm not sure why
It doesn't scale other than the same reason of Deloco is you're kind of when you average parameters, you average across every, every node. And so potentially you had, if you have 16 nodes for that one parameter, that parameter existed 16 times and you kind of kill.
that information of 16 um 16 nodes into into And so one is there communication bandwidth as well, so... yeah i guess you're you scale the communication that you use scales linearly as well um but from a when i talk about doesn't scale well i more mean like if we like if we look at per step
what what happens per step then you add another node if you use the same amount of flops but add one more node then or double the number of nodes then you kind of get diminishing returns from this extra Okay. node

Diminishing returns from this Okay, extra node. I see What kind of problems do locals have with other architectures? It just doesn't like
It I don't know how to explain this we tried it with a like a Bert style masked attention and that the training curve just kind of plateaued at a certain point and stopped learning I haven't really looked more into I don't know Arthur would be the expert I haven't really looked more into why this was the case but I guess the algorithm was made for autoregressive transformers so. I see. Thank you.
On the topic of picking the parameters, did you try isolating to only specific parameters, so either only the MLP parameters or the embeddings or the Like which parameters which in the model? parameters you're sharing? We haven't tried isolating. I did one experiment where instead of
Instead of randomly sub-sampling, I just kind of iterate, enumerate it through the whole model. Okay. And from that you saw the the correlation plot that I had before oscillates with the same oscillation of how frequently you kind of stripe through the model. Mm-hmm. So I think that tells me like maybe the front layers versus the back layers uh have like relative importances. Um but yeah you could I could definitely imagine something where you're doing fine-tuning maybe you only only touch the end layers or something like that. Yeah, So. makes sense.
Could you explain what's the difference between Sparta and streaming Deloco? Streaming is also like sharing a tiny fraction of the weights or updates, I don't remember exactly. If I recall correctly, streaming Zilloco shares a third of the model at each, is that right?
uh streaming the logo to share the outer dead pair subset of the Yeah, parameters yeah. So you'll pick one over, like, k of the model and share that. I guess, um, Sparta is the kind of limit of that where you share every, every step and you share a very small amount every step. Um, but we also randomly sample which, which ones we're going to pick as opposed to I think streaming to logo just enumerates.
I think. Uh, there there's also that something to do with sharing like the delta in the parameter space, where Sparta is the parameter itself. So it's slightly different properties. Yeah. Oh yeah, yeah, yeah.
Yeah, I have a question. I noticed you um you basically have point oh five of the parameters and around two K steps which roughly corresponds to like if you were to assume every parameter sampled once at four Yep. hundred Yeah, percent, yeah. if you try like having periodicity that is less than that one hundred percent, either by increasing P_ and decreasing or yeah. Um yeah, we tried uh a number of sparse uh parameters. Like you can see that the uh
the the performance is is definitely dependent on how much you share um i think the nicest way to think about this in terms of obviously you don't want another hyperparameter to have to tune the nicest thing to think about this or with is like you can have your bandwidth and your bandwidth determines what p you're going to pick you'll just do one over p of one of your bandwidth of um to to like fit okay i've got this much bandwidth i can afford to share this much kind of asynchronously
during the training run. Oh. Thank you very much. Thank you very much. Um is the next speaker, Elon, present here?
Let's do it. Okay.
Hello everyone, my name is Kong Yilun, a graduate student from Tsinghua University, and I'm very uh great grateful to be here to share my work. And my co co-authors are from Tsinghua University, Nano Technological University and Sun Yat-sen University. The motivation behind our work stems from the success of LLMs and a popular trend of sequence modelling in online R_L_
However, uh current sequence models for multitask I .O. face several challenges. Firstly, uh current methods sh uh exhibits uh poor performance on large scale tasks, and study is confined to dozens of tasks in Atari or meta-world environment. Secondly, they either overlook the impact of parameter scaling
uh only focused on small models or only rely on inherent transformer model scalability. Thus we propose our work and a corresponding method called
M_ three D_T_ We focus on large scale tasks and rethink the scalability and the current barriers of D_T_ in M_T_R_L_ And we propose our method with scalable experts and a separate optimisation process. Finally, our method achieve a superior score and unparalleled task scalability.
We begun by reviewing the task and parameter scalability of D_T_ in M_T_R_L_ to comprehensively evaluate how performance varies with task uh task scales, we conduct exper experiments on one hundred sixty tasks.
Spanning from three distinct domains, and we choose prompt DT as our baseline model, which is a widely used method in MTL and Metal IO, and the anticipated prompt DT exhibit limited task number scalability, with the task number increases from 10 to 160. Both model performance and gradient similarity experience a noticeable decline.
And performance drops and gradient conflicts intensify mainly when tasks are not too massive rather than exceed a large task number. And with 10 tasks, the performance is strong with a minimal difference, indicating that inter-task conflicts may become trivial when task number is sufficiently small.
So if we examine the evaluation from a post from a reverse perspective, that is from the right to the left, we can arrive at our first insight, that is reducing the linear task number, particularly to a small scale, can significantly enhance the model performance.
However, there is of course a new question, that is given the predetermined number of tasks must to be learned, how can we really reduce the learning task number? Let's postpone this question and move to the second rethinking point. Can scale up model size enhance the capability to master large scale tasks?
We conduct experiments to show that surprisingly PromptDT exhibits limited parameter scalability, and the heat map shows that in empty aisle, increasing the model size of PromptDT swiftly hits the performance ceiling, preventing substantial improvements.
As a result, scaling up the model size cannot effectively mitigate the performance degradation caused by the increase in task numbers. Despite this discouraging phenomenon, the heatmap reveals the most pronounced performance increase from the
Top left to the bottom right, that is the most pronounced performance increase when scaling up model size and simultaneously reduce the task number. Integrating our first insight, we can raise our key insight that how can we effectively minimise the number of tasks to be learned while efficiently scaling model parameters thereby maximising the performance.
Based on the insight, we propose our method MSDT. Through task grouping and parameter separation, we can assign much fewer tasks to each parameter subset, leading to exceptional performance and by expanding the number of model sub-parameter subsets and simultaneously increasing the number of task groups.
We can both reduce the task load on each parameter subset and enhance the model's capacity with more parameters, thereby enables a scalable solution to handle a increasing number of tasks by expanding model size without compromising

I expand the model size without comprising performance. Thus M3DT includes 2K enhancement in both architecture and the optimization process. For the architecture enhancement, we use MoE for parameter separation and expansion.
We choose prompt DT as our methods backbone and incorporate the MoE alongside FFM in each prompt DT's transformer block and several studies have shown that MoP is more important in the transformer block in multi-task settings and in this architecture each expert is dedicated to a distinct task subset. By scale up expert number
We can scale up the model size as the router can dynamically adjust the use of different experts for diverse types of tasks.
Considering our unique optimization purpose, we propose a three-stage training mechanism to separately train different modules. For the first stage, backbone training, we directly trains a whole prompted D_T_ on all tasks as our backbone to capture the shared knowledge.
Enabling embedded information and predict actions across all tasks, however, training on massive tasks results in intense gradient conflicts. To gain deeper insight from the progress of gradients across training iterations, we conduct experiments to realize how gradient conflicts develop during training.
as shown in the figure at the bottom left. Initially, the performance increase swiftly with a low-grade independent similar uh conflicts, while when grid independent conflicts reach the peak, uh results in a diminution in performance gain. Thus we employ the early stop to restrict training of the backbone before grid independent conflicts reach the peak.
This strategy ensures the shared parameters align with the solution space at the early stage while preventing overfitting to the dominant tasks when the gradient conflicts are severe. For the second stage, we employ task grouping and then individually train each expert on each task subset.
We propose two grouping methods whose purpose are both to reduce the task load and get the task groups. After we get the task groups, we train each expert on their dedicated subset with span control frozen. And this process makes experts focus on task-specific knowledge and mitigate severe gradient conflicts.
which achieve effectively learning by limiting the size of task subset. Moreover, this independently training strategy mitigates the imbalanced update among experts in the traditional MOE, and it allows to expand experts' numbers and corresponding task subset to achieve task and parameter scalability.
For the third stage, we directly train a MLP router on all tasks with backbone and experts frozen. This process enables to then enables the router to dynamically assign weights to different experts for various tasks without the need for task ID. And we only train router in this stage which simplifies the training of the MOU structure.
With the frozen backbone and experts, it preserves the knowledge already acquired by the different module. Here we present our experimental results of our method. M3D-T achieves unparalleled task scalability. We test two variants of our method as random with random grouping and gradient with gradient grouping.
M3DT with random grouping already surpasses all other baselines at all task scales, and its advantage becomes more pronounced as task number increases, while M3DT with gradient-based grouping further enhances the performance by identifying better task groups, and both methods effectively alleviate performance drop with increasing task numbers.
And it finally achieved a higher score on 160 tasks than baseline's two or 80 tasks. More precisely, M3DT achieved task-scalability by unlocking the parameter scalability.
Expanding parameters through increasing expert numbers can significantly improve model performance, and M3DT can achieve a better score on more tasks compared to the baselines on fewer tasks. For the other ablations and further analysis, we first answer the question, is task grouping and separately training important?
Despite utilizing MoE, the absence of systematic training strategy and the task grouping leads to a substantial performance degradation. Training a prompt DT with MoE end -to-end or train MoE DT's router without expert freezing yield similar results to standalone prompt DT, while jointly training experts and router without task grouping results in worse performance.
For the early stop strategy, M3EDT consistently achieves strong performance with early stopping as gradient conflicts peak yielding better results. The second question is what affects parameter expression in M3EDT. Firstly, the model width. Small model width constraints capacity of each module.
And as expert number increases, the difficulty of assigning weights to experts grows, and that's the limitation of the router. For the backbone and expert, as Oracle expert selection performance also plateau when expert number becomes sufficiently large, primarily due to the shared knowledge in backbone is limited, and the return of the reduced task load diminishing as each task subset is small enough.
For our last question, can reducing the number of activated experts enhance the expert number scalability? We choose top four router and conduct experiments. The figure shows that sparse router fails to scale with the number of activated experts. So M3DT benefits from a weighted combination of all experts from all task subsets.
That's all. Thanks for your listening. Does anyone has a question? Thank you for speaking. The application of mixture of experts sounds reliable in your article, but
What's uh what do you do want to do in your future? Uh do you want to extend it beyond reinforcing learning uh like uh other machine learning methods? Well, we chose I_O because the task diversity in I_O is much more pronounced compared to t other domains like classification,
uh p uh image classification or others. And uh that uh so we think it's more challenging. But our method is uh maybe general to other domains if we exchange our backbone from from D_T_ to some other models like clip or whatever, we can directly transfer to other fields we think.
Okay, thank you. Jin. Um can you go into a little bit more detail about how you measure gradient conflict? Is it over time? And also like how does that change with the ing model size? 'Cause I'd imagine that the as the model gets bigger then you basically have like less interference. And so classical notions of gradient conflict might not necessarily be enough.
Over we we don't show the whole grid conflicts transfer and exchange with the parameterized in this slides, but uh let's talk in short. Uh it's it it become a slightly uh weak of the a gradient conflicts when the model is bigger.

The model is bigger, but it doesn't it can't mitigate the performance drop. Okay. Thank you very much. Okay. And now we have a talk by Max on distributed learning. Hi everyone.
Alright. Uh can everyone hear me? Alright, great. Uh so everyone, my name is Max. I'm a researcher from the Galileo AI and the subject of my talk is going to be Drawing Connections in Decentralized Deep Learning. Um the idea of the presentation is actually like to consolidate a lot of different threads and research directions that are happening in Decentralized Deep Learning.
Over time there are some more prominent directions or like least less prominent direction so I'd like to kind of connect all of them uh starting with a motivation and go over some of uh our research that like I've done during my PhD and beyond that. Um also I wanted to highlight some of the key
Uh, learning's we've made during that research, hoping that it'll be helpful for future um like uh collectives who conduct uh their work in the same area. And also outline in couple of questions for future work that might be relevant uh for people who are excited about the field in general. So let's start with a disclaimer. Um first of all, uh a lot of the papers that I'm going to talk about are probably from the pre
charge of the error so they might be not as like large scale or LLM centric as you'd expect regardless the ideas expressed there are quite valuable and you will see that they find like very interesting manifestations in more recent work secondly there is a lot of literature in this field in general so I am definitely missing some of the important works here
Uh let me know after the talk which uh most interesting like what which most relevant papers I've missed. I'd be happy to include that in the next iterations. And yeah, lastly because uh I've done some research in this field as well, the perspective might be a bit biased. Um so I'd like to start with this pot.
which is from a recent publication by epoque.ai that shows the growth of uh deep learning compute over time. So like since uh 2010 until uh twenty five. And as you can see uh the number of compute that is required in flops to get um like frontier models grows by like four times per year. And
As a result you can uh understand that if you are just like an independent researcher or if you're doing work in academia it might be hard for you to enhance the field because simply reproducing the experiments might be a bit difficult. So uh what should you do about this? Uh one idea that uh stems from other fields of science is to use
volunteer computations. So is there anyone in the room who's familiar with projects like folding at home or SETI at home or Boeing? Yeah. Uh yeah, well quite a few of them. So yeah, uh like for those who don't know it's basically an approach which allows you to leverage the idle resources of volunteers who would be able to contribute to a specific experiment like in uh proteins uh synten folding if I remember correctly.
or discovery of extraterrestrial civilizations by connecting your home PC and donating them idle GPU resources of it uh to the goal of uh running computational experiments. So the idea originally at least for us was quite simple. Let's try to apply the same
uh technique for deploying somehow because there's a lot of idle compute maybe we can leverage it somehow. To make things clear actually uh our idea like was not definitely the first in the field uh some of you might be familiar with this project called which was started in 2018 if I remember correctly and targets a very particular like a very similar goal. So,
And the authors wanted to create a chess engine that would be trained like that would be like trained in this volunteer training setup. And it's been like pretty active and pretty successful. So as far as I understand, it actually won some chess engine competitions. So like the whole initiative was quite successful. However, this approach is relying on the fact that
The data generation for things like reinforcement learning is very easily parallelizable. You can generate lots of games, you can play those games with a model. So it's quite straightforward to distribute to all of the volunteer GPUs.
However, in our setup with volunteer distributed deep learning where we want to train large models, there are quite a few very particular challenges that might be specific to the setup. So the first one is the issue of node failures. Usually when you learn something in a cluster, obviously not always, you can expect that the nodes will remain uh stable. They will not randomly turn off, turn on, and like the connections would not get dropped.
This does not hold for the larger scale runs, but still. The second issue is that the communication speed over the internet is magnitude slower compared to high throughput interconnect that you get in the clusters. So this is also a very important problem which some communication efficient methods aim to address. The third issue is that each home computer is different in some sense. So you can have people joining with different GPUs.
uh with different connection speeds and the methods that you design have to take that into account because usually uh you assume that the uh overall computation node can be spread equally.
So the first approach that we've tried was called learning at home and the idea was relatively straightforward. So there are particular classes of deep learning architectures that, in our opinion, were more susceptible. Like it would be easier to adjust them to this decentralized heterogeneous setup.
The uh name of those architectures is kinda evident from the title. It's decentralized mixture of experts. So to explain how that works, let me uh first ask how many people here are familiar with mixture of experts in general?
Way more than with volunteer computing, as I expected. So the idea is very simple. You have a particular layer of your model and let's say that it can be separated in multiple independent sub-networks, which are called experts here. Now for any particular input we can have multiple experts which are activated for token, for like a sequence, depends on your MWE implementation.
The key idea here is that we can allocate different numbers of experts on different peers in our network based on their GPU memory, based on their performance characteristics, and so on. So now we can locate those peers using decentralized key value storage systems like DHT and then like we send the activations to them and aggregate the output.
One other addition here is that if some of the experts do not respond, you can just ignore their output in case you requested multiple and proceed with other experts on other notes. So this architecture is kind of fault tolerant by design. The idea here, like for training larger models, is actually not the first idea to train things in decentralized manner overall.
because decentralized SGD for data parallel training was an approach that was
uh proposed way earlier like for data privacy reasons first and then for communication efficiency and study develop particular setting so uh formally the parameter server architecture where a single node communicated with everyone was like a very prominent idea in distributed machine learning uh the key insight of decentralized sga at least to me is that you can exchange your updates
with neighbors iteratively instead of the complete network. So this is kind of like more fault tolerant and also a bit more communication efficient because you don't have to wait for everyone. So yeah, like this was proposed first for data privacy and in further papers we've seen that it can result in training performance gains as in speed ups and can be extended to arbitrary communication topologies. So
Decentralized SGD is a very interesting approach in this regard. Next, I also wanted to point out that this idea of running SGD on arbitrary topologies was extended in another way. So we can actually do communication not in a bidirectional way.

not in a bidirectional way but in a unidirectional you can push your updates your new parameters to some participant and then maybe you like the receiver will get them in time maybe they will not but the idea is that over time assuming that the network is somewhat stable it will converge and like improve your results compared to single node
So the family of loss methods that communicate updates over graph is called gossip, and there have been a couple of papers by Meta in like 2019.
and 2020 which were in my opinion like very influential in this field because they've shown that this can actually work for models like transformers on machine translation setups for resnets on classification and in fact the slow-mo paper which was at iclir 2020 shows that this approach can be extended with a momentum after like periodic exact averaging for further boosts
So the ideas were like very, very influential for our next work. Here we try to, yeah, here's slow-mo. Here we try to identify what to do in the cases when
We still want to do like standard or just like averaging with full data parallelism, but we want to be more tolerant. For those who don't know, if like usually a single peer gets disabled or disconnected from the original protocol, it can very likely result in the failure of the entire communication collective. So our idea at the time was
was to try and average the parameters, the gradients, in smaller non-overlapping groups so that like in the end it results in getting the exact average. Here's the illustration. So let's assume we have nine nodes, like nine different sets of parameters, and we want to compute the average of them.
Uh let's uh arrange them in this kind of a uh two-dimensional grid. And in the first round only do averages in groups of three, like the horizon talons.
So now we've computed their average, and then we proceed to the second round, where horizontally all parameters are the same, or radians, and then you can do the same thing across the second dimension. So at the end you still end up with the correct average, but the benefit is that if you
uh fail at any point in time. Only a smaller group would fail and not average completely. So that's the broad idea behind and in our work we've shown that uh it can result in communication and convergence accelerations. Um in fact however after some time we've discovered that the idea in general for running all reduce in groups was not introduced in like first of all.
So you can see that different approaches to running distributed training efficiently can come from very different fields. So we've...
I found this paper which was called weight awarding group averaging or WAGMA SGD which expresses at the core the same idea. Let's try to do partial aggregation of gradients or parameters in those non-overlapping groups and sometimes do the full global averaging and in their work they've demonstrated like some very very substantial speedups for transformer training and even RL.
compared to state-of-the-art decentralized methods at the time. So please check out that paper. After that point, we've stumbled upon the next problem when trying to scale it up to more heterogeneous groups of volunteers. Let's imagine that we have people from like with different devices, different GPU speeds, and we need to somehow adjust to that. So how to do it?
TLDR, we've tried to design the averaging algorithm, kind of like a modification of all reduce, that would adapt to the network conditions and try to...
come up with the most efficient averaging schedule in each case. So the advantage or kind of like a very neat property is that in special cases like equal bandwidth or one specific fast pair, the method just recovers regular distributed training methods like all reduced or parameter server or like in more special setups it's hybrid approach. So
Next up, if we have participants with different speeds, you can actually just do large batch SGD to a certain point and do gradient accumulation. So let's assume you have multiple participants and they have different speeds because of different GPUs and so on. So let's try to accumulate the updates and then synchronize only when a target batch size is reached.
Uh the uh simple trick here is that if one peer like peer four here disconnects from the network, uh it will easily uh like we will easily compensate for them by just spending a bit more time on all the other devices, on all the other machines and vice versa. If we have an additional participant who joins the network, we speed up automatically, because the updates will be accumulated faster.
So this is kind of like very standard gradient accumulation just applied to a different setup. The combination of all of those approaches allowed us to train a language model, a reasonably small one, in a collaborative setup back in 2021 with in collaboration with folks from Hugging Face and the community of around 40 volunteers. So the model was called Sagish Bird and it's a modification of...
all that large for the Bengali language. The participants used a lot of different environments to connect to this experiment. They've joined from their virtual machines, from their home servers, and some people even from Colab or Kaggle instances. So here in the plots you can see the distribution of GPU types and even like the plot of activity over the duration of our experiment.
So, surprisingly or maybe not so surprisingly, we've achieved results that were competitive to state-of -the-art models trained on regular, like uh uh densely connected clusters for the Banquila language benchmarks. If you would like to learn more, uh there is a blog post that we've written together with HuggingFace so you can learn more details about it.
Um next up we've done the slightly larger training experiment for a different domain applying basically the same sort of techniques, but for a different generative application. So here we're trying to uh train a text-to-image model similar to the first version of DALL·E with volunteers as part of a new representation demonstration in the same two thousand twenty one. Um
Again, the quarter kinks were more or less the same, and uh some of the optimizations we have made was just to make it easier for people to join the experiment and immediately start training. So here we've pre-processed images with VQGAN to obtain discrete code, uploaded them on a Hugging Face Hub, and allowed participants to stream directly from it. So it resulted in around an 18 times
Speed up in terms of the band-width. The run lasted for uh two and a half months, and there were thirty seven volunteers who contributed significantly with our compute. Uh yeah, all of the results, the code and even the plots, if I remember correctly, are available in our report and on the website.
So the next question was to try and scale that to setups that would be beyond a single GPU. So we kind of understood at this point how to train on a single device setup and now wanted to break down the model and chart it in some way to make sure we can scale to like 10B, 70B or beyond.
And the approach we've suggested here was to leverage regular pipeline parallelism, but make sure that we can rebalance the layers based on their performance and based on the average composition of the network over time. So in essence...
We have this composition of different stages, right, like as in standard pipeline parallelism, but whenever a device uh leaves the network, because someone decided to play a game or or something, uh we can identify the least occupied stage at this point and make a transition between stage three and stage two, as in this example. So yeah, we've tested it
in a considerably large scale setups in our paper. And the approach uh has some disadvantages, as was already discussed today in the workshop. But at the time it was uh a very interesting result for us. Um so after we've done all of that work on
training in different collaborations with volunteers. One of the first lessons we've made was that trying to do deep learning with volunteer computing is difficult. So it's not only because of the reason that training can be

that training can be very long but encouraging volunteers to join for a sustained period of time like weeks or months potentially depending on the scale of the model you want to train requires some motivation for them so it either has to be a model that doesn't exist anywhere else or is not addressed by the community or there needs to be something else
to incentivize them. Also, as other machine learning collaborative projects have likely identified as well, developing a high quality model is not just a matter of compute, obviously. Well, obviously in hindsight. There also needs to be...
the model architecture design work and the data recipe crucially that would make it all like worthwhile when combined together and this can be quite difficult to coordinate if you just have like the volunteers contributing compute but not that many people thinking about what model you want to train um yeah i was also very lucky to participate in a couple of boeing workshops that were organized by berkeley and and
One of the materials I've read was the blog post by David Anderson, so like the author of this entire field of volunteer computing, at least in my opinion. I highly recommend reading this blog post because it outlines the entire history of this project from a very different field and like from a different perspective. So yeah, it's likely going to be very interesting if you're excited about this field in general.
The second lesson we've taken here was that originally our goal was potentially a bit too ambitious and this is the lesson that might be useful for research in general. So as you might remember from the earlier slides, our approach was to try to train neural networks over the Internet. We wanted to train large models with volunteers who can join or leave.
And some of them can be malicious. I didn't mention the security work here, but it's also an important consideration. So as you can imagine, solving any particular problem is quite challenging. And of course, we got kind of nerve sniped by particular subproblems in this area, which
just the focus and we've addressed all of them to a certain degree. But on the other hand, there are certain goals for running all of those experiments like for all for this research area in general that could be more important in the broader context of just training clutch models in for example communication constrained setup. So prioritizing them could likely produce stronger results and I'm very excited to see.
yeah, more and more works like in parallel and like afterwards uh trying to tackle this particular field uh this particular field. Um one uh specific line of work that I wanted to highlight here is trying to train with local updates to reduce the communication footprint.
The idea was uh outlined in multiple different papers and the approach is just to make SJDs steps without communication on each node. So compared to standard SJDs, where you have multiple workers who later on aggregate their gradients with any kind of procedure, you do a different thing. So it tried to run multiple local updates and then at the end of the outer iteration, you apply a step.
So this approach allows you to do like great communication savings because the more local steps you do, the more communication you save because you don't have to share it with others. This work has benefited from extensive theoretical analysis basically from the start.
of like the work in this field of communication and efficient training this was a very interesting idea it can be extended to setups like heterogeneous compute data compression and obviously I think everyone who's here in the audience knows that loco and although the work that happened in this field show that it can work successfully for LLM training in a very specific setup so yeah local training is a very exciting approach in the direction
I also wanted to give a very very quick sneak peak of some other projects that are brewing up in the space and are trying to apply those same ideas and to prove them at greater scales than what we have right now. So for example
Uh there is a question of, uh how uh scalable can we make all of these family approaches. Uh in general just to make sure it can work for large models. There are some successful results already like Intellect one which has shown that it can work at the ten bit scale, please correct me if I'm wrong, uh but if we wanted to scale it even further like seven to be m
It can be quite tough. So the idea is to gather resources from different data centers in industry and academia and scale up methods like Deloco, understand if they can be applied in broader conditions and probably stick to the standard recipes on all other axes.
Yeah, for inference I'm going to be very brief, but we've tried to extend the same approach as Swarm to
just running kernels and this is what we've done with petals so here the idea is to load layers on different GPUs allow others to run forward and backward passes and the simplicity of it is was probably enabled a slightly more like a slightly broader success of petals compared to the training approaches we've done so yeah here's the outline it's kind of comparable to swarm
and the main takeaway for me was that if you wanted to make volunteer-based projects successful, it's very important to make it easier to...
Start contributing to one. So compared to training, here you can just join the existing network and start running inference already because the model is pre-trained so you don't have to wait until it gets good. So it's kind of drop-in compared to training. And we've developed, well, Alex, as the main author of FEDL has developed a lot of simple tools to
To make joining and running inference with pedals easier and this has also contributed substantially to the interest in this entire field
So yeah, that's the primary take away we've got from panels. Last but not least, I wanted to pinpoint that the majority of work that we've done in this field was made available and like made possible by Hivemind which is the framework on decentralized frame training in PyTorch that we're developing.
Since the very first paper, it's fully open sourced, it's available in as a Python package, in fact we've just published a release last week, so like the latest update. It offers techniques like peer-to-peer communication, asynchronous training, so it's relatively easy to use in basic setups. So yeah, if you're interested about this entire field, feel free to take a look at it and
contribute. In particular, there have been some projects like Pedals by Big Science, Open De Loco by Prime Intellect, or RLL Swarm by Jensen who have leveraged HiveMind in one way or others to make decentralized deep learning easier for them. Yeah, so as a conclusion, decentralized deep learning can be a very interesting alternative to.
A single cluster training, the field could benefit and benefits already from a lot of prior and parallel research in other areas of machine learning and some of the promising directions are trying to scale training to larger models, designing low communication model architectures like DeepACO or decentralized MOE and understanding what should we do to train sustainably.
yeah, with volunteers. So yeah, thanks everyone for your attention. Uh now I'm happy to take any questions, if we have time. A very good presentation. Anyone has question?
Um thank you for the talk. Have you got any exciting resources for looking into lazy nodes or malicious n malicious nodes? Um there is basically the whole field of business intolerant uh federated learning, which tries to tackle this particular idea. Uh Hmm. we like we done a bit of uh research in this field as well. I just didn't mention the paper because of time constraints, but it's called secure distributed training on scale.
skill. And overall, like all of the papers on Byzantine tolerance for distributed training are something that could be potentially leveraged to solve problems like with faulty nodes or with malicious participants who don't share the correct gradients trying to steer the training in some other direction.
Hi, thanks for the talk. You mentioned we haven't trained 70 billion parameter model with this approach yet. So what was the largest model that you are aware of that was trained through decentralized methods? And secondly, is there any particular characteristics of these models? Because the synchronization happens late. So do these models behave any different from the models that are not trained in this way?
Uh yeah, thank you for your question. So uh again, to the best of my knowledge uh things happen too quickly these days, but

Things happen too quickly these days, but the largest model that was trained in a decentralized way was Intellect 1, which was done in like late 2024. It's around 10 billion parameters. Maybe there is something else, so please let me know if I'm wrong. In terms of the model behavior, I haven't observed any specific like differences to regular setups and probably it's because of the fact that
that the uh a lot of the methods try to make the training dynamics very comparable to regular like standard uh non-centralized uh training setups. So in terms of model behaviour, no. In terms of the training dynamics, we've actually trying to see uh if it should be different, but it wasn't that much different. So like it it it converges rather in the same way, step-wise. Okay. Thank you.
Uh thank you uh yeah, thank you for your talk. Uh the so training with uh local updates and infrequent synchronization is great, but it's not fault intolerant, uh so in your system uh I I of volunteer, I assume, faults can be very frequent. So uh
And like if you do uh local updates, that means that uh you will lose all the information and all the nodes become idle waiting for the synchronization. What so how how do you overcome this, is there a solution? Yeah, that's a very good question. I I don't know the the right answer here, obviously, but uh in principle uh if we consider like other ideas in the space, it should be possible to aggregate the like uh like average the results
Only from the peers which are online at a particular point in time. So yes, like one worker can disconnect, we can lose their results, but maybe in deadlock style training we can compensate for them with other participants, or we can just ignore it and say that yes, we didn't make a very accurate gradient descent steps, but because we make them very frequently, and because we have lots of compute, we can compensate for that. Yeah, it's mainly about tradeoffs, I would say.
Here. Yeah. Thanks for a great talk. So NVIDIA recently announced Dynamo, right? That's for inference. But do you see any ideas from that that can be actually, again, training inference have different bottlenecks, but are there any ideas from that that you see can shape how you do distributed training? Yeah, so I will give a very brief answer here because I'm not very familiar with like distributed
with the approach of dynamo in particular but my answer is yes so there are like lots of techniques in inference acceleration and like in uh distributed computation in general that could be applied to make like setups like pedals or setups like dynamo vice versa more robust first and more efficient second so uh yes but we need to figure out the details
Yeah, uh thanks for a very good overview. Um I think I learned a lot today um and refresh some stuff. So um I I'm curious about the sober comparison works um to the reference training. So uh I guess people would like to know to adopt this um how much uh you suffer in terms of uh training speed if you go for asynchronous uh algorithms in general. Um
uh how much do you lose in terms of the resulting model uh a quality uh compared to a p a reference algorithm. Um is there anything out there? So I was looking at uh the most recently local scaling laws work, and there I uh had a feeling that uh uh the down-stream task of us is somewhat very narrow. So not really reporting a lot of scores mainly using the loss. So is there reason for that uh in the community?
T because I'm in downstream of all the easy it's not Yeah, I'm not aware of it in particular. I can only hypothesize here. So maybe the, yeah, like from our perspective potentially, if we try to train like the same model on the same data and maybe it converges slowly, the behavior on evals in particular would be more or less representative of what you'd get in those results.
Maybe we just treat it as an optimization problem instead of like getting a good model problem and that's kind of like the next step for us to make. Overall I agree that running downstream evaluation shouldn't be that hard, it's like super parallelizable so it should be easier. But yeah I think like the question is how to make it train in the first place and the question of like how to make
it replicates the behaviour of model is secondary. Not because we don't think it's important, but because like the first problem is more challenging for this particular setup. So, yeah, that's my opinion. Maybe Arthur has uh some others.
yeah thank you so much for the interesting talk and always great to see um people enabling communities to to work together um remembering ZD at home as a teenager uh was really cool to you know be part of a community that will at some point hopefully uh find alien life and they also had a really cool screensaver um like what are projects um
in your area, right, in deep learning where you see the community, you know, being incentivised without money to spend their compute um and it actually takes off a little bit like SETI at home. That depends on how we view it uh to be honest. So I would say that in general uh like I have a very good example of but it's not about computer uh at all. So we have the like broader open source machine learning community
which does a lot of things being completely un-incentivized by anything. So I would say that those contributions are definitely very visible, very impactful and very important. So like people building models, people like merging models sometimes to get better results and it's very simple thanks to the simplicity of merging methods. People trying to collect high quality data sets and publishing all of it like for others to build upon it.
on it. So I would say that this like brain and like personal power of people contributing in this regard is probably like the most important example I can give. But yeah, maybe I'm just like trying to think and cannot think of anything more visible in the space. There's definitely something else, yeah. I'm just, yeah, this is just the first thing that came to mind. Again, in the context of
Not knowing who contribute your run. Do you know if there's ways to tag which peer contributed which piece of data to potentially do attribution down the line, whether it is from the outputs or if the model waits, which might address part of the incentive problem down the line when the model is out in the wild.
Yeah, so that's a very good question. And we've proposed a very simple approach in the paper Security Distributed Training at Scale. I realized I should have included it in the slides, but it would be too long. So the idea is that you can try to record all of the training steps, all of the batches that any particular peer went through, like for any intermediate iteration of training. And you have a subset of trusted participants who are like validators who then try to reproduce the training results.
because like all of the checkpoints should be ideally public so you can you should be able to reproduce the the update that they should have obtained by going as intended through the training so if they complied if they were like if they behaved as expected then it's kind of like so you know they are not malicious so then you can incentivize them you can do
Uh, no. So like, that's the problem. So like, uh, unfortunately I'm not familiar, but maybe it's possible to simplify it, like do the verification somehow. But the simplest thing we could think of is just to like verify some small percentage of random peers every time and then hopefully like the bad ones will be detected. Yeah, yeah, yeah, yeah. Thank you very much, Max.
So now we have a poster session. Uh so please feel free to roam uh see the posters and talk to our speakers. And uh after that at uh four p.m. we start again the talks with uh Jonas from uh DeepMind, Sammy from PrimeIntellect, and then we will do a panel session.



Hmm.





we are going to start again. We have uh two more talk. The first one by Jonas and the second one uh by Sami from Premintelact and then we will have a panel discussion. So we are close to the end. Uh please come back to your seats. Jonas, the floor is yours. I'll just wait another minute until everybody sells down.
Hello everyone. My name is Jonas. I'm a research scientist at Google DeepMind. And today I'll be talking about unlocking modular continual learning. I'll talk about its core concepts, open challenges, and some future directions that I find interesting. So we need a paradigm shift.
Current models are massive and ever-growing, and specifically when we continue to fine -tune these huge models, this becomes extremely inefficient because this creates isolated models and copies of them for every single task or domain that we're fine-tuning on. Simultaneously, in context learning and prompting has limitations.
It's often inefficient given that we would have to uh yeah create uh prompts for every single scenario. Um it's sensitive and uh it's often lower in performance than if we would fine tune the model. And simultaneously we have uh
existing sequential learning challenges such as catastrophic forgetting or catastrophic interference during multitask learning and so we should think about moving beyond like these monolithic systems towards a model or an AI that is efficient meaning that we have lower parameter counts per task so that we can adapt faster
Uh we want to seamlessly integrate new law knowledge into the model without forgetting. So continual learning uh that model. Uh ideally it can should also be collaborative. Collaborative is more general here. That means it doesn't necessarily have to be

It doesn't necessarily have to be collaborative in the sense that we distribute it across people around the world, but can also be collaborative in the sense within a company that different teams collaboratively improve the model on their respective domains or tasks and so on that they're interested in.
And the same goes for decentralized. The different teams or different institutions around the world shouldn't necessarily have to interact with each other very closely, but be able to independently work on the model and improving it continually. So the aim of my talk today is not a survey, so I'll not...
Talk about all the amazing work many of you in the audience have been working on. It's more of a higher level concept and direction. I'm trying to synthesize the core concepts of where the field is moving into.
And a caveat is that I will not be talking about distributed pre-training at all. I think my predecessor has talked about that a lot and we see a lot of the challenges that come within distributed training.
So that alone is a challenge in itself that's very difficult and is very important. But in my assumption is like there is a model what the architecture should look like in a modular system such that collaborative continual learning can actually work well. So assuming, for example, that a big team actually trains this model is kind of a default that we've...
established that works very well. It's a very difficult challenge in itself. So this is kind of orthogonal to all the previous talks that we've heard there.
Um, yeah, I'm trying to understand where the challenges and opportunities are specifically for this continual learning scenarios and modularity. And hopefully this will spark some new ideas for you to go out and merge some of the ideas that exist maybe in somewhat orthogonally related research directions.
Okay, so first of all, I'm going to talk about these computational modules where the idea is to encapsulate knowledge into specific modules. What are they? How do we build them? And where are the limitations of these modules?
We're then going to look at how do we combine knowledge. So there's independent research going on. One is dynamic input conditional. The method that people use in this dynamic scenario is often routers. So basically on the token level, a selection is made dynamically.
And the alternative direction is static, which is parameter merging, combining modules directly, and this is often done very statically, meaning that it's done before inference time.
Then we'll learn, talk about continual learning within modularity. How do we learn over time? How modularity can actually help in continual learning and look at some of the challenges that we're facing within this continual learning and modularity. And finally, look at some of the open frontiers within that space.
Okay, let's first of all look at the computational modules. So essentially, in my opinion, anything that forms a distinct, often parameter-efficient computational unit for a specialized purpose can be a module. So anything that is very specific to one thing is a module.
For instance, parameter composition. So that means it's like a sub-network within the existing model. It can even be the entire model itself, but when you're kind of adapting the existing model or sub-parts of that model, like lottery tickets or LORAs, those are obviously modules.
Input composition is also a module, so prompt tuning, prefix tuning, in-context learning, or just documents that you retrieve through RAG are also modules. And the more intuitive thing that people probably predominantly refer to or think about modules is functions. These are, for example, adapter layers or MOE experts.
But also Loras. The difference between Loras and the parameter composition version is that here the argument is that you actually projected back to the original parameters.
Whereas how it's used in practice is more just having a bunch of Loras and then they're no longer really parameter composition, they're kind of independent functions that you activate in parallel. So it's kind of, Loras fit kind of to both spectrums there. Alright.
Now let's look at the most popular modules that exist. So given even though there's these broad families, the dominating architecture currently is either an adapter or a LoRa, and here the general notion is that you have a pre-trained model and then you add experts to the model after the fact, meaning that you actually freeze.
the pre-trained weights and add components that you only fine -tune on the respective task. And on the other side you have mixture of experts where you actually focus on scaling up the capacity of the model and learn feedforward, the respective feedforward networks as the respective experts together with a router.
The difference is one on the left side is adaptation.
Where you train modules for adapting an existing model. And on the right side, modules are integrated for scaling. Uh so increasing the capacity while maintaining the activated parameters. And the important thing here is that uh a large portion of the parameters are actually shared. Meaning that uh for every single task or domain that you're training
You're fine -tuning on a large portion of the model is shared on the left
With adaptors, the mu uh am amount of parameters that are shared is considerably higher than on the right. Uh so adaptors argue for being parameter efficient, often only accounting for one percent of the parameters in total, whereas uh M_O_E_s are uh the ex the modules or experts uh account for significantly higher portions of the parameter count. Um so
This was I I think the audience knows about these concepts quite well um but the problem is that modularity is often an afterthought. So we apply we we've designed adapters uh for adaptation to a single task. Uh and and we adapt an existing model that was not designed for uh modularity at all. Uh
So, actually, if we have a monolithic model that is dense, then the mixture that we pre -train on, in this specific example, it can be multilingual. We actually experience interference across the different distributions that we train on during pre-training, meaning that the largest class, the largest
This distribution grabs the majority of capacity and often the tail end of distributions actually results in a significant drop in performance. And simultaneously, we actually create a Frankenstein model when we suddenly then add these adapter modules that are not necessarily designed to be added at that specific position.
And we see this specifically in scenarios where we actually design the model to be modular from the get-go. Here an example for multilingual pre-training where we add modules during pre-training and we find that this actually improves the per language performance and it allows us to add more and more languages down the line even though the model has not seen that language or language family.
But if you add adapters to that monolithic model that has been pre-trained on all languages, these modules cannot mitigate the interference that has happened during pre-training already. So the design of a modular architecture from the get-go does actually disentangle these distributions and simultaneously allows us to add modules in those slots further down the line.
Um so this is an evidence that uh designing a modular architecture from the get go has some very positive benefits.

has some very positive benefits.
So many of the open research questions are what defines a, and this is specifically questions that arise for modular design for pre-training, right? So not necessarily ones that address like adapters, but how do we design a modular architecture that we add during pre -training? So what is the modular, optimal modular architecture? Does it?
have to have bottleneck uh is it a bottleneck adapter is it a full f layer, um and uh and and this specifically for different goals, task specification, language, general capability and so on. Um simultaneously should these modules be homogeneous or heterogeneous. Uh should the capacity of the architecture uh be different. Uh this is a b basically a big scaling problem um
Current research focuses on homogeneous architectures because it's just much easier to implement and deploy. But that's maybe not the ideal scenario if you want to do continual learning across many domains, modalities, and so on.
How many parameters should be shared? How many should be modular? FF MOEs have high capacity for modules. Adapters have very low capacity for modules.
Yeah, if the respective design choices, how they impact compositional generalization, and also if we actually design the model to be integrating adapters or modules for adaptation in the first place, how does that affect adaptation further down the line? If these slots already exist, does that improve performance? My hypothesis is yes, rather than...
You know, adding these modules after the fact. Um and by designing these modules uh this model in a modular fashion, does this actually encourage the emergence and disentanglement of these distributions such that we can reuse the skills um for example for multiple languages, their tasks and so on. Okay. So the next part is about knowledge combination.
Um yeah basically we have these modules and how do we then combine them. And there's again two different directions. The one first one is dynamic input combination. So at runtime, we have multiple modules available. How do we select those respective modules dynamically? And here flexibility is prioritised, meaning that we just provide the model with all the modules and at inference time it can select the respective modules.
uh in parallel to that we have this static global parameter combination. Uh here inference is more uh uh uh at the central priority, uh meaning that we would like to combine many of the parameters uh for a specific target use case. And obviously
These are not strict. There's movement between them. You could come up with methods that are predominantly four static merging that become more dynamic. But the methods here are predominantly used in this kind of fashion.
Okay, let's first of all look at that part. And you know the the classic approach is uh amen uh sparse M_O_E_ style, meaning that m both modules and routers are trained jointly. Um and we select a top-K uh set of tokens for the respective uh yeah, input sentence. Uh this scales very well. Uh load balancing allows us to increase the total number of parameters while maintaining the FLOPs.
But it has a lot of issues with respect to specialization. This load balancing loss does not actually result in specialized experts and often the experts become redundant. So there are a lot of emergent ideas in this direction. So...
Upcycling these modules in Nexus. I wasn't here, but I think maybe that talk was given earlier today by Achmed.
Then there's also directions of, yeah, reducing the effect of this load balancing loss. So having auxiliary loss -free balancing. And there's also other directions of actually merging some of these experts after the fact and making them more modular. Here the general direction is let the model figure it out how to learn these respective modules.
Simultaneously, you could also go in the direction of training adapters or modules independently of each other, having a set of Loras trained on the respective domains, and then trying to merge them or route between them after the fact.
Here a bunch of recent works like Fat Goose or Aero try to learn router weights.
um after the fact or on a few examples so that the model can then use those for a specific example to select which Laura or which module is most useful there for the respective downstream task. Um in order to mitigate or circumvent that we can also do some attention-based aggregation meaning that we route pass through all experts and then uh learn an attention mechanism
um based on the output of each of the experts. Uh that doesn't m that uh r uh yeah removes the necessity to have uh router weights, but requires us to pass through all experts, which is extremely uh expensive. Um there's a very good survey paper uh by Yadav et al. Uh that kind of
talks about all these different methods. These are just two of many, many methods. So do check out that paper if you're interested in this direction.
All right. And I also want to point out that the adapter hub was kind of one of the first multitask models that allowed us to actually upload independently trained adapters and merge them after the fact so everybody around the world could download a hugging face model, add an adapter to it.
upload it to the adapter hub and then define new parameter merging adapter merging routing techniques uh to uh come up with a better merging method um yeah so kind of old now heft is great for that as well uh okay let's look at the second direction which is static
Global parameter combination and here, yeah, the idea is to combine the modules or the entire model in an offline kind of fashion and unify the model. Basically, the inference time of a merge model is equivalent to the original model, which is not the case.
for a router-based method. Um so simple averaging works quite well uh then there's task arithmetics where you can add and subtract task vectors uh and then there's um other methods that try to
mitigate this interference so if you come if the the issue with these methods is that given that you're fine-tuning the respective modules on to some degree orthogonal tasks and average all the weights then there's obviously interference within the weight space and so many methods that are also presented at iClear this year try to mitigate this fact basically identifying
which parts of the model are interfering with each other. So ties merging is one of the most popular methods, but there's also methods that I think were presented this iClear that actually tried to design the task vectors that they actually interfere with each other less.
And all these methods rely on the assumption that there's linear mode connectivity between the weights, meaning that all the models that were trained on the downstream task are within a loss basin that is connected.
Okay, so let's look at these two concepts and open questions.
Is there a way, is there a trade -off between this dynamic routing and is it always superior to static routing or vice versa depending on the scenario that we're actually interested in? So for continual learning, what is better? Collaboration efficiency out of distribution generalization. In what scenarios is one version better than the other?
How do we actually

How do we actually achieve robust specialisation selection of these um mixture of experts or post-hoc uh routers? Uh Mm-hmm. how we c how can we efficiently scale up the number of diverse modules? So all the papers that we've looked at here
use I don't think more than a hundred experts. And these are very parameter efficient. If we scale this up to all the distributions that we have or all the individual tasks that different teams or industries are interested in, then this does not scale anymore. It's very difficult to then actually route across these diverse modules.
Um and this also assumes that the modules are actually homogeneous. Um there's no method that I know that actually acts upon uh on heterogeneous architectures uh that learns a router uh on on five tasks that had a Laura adapter, uh another three that had bottleneck adapters and another few that um did prefix tuning. So
How do we effectively handle a scenario where we get thrown in multiple different heterogeneous systems? And simultaneously, an existing issue which was addressed here at iClear is interference. So if in static merging, if we train these modules on many different tasks, there's bound to be interference.
Sorry. So most of these methods, I believe, work well if you have a handful of tasks that you train on. But assuming that you have thousands, I think none of these methods really work well in a specifically continual learning scenario.
Yeah, this specifically goes for kind of orthogonal knowledge that are integrated in the models where interference happens even more. And finally, how can we find synergies between these two methods? Can we develop methods that effectively blend the dynamic selection and the static merging?
Um, so basically which models should we decide uh to route and which should we decide to um merge. Uh depending on what you're interested in or what the respective modules or parameters have learned, I think one method um works sh should work better than the other for their respective parameters. Okay.
Let's look at this. These methods were kind of independent of continual learning. These were task adaptation, routing challenges. In the context of continual learning, the goal is to, given a stream of tasks, how do we learn the stream of tasks without catastrophic forgetting, the previous knowledge, and effectively adapting to new information.
So modularity here can help for knowledge isolation, meaning that we integrate the new knowledge into these specific modules and we can efficiently update the model because we're just adding modules rather than copying the model further down the line. So we want to select in dynamic routing the relevant.
the old and new modules for a given input and in parameter merging we want to integrate the new experts into the existing model so here if we contrast
This to existing continual learning, these models often struggle with plasticity, meaning plasticity is basically gaining new knowledge under computation constraints. Methods like rehearsal, meaning that if we continuously train on more and more tasks, we provide the model with the old data continuously. That's effective, but often violates some of this.
the C.L. uh scenarios. Um and uh uh
Uh, path methods or modules like function modules, they uh offer good stability, they forget less or forget nothing if you think about it. Um but it's difficult to comb combine them at scale. However they do outperform multitask learning um uh quite strongly. If you look at merging methods, um they're still a very great baseline. Um
They balance this knowledge accumulation and they scale well because the total parameter budget remains the same, but they just don't reach the multitask learning performance. So there should probably be a trade-off between the two methods.
challenges and open questions for this modular CL. How do we design modular systems that continue to learn over long horizons that maintain this knowledge acquisition and adding new knowledge and stability for old?
And how do we quickly and effectively adapt to new domains? What is the optimal trade -off of added to modified parameters? Sorry. And which combination is the best here for this adding more and more modules? So I want to now more broadly look at this. So
Is there a way for us to actually integrate all of this into the system of continual learning from the get-go? Can we design a model for continual learning so that it encourages the model to disentangle complementary capabilities, for example, reasoning capabilities, into the shared parts?
and store the idiosyncratic information into maybe even heterogeneous modules. And how can we encourage adaptability for dynamic combinations, so routing of probably modules, and static combination of probably shared parameters.
But in order for us to design this, we definitely need to go beyond accuracy. So a standard...
continual learning metrics like accuracy forgetting and so on need to be extended to how efficient it is to add new modules how well does it compose and generalize to different distributions and how robust is it for merging and routing over time all right so concluding
I have to be fast here. Yeah, modularity is a powerful paradigm and designing modularity from the start is probably a great direction. And these are some of the research frontiers that I've discussed. We're hiring a student researcher.
I'll go back to that slide in a second. Uh this is based on uh modular deep learning. Our website, we have a great survey paper. Uh a lot of my slides are based on the work of these researchers and many many more. Here's the QR code again. Thank you very much, Jonas. Is there any question?
We have time for one or two questions. Yep. Yeah, thank you so much for your talk, really really interesting. I'm wondering, you mentioned interference, and I'm wondering in your opinion, should we work on developing models that interfere less, say
um specifically for continual learning you can develop systems that have a disjoint expert for every task and then hence you don't have interference at all but then in that case you don't actually gain anything from say transfer learning because you can't actually build on what you learned before so in your opinion what is the optimal model Yeah, thanks for that question. I had a comment on my slide, add transfer.
And I forgot what I wanted to say and that's specifically what I wanted to say there. Thanks. So yeah, I think it's very important for the model to have the necessity of sharing relevant information.
but having the capacity to learn idiosyncratic information. So that's my specific method was always to understand what is the minimal amount of parameters that has to be modular so that the model learns this idiosyncratic information there so that the most knowledge is stored within the shared parameters such that reasoning and so on.

such that reasoning and so on are basically there. So this transfer across distributions and shared knowledge is and short shared reasoning or whatever you want to call it should definitely be part of that. I think that's a core principle, yes. One last question and then we switch the next speaker.
Uh thank you thank you for your talk. Um I'll ask you a non-modular question. So what if um maybe you you followed also the the mixture of lower halves trends that happened last year on both text and image. So uh it was sadly I I didn't dive deep into the ones like I noted a not a lot of new ones that I hadn't found today. So
To the first question is can you comment on any similarities or dissimilarities between the these mixture of Laura techniques and and what you presented today. And then the other question which is uh I think works both modular and non modular is what if there was an infinite mixture of adapters?
Yeah, so I think most of these mixture of Laura methods are very relevant to this. They're different ways of merging routing between Laura's, trying to mitigate interference, trying to share knowledge. I think the main focus is often compositionality and not so much on continual learning. So I think these methods...
are all can all be applied to that direction an infinite mixture of experts so honestly like I think if we have infinite compute infinite data infinite everything we don't need anything modular I think
I think that that's not the case and efficiency is important. We want to do everything faster and integrating kind of an inductive architectural inductive bias into the model will help it learn. And I think that's the key part. We don't have infinite resources and therefore designing this in this fashion will help the model learn faster. Thank you. Thank you very much, Jonas.
Okay, we have one more speaker, and then it will be panel. I am pleased to welcome Sammy from Prime Intellect. You would you would put the microphone on?
Hey everybody, I'm Sami. I'm reading the research at Prime Intellect, we're a startup based in San Francisco and we're doing decentralized training. Actually AIClear is kind of special because we started working on decentralized training exactly one year ago at AIClear. Our first JLO implementation for OpenJLOCO was last year at AIClear. So yeah, we're doing decentralized training, I think we're famously known for having doing the
And the biggest uh large language model training over the over internet o o o over the world. So we had a ten billion parameter model train an yeah, we had like multiple country, uh this is the map on all of the peoples that join. Not all of them were at the same time, but this is all of the different peers that join our training. So now our successful attempt at decentralised training uh which was uh last year. Um roughly ten billion parameter model, three continent, five hundred.
five country, more than eight data centre, total of more than one hundred GPU, um a really good computerisation in the sense that we are not blocking for communication. Uh, which run on modern on one trillion token, which was kind of a landmark in term of uh um how long you should train a m model at least to to be um to have something coherent. Um the benchmark of our model was around capability around the Lama one and Lama two. So quite ai uh quite uh competitive what uh for a model of the size train on one trillion token.
and token. And we are using uh in combination of f_ F_S_D_P_ and Deloco. Um um yeah. So this was for intellect one. Um before I jump in this presentation about uh giving my opinion on decentralized training and explaining a bit the different type of research that we are doing at Prime, uh I think to really understand uh the state of decentralized training right now, it's important to understand the state of training and training is really doing a in a centralized uh uh uh setting. In a centralized training. So I think it's what it
pretty interesting to look at at this setting first to really understand decentralised training. Um
What happened is uh they basically ha happen ten years of scaling. Uh since uh two thousand tw uh twelve was Alex Nets, which was showing a sixty million parameter model, showing two GPU. Up until today's, today's the state of the art of uh training is a GPU for uh uh uh like size trillion parameter model um trained on ten to one hundred K GPU um and and this is a difference. One literally two GPU comp
You com compare to like a a data centre. And this is a scale o of centralised trading today. Um uh in ten years a lot of things changed. Basically almost everything changed. Model size, a f a factor m m um multiple order of magnitude, uh architecture have completely changed. So the optimisers are different. Uh the infrastructures, the GPU kind has increased dra dra drastically. Data are the data are is a c um the type of data as well as the scale of the data has increased. But the laws, the objective
If almost everything has increased, but some things that didn't change at all in these last ten years of scaling is a back propagation algorithm. We are basically still doing a forward, backward, getting a gradient and applying the optimizer. Um um and we are running the same back propagation algorithm than if we had a giant GPU. Literally like in ten years, if we had access to one GPU that could uh hold the all JPT4 model training, we will have the exact same loss as what we are doing right now in a distributed training.
setting. And I think it's quite interesting because all of the other uh component of of the training have evolved. When I've been co-design with scale and this and distribution, expect this this this part of the training which is uh the back propagation. Um and to understand why what is the case, um it's uh I think one of the reason is like um
Company NVIDIA has been betting a lot on networking and and on scale and and scaling and and the basic always be ahead of the curve in term of of networking so that because the the new people wanted to scale algorithm scale training. Uh famously NVIDIA has have already been investing in the talking capability two thousand fourteen uh the first unveiling so like a bridge literally to have a really high bandwidth between two GPU four years later this bridge was now a switch which we ca able to connect a GPU really fast.
But in 2020, they equate Melanox. It's one of a very big acquisition for Nvidia. So that probably makes them what they have today one of the most successful companies in the world. They are selling this product InfiniBand, which is basically like a giant network switch, extremely fast, that allow to have this insanely fast band with between data centre. And all of the big labs will expect Google are using InfiniBand to train their model. This year, they released NV72. It's like the same as NV switch, but
each bit for 72 GPUs, so it's extremely fast interconnect between up to 72. So this shows that NVIDIA is not only a GPU company, they are actually going beyond, they are selling end-to-end product for training model, including a lot of investment in networking. And I will argue that NVIDIA has always been ahead of the curve, in the sense that they always had betting a lot on networking capability before researchers actually needed it.
bits. And the natural thing is like when researchers start to try to scale the training, they already had available fast interconnect. And that was the reason they didn't have to like kind of redesign the backpropagation algorithm to actually make it work in this because all of the bandwidth available to do it. But I will argue that things are changing now. And actually there is a nice parallel to do with
Uh the CPU era, CPU era in in the nineties um they were actually a company named Thinking Machine, which is different from the Thinking Machine of of two thousand twenty five uh it uh a company that failed by the way, uh that created uh uh created um a giant uh super calculator based on CPU and the idea is like is that this like uh M_S_D_K_ for uh for uh for research to build like almost running the same algorithms that you usually
run on like a multi-core CPU, but on like uh uh a giant machine. So they are basically offering a giant multi-core CPU. Um and and and and all of this approach kind of uh fade out in the i in the end of the nineties because it was actually extremely hard to reliably programme this machine. And and the CPU workload now of of today have have have uh moved toward more naturally, I think, algorithm, fault tolerant by design, uh massively distributed
And and they run on like cheaper hardware st in the sense that it's not like this extremely expensive machine, it's more like data centre type of of CPUs that are connected with relatively simple uh uh uh uh uh uh uh internet uh band-width. And and I think it's quite interesting to do the parallel with today and and how we train model is we're still basically working on this giant GPU. We are not working on a distributed setting. We are we are NVIDIA is selling giant uh uh a giant

a a a giant one block of of of of computing power.
Uh but I would argue that the same way that uh the CPU world has evolved, I think that the GPU training world will evolve uh to a different place. And that's where distributed training, decentralised training kind of have come into play. And the basic his idea is like you want to redesign the back-propagation algorithm to naturally take in consideration um uh the distribution of the of of of the hardware and the fact that you don't have unlimited bandwidth and you cannot scale to infinity with
with with with bandwidth. There is multiple organisations that are uh interested by the by this technology. I think even the big labs, it's important to realise that even the big labs are today running into physical limitation in how they can scale the current paradigm o of training on all of the G_P_U_ Like OpenAI uh famous for doing multi data centre training for the G_P_T_ four point five. Uh I think Google has for many years already mastered uh the act of multi data centre training.
of training as well as using heterogeneous training so that they can reuse the computer of their previous previous generation of compute the GP GPU 4 and still being able to train model on multiple generation and they don't do this just because it's a hard problem they do this because they need to do it they need to do it it's a it's a the scale at which they're operating make it that even those extremely fast interconnect are still not enough and they need to go into this more distributed
and decentralized, not necessarily decentralized, but distributed training. Uh primary intellects also uh were interested in doing this decentralized per training, uh both for per training and enforcement learning and um yeah. So this will uh focusing more a bit on a a decentralized approach where we want to try and collaboratively on this model. So it's a slightly different uh scale and a different use case, and all those a big b uh big labs. But the technology at the end of the day with something similar in the sense that we need to
We need to redesign the algorithm for trading model. Hugging phase is going to train uh the boom project when they want to uh basically gather uh university cluster to train and to prove that you can actually pool resources from different university and to train a relatively state-of-the-art model. There is a lot of c aug uh uh a company doing this uh startup I think uh today there is almost uh uh a paper for all of the startup working on uh decentralised trading, uh news, pleuralist, Jensen, XO.
Exalab. So a lot of people like the field is moving and things are happening in this direction. I think two years ago people would have almost laugh at you if you were saying that there is a way to train model with uh low communicate low bandways and like why first they will say why would you do it if you can just use a infiniband product and nvidia product. Well actually it's the big labs have this issue with it. And they will laugh at you by saying it's probably impossible also like people would already have done it. I would actually argue that people didn't have to do it.
They actually just didn't want to spend the time doing it, because you can just buy a product that will solve this issue. And as there is actually you're happy when you you can uh kind of focus on only one part of your training and not fixing all of the other problem. Um and I think that's this perspective kind of shows that the I think decentralised training, distributed training in general is going to be a very important topic in the future, and and there is a lot of low-hanging fruit and a lot of nice research to do. Uh it seems from my point of view, at least, for working on this for for now a year,
That is very obvious that the algorithm are going to evolve. And I think, uh uh i i okay today I wanted to talk about how uh one of the m biggest uh w one of the m most basic uh parallelism technique in training large language model, but uh n neural network in general is data parallel. And I want to give uh an overview on how I think we could scale data parallel to be on one thousand G_P_U_ connected over the internet. Um so this talk is i will be like a mix of
of uh things that has been proving to work at scale in intuitions that we build uh in the research team at Prime and things that we believe this is a direction we think will go in term of data parallel. Of course data parallel is not the only parallelism, but for now we look at this from this aspects. Um
Training model across internets you mean training uh model with extremely low band-width. Uh ju just to give um to give a order of magnitude, infini band give terabyte per second uh uh terabit per second sorry of of band-width. And uh it internet in a d in a good data centre will about three hundred gigabits. Uh but if you are using public internet to do to train model inside a country or across continents, you actually more in like the
I you have lucky you have a ten Kbit connection of a public internet inside a country, and if you go worldwide you are like at the gigabit connection even even even worse when you actually do completely worldwide. So during an internet one training we actually like so on the right there is a graph of our uh this is like uh all of the statistic about our uh time for the for our all regions. And uh even inside the U_S_ all regions was a around uh a bit more than one minutes. Uh U_ S_ Europe around 400 seconds,
And any one in a worldwide settings, uh the average uh always was around fi five hundred seconds. And and more importantly is like the the end of the tail so the uh the left uh the right curve of uh uh how long it it will can take to the average was extremely high. Mean we were like the networking was extremely unreliable, extremely changing. And it and I think it's important to have this consideration when we think about doing decentralised training over internet. We are literally talking about
reducing by more than two order of magnitude the band-width and the networking capability. So everything need to be co-designed and redesigned with this in consideration. But it doesn't mean that it's impossible. Um eh in data parallel there are basically two type of algorithms that allow you to do data parallel, oh I will categorise and the is the compression algorithm, um priority, c sign, g g g, uh dimo
What's the typo? Distro and party, um all of this algorithm basically take the DDP algorithm, that are parallel, and uh focus on uh reducing the size of the gradient so that all reduce take take less time. Um speaking of of of uh all uh of uh compression of the gradients, it's actually quite intuitive that you can reduce the the informa uh like you can compress the gradients. Like
When you train a neural network the gradients have the same size as as a model that you are training. And we know how LLM our less uh uh a neural network that is that is um structures that can compress the entire knowledge of the world into a couple of gigabyte of of data. And it's like really this phenomenal compression algorithm. It it's it's not one not only retrieval information, but you can even compress reasoning in in this small in this small uh
constitute our data. And when you train this, you have like a gradient update which is basically some information on a small batch of data and these things weigh the same as your neural network. And it's kind of intuitive that like
If the if if the structure if all of this amount of data can store all of this information, then just the gradient which is just a delta should be able to be compressed. So it's it's quite natural that it's it were able to compress the gradient. I will actually say that it should almost be the defaults. Uh again, only reason we don't do it is because we didn't had to do it. Um there is second kind of of uh data parallel algorithm which is more I would classify as as averaging. Um Diloco is is one of them, but uh I think in the federated learning
learning literature or something called federated averaging and local SGD that are uh a lot of connection with a with a geolocal algorithm. Uh let's look a little bit more in detail into into compression. Algorithm one of the one of the most famous one and probably as the most robust one in compression algorithm uh polar SGD, uh it has been used to train a Dolly one at OpenAI. So people have always been sceptical that you can compress gradient and but actually there is
there is proof that it's working like uh DALI 1 was trained with poor RGG and Z and they basically reduced comp uh d uh communication by 90 percent uh using poor RGG poor RGG is r relatively simple algorithm's idea is like you want to have a lower compression of the gradient um so you're doing a cheap orthogonalization via this uh power iterative algorithm um one of the trick to make it actually work is that there is an error feedback channel and the idea is like when you're doing a compression you always laugh uh some your is is a
uh it's not it's not a lossless compression. So you all uh always have a small gap. And the idea is that you always inject the the the small deltas that you need to manage to compress into the next uh into the next uh iteration of the loop. So basically I almost want to say that it's a form of uh delay parameter updates uh everything that didn't make it into the last compression will have a chance to do it to do it in in in in the in the next compression and you end up not losing you still end up
a p uh learning from this uh low si uh low signal uh is they don't get lost by the compression. Thanks to this error feedback. And it's fundamental to make the product L_E_G_A_ g uh algorithm working. Por so is algorithm is able to read this communication from uh ten to one hundred. And uh the compression i is linear in the sense that it's still compatible with all reduce, uh there is a lot of uh compressional algorithms that are not linear and you cannot end up doing an all reduce, so they might compress more
But then you don't have a nice uh collective communication to actually share the information, which is kind of defeating the purpose. Um
Uh there is a nice algorithm, nice papers that has been released a couple of weeks ago, which is named a D_ on. I think that has been relatively under his radar, nobody talk about it. But I think it's a really good good as I think this is the future of of the Polar G_D_G_ algorithm. It's basically uh merging the Myon Optimiser and and Polar G_D_G_ so Myon it is like pseudo-second optimiser where uh the orthogonise uh orthogonise the gradient before doing an update. And the idea is like Polar G_D_G_ is as well orthogonising the gradient.
ends. So why not just like use this orthogonalisation that you have in both case to uh having an orthogonalisation for free or like a low rank compression for free. Um and and MuON uh b beyond being able to compress uh compress, your uh MuON is able to to like better conversions because you have more informative you you try it computes for conversions. Um I this I think this is going to be very important in the decentralised training.

And in the decentralized training uh electrical. Um averaging algorithm, g-loco, has have a special relationship with g-loco because uh first uh uh work I've did uh like I inspired we created open g-loco last year where we reproduced the g-loco algorithm and created a framework around it for people to use it. And um I think g-loco is is is uh is both sometimes overrated and underrated. Um I think peop
A lot of people think gyroscope was the first algorithm that was enabling people to do local communication, which is actually not true. Like a local LZG, power LZG, all of this were before a gyroscope. But I think gyroscope has nice things that they did to apply really strong fundamental into the LLM era. And it's probably the first LLM is the first paper that shows that it's working with LLM. So this is, I think it's a bit overrated sometime because
Because people only remember Jiloko. And I think it's under-rated as well, because I think people don't understand Jiloko. I think people think that Jiloko is a data parallel uh replacement and uh kind of a little bit like power is basically oh yeah, it's reducing compression. Uh uh it's reducing uh uh communication. I think it's a it's a it's actually not directly this. I I think Jiloko is this uh aver-aging algorithm, so the ar is is the idea is like you have this inner opt optimizer and this outer global optimizer.
through and uh you'll basically have um let's say eight model train in parallel and then every one hundred steps you're going to to do this auto optimizer, this auto updates. Um it can reduce communication up to five hundred. But um I think how it should be interpreted is rather that it's able to co-train multiple model and average uh average him every one hundred steps. And one of the c one of the one of the caller is like
You you end up by having less communication for this averaging, but I think what is really interesting is like you actually can train at way larger batch size. Um why I'm saying it's in a uh um an averaging operation is actually if you derive the G-Lock algorithm in the L_Z_G_ uh setting without uh taking the Nesterov momentum to make it easy, you actually end up with uh uh like literally uh look ahead slash model averaging.
Uh so you have the exact the original model uh weighted and the new and and and the average of all of the new model and and this is your the general update. So it's like literally model averaging. Of course the Nestero of momentum change things and and in the general paper it shows that the Nestero of is very important to be able to make general work. But I think that this formula is actually good of give a really good intuition of what actually happening in general. Um there is recent work about uh scaling
low for G -local that actually show that the G-local algorithm worked like worked quite well a really high batch size whereas the digital algorithm is going to like kind of saturate at some point and it kind of make sense intuitively if you're co -training multiple more than averaging them and it makes sense that you can work at way higher batch size and
I think, and that's why I'm saying that I think Jiloko is underrated, is people don't understand that Jiloko actually allow people to scale data parallelism to a new order of magnitude. And in the decentralized setting, I think that's what really matter is the ability to to use all of the all of the computers in the world and put them together. I think I need to go a bit faster on this one, but I think an optimal data parallel setting will be
a mix of uh gyroloco uh so model em averaging and uh uh compression uh data parallel compression. And basically this idea is that you can have have some island of compute that are inside each other is going to do compression D_D_P_ so your normal D_D_P_ with compression up to one hundred, uh I think that uh this m uh the on paper I show above is probably what could be say of there today uh um it across all of this island you are going to do uh uh uh a model you are going to do gyroloco.
w and going to do all of the auto optimizer updates. And in this setting you can actually have heterogeneous training uh heterogeneous training for free, meaning that uh in the actually the data the original data parallel algorithm is is heterogeneous by nature in the sense that if you have faster uh uh faster training instance then you might as well just accumulate more gradients and do uh and do an all-reduce uh weighted all-reduce. And I think this a deadlock paper that has been published
has been proving this. It is actually very simple, uh but work quite well for iterative news. Um if we take this and we combine with uh two things that are very important is to do delay some kind of delay parameter updates or some streaming G-local and this idea is like you always want to be communicate something when you're training since communication you have because bottleneck um and I think in this setting is very it it's it's it's quite easy to to train model at the at one thousand G-P-U, maybe ten thousand G-P-U.
you data-parallel setting. Of course data-parallel is not everything, but I think this probably give in my opinion what could be state of the art of a data-parallel training setting. Um
So this was for data parallel and uh I want to talk about a second work that we have been doing, when we have trying to push decentralised training beyond pre-training. Pre-training is nice, pre -training is en essential uh but it's not the only use case of of training and and AI in general. Um in general when we l try to look for things that we can do in decentralised training, we look at the at the bottlenecks that we have in decentralised training. The first bottleneck is band-width, the second bottleneck is uh high memory usage.
So we cannot infinitely uh we cannot like uh distribute uh model or optimiser across a lot of GPU because uh because of the band-width. So we need to reduce memory usage. And um overall the training algorithm is very r like
Training neural network with back propagation is relatively rigid in the sense that you still need to do a synchronous or reduce a couple of time and you can make it of course less rigid, more async, more heterogeneous, but by nature is very rigid.
Um so our focus when we try to look for new algorithm to do in decentralized trading is things for something where we can increase compute density that you can do into one island of computes. Uh everything that can reduce memory usage is actually very good for decentralized training. And uh the more natural I think an algorithm is, the better it will be for decentralized training in general. Um and there is one algorithm or like one uh it's beyond an algorithm it's uh a you p uh scaling paradigm.
Uh, test time scale test time compute scaling uh or like reinforcement learning uh that is actually I will argue is na uh naturally uh asynchronous and naturally decentralized uh distribu distributed. And and and and we're very excited about this. We're actually starting our intellect to train in a couple of couple of weeks ago when we're uh scaling reinforcement learning uh on on a hundred of of GPU.
And our setup to do asynchronous learning is that uh so in asynchronous learning, your basically your continuously updating a model. So the model is going to do inference and going to get some reward based on uh on some verifier and you have some training pool uh you have training ongoing. And uh in this arrow setting you can basically hide all of the communication by doing two steps of I_R_L_ training and um and
So we proved as we show as well that it's working quite well and and only couple of step of I think is that are enough to hide most of the communication um is relatively comparable with with synchronous training. Um one last thing I s I think I have to I still have maybe one minute uh five minutes, okay, so I can take my time for the last one. Uh so in this uh I think reinforcement learning setting uh so you have basically the inference which is ex um uh
uh n a very easily distributed and decentralized. And and we even push it to uh to the next level, where we can even let people uh join with uh trustless computer, in the sense that we don't even have to uh own the computer that is going to join. And we don't even have to trust it. It could be anybody joining the training. Uh and and this is because uh it's uh we we created this algorithm named uh named Toplock um to do um
um trustless inference uh and the idea of top log is um um we are the idea is like we can do all of the recomputations that the inference has done uh and we can validate that the we can when we do the computation we can validate that it's actually the correct uh that it actually did the correct math and the idea is like this this operation will be a peripheral operation um you already have all of the data generated and you just want to check that the math
much check out. Uh whereas during inference you're doing this autoregressive next token prediction uh that is like uh uh fundamentaly slower than doing this profile, so the the b uh the verification in uh algorithm is is is very fast in in this pro in this profile. Uh the problem with with with this is like it's not exactly the same operations that you are doing. Since you are doing this like slightly different matrix shape uh in this low precision BF sixteen you actually end up with slightly different numerics.
numerics. And you don't have bit priority between those operations. But you still want to be able to know if the original implementa if the original mask was correct. Uh so the top block algorithm is a is a locality sensitive hashing mechanism. And and the idea is like we only focus on uh on a really high activation and we only check them. Because in small activation we have uh what happen it wha what what is c a name uh catastrophic uh constellation.
whereas really small value in lower precision end up being cancelled by each other and then the mask being completely different because instead of having a 0.1, you end up with a zero and then if you later multiply by ten, the zero stay a zero, but the open one will become a new value. So
In a nutshell, this algorithm look at uh uh high activation and and and and produce uh uh um uh a really uh light weight proves that we can use to do this inference uh trust this inference. Um uh and to to conclude I think

And to conclude, I think what will be the, a prime intellect, but generally I think what will be the, how will look like.
a pre um discentralized training over let's say 10k GPU or maybe 100k GPU will probably s look something like having uh two thousand GPU doing a a mix of uh uh ebrid data parallel like I will show be before with Jiloko, with compression uh and on on something like 2k GPU and the rest will be doing inference, and basically sampling new data and rollout uh for the for the for the R_ and reinforcement algorithm. And and we believe that this setting
Basically, mixing both of this uh uh uh decentralised training and decentralised inference in the reinforcement algorithm is going to be the use case of decentralised training that is the most likely able to um push a maximum of compute into a very important training run and being able to do it uh over the over the world. Uh so that's what we are building. Um
If you want to get involved in in such a project there is multiple way to get involved with us. Uh first I think there is a lot of nice research to be done. Most of them are usually uh combined it mean like training all of this at scale i is very expensive and and we're happy to contribute compute to researcher especial especially in academia that want to try those new algorithm and want to m make it uh work. We're hiring as well and we are open for collaboration. Um
Yes, so our goal is to commodetize computing intelligence through decentralized training, and I hope that all of this algorithm and research that we are producing here are going to part of this large-scale, planetary-scale decentralized training happen one day. Thank you for your time. Thank you very much. Any question?
Uh thanks for the presentation. I have one question about the first part of it. So like when you mentioned that uh most of the components of deep learning have changed since two thousand and ten, except back-propagation. So to me this is at least a sign that uh this might be something worth revisiting at least like somehow. So do you have any thoughts on this topic? Um
I have many thought on this topic. I think cha I think all of this compression of of gradient and G_LOCO is already in in a way changing the back propagation algorithm or at least the way it's it's it's run. Um but I think generally I think like um maybe we need to g move beyond a classical back propagation. Uh I think like all of th I I've been quite interesting for a while in this double forward algorithm uh when you can uh have the a n a n a nice things that you reduce memory yet but you
by by laws because you don't have the sub optimiser um so it will eventually allow to to train a real large model on on very little amount of of of vram uh but i think it's a bit uh i don't think it's realistic that in the next year someone will be able to train something but i definitely believe that in this like planetary scale distributed training there will be a place for a new algorithm to arrive uh yeah it's a bit hard because right now everything is convoluted and co-designed but
But in couple of years, I think a lot of books will happen. Yeah. Thank you.
Maybe you have to go again in the line of uh model uh architecture here. Would you think, like right now like uh so both Intellect one, Intellect two and a lot of this written method are based on transformer, whatever other architecture. Should we actually change completely the architecture? So we keep the backprop, we have a new distributed algorithm, but that is made cod design with the architecture.
I m I think in a way architecture have already been co-designed with scale uh and and and with distributed. I think mixture of expert in general are uh uh uh by-factor of of of of big labs having to to train on on on a lot of GPU. Um I don't necessarily think that component like attention need to be completely redesigned, uh decentralized decentralized fashion. Um but I think that architecture and and roughly the way we distribute the weight in a model will definitely be
to be impacted uh in a decentralized training scenario. And I and I think everything is could design by the Green GPU learning, right? So every piece of the pipeline would one day be could design for uh decentralized training. Any more question? Okay. Thank you very much.
Um we know have a panel session, uh so we gonna have a debate about those topics, so modularity, model merging, distributed, uh with our speakers uh why you will be all welcome to contribute.
So the topics of this uh workshop were quite wide. So we talk about content learning, we talk about modularity, uh modern merging, distributed uh each of the speakers are expert on a subset or multiple of those topics. Uh and I think they are all quite related and I think would be very useful for the next uh for the next years. Uh so I'm gonna boost up this panel with a s few question, but you're all welcome to raise your hand and we will go with the microphone everywhere.
Uh maybe one question right now is like we are in the era of uh the big models. So there is a frontier models that very few labs have access and uh they are very powerful. And then we have like the world of maybe the startups and academia where we are limited to a few G_P_U_ and the question is like
How can we cross the gap between the open source community, which is like the startups and academia, and go close as close as possible from the frontier model. So I know that Deep C can and Lama are doing this, but to the similar method of centralised training, relatively the same ma kind of methods as the big labs are using. The question is like all the tools that we saw during that workshop, could they enable us to close that gap? Or are we doomed to have a forever gap in between?
I think it's a good question. Um I I think probably the answer is uh is um if we want to f to to to to have uh competitor to all of these big labs in an open or decentralized setting, it need to make sense economically. Uh all of the monies that go into training these models are non-negligible talking billion of dollar to build data centre and um
I think easier collaboration via um university cluster, uh public funded or a bit more sustainable decentralised uh organisation is probably the only way to have something com uh so new can do competition with what the big labs can do in term of uh money.
Can you hear m alright. Uh I will agree with what Sammy said, but I will also say that um the advances like the algorithmic advances in centralised training are somewhat underrated for even open source model development. So if you see uh like there was the paper, I believe last year,
about algorithmic improvements in uh deep learning scaling, which shows that definitely a lot of the advantages like come strictly with like putting more compute into training, but there is a lot of improvements in efficiency like getting better and uh high quality models even at low scales even with relatively smaller compute.
by using smarter algorithms, by approaching the way we train on data in like better than just like taking whatever data we have. So I think by combining those two directions, like having a way to develop models collaboratively but also not forgetting that we can improve the core training loop itself, I think that's going to be the most impactful way to advance for the open communities and for the academia.
I I would even take it to more extreme, uh w w what the previous speaker says. And when you first asked this question I I thought why? Why would academia want to train this crazy large cli language models? What the goal? Um so there are different series. How do we get to the A_G_I_ or best model possible.
Uh it's scaling theory, we need to train bigger. It's data theory, we need to train on more data, multi-modal. Or it's architecture s theory. Uh, nobody knows the answer but I like to believe it's architecture and that's the open question for academia.

Question for academia, you don't need to train on billions parameters to explore new architectures.
It's a follow-up question on that. There's also the idea of like democratising, you know, access to these models and being able to train. So that's also like an axis along which like you wanna think about how the role that academia has. But um in terms of uh the discussion we've basically been talking about distributed training, distributed algorithms. But is there what is the role of data? We've talked about the role of architecture but what is the role of data when it comes to thinking about distributed training and distributed algorithm. Should we be
We be treating the data differently? Should we be doing more interesting things with the way we distribute the data? Yeah, it's open to yeah. Um I I think for for pre-training at least uh the data m doesn't like the data is scraped from internet basically and and collected and used for pre-training. So I don't think that
There is a big improvement to do at the data level in the slow resources and academic level. I think that distribution and decentralise start to make more sense data-wise in a reinforcement learning setting. I think reinforcement learning is a way to actively sample and actively source data. So you have a model which is not only trained in a black box but kind of interacting with multiple sources. And I think in this setting
Um distribution actually starts to make sense, actually have a competitive advantage. Like if you c if you have a model which is distributed everywhere, you actually have a richard uh the uh richard environment richer uh information of data, that could eventually lead to better model. Um so yeah, I would uh I would say reinforcement learning is different than for training to this regard.
Yeah, uh I actually have a slightly different perspective on this, and to me there is definitely a potential to benefit even in terms of data volume, to a certain degree, from decentralisation. So uh to my understanding you can imagine some companies or organisations which have access to like private data that they don't want to share with anyone. Like especially with companies
which develop like closed front -end models because they don't know what's going to happen to this data. But if we found a way for them to like somehow contribute to training models on that data without that data actually leaving their premises, there is a chance that we'll be able to like produce better models especially for the applications that those organizations care about by like leveraging those like places where the data is stored. Obviously...
Yeah like there are some setups where you can just you can just you cannot just send data to someone else. Along these lines too I guess I had a oh sorry. Yeah, does anybody want to? Yeah. Um yeah, so I m maybe tying this to I think the first question on motivating how or
Um, companies can release more models. Um, I think if academia demonstrates that, um, designing a model that can be uh, where continual learning and continuous updating the model is
kind of the right way to do this, then this gives a a strong incentive for a design of such an architecture. And there specifically data is quite interesting because
Um you would not be able to train on all the data available all the time. Um there's different data sources that are available during pre-training. They get updated frequently and in order for the community to actually help uh keep the model uh updated but being um able to adapt to uh proprietary data
and so on very efficiently developing these algorithms is quite interesting. Maybe also kind of looking back at a time where releasing these models was very interesting was, yeah, like, yeah.
is where basically academia could leverage a lot of these times. So I think that's demonstrating that this is very interesting, is, yeah, is a good direction to look at.
I still don't feel like the question of data quality, data cleaning, like deduping, decontamination is really being addressed here. Like that's a very difficult coordination problem and it takes immense resources to train frontier models.
with those, with that work being very, very crucial to reaching frontier levels. So how do you feel like the decentralized community can tackle that? I don't feel like just throwing as much data as possible at the problem is sufficient, but feel free to disagree with that as well.
Yeah, actually uh that's a that's really good point. I was thinking about saying something in that line, but I was also not sure it was context of here or not because I think it would be modular, but it's not context of algorithmic modularity. But in the context of, I dunno, um maybe I would I mean you can open science or like a
a m modular research, let's say in that uh let's phrase in that way. But actually there are good good examples. Uh we have this I mean on not be uh but uh we also had there are lots of uh open source project that people come together and collect data, right? Because data collection is really centre of many things. And how how we design the algorithms to like a
combine central and decentralised approaches together, actually data collection also also same way. And actually I don't have I'm not sharing the negativity in the same way, because it depends on what kind of data you are collecting. Maybe the people that are contributing the data might be the experts for uh like how clean that data are, right. I think in that sense definitely there is long way, I mean uh open way to go
Collecting data from communities or people in my in my opinion. It's of I'm not connecting this with the decentralized training because I think you collect data, centralize it, then again decentralize it probably, uh but Yeah, Sorry, in duplication is quite important as well, like uh if you have too many duplications of data, We are th yeah, yeah, definitely. yeah, yeah. That that doesn't ad adjust that one. Okay. Yeah.
Yeah. Well, to answer your question, I guess that to a certain degree a lot of problems and like computational challenges in data preprocessing could be like they are to a certain degree embarrassing to parallel. So
Unless you consider deduplication uh specifically where you do need to consider things like like uh the the hashes or like the the duplicates can remain on different nodes or like on different participants. The rest I think is very like susceptible uh like very easily adaptable to the standard map reduce paradigm more or less. So I would say that this is probably even more easily scalable than standard um
Well, non-standard uh well then decentralised training of language models because your requirement to communicate is lower, like you only have to communicate the end results uh apart from the step where you do do Dop. So I think yeah, and here you also can use wave your resources unless you do something GPU-heavy. So yeah, in in my opinion, it's uh even more scalable at least for those steps. That again I'm not an expert in data processing, so maybe there are some steps which would be harder.
I guess like yeah I do super yeah I do agree that data quality research itself is super important that is like some fraction of the research I do other than modular modular learning I do think like
reducing the expense of like deciding like oh like how you should how should you be mixing your data is this data even useful doing that in a way that's like actually computationally viable like I believe that's a really open area of research and like also super exciting I think
Oh man, I saw like five different data mixture papers on open review like for this conference, so I think, I agree that it's important, but I think just like making that cheaper is something that's totally possible to do.
Yeah, I think it's interesting also because you can think about how like you can use these decentralized computer that we have to actually make those data decisions, right? Maybe you can do some interesting things locally that you can then like, you know, uplift to basically like on the global scale. I wanted to ask a question around. Yeah, I wanted to ask a question around we we've talked about a little bit about like.

Uh we've talked about a little bit about like elastic computes and basically kind of like changing the model size depending on kind of like the resource needs. I haven't seen any work that kind of synergizes the idea of elastic compute and distributed training. But it seems like a kind of like very um seems like a natural place to be thinking about elastic compute, right, because you have a lot of different kind of nodes over which you can train. Some of them drop out. The notion of dropping nodes basically corresponds to the notion of like
of like having different subsets of the model. So why is there not like I, at least in my opinion, why is there not that much work in looking at how elastic compute plays with decentralized uh training? Alright, um so yeah, that's a very interesting question actually and
To me, uh one of the reasons why there is not a lot of research in the space is that uh a lot of variation in uh the volume of compute that you have uh is not a very common setup. Like even in uh volunteer computing, you can usually expect that like there is some stable value at w uh around which you fluctuate. So there can definitely be some approaches like I think uh even like with the demo e-paper which
I've mentioned in my talk, so sorry about advertising. It's possible to like scale to additional experts, but in principle a lot of uh like approaches which try to dynamically adjust the model capability are specifically like almost directly designed to benefit from this. So
The more compute that you have, like, the more you can scale horizontally and the question is like which models can be very easily cut or like again extended when you need to or like when you have when you have more resources. So yeah, that's at least my perspective.
Uh yeah I'm I'm not from the distributed uh training community, but it it just seems quite intuitive to
Um also integrate different versions of the model, like early exit or things like that into the training pipeline, so that uh maybe not all notes are supposed to have the same objective, but share parameters or something. Smaller notes have smaller model versions. Um so ca something like system one, system two kind of processing um to just a a adapt to the compute resources.
sources that are available on the respective nodes. Uh maybe to continue on that like uh elastic compute, what about like not doing a training but the inference? So like a resonance model are so costly, so slow. Um how can we maybe uh through like speculative decoding but also maybe a math farmer or other kind of method, can we have a constellation of model and how to root properly?
I think that makes sense. But they don't have anything smart to say about that? I was about to comment on the same thing as inference but from a slightly different perspective. So you can have like speculative decoding, you can have accelerated inference with more compute but also maybe like if you have more resources
You could have like for R_L_ for example more like longer reasoning steps or like just uh longer trajectories to train. So like ultimately that benefits your model training because it sees more data, it is more like difficult data and so on. But it's like again like not uh about the architecture or the model itself, it just scale inference. And as we can see, like from papers like OpenAI even and others, it scales a lot with just like more computer put into it.
Um I'm I I I agree with what you're saying. Uh I think one of the reason why it's difficult to design elastic architecture and co co-design elasticity in decentral in distributed training is because I think we fundamentally don't really understand how neural network are are working and it's it's difficult to engineer uh uh around this. And and so we end up with having this like
I architect fields that are b relatively rigid and and we barely know how to train them and so it's d it's difficult to like uh engineering for example an early exit and things like this. Um I think it's for demolition because we don't understand how how is the dynamic are working. Uh w I think one things that we understand a bit more is is how inference is working and and how to dynamically allocate compute at inference time. I I think this uh uh test time scaling paradigm of of training is i is
is actually the most elastic comput things that we can do right now. I guess I'll also kind of answer the question before this before I get back to this part of the question. I think like one thing about like thinking about like oh we're doing this decentralized computing and we want to have
different types of essentially different programs running on different nodes and different devices, that is actually kind of hard to do. And also when you do, so there are two things you could do. You could decide okay we might have someone to train an elastic compute algorithm that's either training from scratch or you might want to do something that's post hoc. So that could be something like test time scaling, that could be something like you
like oh fine-tuning with metformer I think there's a bunch of people at Nvidia who did that and got some really good results um I think the reason that happens is that it's like honestly way easier to get predictable results um I've had some experiments with so I think generally like the more
heterogeneity you're adding to your pre-training algorithm, which is like super long, super expensive, you want to be able to predict how this is gonna behave. And that's like actually really hard to do. Maybe like to jump up of this, like it's it's hard to make a someone going that is more intelligent and predict it correctly. So uh
So you're walking like on a um architecture, model architecture. Also the topic of this workshop is like collaborative. Uh all the algorithm uh that uh we have mentioned in terms of modularity or the architecture are always could not really collaborative or at least step by step I train uh my uh module, then you train your module, but never all together. So if it's it's gonna be even more heterogeneous, even more complicated, so can we then predict how it will behave in that kind of setting a more collaborative?
I actually don't think I understand Sorry, it's maybe New not clear. It's like the question is like um the more heterogeneous it is, the more maybe harder it will be to predict, uh which is dangerous when you want to scale. Uh but if you want to g really collaborative, where we all train our model together, so in the case of adaptors, we all train a in parallel together, in Yeah. case of matformer we each have a sub different subset of the parameter or in BTX a different subset that then is reliably merged as an M_O_M_
Oui, in those case like can we do really collaborative training where each of us bring their own maybe architecture, data, algorithm and all together while being
Predictable debaving. Um I think that's like something where you actually really need to think hard about like the compiler side of things and I mean okay how are you going to compile your programme when you have a very heterogeneous architecture? How do you want to rethink your kernels? Like I think some folks like made some changes to the MegaBlox kernel and like had a talk at this workshop today. Um and I think like thinking from that
Um it's like oh can we do this with like our existing approaches or do we need to make some changes before we do these types of collaborative things um though I think there's people here who have way more expertise on this part than me. So it's an engineering problem? Y yes, I I think it definitely goes super hand in hand. Yeah. We have a question here.
Regarding elasticity, I think uh, Jonas, you mentioned also that um prompt engineering is also a way of you know thinking about modularity. Um not only thinking about L_L_M_s but also like um models like um decision transformer and so on in in terms of uh reinforcement learning.
Do you think uh that this could be something that um changes the way we might um transfer also like what codes uh how our model works because we've just exchanged like relevant contexts um and could this be a more efficient way of you know uh also as a community exchanging um relevant
programming, so to say, of of them of the model. Um Yeah. I mean I I think that's what people are already kind of doing, right? I think there's every everybody gets kind of
Uh, those tweets of like, you are only on level one of your uh chat GPT experience, uh, you should step up your game with these five prompts or something like that. Uh, so I think everybody has seen those and to some degree, I guess that is a collaboration in terms of exchanging modules. Uh.
Uh, that that is like, yeah, specific to the desires that you have of using that model. Um Taking this a step further, um thinking about like could we develop architectures uh that are not um made for language uh but like sequence-based as from

like sequence-based, as for example decision transformer where you basically get an agent out of it by defining a trajectory, like the behavior, the future behavior is conditioned on the past trajectory and then we just, you know, maybe compress those trajectories and then communicate that. Do you think this is a like more efficient way of changing like updates for example? Like do learning on top of that?
I think that's a very interesting researcher actually, yeah. Nice, thank you. Um to to I I on the question of what the la it's exactly not not clear to me that we really want to merge all of the adaptator um I I think we take it as a as a basis, but
Is is a p the point of adaptability is to have some specialisation and it's not clear that stacking all the specialisation together is necessary. Um I think the um uh image diffusion community is is a good example of uh of how they really manage to nail adaptor uh based on like for example stable diffusion model where people have like some really small adaptors that do one use case and they don't need to stack them together. You can combine two of them together, but
Uh it's very plug and play. Maybe there is something similar in like the more large Yeah. language model space that we could do, uh Yeah. Yeah, uh I I kind of agree. I think
Um I I getting back to I guess that initial question um of of uh if if we have to do some kind of heterogeneous pre -training already and I it feels like that's over complicating from just you know from a pure future researcher action I think obviously that would be amazing but from a more pragmatic perspective I think
The whole workshop here shows that all of those steps are already super difficult. And doing heterogeneous pre-training is something that is unimaginable, I think, at the current time, just because we don't really know how to do distributed pre-training efficiently or like we haven't solved that issue yet.
But uh maybe maybe um yeah thinking of how to uh do heterogeneous uh post training then um
How to uh how to i integrate the the respective distributions um that people are interested in uh them designing heterogeneous architectures and then designing the the pre-training model to kind of cover all those heterogeneous things that might be relevant during during post-training um on the respective distributions and effectively being able to just integrate them.
uh with with existing algorithms. Um is this is a step in the right direction to then have enough knowledge to actually maybe do everything at once.
So the hardware lottery of Sao Kerk said that it's harder to beat the alternative, as we're saying, because it's just so well optimized. So distributed method, modular method, new optimizer, they don't work as well usually because you are facing like hundreds of years of optimization against you. So you will argue that basically a researcher should first try to beat that wall by going to the post-training, which would be maybe a...
adapting existing models, which would be maybe easier cost in term of time, compute and effect, before going to the pre-training and starting from scratch. No, what I meant more like is um if you're trying to uh design like tr pre-train on a mixture of data and have a different architecture for each portion of that mixture.
That is, I don't know for...
For a vision and language examples you have a completely different architecture part than or a specific subset of that if it's like snapshots of code versus if it's images of of cats I don't know and and trying to integrate all of that very dynamically it seems seems like yeah like or
Our code has different bigger modules and and all of that while distributing it across everything um seems like you know you have so many moving parts that you're trying to optimise for like obvious I I truly believe that that's necessary. Like you need to different distributions need different um different amount of capacity uh but but figuring that out, that size
uh has so many moving parts you have to define so many new scaling laws, that's just very difficult, um just from from the start. Yeah, I wanted to add that maybe it was already done to some degree in multimodal model of the couple last couple years when we tried to do it multi deep combined different modalities uh in different ways where we have maybe
pre-trained large models and then we kind of try to merge them together into one single big multi -modal model. We have existing models that are doing that and they they were trained embarrassingly parallel. Maybe they're not working together as one big monolithic model. That's another thing because they were trained completely independently. But then another approach when you
Have this bunch of adapters that combine different uh modalities, different aspects into one big model and then train it together. But then also that that one big model doesn't have to be one monolithic, it can be uh a set of experts. And then why don't you have uh a modality specific experts. Um
It can be not necessary modalities, we were talking about multilingual models and can be domain specific experts and so on and so on. So I think it it's done uh it's not done it in the sense that we have all the answers, but there are some research in this direction that started over the last years and it's gonna be interesting to see if it goes anywhere. Actually, yeah. Uh when when you ask uh collaborative
training or something, but but the term of collaboration in my mind first like why we also not think collaborative inference, because this actually allow us to n I mean think modularity not part of a one one thing, like a one monolith something. But we can have like a multiple black boxes. We we may not really also care about what are this, but um
We can actually I think still there's uh for example inference time scaling is one way one way to do that. But even beyond, we like uh I I don't wanna say like agent, but we can have like multiple different things that people trained. How can we use them
in a colloid collaborative manner efficiently is, I think, this still open question. Like we have multiple ideas about like simply routing inputs to train models. But I feel like this is not not really enough, you know, because we we need to have much more hierarchical collaboration between already the trained models. And I think we are still lacking thinking modularity in that that manner in my opinion.
Uh yeah, so getting back to Arturo's question, uh and also like uh based on what Olga has proposed, I would say that uh there are two different approaches, like at least in my mind, uh about what to do if you have like different model architectures trained on different data sets uh and that it depends on how you want to use the uh and like the final result. So if you need to have a singular model, there is like
Uh that's an open research question. So maybe you can distill all of them into one model. But the question is should you? So one approach which has already been proven to work to some degree for like LLMs in general is you have a kind of a router that dispatches your like request, whatever you want to do with a model like you have multiple models under the hood which are specialized. So it's kind of an expert but built post-hoc based like purely on the fact that you have
those multiple like models for modalities or for different domains of data so like that's the simplest solution we could have obviously there is a lot of potential for additional research because like we could build them hierarchically we could also like improve it in other ways but I think like the major dichotomy is like on what you decide to do with all of the models once you finish the training
Uh I wanted to add and why why not uh inference, emerging on the inference time uh branch train merge is merging on the inference time uh and the problem with this it's not fine-tunable. Uh that's why we had to go to further branch train mix. Uh because when you everyone wants in the end fine-tune on your specific task and you have bunch of models and how do you fine-tune on your task this bunch of models. So
very very quickly. Uh yeah, I th t uh totally agree like actually I was also thinking in that that way, but even beyond like a branch chain mix style modelling, because still you are building a bunting, right, uh af after you have experts. I think even beyond like having completely separate

Even beyond like having completely separate experts routing them or like routing or high some may composing them in in some may uh I think that that's the way to go in my in my mind like I think we should really open this connection bounds, maybe break it and uh like it define the the modularity or like collaborative um how how do you say like collaborative inference in the in that manner. Uh I think it's it's uh quite promising in my mind.
Um so it's two parts the the first part I'm curious what is the consensus among you maybe not now maybe only in the future is it important that an expert or a Laura is specifically good at something we as humans can comprehend or is it okay if
An expert is just good at a bunch of stuff that we we don't even know As humans, we don't even know what links these things together. And if we thinks of if we think of uh experts in this way I think it I dunno I'm I'm I'm wondering the second part is Is this helpful because then we can think of all of this as a way more of a common heterogeneous problem that then
Maybe there's less of a proper separation between things and maybe that helps for distributed learning, because everything is just so a way that the ways we learn them of course, a weighted um mixture, a mixture of experts, the same way we think of uh Gaussian processes uh with the with the Dirichlet distribution. Like is there a way we can think about about it this way?
It's a good question. Um I I I th I think it boil down to defining what is specialisation in an expert. Um you pon you ask a question about should the expert be like a human expert? Uh uh uh how how how loud you that no, I think uh we shouldn't have al uh lit as mu as less structure as possible. So that we can have like uh a nice algorithms that are going to merge. Um um I I think m mixture of ex-pert is actually uh a weird name because
is it's not clear that there is a clear specialization. It's more like a distribution. Uh but I think the question of specialization and and and expert is very important in a collaborative and and distributed setting. It's not clear right now that model um um that model needs specialization. It's like actually it's probably around like the best model are kind of best at good at r a lot of tasks at the same time and ev every single the same time. And I think asking the question of
of uh um can we cr actually create specialisations that is useful for moving capability is probably the the most important question to know how all of this ethno use inference or training are going to evolve. Um so basically the question is uh do we make the modules interpretable or not?
And I think it depends on the scenario that you're interested in. Uh specifically for efficiency purposes, interpretable modules are desirable because we don't have to deploy them on all devices. Uh whereas if you just throw everything you you assuming you've come up with a system that um
y y that scales uh and you can have indefinite modules um you then you don't care right um it should select all of that dynamically so I think there's a pragmatic answer that um you should sparsely activate them uh meaning that for sparse activation
You do need some sort of specialization, because um specifically if you train an M_O_E_ with load balancing loss, an example will activate all experts, full stop. Uh if you don't want to deploy all those experts on a device, uh that becomes a problem, uh because that's how you trained it. And so
You know, I think that's a more pragmatic way of thinking this, about this. If you know a specific expert has learned a specific distribution, like in this version of MOEs that you say do what you want, and then you do post-specialization, you ideally want to identify some experts that have learned vision or something like that, because that's how you can adapt it to a new domain.
So yeah, I think that's my answer.
To answer this question I actually wanted to refer to a poster I saw in this conference, very interesting in my opinion and uh the uh so we usually enforce some uh expert specialisation on the model but it actually can occur naturally in the large pre-training. So uh they proposed a model um with some crazy number of experts like two hundred or something uh that they pre-trained from scratch and to stabil
That experts all we know these problems of way under close repo with distribution, they propose to use actual two routing uh models and then we combine them together and they show that that it stabilises training. But what else uh cool in my opinion that they show it that
The experts actually specialise in domains, naturally. And then they show distributions by task, and that they turn off some of the domain and and they're uh degr degrade on specific domains but not on the others. So maybe that's something that occurs naturally like order from house.
Um yeah, so uh I will both agree and disagree with what everyone said, uh like everyone uh here. So like from the point of view of like having interpretable or non-interpretable uh bullet experts, definitely if we approach it from just like the beta lesson point of view, then it's uh more beneficial to have like less uh enforced like inductive bias into the expert because
we'll learn everything like automatically and one of the reasons why deep learning is actually like dominating a lot of fields right now is that we don't do manual feature engineering. So from that point of view I would agree that well like if we were to view it strictly from that, I would say that this is the way to go. And also just like was mentioned right now there is
A way for experts to specialise naturally purely based on the fact that like if you have disparate domains of data in like this high dimensional space then it's beneficial for the model to be able to specifically like point to that part of the data and to allocate a specific expert to use this so like it's like from the learning perspective it kind of makes sense. However I wouldn't completely discount the interpretability aspect of it.
So like even if we don't need to like even even if we can filter data out like by natural means it's still important like and helpful sometimes to understand like which parts or maybe like to identify which parts of a model as in like in terms of modules were tasked to learn a particular
like a domain in the data or a particular topic. Uh this might be helpful for reasons of just like understanding which parts are learned better. This might be more helpful to understand the capacity that needs to be allocated to a particular domain. So again, well I w will agree that it depends on the final goal.
I still have the feeling that we are ove over using the term expert here. Um I think mixture of expert uh the expert is mixture of expert is not as specialised as we think we are, even though they have some kind of routing, um I think actually s s specialisation is is is
Specialisation is is is a core uh feature of of learning uh in general. Uh I I think we should rather approach it from this angle rather than from the roaching angle, which I think is more uh a distribution of the computation rather than uh true specialisation. Um I think what we want is um probably uh self-improving uh uh models that can naturally specialise on some task. And in this in this setup then it kind of makes sense to have
uh distribution of a million of experts and each of them will hold real specialization on some on some task and maybe collaborate with each other. But I think that current set-up of mixture of experts right now is is kind of really far away from this uh ideal Yeah. exp expert and specialization scenario. Yeah, I I don't disagree. I I think um th but but the the I I an MOE is
a very big term. So if we think about MOEs right now, it's specifically a sparse MOE that does token level routing with load balancing activated. So then I agree, like it won't learn anything specialized because the load balancing loss enforces just sharding across devices. But an MOE is also if you think about training
Adaptors across the collaboration space. You are also training an MOE where the router is the human that selects the respective expert. So you know there's like a
There's a spectrum of MOEs, so that term is kind of very broad and depending on how you train the respective experts, they do have to become specialized.

They do have to become specialized and they can just learn a specific task. Yeah. I wanted to take that idea to the extreme, actually. So yes, like the term mixture of experts, the term expert is overloaded a bit, but...
I would say that, again, the specialization is a necessary feature of learning. And if you think about it, even individual neurons in a neural network, like even in a feedforward layer like on MNIST or whatever, they already necessarily have to specialize in some way to get...
uh specific features activated. So I would say that uh experts in the mixture of experts model like regardless of the routing algorithm are specialised in the same way that neurons like in a feed-forward linear layer are specialised, just in a more uh coarse-grained way. We do not always understand what that specialisation is. And again that's a like a property and a benefit of deep learning benefit. Uh but that doesn't make them specialised less. We just yeah don't understand it.
Do you still wanna ask your question? Just a quick one. Sorry, this is important. Hi, so I have a rather general question. So
Um we've been talking a lot about like decentralized trending decentralized inference but my question is do you think the current research in AI in large language models is going to be decentralized or centralized because we've been seeing like GPUs monies are just flowing into big companies and it sounds like students staying academia which seems to be lacking a lot of resources so what do you think of it?
Um I think that's one of the reason why decentralized has not be that much developed since the last year is there were no strong incentive in making it happen. Uh but um and it's something I was trying to expand during my talk, I think things are changing, both at the very large scale and at the frontier and both at the academic level and and I think both will actually naturally evolve with something more distributed and decentralized, mainly from a cost perspective and from a ease of use perspective.
perspective. So oh yeah, I would argue at both level we are going to evolve for a more distributed setting. So, yeah, we have seen some signs in the industry but not that many of them, well maybe uh uh enough, but not as many as some of us would like to see in the academia and like in the open communities.
And I think I agree that this is mainly a question of tooling that's available and which is not scary to use, so to speak. So as long as people understand that those methods are available to them and can be used to produce better models or just to experiment at a scale that was not previously available to academics.
or to independent researchers, then I think the uh the field will start moving in that direction. Because yeah, again like right now everything is kinda like maybe not stuck, but like very used to this standard way of doing things. So the question is like how to move it to the other part of the spectrum.
Uh I've got to ask a s s kind of connected question. Uh I think all the things that we do uh including the decentralised training, including the modular approach, it's
Depend partially on the technical side, the thing works, and partially on the like each individual making the decision that I'm going to contribute my data, my compute, my uh module artifact to the thing and making the decision that I'm going to try this instead of GBD. And so
Also, to make that decision, to make that decision, they also need to know the thing exist in the first place. So uh do you have any thoughts to share on both like getting the thing known and having the incentives right that they will be accepted? Um I can go maybe on this one. Um I mean I think
Um beyond uh beyond machine learning, I think there's a world I've seen multiple uh very successful collaboration happening at the individual level, uh things like Wikipedia, things like internet have kind of naturally emerged of uh collaboration. Um I think the same could happen in AI. I I think that um the fact that
AI is in a computer so expensive make it that probably you need you need to carefully craft incentive and probably economically incentive and people to collaborate but yeah some things that need to be engineers a collaboration to make it work it's a definitely non-trivial problem
Yeah, I think one big difficulty is that during pre-training you have to come up with a version of the architecture that is not going to hurt anything else in the mixture and that makes it very difficult to do that.
Depending on the domain that you're an expert in, you might want to make nuances of architecture changes.
And that's um that might ha hurt the performance on many other things. So here I think is a interesting direction where um you know you can define these adaptations uh as an architecture change and coming up with a routing decision I'm doesn't have to be the router that we have in mind all the time, but
some kind of decision automatic decision process that selects their respective architecture at the correct time making it much more collaborative because individual teams can optimize the integrate their domain knowledge of the data but also the types of features that are processed
very very difficult to to solve that but I think that's kind of how the past research has looked like that somebody focused on one specific task that they're like very interested in that they're an expert in and so they came up with kind of that novel LSTM architecture that was designed for that specific NOI task for example
Um, and then they publish that. Uh, and now we've converged kind of on one specific architecture. Um, so yeah, may maybe one has to think about that direction again. It's very, very difficult. So I learned a lot from all of you.
I want to understand where do you see us heading. Like I don't want a very short term view, but probably next three to five years because lot of compute is going to become abundant.
HVMs are going to go up that are attached to GPUs and the network between GPUs as well as between servers is going to become faster and faster. So there are a lot of things that are happening. For example, Muan optimizer, right? So Kimi published a paper that with Muan optimizer, they achieved the same low loss with half the number of tokens. That is half the number of.
FLOPS, right. So there is probably a lot of money on the table that is still there. On the other end people are cleaning up data. The way fee papers fee from Microsoft showed you can achieve same MMLU with much lower data if it is curated properly.
And last but not least, uh while M_O_E_ models are great, training them is hard. Like M_O_E_ models achieve uh high M_M_L_U_ at much lower compute, that's great. But after that uh running inference with them at equal efficiency at which say for example DeepSeek is running is extremely hard. So NVIDIA is trying to introduce libraries like dynamo and all that. So all those things are happening but that is super super complex.
Thanks. So do you think that in next three to five years the compute will become so abundant that we will all forget distributed training and all these complexities of mixture of experts and simply be training only dense models with very nicely curated data and maybe better optimizers like Moab.
I think there is room for both in the sense that we are probably going to train smaller models that can be deployed everywhere, but at the same time if computers become cheaper and more abundant and interconnect become better, why not train bigger model? So I think both will happen at the same time. But I think that decentralization and heterogeneous compute will probably have a big impact in the ability of scaling model.
Ah again I think all of the big labs are are are are are singing as well in this direction is like how to continue scaling in the current paradigm and and the the obvious the answer seems to be to uh go a little bit more distributed a little bit more heterogeneous um Yeah, actually.

Yeah, I actually agree on that point that the more compute we have, like there is a tendency that the more compute you have, you don't have idle compute regardless of how many you have of it. So like if you...
Uh if we are getting like uh more efficient chips which are able to perform more operations and they are cheaper then it will mean that we'll be able to run like maybe a more like computer intensive operations even as part of standard deep learning or inference which means that the capabilities that the models exhibit right now will probably be
uh continue growing at least to a certain degree so yeah my point of view is that uh this trend like we've seen the moore's law we've seen like other trends in increasing compute and always the industry regardless of like whatever that is like computer graphics whatever it has kind of
Uh cap tap it z it demands so that uh the new uh every new generation of compute unlocks new opportunities for uh like next generations of their users. So I think that's what's going to happen. Uh what exactly are we going to benefit from? I don't know. I think uh I don't think anyone knows.
like within three to five years, but definitely it probably has to do something with decentralised specifically due to just like physical reasons. Because it's hard to put a lot of compute on the same like uh in a very dense way uh without suffering too much from like overheating and so on. Yeah, I mean uh I was actually going to say something very uh similar line.
Uh like I think two years ago when the same discussion happens, lots of people would probably guess, okay, you capabilities are increasing, probably we will have smaller model with a much more uh higher capacit uh c capability. I mean in a sense it happened, but at the same time we are training much bigger models at the same time, right? I think this will just go the same way. Because we want higher capability,
Probably require or I mean, of course algorithm in inventions will uh allow us to do l uh more with less. But still with the compute we will probably co train s co continue training larger models. But the smaller models will also increase. Or like a capabilities with smaller models will also increase. I at least in in my view, this this is already happening, and this will continue happening uh I guess. Because now like if you if you look at Llama four, there's
Very small active parameters with the high capability, but also in total number of parameters is very high, right? Um Yeah. Uh yeah, alright. Cool. Just one last note for those who have posters, please take them down. Um I would like to say thank you very much to our speakers. This this was a very lively and amazing discussion. Um please join me in clapping for them and thanking them.
Alright, this concludes our workshop. Thank you very much for coming. May maybe one last thing is uh there is an after party event that is organised and you're all invited to join uh and if you if you are not already on the list, feel free to reach out to me or Johannes, when you can give you the address.
