# Workshop 23988

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

> 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.

We'll be right back.

Okay, good morning everyone. Uh let's uh let's get the ball rolling. Um thank you so much for attending uh the workshop. Uh this is our first illustration of scope uh on scalable optimisation for efficient and adaptive foundation models. Um so yeah, uh I think to give you a little bit of history, uh
So we kind of started kind of the idea of having a workshop. We got together from different university and different conferences, different industry, and we are happy to have the first iteration of our workshop at ICLR 2025.
Uh we're also really really grateful for our sponsors, Google, DeepMind, and Intel. So let's start a little bit of um kind of uh the organiser committee. So we have people from Intel, Google, DeepMind, uh CMU, um Oxford, all over the board. And uh hopefully we can kind of continue this uh workshop for other iterations as well.
A little bit of uh statistics uh about the workshop. Uh for the first iteration of the workshop we received uh ninety six high quality papers uh across different domains, as you can see. Um M_O_E_, Mamba, um R_L_ and K_V_ cash and all and so on and so forth. Um
I think the next slide might be I think this one is better. Uh among these papers um we accepted uh around forty nine percent of the uh papers as an poster, which you're gonna see in the evening evening, right? Two sessions, yes, yes. Um and then we have around kind of nine percent of them uh we accepted as an oral, which you're gonna hear it today.
A little bit about the reviewing process. We try to kind of recruit um kind of uh a lot of reviewers so we can kind of provide uh high quality feedback to the uh sub uh to the paper uh to the authors. We received we had like around uh more than hundred TPC members members for review process.
And actually we also kind of appreciated the service that the reviewers provide more than we accept we kind of recognize 11 of these reviewers as an outstanding reviewers. Among all the kind of review process I think we had around three high quality reviews for the papers and we are hoping that can provide good feedback for the authors when they want to extend their paper for future submissions.
So um we have a great lineup uh speakers as the keynotes um we Mm-hmm. have people um so we have like a people from Nvidia, Hong Kong, Meta Reality Lab, Oxford Texa uh uh Texas Austin, MetaFair, uh University of Singapore and then uh Nanyang Technology University. Uh so you're gonna you're gonna hear about the keynotes across the kind of uh workshop both in the morning and also in the evening.
And um I don't think we have the talks here, but like you can check our websites for the uh title of the talks for each of the keynote speakers. Okay now that's yeah, that's the thing that I wanted to s talk about. Um so uh for the oral presentation, we have two oral pr three oral presentation in the morning and uh we have um five six presentation in the afternoon.
Um, yes. I think each presentation is around 15 minutes, right? 10 minutes for five questions. Okay. Regarding the schedule, we have two poster sessions with 28 posters in each session. I think it's going to be around the room. Uh, and then we also have a panel discussion, uh, which all in person.
Uh we're gonna have it uh in the panel discussion and then finally we're gonna have a closing remark. Okay perfect. So we also have an award because of the funding that we got from the industry. This is great. So a little bit of drum roll. Yes.
Um so we kind of try to kind of uh recognize the mm I was just standing papers and also runner-up and also we have an honorable mention. These are the papers that we recognize as um uh kind of uh outstanding papers. The first one is over-trained language models are harder to fine-tune and then we have the runner-up paper lantern plus plus.
enhanced relaxed speculative decoding with a static tree drafting for visual autoregressive models and finally the honorable mention linear MOE linear sequence modeling meets mixture of experts so let's go a round of applause for all of the outstanding papers perfect I think that's all I have right yes so let's just start with the first speakers
The first speaker is a professor in uh computer science and engineering at the Chinese University of Hong Kong.
From 2018 to 2023, he was a principal researcher at Microsoft Research Redmond. His research interests lie in model compression and efficiency, deep generative models and large multimodal language models. From 2021 to 2023, he led several teams to productionize these techniques for Microsoft OpenAI core models, Copilot, DALI, ChatGPT and GPT-4.
Um, I think with that we can.

Um, I think with that we can have the speakers. So is it is it this this one or they're gonna switch. Okay. So while you get switched up.
Okay, cool. Yeah, uh let's let's get startings. Uh first of I'm we're honour to be the first speaker here. So I were told yesterday that uh this is the very early morning talk, even some student cannot attend because they need to uh get up uh around seven o'clock and uh get subway to be here. So let's get started by uh today's talk, building efficient and scalable foundation model with linear and sparse architectures.
So uh here's the agenda of today's talk. First I will uh briefly talk about the background of the ef efficient in uh translation models. Uh
And the second part uh uh I will introduce the how to combine the linear and uh M_O_ uh sparse architecture uh to choose our efficiency. Uh standard look like a linear M_O_U_ which just get a word. Uh thank you for thank you very for f much for the communities. And uh our new work M_I_M_ mixture of memories. So next uh uh we will talk about the how to do like an initialization and specification.
for the foundation models. Uh two uh representative work I will introduce about uh how to how to make the M_M_s uh linearize the M_M_s w where it's like gated recurrent structure and also clip M_O_E.
Okay, let's go to the first part, uh the efficient issue of foundation models. I think it that's that's is the obviously uh challenging for the foundation models. Uh right now I think uh if you look at the uh the figure here from the very earlier like a bulk kind of models to the GPT like models or to even larger models, uh all the models with
almost like more than like billions of parameters and train on 10 billions of data. Training such a model even a very reasonable size we said like 7B models will cost more than like 10 minutes. This bring a lot of challenges not for the training but also for the efficient side.
This last year we see some new trends in the AMS or the foundation modes which people can uh making the scaffold for the
Pertaining to the inference stage, which we call this reasoning model, actually a reasoning model have this embedded sale chain to the training with the AI. When they do the testing, you use kind of like a test time inference, which you can make the model to like an expert level in some domain like math, coding and reasoning. But still,
We save some time for the pre-training, but still for the efficiency model, we still need to improve the efficiency. Uh this is two observation of the efficiency model. First, by uh increasing the training time, but the training or testing time computing we can uh geometrically make the model better. That means still for the testing time computing, we still
It use a lot of computer resource. And another observation from the generic tokens. So people find that because the watermark get a lot of like COT tokens, by increasing the COT tokens in the reasoning step, the model can be better, which said, okay, for the, even for the
Task time inference you still spend a lot of the computation resource. That's the reason is we moving from the pre-training stage, scaling pre-training stage to a scaling of task time inference stage, we still need the efficiency of foundation models. So today we're focused on how to how to improve the efficiency of the foundation models from architecture sides.
Uh these are two kinds of like tactics people usually do for to improve the efficiency of foundation models. One is what we call sparse model.
A typical example is about the MOE models. So the key points of MOE models is instead of active the whole parameters in the foundation models is only active the partial parameter of the foundation models for each input tokens. Within this like a sparse activation, the model can choose some efficient set in both pre-training and inference stage.
Another example is about the uh linear s uh synchrony modelling, which uh improve the uh uh the efficient saving uh tuning part. So we say some ex uh examples like uh uh like linear time training or cost-matter inference. This can also uh improve the efficient saving for both uh for training and the ta uh inference stage.
So our talks today were focused on how to use these two kinds of techniques to improve the foundation models. First of all we will talk about some work building from scratch.
So the first one is the linear OMOE, uh which I think uh we will have some uh paper talk today to give more details. Here I just give some like quick updates. Uh so the reason why we build linear OMOE is we want to build a framework to integrate both linear and uh sparse architectures. Because for linear attention we save
Uh does many many like options for for example for you can have a lighting attentions you can have a red nets you can gala or delta net the many options also there is other uh linear morning master that's S_S_M_ which very classical member and also have the linear R_R_M_ right I think uh R_ R_ or other options. So there is like a many many like a linear
modeling uh techniques and also also have some options. So the idea of we build it linearly with we want to build a framework for people to using or combine the two techniques together. Okay, so uh the framework here suppose a lot of like uh you can say a list of like A_S_I_M method.
Including what I mentioning, like linear R_E, like a state uh state space model or some linear R_N_ also we have a framework to suppose both dense and the sparse uh architectures like including the dense model and the M_O_E_ models.
So this is the idea we why why we need to oh why we want to build this linear M_O_E_ framework. And uh uh the whole framework is building for a Mac trunk core. So based on that we building uh
different like functions from the data parallel like actual parallel also you have the training framework and you have other like distributing the optimizer or other options and on top of that you can say it integrates a different module for the linear architecture and the sparse architecture right so you can say it's a variation of like as models for sparse model you can say
Because M _O_E_ is a the general ideas. So actually different uh uh different M_O_E uh there is some variation for M_O_E_ model, like like the deep-sake M_O_E_ all with that Q_ and M_O_E_ So uh our our framework also support different kinds of like uh M_O_E_ architectures. And uh you can easily integrate them. So here's the uh
With the thousand implementations, uh you can see that the the current uh framework has posed uh many uh I_S_ method and also different uh like uh I_M_E_ architecture just I mentioned. So you can check the uh website and find the real implementation and the the framework.
Uh we also show some like uh uh improved study based on how how you can integ easily integrate it to uh act actuator together and to train the models. So here you say uh this one on the on the right hand is uh the the the figure for the uh training. So the training is train the uh
There are points to rate billings active and there's two billings M_O_E models. So you can say the framework can either train the model well and even compile with baseline there's a small gap.

So we basically just small gap. Interesting like uh the framework also uh suppose some of the hybrid uh uh architectures which means you can still adding some full attention to your model to true better uh like performance. So the hybrids uh you can you can choose the hybrid range like you can use like ten percent or twenty percent of the full attention plus some linear attentions. That's optional.
So you can see by integrate some like a full attention to choose a hybrid algorithms, the framework actually suppose it well and the training can get some method which close to the baseline method, which is full attention. Okay, here's your...
As a as a general impasse study about the the how how the panel works in the efficient side, you can say uh the gray line here is the the base line which you said like full attentions. And for other like impenetrating with uh linear attentions, we can we can say it's almost a true like a linear uh efficient save but with different uh like a batch size. And also this is some uh impasse study about the decoding lens.
Uh yeah, I re- I re-ign here I think uh uh we have another also where we she we talked much it had about to the the the method. So here's a January show uh the hybrid method and also the linear attention method or two comparable uh performance with a baseline. Okay. Uh that's that's finish our first talk on linear M_O_E_ So let's move to another work.
How to better combine the idea of SparseD and Linear?
nonlinear narrative. So the work called the MOM, mixture of memories. So the motivation of the work is if we can say that the current transformer and the nonlinear recurrent method there are some benefits, right? Transformer will give you less efficiency but more stability about the performance but the linear function is on the reverse.
So by integrate the linear sequential modelling we observe some like uh some like uh uh drawbacks. First is uh uh the SM method also limited and fix the memory capacity which Mm-hmm. uh for each tokens we can generate uh just assign one single memories for that.
And also uh this memory inference issues. So the I_N_ like a usually progressly uh graduate update and the sometimes over writes and forget the history memories. So this the two uh jog tracks when we use the R_S_ method in our paper. So uh the M_M_ architecture uh which we we try to combine the idea of I_M_O_E_
and the Nyström dimensions. So we want to build the M_O_E_ like Nyström model method to achieve the balance between the uh efficiency and uh performance. So the idea is instead of like uh the single-memory linear segregation modelling, which we have said just as that single-memory to every tokens, we use uh
Router, routing-based method, which like MOE, will route different tokens to multiple different memories. Based on that, we can achieve a good balance between the efficiency and performance. And this also, as I mentioned, can get the two challenges done. Expand the memory capacity and also it brings some sparsity for the linear attention. So that is the overall...
Architecture design and idea of the MOM framework. Okay so in practically it's not difficult to integrate MOM into any linear programming model. We showed a lot of like linear modeling method here. For MOM so the update stochastic kernel modeling functions is look like this. It's very straightforward if you integrate to any
uh current or use any current uh uh air smasers for uh for for implementations.
We we try to show some like a do something practical start here even it's not facial work first the options we try to kinds of like models use a transformer architectures why is only like a 340 minute parameters training on like a 15 bit tokens
And we use a slightly larger uh models with one point three billions parameters trained on one hundred billions tokens. So if you say uh all the baseline and the comparable method here
Uh the first slides the the pi transform based method, and other is uh other linear or uh linear modelling method. You can say uh the M_M_ master actually scale very well. Uh it's it's almost a true the bad uh almost all the bad uh the best performance among all the baselines. But uh I think all the baselines it was similar like uh uh Huh. computational efficiency.
So here's a second work about MIM. And also we show some like the efficiency of the MIM by compiler training loss and decoding efficiency. Still, I think this MIM model is achieve the best performance with linear modeling, but it also can bring you some efficiency compared with the full attention method.
Okay, here's small uh example about the appalachian study by by extended the decoding length and also uh choose uh uh how how to choose the hyper parameter of uh the the number of home memories and active memories. This is like a
Hey how you design your M_O_E_ models with a number of experts versus a number of active experts. Okay, so this is very interesting. Uh also we yeah, I will skip here and I'll take here. Also like M_O_E_ we want to observe the activation for
uh experts for for for each layers, here also have the similar observations. So you can if you can say uh we plotted the activation functions for each layer for s each memories, uh so if we say the memory load of balance, because for expert we have the memory load of balance, if you say uh the memory load of balance for the M_M_M_ uh masters, uh a good
Size is get a almost a very balanced memory, a lot of balanced for higher layers. Some uh I I mean it's not good, not balanced, but uh there are some divergences for the lower layers. So this is a very similar observation as we did for the M_M_U_ models, right? So which which said that the M_M_ uh models well scaled uh given different size.
Okay, this is our second sections. So we will go to the final sections about the userizations less, about the function models, a foundation models. Uh so here the idea is sight different than from the second-power wave toolbox. For the second-power wave toolbox uh we design some new architectures and uh training from scratch building the foundation models.
That's the key idea of some part. But for the third part, uh which is slightly different, because we already have a lot of like wild trend uh for or wild trend uh uh for attention models or the good foundation models
So the ideas why, how can we find some method to directly do some like linearisations or specifications of those models. So here we bring to a work we recently done, one is this year and another one last year. Uh the first one is the we call the Lagrangian. Uh so chemists like an interactions uh ems.
for the language work we try to answer three questions. First, how to incorporate that like additional gate modules to the neuralizations and the second question is what is the suitable form for neural attention and uh uh uh neuralizations. Uh third one is about the the training stage. Because you need to kind of like do some fine tuning or continual pre-training. So how to specify this process uh to
Rely on some of the technology like these stations.
Uh and this is the metaphor ligers. Uh first uh as we mentioned, we were putting the gates uh putting all the gate uh this construction. This were allow us to fully reuse all the pre-trained liger M_s weights from the from adding like uh pre-trained uh foundation models. The second part is uh normalize the feature mapping with the non-parametric way.
which still do have similar benefits.

try to have similar like benefits. The third part about the answer the third question is how can we get some bio-train to some kind of like fine tuning or tuning for training efficiently. So we decide to use kind of like a lower fine tuning methods. This is like a significantly reduce the like the consumption cost and also uh without any like destabilizations.
For the attention design, like I use some like intra-layer hybrid attention which allow you to use some gator recurrent modeling and also sliding window attentions with the larger parts and this will true like some linear complexity if you really do some calculation models and as I mentioned, it supports the hybrid and linear actions.
in the models. Here I briefly show uh how the ligature like a better performance uh compound with other baselines with less training tokens. Uh so if we say compound with the uh original baseline with which we said like mixture seven beam models and also uh llama eight beam models. Uh the ligature master also use a very small training step and the tokens.
We can choose almost the same performance as baseline, but uh uh significantly better and as other comparable uh mnirration method. So this is for Liger. Uh here's more examples about Liger training uh with less tokens uh but comparable performance uh with other with other either base style or either comparable method.
Uh and here is the show more down how how you do efficient and scalable uh training for learners on different uh on different models. Even you can say for the decoding length we increase the decoding length from a 1k to 32k which why is the training for the current or the reasoning models. Yeah but learners still show very good performance which here.
uh the orange line. Okay, so we get the idea to say okay for a while training the foundation models actually we can use like a linear relations to make it uh becomes a linear kind of models to achieve efficiency.
And how can we do that for the sparse models? So how can we can use similar kind of idea to get a sparse model with some while training the foundation models. So the idea is yes. The work we introduce like clip we which do similar kind of things.
So first I think I don't need to introduce more about Calyp right. So Calyp is a very flexible foundation model for multi-model intelligence. For example in the
We all know the money model kind of like bird models like lava. So clip is play a very unique role, which is a bridging called a part to encode the image or the video tokens to integrate the AMs. And also clip is also brightly used in adding other like functions like image retrieval.
uh like a uh image search or some like uh the the image generations multi-model generations so Clip is very important
But that usually when you use clip, its size is some like a construction method for your master, it should have some unique size. So here we try to say, okay, if we can build a clip MOU models, which you can have better performance, but for the inference side, it will have a similar computation cost with other
with the single clip models. So here is the idea. We will build a clip MOU part which for the clipping models. So uh the way to build the sparse the MOU clip models we call the upcycling. The idea is we
use different uh uh initialization the convolutional module single modules. For example we decide to build a clip MOU with eight experts. So where we'll use eight uh clip base modules with different and i like initializations. So you can say uh the initializer based on some we call them multi stage uh pre-training.
And uh you can say for each base model here, actually is uh initial by different ways. So based on that we uh build a sparse clip models. And the way we are train the routers to slack uh different uh active the like act uh clip base models. So this word
Uh it's like you train a M-O -E M-S, which have a router to select different experts. So that's a way to train the M-O-E clip models.
So, uh by doing this we still have very uh good performance models. I will and now show all the performance here, but you can see uh compile with the baseline uh clip models which um a different uh integration layer and different uh benchmark like M_O_E_ V_Q_A_ task Q_A_ probable M_ and one bench, uh the
New clip MOE model to better performance, but consider the computational side, it has the same computing cost with the original base clip models. So that's, we do some kind of like a computation, comparisons. In tracing in like a
People were asking how you train the MOE clip model because for the MOE model you still need additional training used for the routers right. So we did kind of like calculations. Actually these were also very efficient because when we do kind of like a training router here you still do kind of like a sparse training because each step we were trained just two routers.
So that's a that's a folder cost for the M_O_U_ trainings. Okay, so uh this is it's a talk about day. So m I will stop here and uh uh to answer some crushing. Some crushing? Okay.
Anyone? Any question? Mm-hmm. Okay. So I have a question for the LIGAR model, that is a variant of the linear attention model, right? So we have also seen like linear attention model sometimes uh does not perform that well for long sequence, like for example LOLCAT.
Um there are uh instances where they could not perform similar to transformer models for longer context processing. So do we have any comment on that? Um yeah, so that's a that's good question. So usually I think uh uh I haven't mentioned it for for the linear attention models only uh what's called ASR models
Actually we found that, yes, similar observations for longer sequence like uh either decoding side or encoding side. Uh if the sequence more than like uh uh sixteen K or more than that, uh the we will could say some decorations for all the uh uh all the all the linear kind of models. Yeah. Uh I say
uh this this can be divided two methods one is you can use some hybrid attention method as i mentioned you don't need that kind of full attention the weights but maybe like 10 percent of a hybrid with the full attention that's where true like a comparable method with the full attention method on the longer sequence uh we have a recent work called a transmembrane which is kind of like a
Integration of the two methods are like this. So we test on the Langar sequence even with only like 10 or 20 percent of the full attention hybrid models, it's it get a very comparable result with the full attentions. So as I've say, pure attention uh maybe folds on the Langar sequence, but yeah, you can try to use like uh uh higher transitions. Uh for Langar I think that it's same thing, when you do the linear relations you don't need
need to linearize all the attention layers you can use some like a or leave some attention part for attention part to make it hybrid yeah. And for the hybrid architecture like, as you said transform based, so do you like um convert it to linear for some layers starting from a transformer or you pre -train with the hybrid architecture from scratch? Okay actually

Okay, actually, yeah, there's many ways to make a hybrid models. Actually for Transformers, we use another technique which says not purely like to leave some layer not linear kind of like, but it's trying to bridge some...
So the two the MAMA and also for attention within a layers so that that different but as I mentioned that there's some straightforward way to just do like escape layer to to make a hybrid
Next speaker is Zejun Liu. She is a Senior Research Scientist at Meteor Reality Labs. At Meta, she has been leading various efforts in efficient pre-training, fine-tuning and inference of foundation models. Her notable works including the recent efforts for on-device LLM serving like mobile LLM, LLM-Qt and SpinQuant.
have a cumulative citation count of more than four thousand six hundred. She has also co-organised successful workshops on efficient training and inference in various top tier venues. So let's have a round of applause for the speaker and you are good to go.
Thanks for the introduction. Uh hello everyone, I'm Zhecheng Liu. Um today I will going to introduce some of our recent progress in meta for the efficient uh M_ for training and the uh uh M_ compression and uh post training.
Um so our team has multiple research pillars focusing on model efficiency for our L_M_ quantization, parallelization, to small scale model training such as mobile M_ and to data creation and generation. Uh we also have efficient visual-like models and the agenting system design. Um in today's talk I will mainly focus on L_M_ quantization and parallelization and I will soon go to a a novel efficient post-training method for thenual
models. So you must have seen these kind of figures many times, so I don't need to reiterate how important it is to compress large models and how big it has grown in recent years.
So you can think today's ARM as a luxury sport car. So it is incredibly powerful, but they consume a lot of computes like the fuels. So you wanted to take the car into a bike lane. But what if we could shrink the engine and drop it onto a scooter? It can be lightweight, efficient and accessible. So this is our NOC.
To start, we want to have some models that can listen, chat, judge and understand, but all while running locally in a private device. So it is not just about optimization, it is making IEMS more accessible and it can unlock more scenarios in the real -world AI applications.
So in our so it's among many compression techniques quantization is some one of the most effective method uh so in the post-training we can use a 4-bit to represent a 16-bit weight so it can result in full-time compression and if we choose a good quantization method uh this can we can we will see very little accuracy loss.
So one of the major challenges in AM quantization is it contains a lot of outliers. So outliers will dominate the quantization range and make the intermediate number values receive very little precision.
So previous works like Smooth Quant, AWQ, those great works will trade off the outliers between the weight and activations. In this work, we are developing a new method using rotation to remove outliers. So we found that so the rotation, it can blend outliers with each other in different axes.
So we concurrently find this outline removing with rotation and there's some
What is called quadrodes they also found that and it is a great work. So we can intuitively see like how the outliers got removed as the rotation. For example, in a 2D case, in figure A, so the outliers, the S2 has more like larger values than S1. So if we quantize S1 and S2 together, then S2 will receive very
dim material quantization levels and it will restrict the S2 position. So if we rotate the distribution by 45 degrees, then S1 and S2, they will have similar put uh the distribution will have similar projections, similar range projections of both S1 and S2 axes. So
In this way we are actually representing the same distribution, but in a different way s but we can in this way we can quantize the um quantize their projection in different axis more easily.
So another thing of the rotation is it can benefit both weight and activations. We can see like the output equals to activation times weight transpose. So we can just insert r between a and w and we can group them together. It is numerically identical but both of activation and the
which become easy to quantize.
Then we can extend system from matrix level to network level. We can see transformers are actually rotation invariant in cell in cell short pass. Like we can rotate, we can start from the embedding output and rotate it. Then then we will got a rotated activation. It become easy to quantize and before it entering some
Attention or F_F_N_ We can rotate it back to keep it numerically identical when going to those um non-linear layers.
And the same, after the commutation, we just rotate it uh to to be the same as the shortcut pass, so set it again uh at together. And as the end, we just uh rotate back to its original space, uh original basis and makes the output to be identical. So it is um uh so it is uh just a numeric it is uh totally identical in the um
floating point network, but it will make the quantization easier.
And also nice thing is we can just absorb the rotation matrices to the corresponding weight matrices. For example, R1, it is fully absorbable to the corresponding QKV and W_O. So R1 will not incur any computational cost or the memory cost during inference time. In the meantime, we want to also deal with the
activations in the we also want to deal with the activation in the uh output and the um in the W_O's input and W_Don's input. So we used W_ two to rotate the W_O W_O's input and the used R_ four to rotate W_Don's input. So in this way we can construct a a complex bone network.
Mm. So this way, how we can choose, well, there are multiple different rotation matrices. Uh which uh matrices we want to choose? We could choose like a random rotation like fourteen points rotations. Or we can use a special rotation called Haar measure rotation. So Haar measure rotation is uh a matrix contains all minus one and ones, um and uh it can be computed very fast. Or even better, could could we like uh use learnable rotations?
And we found that actually random rotations will cause a lot of variance when we use random rotation with round to nearest quantization after the rotation. And using high rotation because it's more restricted it will have less variance and also it has higher accuracy. But even better when we use learned rotation it gave us highest results.
and the lowest variance. Then how we learn this rotation? We can just because R1 and R2 they are fully observable to the weight matrices. So we can optimize the R1 and R2 with the quantized network and this weight is fixed. In the optimization we use a special method called K-L-SGD. It is kind of
projecting the rotation matrix.

um rotation matrix back to the also normal space every time after the update so that it will keep uh the rotation matrix to be also normal all the time um it is because it is um uh like a constraint optimization and it only require like 100 iterations and also we only use 800 examples so it is super fast it's
That takes about like 10 to 30 minutes for 8-bit or 8-bit to 17-bit models.
And the results show that previous methods without rotation, they will see a huge accuracy loss, especially in the W4A4 cases. They can just rarely get correct numbers, but with the rotation, like spin quant, it can boost the accuracy by a lot. Actually, the final result is just...
only several points away from the full position. Uh and also we compared for the final accuracy with the out random rotations. And the uh we can see that with the random rotation, it can improve the accuracy. And the seri we also compared with this uh pairs was a the corrals paper uh and though we can see that in the round two nearest quantization, so it is more sensitive
to the rotation types. So because around to nearest rotation, it is not that robust to different distributions. And the rotation, the random rotation could improve actually a lot. While with GPT-Q, GPT itself has some method to deal mechanism to deal with the weight dynamics.
So such the uh it could uh be more robust, but still Smincon can improve uh m what's uh compared to the random rotation.
And also the next social, this figure shows that when using the post-training quantization spink columns, we can just see very little, actually lost about one point, but we can obtain like three times faster inference and almost four times smaller model size. So then moving forward, it is like we have a
we might have a question like could we push further than four bit like we can we do ternary or two bit and how about like from PQ to QAT and like what is the trade-off between like more more parameter less bits or less parameter more bits
So we will, so we will like, to answer this question, we will redesign the parental cue for our spectrum of quantization bits and comparison apple to apple. So previous works, they are mainly focusing on the ternary or four bits, but they didn't have a unified framework to compare some apple to apple. And also there are some previous scaling loss they didn't consider.
To only consider three factors including parameters, bits and training tokens, but however we found that in the low bit regime the Chinese theme could be very important and also the quantization function should be specific for each bits. So in order to achieve a like a unified compression
He just considers these five factors together and we want to compare those low -based quantization in a unified setting. So first we started with the training algorithms. So there are some works saying like training we can train the training network from scratch and there is also some K_DQ works. So how so then it sets us to think well like a
Which Chinese gimmick works best, Chinese from scratch or PDQ or something in between, like we have a four pitch, we fine-tune or you train a four pitch network and we fine-tune based on that. So this figure shows that actually like we can train, we can, it is better to spend more tokens for training a four pitch network and spend rest of tokens to fine-tune the
the QAT. For example, like this figure is the number of percentage we spent in the per channel of focusing network and the rest of tokens are spent on the QAT fine tuning.
So actually Francis Fukuyama said we can spend most of our tokens for also a perennial for petition and maybe 10% token for community functioning is pretty enough and it can give us a very good accuracy. So then we just did more comprehensive compressions on seven different models and five different bit widths and we found that there are some interesting findings here. First is the function is always better than training from scratch.
from scratch even for binary and ternary models. Although the binary ternary models' their representation is very different from the full-precision network, but still they can benefit from the full-precision pre-training. And also there's another interesting finding. We find that after the fine-tuning, at three bit and four bit they can fully recover the full-precision accuracy, but for the one bit
ternary and two-bit systems still have some gap to the full precision, and even after like a longer fine -tuning, it cannot fully recover the accuracy. So we start to thinking why this is this case. Uh like we uh so we hypothesis that QAT is uh uh performs differently for different uh bits. For three and four bits, they are
have very similar representation for the fourth position, so we only need to compensate the acoustics lose for the three and the four bits. So data act that as a calibration for this case, but for the two bit and below, its representation is so different, so the voice need to collaborate with each other to find a new way to represent the source abstract concepts.
So instead we need to jump out of the grids and do some reconstruction. And then we did an experiment with just printouts like weights difference before the fine-tuning and after the fine-tuning. And we calculate the norm divided by the norm of the original weights. Then we found that it is very aligned with our hypothesis for the three and the four bit.
So, it is just adjusting with single grid. Actually like a stage search, the with difference is around the ten percent, uh meaning such only like uh they only uh app a level or down a level, something like that. Um or
And by further to beat any lower, like those weights are just changed a lot, like it could change like 40% or even higher, so meaning that they are jumping out of grid and doing more like a reconstruction process. Then based on those training strategies like QAT fine-tuning,
Oh, we can, we first start to look at the quantization method choice. There are two key trade -offs in quantization function design. One is like well-known, shall we clips outliers or not. Another is less discussed, like we want to see whether we use symmetric levels or having zero in the output levels. This might be more vague, but I will go into details.
later
So for the clipping or not, we found that we did experiments and we found that for the four-bit and four-bit quantization, like um uh it's uh mean max uh generally works better than clipping outliers, because outliers is important for for the activations in some sense. And um um four-bit has enough representation levels so it can keep those outliers. But for three-bit and lower
Clipping the outliers and allocate the position to the intermediate levels works better. So but then is that any better method? Yes, there we can instead of just setting the min-max range or clipping the range clipping the range based on the weight statistics, we can choose to learn the
um scaling factors which means we set the scaling factor as a learnable parameters because the weight dynamics may change during the fine tuning so we can just learn the scaling parameters and uh uh like just like the learning the weights and learning the scales can generally give us better accuracy across all the bits compared to uh setting of
beam max or clipping ratio. And then we will go to like whether we want to include a zero in the output or we want more balance levels. For example, in such two-bit quantization, we only

For example, in such two-bit quantization, we only have four levels. If we want to encode a seven zero in the output because we are uniform quantization, then it will result in a imbalanced levels, which means we have two negative levels but only one positive level. Uh in this way, the positive w um part will lack in representation capability. And it t it will result in like a negative results.
Hmm, then for the end scene.
Like, we can choose, like, based on that, we can choose to not include zeros, but use more balanced levels. For example, in two bit, we can have minus 0.5, 0.5, minus 1.5, 1.5, something like that. And for these two choices, we did ablation studies, and we found that for so, like, three bit and four bit, it ha
It has enough levels, so we can have zero in the output level. It could be slightly better because zero is actually very important level. It can justify those noisy information in its network. But for the two -bit levels, two-bit quantization, so the symmetric that was could work better.
Mm-hmm. And based on that, we derived this parental Q, and it uh um it it is we just combine those uh different pronunciation mechanisms, pronunciation functions that we found beneficial for each bits uh together, and so that we can compare them in our unified framework. Mm and uh we found that parental Q actually achieves total performance to every
methods designed for the specific bits. For example, in ternary case, we compared with the one bit error paper. So, prototype Q_ six hundred million parameter model could outperform, slightly outperform a one bit error three bit model. Uh and it is this it is like a higher accuracy but uh five times smaller. Uh compared to other two uh so it have two two bit, three bit, four bit quantization,
It also achieves soda accuracy. So it says that soda accuracy ensures that our method can compare different bits apple-to-apple like and so those comparison is is solid and
And for the SO after that we plot the partial optimality for the low bit LMs, we compare the two bits uh front one bit to four bit and in this figure we can see like for this uh on this research recent data uh actually two bit and one point five eight bit could outperform four bit. Um
And also for the large models, this trend also holds. And for the, we also did experiments on the CPUs. We measured the speed and we found that the two bit is a promising methods that can also achieve better speed accuracy trade-off for the CPU on the CPU device. So I would say those takeaways.
For real cube paper, it's said three four bit could be more can could just address the near near four position accuracy and but for the two bit and the lower bit it requires high quality data and because it's more like relearning from data instead of recovering the like information from the four position network.
Okay. And the same, so too big quantization could be a promising alternative compared to the four bit. Four bit, why so wild use the four bit quantization approach. Okay, same after those quantization methods, I will introduce you a very interesting recent paper we published in the ICLR conference this year. It is we are thinking whether we can obtain a post trend.
large -end model at zero cost. So the motivation is there are a lot of base models, post-trend models in the open source community. And also in our model developing cycles, we will like continuously update a base model and we want to what we want to know is their post-trend performance. So we need to if we want to
To obtain the post-train performance, we need to refine a we need to refine the base model, also post-train the task. So it is costly because each time we update the base model, we need to refine our own specific different tasks. Um but we find a n very interesting thing is we can actually use a parameter data um to s to like obtain a new bit post-train model
Which means we have the previous post-chain model as the previous base model, we just subtract the base model from the post-chain model and we obtain this primary data and we deem that since the primary data will store those information in the post-chain data and we can directly add the primary data to the
newly update the base model and in this way we can got a newly a new post-chain model it could affect it could effortlessly transfer the post-chain capability and after adding this new parameter model will will
I have both the post-pretend capability and the post-trend capability. And we can see that in our results we compare the we we have three models, the Lama one, Lama three um
Lama-3 base model, Lama-3 post-train model, and Lama-3.1 base model. We just subject Lama -3 base model as from the Lama-3 post-train model and adds its parameter data to the Lama-3.1 base model. And in this way we just get a parameter data model. It can achieve higher accuracy on most tasks compared to Lama-3.1 base model.
And it's just actually very close performance as this reference model which we try to directly train the LaMa 3.1 on the post-trained data.
So this is a very interesting finding. And we also start to understand how the weights, how the information are stored in the weights space. We find that actually the weight perimeter data is very highly correlated to the data information. From this figure we can see if the
Protein data, they are very similar. So protein compared to similarities between different
Permuted data have very high values. If the post-trend data is less similar, since the weight of post-trend permuted data will be very orthogonal to each other, which means that the permuted data information is highly related to the post-trend data.
And also we can predict and we have a, we did a correlation analysis. We found that some systems, we can predict the parameter that has accuracy by just adding those three models like participating in the parameter model process. Like for example, we can add the base, the post-trend model minus the base model plus the newly based model's accuracy.
We can predict the subparameter delta models accurately. So this is a very nice property. Uh, uh so the constraint of this matter is like the newly updated base model and the original base models need to have the same architecture and they need to start from the same initialization to prevent the weight permutation issue. Uh so like uh if in the future we could uh
If in the future we could have expenses to multiple different architectures, so this could benefit a lot for the open source community containing a lot of models. Okay, so that's all for the today's talk. Any questions?
Hype.
Thanks for a great talk. I have question about the last part. So you are using uh some some people call it test vector uh Mm. to combine them, use them together. We thi I think this there's constraint about this method. You have to use the same architecture. Do you have any thought how can we maybe combine a test vector of m bigger model to to uh to to help smaller model or smaller model to help bigger model? Yes, this was question. Um like uh certain not
We can, for example, maybe we can purge the network or we can do the distillation. But it consumes some training, so it's not totally training free in that case.

need free in case in that case yeah. There are some works working on this direction like using um prone network or like uh still still being on uh network from scratch something like that to match their dimensions. Oh yeah. Thank you. Uh sir is there is a question? Any other question?
It's very good. Thanks for a great talk. Uh so two questions. One on the parameter delta and Mm-hmm. um does that apply to all of the parameters? Weights and biases and even, you know, let's say normalisation parameters? Yeah, good question. Uh like we are just applying this method layer by layer for also weights and the biases and also some neuronal parameters. So it's you can imagine it as a gradient uh huge
batch of gradient descent. So previously we have mini-batch of gradient descent, so we just um um separate as the update the model with the base model. So we can have a huge step life pointing from base model to uh post-trend model and it is uh just a cumulative of steps of gradient descent. So all the parameters that uh receives gradients, we will combine them together. Yeah.
Uh cool. Uh second question is about the your um Q_I_T_ Mm-hmm. Hyper-parameter tuning, your p p radio cube. Um
I mean with very low precision, we know like probably like larger learning rates. Mm. Uh so how how do you pro uh how to parameter tune, is there any tricks uh because because that's a lot of experiments. I see. Um I will start with some small uh models. Um like uh super parameters the training ha I found that we found that the training hyper parameters they are orthogonal to the
Uh, um architectural, mostly algorithm to architectural parameters. So we will start from the smallest model, for example 125 million model, and we find the good uh chain hyperparameters. Because it's easy fast to train, uh then we will just transfer those ha chain hyperparameters to the larger models. Yeah, and uh mm actually, so it actually it is um somewhat robust to the chain hyperparameter for a wide range
quite random maybe like 10 times, 10 times of the language, the accuracy is similar.
And Yeah. the the the transfer ability from small to large models uh the the optimum hyper parameters i it doesn't change even you push it to very low i think. Yeah, for different bits, they are different. Like we find that for the higher bits, it requires less learning rate. For lower bits, it requires higher learning rate because it needs to adjust more. So it needs to learn more. Yeah, but it's pretty transferable.
Oh, B_T_ architectures. Yeah. Oh, thanks. Okay, thank you. Any other question? Okay, so let's thank the speaker. Okay, so our next speaker will be virtual. Uh Professor Atlas Wang from UT Austin. He is a tenured track
Associate Professor at the University of Texas at Austin. He is currently the full-time research director for X_T_X_ markets, heading their new A_I_ lab in New York City.
His recent core research mission is to leverage, understand and expand the role of low dimensionality in machine learning and optimization whose impacts span over many important topics such as the efficiency and trust issues in large language models as well as generative vision models. Okay.
Could you see my slides coming up and hear me well? Yeah, we can see you, we can also hear you, but I think the sound is a bit low. Could you hear me better? Hello? Yes, now better. We can see the slides, we can see you, I think you are good to go.
Okay, sounds good. All right. Thanks for having me in this workshop. And today I'm very excited for the opportunity to share our most recent work on just distributed LLM training, which I will explain in a second what that means. This work is a collaboration between UT Austin and Meta and lead by my student Junbo Li and King Yong Kim, who is a student of my colleague, Professor Aditya Akela.
Okay, let's get started with the background. For this audience, I guess I don't have to explain that a large language model is exposing the parameter and the measures goes with T and who knows what's the next model will go for, right? Maybe 10 T or 100 T's. And training those models also calls for an astronomical number of GPUs. And in meanwhile algorithm side, people are still mostly relying on the fully synchronized SGD and its variants, AdamW.
you add them to train their models. By synchronizer, I mean all those model parameters and gradient are trained with distributed GPUs and workers. And then they will be synchronized into some central server for every few iterations. All the GPUs will follow the same schedule and then synchronize and then do that again. That has been greatly facilitated in the recent homogeneous data center architecture.
and quote which is still adopted in the latest language model training such as Lama and the infrastructure supporting that includes ultra fast in the inter data center interconnect such as NVLink and the infinite band I think anyone who train language models nowadays knows infinite band is a very important for training throughput and also the GPU hardware setup in one data center is usually
really pretty homogeneous for example h100 and maybe the newest black to the b200
However, if we start a predicted in the predicted future, if the models goes larger, and there would we would quickly see those synchronized training become impractical. And that that's because of the constraint in numerous power demand, the limited availability of resources in the same geo region, and also the rapid evolution of hardware heterogeneity. I can give some numbers to support this those those speculation.
First, energy constraint. Training a 100-tonne T-model could consume a 4-digit
gigawatt of power I don't know how large it is I just know that's that's another astronomical number but if you compare that with what US grid operators currently could provide you could find an interesting fact none of the US power grid local operators alone can single-handedly meet this demand alone so here with a list a few numbers of the top
electricity supply authority in US, PJM, SRT, NVVP, and BPAT. Those cover the different regions of US, mid-Atlantic, southwest, northwest, etc. The largest power supplier, BJM, could suppose a little bit below 1 gigawatt of power, and others are even lower. So none of them is able to cover this single training resource.
Even in US, we have to, if we hypothetically training a 100T model in current electricity infrastructure, you would expect multiple power networks to collaborate to supply that demand. I guess people have seen this gap, that is why you see some recent amazing investment such as Stargate by OpenAI and Exeger in Texas to build the new infrastructure for training next generation models.
and that will include a new power supply network as well. The second factor we have is the cloud GPU availability. By several reasons system papers observed that if it's almost impossible to concentrate and allocate GPUs that will be needed by training 10T or 100T models in the same cloud region and that's because of the separate constraint
computing to ranging from power to communication network and to other environmental factors. So it's just impossible to assume all those GPUs could be concentrated in a small region while the high speed inter-data center communication is possible.
Another reason we have to consider is the growing hardware heterogeneity. I think now people are still dying for purchasing H100, which is arguably faster and memory savvy, but B100 and B200 are already on the way. And for many people building data centers, I know ARM GPUs account as pretty competitive options as well due to its interesting cost effectiveness.
So there are design factors and given more and more people, more and more organizations, including Meta and OpenAI, are devoting their own effort into building silicon. We could only expect the competition for heterogeneous hardware for state of the training will grow heavier and heavier.
Those factors have led to the growing consensus in the MLsys community that training LLMs will gradually grow from one data center highly homogeneous into a new setting called GeoDistributed.

a new setting called a geo-distributed environment and a highly heterogeneous infrastructure. So that means we would expect not one worker but not one data center, multiple data centers each were trying a part of the model and there will be communication bandwidth, communication bandwidth, there will be network communication across different regions data centers. And because they are geo-distributed, the first important constraint coming up is
you should never expect you would have a unified band between US and Europe, right? So at least we are talking about 10 times to 100 times slower than a single data center intra-region bandwidth. And the accelerators, the training accelerators, such a heterogeneous setting are also very underdeveloped, at least being 10 times slower, if not more. So...
blindly adopt a synchronized training would suffer the bottlenecks due to inter-region communication obviously if we all wait for each other and some communication bandwidth break down in the middle and that will cause delays forever and another common factor in the distributed training stagger effect will also play a role here stagger effect straggle effect means if I have to wait everybody to finish before proceed the next iteration of training
Then I'm dominated by the bottleneck effect of the slowest worker, though if I just have someone who are doing slow either because of the communication delay or because they are not using A100 while everybody else is using H100, then this will globally drag down the entire distributed training and make it meaningless. So all those factors have addressed.
address the need for both the communication for distributed training algorithm that is both communication efficient and the staggered tolerant and that's what we're going to talk about today.
So people have been looking at this matter for a while. Distributed optimization is no novel topic. And recently people have scaled up a few things into training large language models. As people must be aware of, not every theoretically decent algorithm could be scaled up well. And I think I'm learning that myself as well.
The people and what works best in small in larger scale are often some interestingly simple variant of the algorithm for example I'll tell you a few people have been doing this asynchronized study. One interesting algorithm is from Google DeepMind called Delico, distributed low communication training for language models. So they adopt a very simple variant in asynchronized training.
and called a local SGD, which is, I'll say, laughably simple, but useful. That simple local SGD simply means each of the region worker will do multiple update instead of one update. And before they will do a global synchronization. So by its nature, this is still a synchronized algorithm actually, because they still do a global synchronization step and if there are stragglers, there will be...
with still bottlenecking the whole process the only point is to reduce the frequency of cross-region communication by adjusting the ratio of computation communication frequency and that and those are proven to work in a language model training setting and that's the whole point of this pioneering work but as I said it's not a fully synchronized algorithm it's just a
compromise to trade off between communication and computation and then people proceed
This is another algorithm called async local SGD, again done by Google DeepMind, 2024, addressed this particular problem by formally introducing asynchronous training. So they were instead of all-to-all communication, they assume an extra parameter server, a global parameter server, which will do the following. They will always hold the latest copy of the parameter.
And every time when a worker feels like, okay, I need to train with the latest global model, this worker will then push the current update into the global server and while pulling a copy from the global parameter server back to that. And then this individual model, say region one, now have an updated model.
which is the latest version the global parameter server holds and it will then continue training with with this version and meanwhile the global parameter server will receive an update from region one so it will update itself and become set two and the next time when another worker say i want to i want the latest model it will pull the next version and this process keep continuing
This is a very standard implementation of asynchronous training, but it's already, but this version
Of course works and also solves several obvious issues in the previous version, local SGD. So no longer for example, the straggler effect is no longer in place because no one is waiting for any others, right? They just pull the latest global model and then just proceed as they like. But several limitations still exist though. First, while straggler effect is no longer blocking.
If the inter-region communication is slow, we should not expect this upload and download process between local server and global parameter server to be completed instantly. Actually it never is and that will create some further buggy issues due to version mismatch. And because all those local workers are communicating up.
update with one single global parameter server that also will create a very high communication demand in the global parameter server because it has to answer everybody and when there is active service request from different regions to this single one global parameter server it will create that it will cause a communicate it will cause communication bandwidth again and bandwidth happens and finally while this algorithm is simple and decently working
It does not come with a theoretical analysis. I know it's basically a luxury for language model optimization, but when possible, we still want to have something that will guide us for the next step.
So we conduct a few experiments to understand the limitations we just speculated. Let me show you some numbers. On the left, we train a lot of PCA models, 70 million, and the compares the performance efficiency trade-off. On the left, we show that what the...
And then we show the impact of local step on convergence. So let me explain this. So each of the point meaning the number of the num- meaning of the num- meaning the number of point. So the x-axis is, sorry, so the x-axis is the number of steps of tokens it has taken to train. And y-axis is the physical clock time in training. It, though we first train a baseline using synchronized
organize the SGD to reach certain perplexity over validation. And then we use Delico algorithm which is essentially a synchronized local SGD and asynchronous local SGD. So those are two curves, two different algorithms. For each of them we adjust the number of local steps each worker has to train before they return in an update into the global server and pull a new version.
And for each of the pointer, we would train it to match the total number, to match the perplexity of validation as this synchronized SGD. So let's look at the training tokens they were taking. When we use a smaller local step like 8 and 16, the number of tokens they were taken to reach the same perplexity is actually smaller.
smaller than synchronized SED, while the training time has been greatly reduced. So that is such a blessing, right? Faster and less data taken. In fact, this data efficiency effect is often observed in asynchronous training, and arguably that's because that's the extra gradient noise introduced during the distributed process, and the gradient noise is
is often expected to help generalization, and is often more useful in small model, admittedly. However, what is more interesting is what if we increase these local steps even further, beyond the 16, go to 32, 64, etc. So we find that while increasing h initially increase speed up training and save the training in the save training
training. If we further increase local steps, you will need more and more tokens in order to be trained, in order to match the asynchronous SGD's performance. So that is because if you train too many local steps before taking one synchronization across workers, that will cause each of the individual worker to be out of sync very quickly. And when you try to aggregate

Very quickly, and when you try to aggregate them, their each parameters are already too outdated to be aggregated in one shot. And that will create a very large gradient noise because they are too local for too long a while. And eventually this large variance, too large variance gradient will slow the convergence overall and decrease the convergence quality while cost magnitude more.
more training tokens. So that's the trade-off one should be aware between local computation and global aggregation. You do not want the local computation to go too long by itself. That's the first take-home point.
Second take -home point. We have our system colleague to do system benchmarking to profile the worker runtime. We find that the synchronized algorithm suffers from communication bottleneck as we explained, especially in this delete call algorithm, you will find a large portion of the overhead goes because of stale, meaning waiting for the slowest worker to respond. So all those simulations are done in a realistic multi-worker environment.
environment. So this is a pure real situation. And the asynchronised local SGD totally eliminated the stillness because they don't wait for anybody. But it will cause more high and still has a high inter-region communication cost around 30%. And if workers and there are more workers, you expect a bottleneck effect.
And this delay would be a bottleneck of communication and this delay would be even more severe.
So what do we do to solve this bottleneck? Now come to our solution, which we call hierarchical asynchronous training, which is a co-design approach between system and the training algorithm. As well as synchronized and both synchronized and asynchronous local SGD suffer from communication bottleneck, staggered problem, and not totally theoretically equipped, our hierarchical design have introduced a new concept called a local parameter server to become a buffer.
between global parameter server and local workers. So this local parameter server is assume it is intermediate layer that will connect individual workers in the same region. But and so assume I'm training with, let's say, four data centers in California and two data centers in New York, three data centers in Texas, then I would have a total of nine individual workers.
but local parameter server number here will be likely three I will have a local server California local server Texas local server and a New York local server and then one global parameter server accounting for the entire US so this local parameter server is a new intermediate layer we but with this design we successfully resolve the communication bottleneck while achieving fully synchronized training at both global and local level
levels. And what is even better, we have come up with a formal convergence analysis with a theory guarantees, of course, under certain assumptions.
As already explained, so we have a local parameter server or LPS or global parameter server or GPS in this hierarchical design. We assume LPS would be able to leverage a faster physical communication band between data centers in the same region. So it is basically a team lead of co-located workers.
And the GPS will orchestrate learning across very different LPS and we assume we would expect GPS to suffer from very slow intermedia data region communication. By this design, the most important motivation is to decouple the slow inter-region communication from workers and add one more buffer so the local workers is able to get a faster...
faster update by communicating to a local parameter server without waiting for global parameter server that may have much slower communication than local communication and that is very important when the communication latency is very high. So LPS in this framework, LPS would accumulate update and communicate update with global server and global server never directly talk to the worker. It will only directly talk to the worker.
talk to the LPS. LPS will talk to both global parameter server and individual workers. It will merge the updated local workers with the latest models it pulled from GPS last time and will effectively apply learning rate during the LPS GPS communication process.
So here's the algorithm on the right. I don't want to go through all the details, but I'm trying to cover the high -level ideas. But if you have any question about algorithm, you're welcome to raise any question. So we assume our optimization going through this sum of local goals formulation, which is pretty standard in distributed and federated learning. This FI is a local loss function with a trainer on the worker I. So in training a large language model where people are all optimal.
optimizing next token prediction loss, this FI would simply denote the same loss function applied to the local training data across to the worker I. So they are essentially homogeneous just with a different data subset. We assume the data distribution across workers to be IID. That is less than fully practical, but I would like to point out that why I say IID, I didn't assume.
the variance of sampling across different workers to be small. It can be large actually as reflected in our theory. And another important factor inspired by our empirical result is we assume GPS and LPS will both incorporate a momentum update term instead of a pure SGD like in previous work. We find momentum to be extremely important in the two levels because it
It's essentially trying to smooth out the new update from heterogeneous workers and the previous model weight that is agreed by heterogeneous workers. So by adopting momentum, that means that balances between how much you trust the upcoming heterogeneity and the past smoothening. And that's essentially a self-adjusted smoothening process, a key parameter.
as I will discuss in theory and practice both in a second.
So we did some convergence analysis. A few assumptions you will typically find in deep learning optimization papers, smoothness, unbiased gradient estimation, the variance of gradient abounded, but we assume it's abounded, but this constant epsilon could be very large. So the gradient magnitude itself, so this bounded heterogeneity means each gradient, the gradient of each
Each LPS would be finitely different from the global ground truth gradient in GPS and each local gradient also have a maximum magnitude which is easy to achieve through gradient clipping and the model differences between different workers due to asynchronous update is also bounded.
So all are pretty standard assumptions. Some are relatively strong and loose, such as smoothness and bounded heterogeneity. We are aware of them, but we want to use these assumptions to give a first framework usable.
Skipping the proof process, this is the bound we're able to achieve. If you don't like looking at those numbers, let me dive into the plain language version for you. So this means the decay speed of a gradient of this non-convex objective, which is a typical way we say convergence rate.
data in uh in non-convex optimization is bounded by three terms on the right a diminishing term which is a pretty standard so the is the so the on the top is the difference between the initialization function loss value and the optimal loss value and then divided by that and divided by a term linear to t t is the total number of tokens you have trained here using beta g this is the first time of beta g
the momentum of a global optimizer global parameter server appears so this is the first term the second term is called is the hierarchical structure term which is inversely dependent by both 1 minus beta L the momentum term of local parameter server and also again 1 by 1 minus beta G this is weighted by a gamma coefficient the gamma coefficient absorb a high order dependence
tendency in better g which is a actually cubic order on better g and the cubicle and then and and and the square order on one and on square and the square order one minus better g again so this is actually a very this is a high order and the non-monotonic function of better g and this will interact with another better g within this paraxis and the third term account for the accumulated asymptomatic design where
where D_G and D_L are like we as we just mentioned as the maximum model differences caused by communication delay so a few comment on the bound first the dependency on the T is the same either

On the T is the same linear, which is the typical bond you would expect in a distributed SGD training with similar assumptions or linear convergence rate. The second, if we set dg equals dl to be zero, then the third asynchronous term will go to zero and that effectively removes.
recover the order of the previous momentum SGD analysis in terms of local momentum. It will still have a difference from the previous best bound achieved by Liu and Zadra in New York's 2020 because no previous algorithm has assumed the global parameter server so this DG and beta G term are not negligible.
And if we fully removing the momentum, and let BL and beta L and beta G disappear, this route will also match the established bound by Rehn and others in L-States 2022 for asynchronous optimization SGD only. So our innovation, however, is introducing asynchronous hierarchical training with momentum and momentum will complicate the proof and that's why you see a
see a pretty massive bound here. The particular interesting to me is the influence of the momentum of better g and better l. For the local momentum, the functional analysis is pretty simple, just follow 1 over 1 minus better l, and that aligns with the standard momentum SGD analysis. But way more interesting, so that basically means in order to minimize the bound as right, I would love a pretty large...
better out, local momentum. I want the momentum to be as large as maybe 0.9 or 0.99, which is a committed with the standard in current L_M training using a very large momentum term. So no surprise of that. What is a little bit more surprising is the beta G term because this is mostly dependent by the high order term gamma times this O here. So we have a cubic order beta G here.
and square order one one one minus or one minus better here one minus better G here and another linear one minus better G so on the order we could say this dependent on the dependency on better G is
beta g cubic times one minus beta g cubic again so this is a non-monotonic function and we first we we notice it achieve a very high it appear with a high power in both positive and negative terms which shows the algorithm convergence has a sharp dependency on beta g it's a sensitive parameter and second this term essentially saying that you cannot make a better g2
be too small or too large. Neither way, you have to have an intermediate value. And if we look at this algebraically, the optimal trade-off value is 0 .5. Essentially, that means if the global smoothing due to momentum must balance between over smoothing between different local regions and under smoothing, which will cause the variance to be too large.
Gotcha. And the theory predicted the best HIPAA parameter is 0.5. And you know what is interesting? We find this 0.5 to indeed be the best experimental value as well. So that will be our default. And due to the sake of time, I will go to the experiment part real quick. We have measured the... So we did experiment to train past CLMs and that was when we submitted the paper in February and now we have completed some...
There are more training one billion model. Our comparison measure is work clock time and number of trained tokens to achieve the same validation complexity compared to fully localized one non-distributed training algorithm. So the baseline are DeepMind's daily call and the daily call versus plus another trigger called a dynamic local update.
to update, which basically means each agent has the adaptive to change the number of local update due to the proportionally to the worker speed caused by system constraint and asynchronous SGD algorithm. So some standard baselines. One take-home message with a system stimulation, we find the halos, our new algorithm converges faster than both.
And very substantially. Compared to Dilico, which is a synchronized local SGD algorithm, we converge faster. For Athlete, we converge at least 7.1 times faster in true systems. And with the dynamic update trick, the gap is still around four times. And compared to asynchronous all-local SGD also from DeepMind, we speed up by two times. And all the results are tested on the Paseo 160.
60 million and training one training training 12.9 tokens by a single SGD and all those results are measured by uh by our self-built execution driven simulator that uh that that will adapt that that use a recent measurement of inter-region network bandwidth from true data center operation and we build a simulator to simulate the process and uh yeah so the and by default we assume there are
There are four heterogeneous workers, two local parameter servers, and one global parameter servers. Yeah, so there are some details in simulation from system side. We assume all the GPUs are by H100, and realistically simulated inter and intra-region communication bandwidth and modern including the latency caused by average bandwidth delay and
congestion so this is a pretty I think the state-of-art simulation result before we launch our true data center experiment and besides the validation laws we have also measured the downstream performance to make sure our result is valid in usage and we find that encouraging halos much exceed the best test result of a fully synchronized SGD which were
which we call the more than 70 times training time. And among all the results we have tried from PASIA 70 million, PASIA 106 million and our recently completed 1 billion experiment, this all stand the Hallows algorithm is able to match the
SCD as you know it, the result in other, you know, with tens or hundreds times of savings in our distributed environments. And for momentum, we also find the hyperparameter sensitivity fits the prediction from our theory. The global momentum coefficient seemed to have a very obvious non-monotonic.
point trend and the sweet point is indeed a point five as i said global momentum global server momentum means if a new update from a local parameter server comes to you how much do you trust it if you trust that too much you are deviating from a smooth aggregated weight from the past if you trust it too little then you don't get as much new information and interestingly point five is
Just useful here. And a local momentum coefficient have in contrast a very clear monotonic trend as suggested by theory as well. And in practice we use a very high local coefficient of 0.9, sometimes even 0.95, which is the parameter you will use in EMA in training your large language model anyway.
And in summary, we are confident that geo-distributed LLM training is a rising practice that more and more organizations will adopt anyway. And this new setup faces communication bottlenecks and straggler problems and the current synchronized method cannot fully address that. We find that our synchronized training algorithm has
halos by adding a new buffer between global parameter server and local and individual workers. This new buffer called a new local parameter server effectively smooths out the communication discrepancy between inter -region and intra-region bandwidth and even better we are able to give to our best knowledge the first foremost theory proof conversion.
framework for hierarchical and distributed and momentum-aware algorithm. And yeah, I don't want to over-claim that, but that should be true. And the result significantly outperform local SGD method and match a benchmark of synchronized method. We should be able to release, the paper is still under some review, but we should be able to release the full paper.
the code in upcoming weeks. With that, I'm concluding my talk and thank you for your patience. Thanks. Thanks a bless. Thank you. So anyone has any question? Okay, so there are two questions.
Hey, so I was just wondering, like, is there, in terms of the stragglers, is there, like, a limit, let's say, to how varied the, like, your overall, like, data centers can be? Like, let's say your entire New York...

Like let's say your entire New York region is full of a 100s and then your California region is b100s Like does it will it still perform well or I guess what would you see in and that's like extreme scenario
Okay, great question. In our experiment, we didn't test the hardware heterogeneity. But I think I would say, okay, in theory, that's not very different from what we tested here in communication bandwidth, right? Because that's basically, if we give each of the workers a max update number, that's basically the communication latency caused by the local computation speed. However, I guess you and I both know that's not the case, right?
AI 100 and H100 have some interesting computation discrepancies caused by precision and memory paging. My honest answer is that I don't know. And in my own experiment, I have never tried using those two type of GPUs together. That would be an interesting topic to try. But if in our theory,
I think we would be able to absorb the discrepancy between H0 and I100 as a part of gradient noise as we didn't make any gradient noise assumption. So I think that's the theory-wise that's still compatible. Experiment-wise, honest answer is I don't know. Okay
Can we say anything about more general communication graph structures? Maybe deeper trees or trees that don't have an equal depth or maybe not trees at all. I think you can't do that. I just don't know how to prove the theory. Let me...
Let me, okay, let me, let me, let me think about this. So we didn't do any low, oh, okay. So let me go to the theory part. So we didn't do anywhere beyond the two layers. I don't know if you can see my sharing screen still, but I, okay. So if you look at this convergence part, this
This cubic dependency on beta_G is because we have to unroll gradient variance from two levels. And I expect if we use the current proof technique to unroll beyond two levels, we will probably be seeing some power 5 power 6 here, which is still up on the board. I just don't think that's any...
and impractically meaningful. The algorithm itself, I mean if we're talking from the practitioner perspective, I really cannot see anything you're unable to try with more than one layer. We didn't try that only because of the theory aspect.
You could just use our algorithm and add a local parameter server level one, local parameter server level two, and keep applying what we do here like doing a stacking. I cannot see a reason no. But you probably need to tune the learning rate and the beta. Thank you. Let's
Let's thank the speaker and uh we will take a five-minute break and then we'll start the spotlight uh session. Okay, thank you.

paper presentation session. So the first paper will be towards infinite long prefix in transformers. Uh and it will be presented by uh Chiwoon Yang from uh uh Sun Yat-sen University. Okay, please Chiwoon. Okay. Hi everyone. My name is Chiwoon Yang. I'm uh currently a four-year undergraduate student in Southern University.
Uh firstly I would like to thank the organiser of the scope workshop for giving me this opportunity for present our work. Uh le the paper title is Toward Infinity Long Prefixing Transformer. Yep, let's get started. So here is the all line of the slides. Okay. When we can see the post-training methods to enhance language model,
from in from in engineering including channel sword prompting and in context learning prompting, also uh context-based funtuning, such as such as p-tuning and prefix-tuning are popular and easy to apply to. So uh this approach all involve changing t the context in a auto-regressive transformer block.
So we inspire about these we propose a concept called prefix learning to unify this sort of works to an automisation problem. Uh when using auto regressive O_O_M_ for enhancing better next token prediction, prefix consider the same optimisable prefix metrics in each transformable formable block.
S uh then our first focus of our liaison uh phenomenon of prefix naming, which is the scaling law of prefix naming in language models. And now uh we recall the scaling law as more total compute for language model training brings model with better learning capability.
The performance last improves uh so we found some similar over observation in profiling learning, for instance uh more in the context learning example brings better prediction accuracy and more trainable parameters in p-tuning help model to solve more complicated tasks.
And we directly prove the existence of the scaling law in prefix learning, and give is conversion convergence rate in proposition be point three. Yeah. So we
Also provide a proved sketch here. Using N_T_K_ theory help us easier confirm the arbitrary convergence of training and attention network within ultra roaming prefix metrics. So uh after confirming the scaling law in prefix learning, we
would like to explore how we can utilise these magical phenomenas. The core problem is analysing and over-parametred process and ending requires massive parameters and computes which is difficult to achieve. Uh so if we can ap compress the prefix matching with slow error, the problem will be solved.
Then uh we propose M-T-K attention, using a very using very few parameters to approximate attention computation with uh a super long prefix mat matrix. Uh so the key the derivation of M-T-K attention is using the Tyler expansion. We can approximate exponentially
function with a kernel function. And we inject an auto run prefex to two shape-based parameters. Then we are able to imple uh parameter Hmm. approximation. And Then we put our uh the algorithm form here and state our show our statement in theory.
To be point one. Uh moreover we validate our methods on chat G_O_M_ on supergroup. Uh V_I_T_ on some CV tasks. So we can see some uh basic improvement.
Next we conduct experience on llama using mathematical reasoning tasks. Also uh we taste our algorithm on O_P_T_ yeah. family on some language model tasks for exploring uh experability.
Uh so uh the basic experiment observation demonstrate the potential to develop a longer optimisable context based in language model. Uh and then here we give three insight and conclusion for our work. Uh first
Scaling law of perfect scaling encourage using longer context for better performance. Uh the I think we believe these connecting to our uh test and scaling law. And and second uh basic experience show that the potential of NKA attention will will follow explore in a future work.
Uh family. F uh finally, since the small model with a long reasoning context follow the scaling of prefix learning as well, we believe it's an interesting feature direction. Okay. So let's all of like this word. Uh thanks for listening and w and welcome to any question from the audience. Thank you. Okay, thank you. Anyone has any question?
Okay, so I have a question regarding the efficiency of this N_T_K_ attention. So you know that as you keep on increasing the sequence length in the pre-fill like the uh pre-fill delay also increases right uh Yep. the time to first token. So for your approach what is your uh like uh strategy or what is your finding there. When you keep on increasing the pre -fill sequence length, what is the impact on time to first token?
Uh so the original uh efficiency of uh attention is quadratech complexity. Uh so when you use some uh li like attention and attention or uh is
just a polynomial mustn't to a posme the extension to computation. Uh you can uh enhance the compmetics uh complexity from quadratic complexity to uh sub-quadratic complexity. So you can reduce also in a spec capacity and uh speed capacity, yeah. Okay. Okay, thank you. Let's
Thanks Thank for you. the speaker and our next speaker will be remote. Okay, so can you hear us? Can you hear us?

Okay, uh good morning everyone uh uh uh I uh my name is Jintao Zhang and uh he's he's uh Hao Feng Huang. We are from the Tsinghua University and uh we are happy to introduce our work uh Saj attention too. And uh first uh Hao Feng will introduce the measure part and uh I will finish the experiment part. Yeah, thank you.
Hi, we are very happy to to to introduce our work, say that attention to. This is an extension to say that attention uh which is accepted uh uh by the main proceeding in this ICLR.
In recent years, deep learning models have advanced rapidly and demonstrate remarkable capabilities. The core of the models is the transformer architectures. However, the attention mechanism in transformers has quadratic complexity with the sequence length. This scaling issue has become a major speed bottleneck, particularly in video generation models and long-context language models.
To address the speed bottleneck, one promising way is to use quantization. Quantization improve efficiency by reducing the computation bitwidth. Modern GPU have low bit tensor core that can accelerate operations in formats like int 8, int 4, or fp8, while the latest GPU has nvfp4 operation.
While quantization for linear layers has been widely studied and applied, the quantization for attention is much less explored. In this work, we shall focus on applying quantization directly to the attention mechanism to improve the efficiency.
Uh now I will review the previous work. Uh there is not much previous work on quantizing attention. Uh one work is stage attention, which is also our work. Uh it proposes per block quantization of the Q_K_ matrices and keep the PV computations in FP_16 using FP_16 accumulators. However, this kind of low bit accumulator uh technique can only have an acceleration on R_ on RTX.
The X499T or RTX 3090 which is quite a small range of GPU and also it fails to leverage the Intel 4 Tensor Core which is faster. Uh the other work is the flash attention three FP8 version. Uh while it achieves speed up, it can only run on Hopper GPU like H100 uh which limits its scope and also it costs significant accuracy degradation.
Uh s no, I'll I'll introduce our work. Uh our our our goal is to use lower bit width, that has can be faster, and to able to run to run a broader level uh broader set of G_P_U_ uh more than Okay. AtiX forty ninety and more than H_ one hundred.
First we think how we can use INT_4 to do k-way quantization. At low bit width, outliers can greatly affect the quantization accuracy. We observe that Q_K_ matrices, they're highly similar, but they have only just a small variations. With this we want to pre-process Q_K_ to reduce the outliers.
So to do this we subtracted the average the Q_K by their channel-wise average. We call this technique smoothing. Uh the s uh the smooth Q_ and smooth K_ are different as as indicated by this formula. We can s find that the smooth K_ is it it is free uh because for each Q_ uh different K_ uh it are of the same Q_ they they share the same offset uh and uh and we can skip that safely because it won't affect the softmax operation.
of operation. For the smooth Q technique, we need to add back a a a uh we need to add add back an item before the softmax uh operation. But luckily this can be computed with a G_E_N_V_ operation which has much less computation complexity. Uh with this technique we can see that's the uh the the quantization uh error deg uh it it drops a lot. The smooth Q and K uh technique it can greatly boost the accuracy.
Uh next we s next we think about the quantization granularity. Uh previously state attention just used the the per-block quantization. Uh and and we when we s we we it's obvious that per token quantization is it's finest, but it has large overhead. Per block is fast. This app because this aligns with the flash retention computation strategy, the the tiling strategy. But we wonder whether this can be further improved. First, we think uh we think why per-block quantization is fast.
Fast, because we find that the dequantization, the scaling factor, it can be fused into the softmax scale in each iteration. For the per-token quantization, it threat processes the multiple scaling factors, so the scaling cannot be fused into the softmax scale, and thus dequantizing each element, it requires two additional floating-point manipulations.
So with this observation we notice that as long as we let each thread it processes one quantization group, uh scale, single scaling factor, the dequantization can be fused into softmax scale. And following this idea we exploit the layout of NVIDIA GPU tensor core. Uh for the tensor core operation the result it is evenly distributed into the thirty two threads in each GPU warp. So actually the block is not the whole. We can manipulate the threads on a finer level.
level uh within the the CUDA programming. And we can see in in this in this figure, it's from the PTX documentation. Uh it's a sixteen by eight results of the M_M_A_ tensor core. And we can see that's uh the s the T_ zero is just the zero thread the zero thread hold four elements, the s sorry the one hold four elements, so the block is not as whole. And with this we ca we can assign the zero and the ace uh the query tokens to a single quantization group.
The first and the ninth uh calibrated single quantization group with this we can just uh just divide a block into finer uh finer granularity. And also each spread just just manipulate one quantization group. So each spread handling one scaling factor and it this can be effective.
And I will skip the the detailed here. So just at the basic uh basic result is that with this technique we achieve a much great fu much finer granularity. And the experiment shows that this strategy will not introduce any overhead but greatly boost the quantization accuracy.
And after the the enter for enter for for Q_K_ uh we want to think about uh how we can quantize the P_V_ P_V_ uh previously for the state attention, uh it used F_T_ sixteen with F_ sixteen accumulator on ten son core. Uh this has double speed up on R_T_X_ forty ninety but however on uh on the later GPUs such as L_ twenty, L_ forty and A_ four hundred this is not the case. So we need to use lower bit width like eight or F_P_ eight.
Uh the P_ has very small value. So so we think F_D_ eight is better. Uh and if because it has wide representation range. Uh this should be straightforward, it just change the numerical type. But but we found some problem. Uh the the vis the results the kernel with the CUDA kernel results does not align with the PyTorch simulation. After some deep dive we find that
We found that the FP32 accumulator of the FP8 tensor core is not accurate. It's FP20 should not FT32 as expected. This phenomenon is also discovered later by DeepSeek v3, that paper that's a very famous paper, but we believe we were the first to publicly review that.

of birth to publicly reveal that. Uh we believe this is the hardware issue. Uh s w we do some experiment and find that the last ten bits of the accumulator, they are truncated to zero in a ten -squared operation, the F_P_ eight ten-squared operas uh operation, resulting in a F_P_ twenty two o format and that's cause some degradation in accuracy.
To solve the problem, we propose a two-level accumulation strategy. We maintain two accumulators, the tensor core accumulates directly into the short -term accumulator, and then after each iteration it will be flashed into the long -term accumulation using the CUDA core operation, using the CUDA core add, not the tensor core, so the accumulator is safe, it won't be truncated. This technique is also employed by DeepSeq v3, and yeah, we use the same technique, but they do under...
The jam jam operation we do on the attention operation. Next we show some experiment results.
Yeah, okay. H our time is less than two minutes, so I will quick uh go through the experiment experiments part. Uh in general stage attention too can achieve uh three times s three times the speed up than flash attention and the lossless uh end-to-end metrics of various models, for example the language model, the image and the video generation models. For example in uh CogVideo uh five billions uh
The speech attention too can achieve uh one point eight speed up in the end-to-end latency. Uh for the kernel speed, uh speech attention can uh achieve uh three times speed up than flat attention and four uh four point five speed up than transformers in uh uh data uh uh architecture such as the RTX forty ninety and the A L twenty and A L forty's.
And in Hopper's reviews stage attention can also have uh three times without the flash attention two uh and uh uh uh uh two s two times without the flash attention three. Although flash attention three has a F_P_ eight quantisation, word and uh we we also uh set attention two uh the word and uh eight bit can also have a s similar speed uh uh advanced uh f
For attention three uh I_P_ eight uh more importantly uh we want to emphasise that af uh flat attention three can only run on the hopper G_P_Us and the the stage attention is much more accurate than the flat attention three I_P_ eight version uh later we will show show uh example. Uh for the end-to-end uh uh latency uh end-to-end speed-up there are some uh results. Uh
Uh maybe you can uh our paper for more details. Uh in language models we uh test on q a lot of tasks and we found that on uh perplexity or MMLU or long bench or the infinite bench, we have uh almost no accuracy loss in uh end -to-end uh benchmarking. Also in the NIH
For the image and uh video generation uh models uh stage attention to also achieved uh almost a no end-to-end uh accuracy loss in in the in various branch mark. And uh the is uh very ama amazing. Uh there are some visible uh examples.
Uh from this example we can see that uh state attention to c uh can achieve a much better accuracy than flat attentions three uh R_P_ eight version. And this example to
Uh yeah, uh and uh state attention to is very easy to use. Only uh at one line of code you can s uh speed up any model with no act and to end accuracy loss. So welcome to scan our GitHub uh welcome welcome to see our GitHub to use state attention to. Uh thank you very much. Yeah. Thank you. So anyone has any question? Any question?
Yeah. Feel feel free to uh ask any question. Yeah. Okay. So I have a question like for you showed uh the figure of em in front of the beginning, right? So that uses sparsity in that attention, right. Yeah yeah yes. So you have you checked with your idea how it goes along with sparsity because yours is uh a form of attention quantization, right?
So have you checked your idea? Uh you mean uh use the sparsity of the Along selection. with your user attention too. Yeah, yeah. Uh actually uh th th th very good problem uh thank you for your question. And uh uh uh for for the sparsity in the uh in the uh attention, we actually we have a new work uh named uh sparsity attention, yeah, sparsity sparsity attention. Uh it can because the quantization method
And the uh s uh sparse method is is orthogonal. So we can easily uh using the sparsity of the attention uh with the correlation method, just uh you use the two techniques uh in attention is okay. So welcome uh maybe the sparse attention is is a good example. Yeah. Thank you for your question. Okay, thank you. So next speaker will be virtual again. We'll try again once more.
Okay, so can you hear us Nikhil? Yes, again, can you hear Okay, that's me? great. All Yes, we can hear you. So please go ahead. right. You can introduce yourself first and maybe then we can go ahead with your presentation. So I'm Nikhil. Thanks a lot for the opportunity. And I'll be talking about our work on M2R2. Let me, can you see my screen right now?
Okay. Can you go to the full screen with the slides? Oh, I did. Okay. Sorry. There is.
Yeah, so I'm Nikol and I'm going to present our work on M2R2 on behalf of my co-authors.
So one of the issues with large language models is that they are powerful but they are slow and expensive to run and this is because they use the same amount of compute for each token without taking into account how easy or difficult the token is.
So people have come up with different dynamic computer solutions such as a laser ink mixture of depth that try to focus on the distance or depth and make it dynamic so that easier tokens exit early and the harder tokens go deeper.
So one of the issues with all these methods is that there is no consideration of velocity. So in this work, we'll try to understand what is token velocity, can we apply acceleration and can we make it dynamic.
So to give an intuition behind what we want to achieve is, so early exiting is similar to having all these vehicles and depending on the weight of the vehicle, the distance is going to be different, but the velocity of each vehicle remains the same. So if we think in terms of transformer decoding, the vehicle speed denotes the token velocity, distance is the residual transformation.
And the vehicle weight denotes the contextual weight of the token. So with M2R2, the benefit is that every token travels the same distance and undergoes the same amount of residual transformation, but with a different velocity, as you can see on the right side. So what is token velocity and how do we measure it?
So we define it as a change in the residual direction. So if you look at each transformer layer, we have two residual connections, one at the attention layer and another at the pre-forward layer and each of these connections introduce a change in delta to the residual.
And if we look at the figure on the right side, we see that the residual change decreases as we go to the higher layers. And this is why our leg threading works by approximating the overall change with that of just the initial layers. And because we approximate the overall change with simple context -independent mapping tau, as shown in the equation below,
If we take a look at the residual similarity matrix, we see the discontinuity at each row corresponding to a zigzag head.
So how do we make this better? So one of the experiments we did was we took a small model and we increased the residual velocity via destination. And when we compare the accuracy obtained by the small model of four layers to that obtained by only exerting with large model, small model always.

model small model always achieves higher accuracy which shows the which shows that increasing the velocity is highly effective for the next question is how do you do this in a single model
So what we do is we create two streams in each forward pass. The stream in the orange color is the main residual stream of the model and the one in the green color is accelerated stream. They both attend to the same KV cache but the velocity of the accelerated stream is more than that of the main stream and they are both processed in the same forward pass.
And the routers decide the difficulty of the token and depending on the difficulty, the router either terminates or mitigates the velocity dynamically. So to evaluate our technique in dynamic compute scenarios, we compute the decoding speed up and the quality score using GPT -4 for all the state of the art baselines like mixture of depth, depth decoding.
On exhaling and M2R2 and we obtained a better trade-off on every single task that we evaluated and these tasks include reasoning, summarization and SQL generation. But one of the issues with dynamic computation is that it does affect the output quality for higher speed-up as you can see here.
So the question is, how do we use the approach to get the speed up without changing the model output?
And this is where the speculative decoding comes in. So in our case, the way we do the speculation is by sampling from accelerated stream and verifying the sample tokens with the mainstream. And this method gives us good acceptance rates and speed up. And we achieve this with a significantly lesser parameter overhead than other methods like Medusa.
Another use case that we want to show is on-device mixture of expert models. So one of the issues with on-device MOE models is that we cannot fit them into the accelerator memory because overall size is much higher than the dense model.
So one technique we can use is to upload the non-active parameters into the disk, but this technique adds some overhead if we want to load the required experts on demand from the disk which makes the decoding slower. So the way we can use this technique is we use the accelerated stream to speculate on the experts that are required and we overlap the attention computation with expert loading.
And if the speculation is good, we get to have those experts into the memory before we actually need them. And this speeds up the decoding significantly. So this works really well and we achieve about 85 to 90% hit rate in speculating the experts on empty bench. And in terms of the overall speed up, we obtained about 3x speed up relative to loading experts on demand.
We also have some additional optimizations in the papers, so please check out our paper for more information. Yeah, so in summary, we show the effectiveness of our technique in three use cases. We outperform other state -of-the-art dynamic computer-based methods. We obtained 2.5 speed up on empty bench in spectral decoding setup. And finally, with on-device embryo model, we obtained about 3x speed up.
And hopefully this work will inspire some more research on dynamic computation going forward, which could be especially useful for testing because of the computation requirements. So yeah, that's all I have. Thanks a lot for the opportunity to present virtually and sorry for not attending in person. My co-author Irina is attending in person, so please reach out to her if you have any questions. So thanks. Yeah.
We will uh terminate the session one of SWOT-ed session. I think uh poster session has already actually started in terms of time. So next we will start with the keynote of the afternoon session uh post lunch at one p.m.
Thank you.









You



you





Presenting their posters uh with you can well it's better to come back to your seats and our uh afternoon session we will start with the John Lewis talk uh about uh transformer without layer normalization. John Lewis is a assis Assistant Professor at Princeton University. His research areas are deep learning and computer vision, with an emphasizes on empirical approaches to understanding how models work and behave.
Uh he is he used to be work as a research scientist at MetaFair. He received his PhD from UC Berkeley. He has very interesting works including dance net and conv nets. And j John can you join the zoom or presenting your slides. Yeah, can you can you hear me? Yes, yes clear. Yeah, thanks for the for the introduction. My name is John Liu. I'm from Princeton University
And today I'm very excited to share our work on transformers without normalization. This is work in collaboration with colleagues at Meta, New York University, MIT, and led by our student author Jiachen Zhu and me. So this is a work that just came out last month and it's also going to appear at CVPR this year.
So, to start to talk about normalization, let's look at this paper. So this is a paper exactly 10 years ago called bionormalization, accelerating deep network training by reducing internal covariance shift. In my view, it's one of the most important work in AI history, not just deep learning history. It demonstrates that by inserting this very simple
Standardization technique in intermediate layers of neural networks one can get drastically better performance and acceleration in training and drastically more stable training most importantly and it quickly became very popular in all kinds of neural networks and especially in the same year used by ResNet and in my view they are two of the most important
Maybe these are two most important architecture development before transformers and they together they enabled the invention of transformers and also many later architectures and normalization is really a very simple procedure and suppose your input is X and now you compute some mean and variance
statistics mu and sigma here it can be the the mean and variance can be defined along different axis of x because x is really a multi -dimensional tensor and you just use this statistic to normalize x so that x has input has variance 1 and mean 0 and after that you apply this gamma
and better affine transformation parameters onto the resulting tensor and sometimes they are kind of treated also as part of normalization layer but for our purpose it's it's it's mostly additional affine transformations that can be also be achieved by a linear layer or it can be absorbed by a later linear layer
So when we talk about normalization, we're really talking about this standardization procedure. And later after batch norm's invention, there was a line of work that tried to adapt batch norm into different scenarios. And most notably, including layer norm, layer normalization and more recently RMS norm, root mean square normalization. These two are the ones that are currently still very popularly used.
Particularly in transformers and large language models. There are also other types of normalization that was historically heavily used like group norm, instance norm, then they are adapted mostly in different tasks. Most suited for different for particular tasks in computer vision. And with all these kind of different types of normalizations, what do they differ? They only differ in quite minor aspects.
in respect. They mostly differ in the axes along which they compute the means and the standard deviations. So the mu and sigma will have different shapes, different dimensions, and also some standardization do not do mean subtraction, they just divide by the norm, like RMS norm. RMS norm basically is layer norm just without mean subtraction.
So here is a great figure that try to illustrate this from the group normalization paper. You can see your input tensor is multi-dimensional and the difference is just along which dimensions they try to normalize things. But the overall idea is still like you have to normalize somehow.
So even so these are like above is the more common in long story but even before batch norm there are precedents or precedents of normalization layers before the invention of batch norm. In the famous accident paper the authors use a so-called local response normalization where the design is the idea is actually quite similar to the modern
Versional normalization, but it's it's quite a specific to convolutional neural nets and only applied in certain layers not not not everywhere in the network even before that in 2009 this this paper that proposed local contrast normalization
it's just a paragraph in the paper. So the whole paper is really focused on holistic architecture design. And in this paragraph, they introduced something called local contrast normalization. They stated that this is inspired by computational neuroscience models. So talking about, I won't go into detail about how neuroscience.
Neuroscientists also signalization in human brains or animal brains, but this is a very deep dive paper last published by my colleague at Princeton, Sebastian Sohn last year, where it really talks about the mechanisms of biological normalization effect. That's mostly done by a mechanism called lateral inhibition.
So I won't go into detail, but just want to know that normalization has very heavy connections with the observations we have in biological neural systems. So in recent years, there has been a surge of different architectures that's trying to compete with the
classic transformer architecture. So notably there's this RWKV state space model member and also this MLP mixer model. So what they all demonstrate that is that self-attention is actually not necessarily
a must-have in your neural architecture to get a very good performance. But they demonstrate very different techniques that can also achieve quite good performance. So I don't care.

So RWKV can be seen as
And similar to, more similar to recurrent neural networks and similarly for Mamba and MM mix there is basically all MLP. There's no attention or no convolution, no recurrent models. It's just only layers. But what these architectures do have in common is that they all have normalization layers. So it seems like you can't get away with not having self-attention. That's not being a transformer, but you cannot get away with.
not having normalization layers. So maybe normalization is the true cornerstone of AI, it's not self-attention, not even transformers. So in this work we want to basically examine this. So I would like to tell a longer story about how this project started. So you wouldn't read this part in the paper, so yeah.
So how this how our project started. So by this project I mean transformer without normalization project. So I did this ConvNext project back in 2021. So I won't go into detail but this is in this work we basically did a very very deep dive into model designs down to like how do we arrange the layers how how do you
design the widths, the depths of the models and down to also how which normalization layers, which activation layers you use. So we found that across history, like I'll talk about this one by one. So basically we started with ResNet, which is a 2015 model. And we found just in terms of normalization layers.
In this classic networks like resonant VGG or Google net, this like architectural inventory one more than one decade earlier. There is basically every weight layer has to be followed by a normalization layer and back then it was mostly a batch normalization, right? So people used to argue what order do we put in terms of convolution layers.
normalization layers and activation layers but mostly they still use one norm layer for every weight layer but then in transformer and vision transformers we found that there are there is one normalization layer for every two weight layers now so
So here is an illustration of a variant of Transformer called Swin Transformer. You can see here it's a one by one linear layers. So they are one by one because they can also be implemented by one by one convolution layers. So this green boxes represent weight layers and the red boxes are normalization layers, layer norm here.
So it's really one random per block, per residual block actually. But it's also just one normally every two-way layers. So normalization layer appears less frequently compared to white layers in transformers compared to ResNet, right? And in the ConvNext paper, I did
Actually, we found by examining all the minor design techniques there, by iterating through a lot of experiments, we found that we can actually delete even more normalization layers. Here, so every visual block, we have three weight layers, but only one normalization layer, still layer normalization.
So like this, this from resonant to com next we found that actually with other techniques, the network architecture design updates we can now use actually quite fewer, much, much fewer normalization layers in the network compared with the actual weight layers.
So, if we can have one, can we get away with having zero? I did do these experiments back in 2021 on ComNEX and actually it worked. By worked I mean the model training converged to a reasonable level without like divergence or loss spike in the middle. But it's not completely satisfactory because one, there's still a marginal accuracy loss. And two, as much as I...
Would it like to be convex is not replacing transformers in special in non-vision domains like we still want our like all popular transformers able transformer models to be able to So we're curious about transformers because it's model everybody use right
So what if we do this on transformers, just naively just remove all normalization layers, keeping, well by removing normalization layers I mean still keeping the affine transformations, just removing the standardization part. If we directly do this.
Yeah, I mentioned you can get away in ConvNext. But if you do this in Vision Transformers, we find that the loss will explode somewhere in the middle and together with gradient. So this you cannot be sure where it will explode, when it will explode, but there will be some point it will explode and you cannot reverse this. We tried like can we save a checkpoint where it hasn't exploded yet?
and try try our luck again by resuming training from it no always it will explode so we keep exploring like it seems like the loss we can get a stable loss change here just one spike we need to we need to solve we tried a lot of methods and we read a lot of papers
We wanted to understand the mechanism of normalization layer so that we have a better chance of demonstrating developing something without it. We read many papers on theoretical analysis of normalization and also many prior practical methods to get around them. Mostly a lot of methods focused on weight initialization and how do you for example change training hyper parameters.
to mitigate these instability issues. We tried saying, for example, using different learning rates for different parts of the network. We got some initial hope, but ultimately it became too complicated, much more complicated than normalization layer itself before we can get any promising signals.
So we took a step back and we tried to ask ourselves, how do we really understand normalization layers? And more important, how do we really understand anything in deep learning or in AI? So we thought the most direct way may not be deriving the mass, deriving the gradients of normalizations, but maybe try to find other walkarounds in other parts of the network, but just to directly see what normalization really, really do.
By what it does I mean how given what input, given what input it produces what output right this is the way we understand AI in general like in chat GPT if you want to compare chat GPT and Gemline you give some prompts and see how they as input and see what they output right and then compare the output so why not we why don't we just do this for normalization layers
So next part, now we enter the actual paper part after the backstory. So if you didn't pick up any of the content previously, now is the time to refocus. It doesn't matter if you missed anything before. Yeah. So the most direct way to know.
What they do is just to see plot the output against their input, right? Because normalization doesn't change the shape of your tensor. You can just, you have a one -to-one correspondence between your input and output. It's not an element-wise operation for sure because they operate on tensor and the elements will interact with each other. But you can still plot this one -to-one correspondence, right? Each position of input tensor you have a corresponding position in the output tensor.
We found this in the early layers of vision transformers VIT. It's actually this is quite like DNA shape stuff, right? It's mostly linear with some variation, with some like, and it's very close to zero. And this is also true for...
for like diffusion transformer in one of these early layers so it's not like actually that interesting because if it's all if all it does is just produce performing a linear transformation why do we need normalizing we just use a affine transformation or linear layer right so turns out what's actually interesting is in the middle to later layers in networks now we find that this very
curvy shape not just linear it's still linear in the in the middle like in the range close to zero but the other parts are not linear anymore and it's a very s-shaped curve that's very similar to a tangent function if you're familiar with tangent function right tangent function is just a different scale a sigma function at a different scale
Basically, so if you are familiar with CMOS, you should see this is actually very similar to CMOS. I should note that most, 99% of points will fall into this very dark region in the middle. So these other curvy parts are very few points compared with the majority of the points.

with the majority of the points but they when we plot them they do they do behave in a nonlinear fashion so and the similar observation holds in diffusion transformers now you can see this is still part of it
The part of a S-shaped curve just without it's not a full S-shaped curve for sure it's on the right part is it's missing here because of the input range doesn't touch there but for an input range it does touch it most the the first order approximation would be a 10h function right so like this so this function is actually very heavily
was very heavily used back in the 80s as the activation functions until they are replaced by ReLU. Remember tanh is the same as sigmoid. And we can achieve this effect of different scales, different shape linearly by having this scale coefficient before doing tanh, like for and or one force here. So this curve looks very similar.
And yeah, here is like more models, more layers. We can see on the left column is early layers. Early layers, they mostly still do linear transformations. But you know, later layers is where it's more interesting. They basically perform a 10H function with slight variations. So we thought, can we just use 10H to replace them?
um so before before that like yeah it did come into our thought um mind this point but before that we want to understand the non -linear behavior more carefully so why why so normalization is just a means subtraction and the standard uh and uh uh standard standard division division right should be it sounds like a linear function but it's actually not because
The mean also depends on the X and the standard deviation sigma also depends on the X. So it's not a linear function. It's dividing a square root of some sum of X, right? It's only linear when you have fixed mu and sigma. So we realize this effect of how for each token, for each normalized range, the function is linear. But once they...
uh when when they compose with each other on top of each other the function becomes nonlinear so here every color is uh one token and in every one token the transformation is linear but you they have different ranges ranges and different mean and standard deviations if you if you add all tokens input tensors
an output tensor together into this plot, they will behave in this very interesting time H like fashion. And also if we plot different channels, we all know or we can see that this outlier range of these inputs are mostly produced by just a very few channels. But this is not important for our method. So now we're ready to actually propose.
our function dynamic tenage, it's just a scale tenage with a different name or diet. It's very simple. It just replace the standardization procedure with a tenage function with a scale coefficient alpha that is also learned. For the affine transformation part, gamut beta, we keep it still there. Because this tenage function do lead different output scales.
The called the implementation is just also extremely simple. I can say that in my view it's simpler than normalization itself. It's an element wise function. It's more is implemented in both in most like numerical or deep learning libraries. Here's the actual PyTorch code just like 15 lines code including two lines for accommodating different formats.
Um, and how do we use it? It's very simple, um, too. So for every normalization layer, you replace it with with DITE. It's just as simple as that. And you you don't touch other parts of the network, including activation functions. Some people might view DITE as the activation function and it is it was the activation functions, very popular one. But in this work for purpose we don't we don't use it to
interfere with the existing activation functions. We just keep them as is. You can now say the network is without normalization but has more activations. Also we don't touch the training hyperparameters of the network either. So for our experiment next, which I will cover very briefly, remember that we don't tune the hyperparameters.
It's a completely fair comparison, maybe even to our disadvantage. Only in very rare cases, we have to adjust anyway, mostly in large language models. So even 10H also have a basis in neuroscience literature, and this is actually much older. So in this book...
brief history of intelligence I read this I noticed this graph you can see that the graph is basically the same as 10H function and it's just at different scales like it argues that we have in each of its range we have a separate 10H transformation for for neural signals it is the research by neuroscience by psychologist neuroscientist in 1920s
strongly recommend this book so for results I guess we don't have too much time so I'll so the the conclusion is that for a lot of the method domains we tried like vision supervised learning or image net vision like generative models on diffusion transformers we get by directly replace
Near normalization with diet, we get either same or very close performance measured by the metric under that domain. So here is a result for supervised learning. You can see the change represents delta amount we get by replacing this. The training curve is almost identical. So this is not just another thing for...
achieving a good performance that's on par with normalization but it's actually running behaving very similar to normalization just even even for like training curves so here is for self-supervised learning diffusion models large language models a large language model training curves almost almost identical
and also even more domains, speech and DNA classification, speech recognition DNA classification. So we did some analysis to demonstrate that each part of our design is necessary. So first we need this 10 -h function. So if we just remove the normalization with the identity function, the training will fail.
But there are also other alternatives like hard-tangents, sigmoid, that can also work. By working I mean makes the model converge, but they are similar in that their central part, that the part close to zero is nearly linear and the part that's extending is performing a squashing, some sort of squashing of the input values.
So in that they are similar, but among these we tried we still find tiny tree the best. Also we demonstrate the need of the alpha scaling. So without alpha scaling we can still get the model to converge actually quite work quite decently. It's just like 1% lower or 2 % lower performance. But with alpha we get alpha performance with normalization. And
um otherwise just a single parameter for each each layer so you you basically increase the whole network by like 20 parameters and it has some comparison with previous methods um which initialization with normalization to address this to address to try to train model without normalizing layers and only diet can actually match them in your experiments you actually match normalizing counterparts
So for initialization, we find that just for non-ML models, just simply make it 0.5 will work great for you. They have different trends, but we find a common value, 0.5, that can work in almost all cases. For LM, it's more complicated. We can just find the optimal alpha 0 value, alpha insertion value depends on what block type you're currently at and also the overall network width.
Um, so the limitations. Uh, we do find Diet cannot replace batch normalization in classical convnets like ResNet. Uh, this may be, this may have to do with the fact that they do have more dense, um, division layers. Heavier use. Um, and another very important limitation, and this may be a weird thing to say in this workshop, but we do not provide any speed up. Uh, that is when
everything is properly optimized uh compiled uh it's the same speed as arm snow in logical models either in training or inference so we are looking at the table in our paper that is when that did say it has some speed up because that's not um properly compiled when we

properly compiled when we wrote that paper so outlook so what I'm
like about this open science community is that we can really quickly iterate about our ideas. So after two weeks of our archive release, there's this paper that tried to derive, actually derive TANH from their normalization from a theoretical perspective. It basically used their norms per variable gradient to arrive, to theoretically derive.
died out and it also provides a more accurate element-wise approximation to L1 by removing one intermediate approximation. So I encourage you to see this paper for more grounded theoretical understanding of diet and also there are other more applied works that already tried diets in their applications just within one month. So why so like diet does not provide speed up right it's a very important limitation.
Also, that is not actually meaningfully better than than you know by meaningfully better I mean at least like 1.1 percent better right in tasks. So why why like what's the point of this work?
So I discussed, I'm not a system expert, but I discussed with my colleague Trey Dao at Princeton, and he provides several interesting future potential directions that can potentially use that to achieve some speed up in certain cases. So I won't go deeply into this, but if you are interested, reach out to me to discuss.
And more important, I think, this work is the angle to understand normalization layers. And normalization layers has always been the more mysterious part of neural network.
So by seeing how they actually transform inputs and finding a simpler alternative, I think I gained more understanding than normalizing layers than my past experience in training networks and tweaking normalization layers positions in network for maybe eight years.
So I think it's really important to go deep into understanding this neural network modules, the most basic modules. So if you add a clear, you may have heard all these buzzwords and people may believe they are very important for the...
find out development of AGI, the building blocks, right? These are very important concepts. But I would like to also say that from another perspective, the actual real building blocks of
possible AGI is this very fundamental design in neural networks and we have linear layers just not that's not many too many of them so but these four are what I view as the most important most essential and this work address I think push forward my understanding on normalization layers by a big step and I I think for us to really have
a real like control of AI I think we need to work more on this kind of understanding the basics of neural networks so and there's this recent post blog post by a therapist CEO Dario as the urgency of interpretability but I would argue that what is more even more urgent is that we still don't understand the basic modules of deep learning deep neural networks and we still don't understand why deep learning works at all.
If I go to people and ask them why do you think deep learning works, I'm sure I'll get 10 different answers asking 20 people. So I think we still don't understand and it's very important to work on it. And with that, I would like to conclude this talk and here is like one sentence, one page summary of our work. Thank you.
Uh we have we have two questions asked. Before that, uh can I ask question first? Yes. So I have done some question uh about deeper layers doesn't contribute well. I think you know that. Do you think min the reason is because because pre-layer non uh uh restrict the learnability of deeper layers? Uh this is my understanding. Do you think using your diet can mitigate that things like deeper layers don't contribute too much?
Actually, I don't think so. From my understanding on what motivates your work, it's because the scale of the activations, right? That actually very heavily restricts the scales of activation. So I think from that standpoint, it may behave very similar to, it will very likely have very similar problems as normalization layers. Yeah, that's my assessment, yeah.
Is it? Thanks for the great talk and the work. I'm just curious about like during the training process when does this S-curve start to show up and is there any like mathematical intuition behind it why does it show? Thank you. Yeah, that's a really interesting question. I think we haven't really, we haven't really
dig into it uh it's yeah the short answer is no we didn't really plot the curves along along like different stages of training mostly just look at final training maybe in training it started as more linear and then gradually shift towards more more s-shaped shaped curved that i think we need to to experiment to verify that um and uh why why is um s-shaped curve
I think it has to do with like you have to squash the extreme values. I think extreme values are very very bad for deep neural training the abilities and
Yeah, normalization, if you think about it, your larger value you have, your larger norm you have, right, you divide by yourself so that normalization basically tries to like squash the extreme values. And for tangent, I think that's natural, right? Tangent naturally, if you have a, it's a bounded function, right? You cannot exceed that upper bound. So it also behaves like that, yeah.
Thank you. Yeah, exactly. We have time for a quick question. Thanks for the good work. I want to ask you a question about if I already have a Lirnum model that's already converged, can you swap it with a diet that's closest and fine tune a little bit to recover? We didn't try that version. What we did try is we started the training with NANOM.
And actually that's for large language models. And we warm it up with neural norm and then we replace it with DITE. Maybe that's just like maybe for a few hundred iterations and that worked. So I think it should, if you can fine tune it, it should work. It should work. But then I cannot guarantee that it will work better than the neural norm. Maybe perhaps, but no guarantees, yeah. Thank you.
Yep Thank you. Thank you, John. Let's give John another round of applause.
Meanwhile, let me introduce our next speaker, Brian Lowe. Brian Lowe is an Associate Vice President and Associate Professor of Computer Science at NUS. He also serves as Director of AI Research at AI Singapore and Deputy Director of AUS AI Institute. Dr. Lowe has served as the World Economic Forum's Global Future Council Fellow.
Thinking Carroll filters for AI intelligence and robotics from 2016 to 2018. His research interests include data-centric AI, probabilistic and automatic machine learning, agents in ML and AI for science.
And Right. the stage is yours. Thank you. Right. Thanks for having me here. Right. I'm excited to talk about how we can enhance LLMs, in particular their performance using efficient prompt optimization. Right. Specifically, I'll be focusing on how we can tune both the instructions as well as the few short exemplars or examples that we have. So in this talk.
We will be looking at two recent methods, instinct and ease. They are both developed in our group. And our methods leverage on what we call neural bandits, right, for automated optimization, which I'm going to discuss more on. They are going to contribute to building more efficient and adaptive foundation models, which is one of the key themes of this work, this scope workshop. So...
Yeah, I guess all of you know that LLMs, the use of it is prevalent, right? For example, we can ask an LLM to compose an email for us or answer a math question. And as we all know, right, LLMs have demonstrated remarkable capabilities across a vast range of tasks. However, do we always directly get our desired answer, right? This often depends on how we interact with the LLMs, specifically on the prompts that we provide.
Now, these prompts can include direct instructions telling the model what to do, or exemplars showing the model examples of the task, or in fact a combination of the both of them. Now, this sort of reflects how people use LLM these days, right? Now, if we think about it, we are sort of changing the behavior of the original model into a new one.

a model into a new one. And we can adopt this approach to adapt an LLM to any specific task that you have, right, without actually changing the model at all, right. That's really convenient, right, because all you have to do is now to change how you answer the question, how you ask the question or the prompt, and the original model is still lying there somewhere in the server room unchanged, right. And the model now answers your question. Now we call this technique in-context learning.
So the challenge now is to find the right prompt. But this notion of finding the right prompt is actually far from trivial. And what you do see is a very common practice which we call manual prompt engineering.
It's often described as an art rather than science. It's time consuming. It requires a lot of expertise. And even then you might not actually land on the optimal prompt that you want, leaving the model performance on the table. So this brings us to a central question that's relevant to this workshop.
How can we move beyond manual tuning towards automated, efficient methods for designing prompts that effectively adapt the LLMs to specific tasks and hence making them more powerful and practical, alright? So in fact this is like a distinct signature of the research that's done in our group. Any moment we see something that's manual and laborious, we always think about automating it.
using optimization. Now the goal here is therefore to automate this problem design process using efficient and effective algorithms. However this automation it faced significant challenges.
First and foremost, the search space for prompts is huge, complex. Now think about all the different ways that you can phrase an instruction and that you can choose the different examples or exemplars, right? Now furthermore, right, when you try to evaluate the quality of a prompt, it usually requires you to query a powerful black box or proprietary LLM, right, which can be costly or slow.
Therefore, this requires methods that are highly efficient in terms of the number of queries to the black box LLM like GPTs. So a promising direction, which is the focus of this work, is to use techniques from sequential decision making, specifically bandit algorithms, for which we combine with insights from neural networks. And this kind of methods, it gives us a principled way to explore
this vast space of potential prompts or candidate prompts and then be able to exploit the promising candidates, right? And this will allow us to achieve scalability, efficiency and effectiveness as you will see later. Now this whole problem is essentially one of optimization, alright, because when you query the LLM with the prompt
It actually generates the output which is then evaluated to some performance metric right and then you can iteratively optimize this where the prompt is your input and the performance is the optimization target that you want.
So let's first look at optimising the instruction part of the prompt, which we call, you know, instinct, right? Now in particular, we want to do it for black box LLMs, where we don't have access to the internal structures, the states or the gradients. Now this is the problem that's addressed by our instinct paper, right, which is published last year in ICML.
Now the core challenge here is for us to be able to optimise this natural language instructions directly, right? And our instinct tackles this by cleverly converting the discrete combinatorial problem of finding the best instruction into a continuous optimisation problem using the notion of soft prompts.
Now doing this right we can iteratively optimize for the best form right using the performance feedback based on a task specific validation data set and over time within a specific budget constraint we can then obtain a natural language prompt that performs well. Now a bit more on the details right for the figure on the right
It presents an overview of the steps that's involved in the automated prompt optimization method, which is instinct. Now in steps one and two, that's colored in blue, right?
This, instead of doing it through the black box optimisation way which very typically we will use Bayesian optimisation with Gaussian processes, right, you know the use of Gaussian process is going to struggle with this highly complex objective landscape, right, in LLM prompting and because of that what we have switched to using is the notion of a neural network, right, as the surrogate model.
And then in steps 3 and 6, it's going to couple this optimization algorithm, right, steps 3 and 6, optimization algorithm with the hidden representations from a pre-trained white box transformer like Vicuna that we have used here, right. And this will effectively guide the search for good instructions for the black box target LLM like GPT.
All right. Now the effectiveness and the efficiency, you can obtain it from the bandits acquisition function, right, that balances the exploration, right. By exploration, I mean that we are trying to find new instructions that work well, right. We balance it with exploitation. That is the fact that if we know or we have found good prompts, we want to refine it to be better, often incrementally, all right.
Okay, now these are some results. We visualized the performance of the best found prompt. It actually improves as the optimization process progresses. And the overall performance of the instinct is much better than the other baseline prompt optimization methods, including those that's based on the standard Bayesian optimization, right, on various tasks. Now one key advantage that you see here is that of what we call query efficiency.
And that's where we are trying to find better instructions using fewer costly calls to the target black box LLM, all right. So instinct actually gives us an efficient technique that's designed for adapting powerful and black box foundation models using automated prompt optimization.
Okay, now let me shift the focus from instructions to the few short examples or exemplars that we use in the prompt. All right, that's the one where we, it's a separate paper, we call it prompt with ease.
While these instructions tell the model what to do, exemplars actually show you how to do it, right? Now selecting the best examples or exemplars and even the ordering of them are very important because this is a sequential problem, right? That's why the ordering is important. And it plays a significant role when we are trying to adapt the LLM to the downstream task.
Now, a second work that actually follows the same line of thinking as instinct is this work on exemplar selection, which we call EASE, which is the efficient ordering aware automated selection of exemplars.
Now the core idea, right, the core idea is to represent not just the individual exemplars, right, but also the ordered sequence, right, the ordered sequence of these exemplars using the hidden embeddings, right, from a pre-trained language model and that subsequently optimized through the use of neural bandits that we have used earlier.
And similar to instinct, we each use a neural bandit algorithm. It actually allows you to efficiently search the vast space of possible ordered exemplar sets or sequences to find a sequence that performs well for a target task. And to facilitate this search, we can similarly use the embedding or the hidden representation for the ordered sequence of exemplars.
Now on top of that we implement this filtering strategy via what we call optimal transport to reduce the candidate set for each optimization iteration so that this algorithm can run efficiently. In fact this method where we try to filter a very large candidate set in a very small set using a cheap technique and then following that we make use of neural bandit to identify the best one.
among this smaller set. This is something that you can consider, right, because it will drive down the cost significantly. Alright, and as you may have noticed so far, you know, this ease shares a lot of similarity to instinct, right, in terms of the formulation. And well, the good news is that because of this common formulation, it allows us to jointly optimise both the instruction as well as the examples.
Okay, now the results show that ease can boost the LLM performance across various benchmark tasks outperforming other exemplar selection baselines. And in this paper, we also show an empirical insight that effective exemplar selection, it actually becomes even more crucial when the base LLM has less inherent knowledge about the specific task.
So we have talked about this method's ability to optimize both the exemplar selection or sequence as well as the task instruction jointly. Now that's the best combination of what...

Now that's the best combination of what to do and how to do it and this is this we show this significant gain in the experimental results here right that is ease with instructions.
Okay, now this is the part where we put the two together, where we use our instinct to prompt with ease, right? You've seen these two powerful methods, instinct and ease, both leveraging neural bandits as well as the transformer embeddings for prompt optimization. And both of them tackle slightly different aspects of the prompt, right? And instinct, it excels at refining the core instruction.
That's very crucial for zero-shot performance or trying to define the complex task clearly.
Whereas EASE, it focuses on selecting and ordering the examples, right, which is vital for effective few -shot task adaptation. Now these approaches are highly complementary, right, you can imagine using instinct to find a strong base instruction and then using EASE to select the optimal exemplars for the instruction, right. And EASE's joint optimization capability, right, points to unified frameworks for which we can tune.
all prompt components together. Okay, so I want to briefly highlight why the NeuroBandit framework seems very well suited for this challenging prompt optimization task.
In terms of scalability, as you notice in instinct, neural networks can model more complex objective functions compared to the traditional models like Gaussian process, and therefore they are suitable for modelling complex landscapes of the LLM prompt performance. Now don't be mistaken, I actually love Gaussian processes, but I think more work needs to be done to get us there, if not already.
So the second advantage is that of efficiency. So bandit algorithms, they are inherently designed for sequential decision making under uncertainty and they aim to minimize this notion of regret and in our case it translates to minimizing the number of costly LLM queries so that you can find a very good prompt.
Now last but not the least, it actually incorporates, you know our method, incorporates knowledge from pre-trained models through the embeddings as both methods do, right? And this line of work demonstrates the effectiveness of borrowing ideas from sequential decision-making literature, right? For example in Bayesian optimization, right? In helping us to solve the more recent challenges in the era of LLMs.
Now, what are the broader implications for methods like instinct and ease for the field, right? We believe that they are going to significantly enhance efficiency by reducing both human expert time, right, traditionally spent on manual prompt tuning, and as well as the computational cost, right, that's associated with the brute force or less efficient search methods. And this makes deploying and refining LLMs more practical.
Secondly, they directly improve the adaptability of even the proprietary models or black box models because these techniques provide automated ways to quickly tailor a general purpose foundation model to perform well on specific downstream tasks simply by finding the right prompt without fine -tuning of the model weights.
Now ultimately, this kind of approaches contribute to making powerful foundation models more accessible, easier to use, and more adaptable to the diverse range of real-world applications.
Now, to conclude, you know, automated prompt optimization, such as using techniques like instinct or ease, right, is a promising way of efficient adaptation of black box LLMs to downstream tasks. Now, these methods represent important steps to adapt black box models.
while keeping in mind the cost-effectiveness and the ease of usage. Now looking ahead, there are some exciting future directions that includes extending these techniques to optimize more complex prompt structures, right? And you can think about optimizing the data format, in fact. And then you can investigate whether prompts optimized for one model or task can be transferred to others or even try to apply them to this growing field of multimodal.
La la lames. Now I want to mention two other works which I did not elaborate on today, right? For those of you who are sort of disgusted with zero order optimization or black box, like in your world you only believe in gradients, that's possible. So what we can do is that we can make use of all this data to estimate the gradients and think about whether we can optimize the prompt with this estimated gradients, right? This is one of the...
methods that we have looked at in uh NeurIPS last year, right. Now I also want to give a shout out to one of our poster right at that corner, right, that's Oppa. And this is the one where we make use of black box optimisation for optimising different types of parallelism, right uh for language model training, alright. So please have a look uh and up if it is the one presenting.
Okay, I'd like to point you to these two links to our papers. The first one is on instinct, right, that's done by my students Xiao Qiang, Zhao Xuan, and then Zhong Xiang who is now a faculty, right, in CUHK Shenzhen, and Wen Yang and Shu Yao, as well as for Yi's as well, right. Thank you. Thanks for your talk. Any questions?
I have question like actually. If you tune your uhm uh prompts, it will w how how does it per how compare with the bag of uh in or how do you think it will constrain some sampling probability of bag of uh in something. Bad of one sorry, bad of one. I I guess I'm not sh familiar with that. Yeah. Like like when you do long C_O_T_ your sampling many responses.
And again, Ah, oh I'm sure the bats aren't responsible for that, just to answer our questions. Right I I can
I can in fact analogously map it to these two types of approaches, right? You know, for the black box optimization approaches, they tend to do what we call one -by-one sequential decision making, right? Where you try to improve the next prompt and the next input that you have. Whereas there's this other class of techniques where we try to sample in the whole big batch, right? And then, yeah.
It depends. If you believe that you want to reduce or the cost of each query is, you know, very high, then what's going to happen is that this class of methods where you query a lot tends to be more expensive, right? Yeah. Now, that's not to say that we can't develop what I call batch mode, you know, black box optimization techniques here. It really depends on the cost, right, of querying. Thank you.
Yeah, uh let's thanks uh the speaker and uh And next session is our spotlight presentations.
Okay. So for the spotlight papers I would like to Huh. Will it come here? It's not coming? Okay.
Uh so for the spotlight papers uh for the afternoon session these are the order that we will maintain. So as it is about to be two P_M_ so we will request the authors of mixture of Mamba.
And it displays But it was working, right? It was working, That's great. I'm plugged in and uh

to push it to the Do you have some speaker notes or no?
um hey everyone good afternoon uh my name is Lily and today I'm going to share uh the work called mixture of um mixture of mamba or mixture of XSN so this is actually work done by Wei Xing and Jun Hong unfortunately cannot be here so I have to present the present for them but they did the hard work the paper the work and the slides and everything um and to be noted the first author is also on the job market
Markets.
Okay, first let's start with a hard fact. Now it takes insane amount of money to train those frontier models. And then let's say it's actually 191 billion to train a model such as GPT-4 or Gemini. And this is not only cost a lot of money also don't allow other players to actually participate in the game of pushing the model performance.
And not only, it also cost a lot of environment factor. Training the model, it needs a lot of CO2. So it's not only option, it's actually quite an urgent request that develop ways to develop efficient way to train those models.
On the other side, there's actually kind of like a new arising of new series of model that we are now moving from text-only model to multi-modality or mixed-modality models. Those model are designed to process different modalities, text, image, audio, or video. And here is example of GPT -4O and we shouldn't just get a new...
image of himself so those such type of model is very useful for like real applications like web agent physical agent AI for science or biomedical
And back in meta, we have been developing many of those models. For example, we have been developing a series model called Chameleon, where we tokenize image just as tokens, then you autoregressively generate them. So those models not only take text as input or single image as input, but actually interliving of text and image, then you could...
generates text and image. Besides this type of model, in our lab we also do transfusion where we have a single model that can predict text and diffuse image. So we think those two type of model serve some simple and effective model for mixed modality training. However, now we not only want such a model, those model are
expensive to train you are not only learning text you are also learning a different modality of course it's more expensive and what's worse is in this discrete size everything type of model we also found some like model conflict conflicting with each other that means training with image sometimes it hurts text. So um so it's urgent that we want to find a better solution and in this work we just combine very two effective and simple
a simple idea, stays-based model and mi and M_O_I_ and then we put them together and let's say if we find something better. So what is stays-based m model? Basically, stays-based uh state-based model such as Mamba, they replace attention mechanism with some stays-based dynamics, and let's allow you to do uh linear scaling or along your contact compare with attention you have this n-square scaling.
And people have found that a well-tuned Mamba model can be as good as Transformer but scale much better to context lens. And in this work, yeah, we also showed it's the same for multi-modality. And another idea besides an accessory in this work is the MOE. Basically MOE is a sparse structure that has been powered many of the current strong frontier models such as Deep Seek, Lama.
I mean, we don't know, but very likely Gemini too. Yeah.
And we actually tuned it a little bit for the MOE. We are not a router to route its tokens or we are not selecting expert. We have very simple rule. Basically, you route by modality. That means you just like you already know your token and then you just put your text through your text expert, put your image through your image expert and etc.
and then for each of those experts you have different set of weights or different set of parameters and it's actually not you can also in fact combine it with a two MOE that means inside the text experts group you can have multiple of them and you can also learn a lot of router so here we only use one expert but in our in some of other work we actually explore such a mixed strategy
And so this is a very effective way you increase your model parameter and not increase the flops.
And how that looks like when you just combine those two together. Uh so basically here we show on the left is the raw Mamba and on the right is our uh mixture of uh mixture of Mamba. So basically we untie untie the weights of input projection and two intermediant projection and output projection. Each of them have different copy of weights, depends how many modality you have. But interestingly we actually did a untie this uh
uh convolutional layer and an estate transition layer we found out is actually that you actually need to keep it intact to learn some transfer and how the dynamics change
So now let's just look at our some results. The first result is on transfusion architecture where we do both to do text generation and image diffusion. So this is a big table, but what you want to say first on the different column we have different model.
different modal variation, the mamba, and some of the fancy transformers uh uh transformer and the mixture of mamba. And what more important we are looking at is the last column, where you find out uh the you you you find your fif your baseline final performance and you find a intermediate step of our mamba uh our M_O_M_
performance that match it. So basically let's say uh your baseline need to trade in five hundredth of a step and then we try to find a step that we match it and that's how we calculate this relative loss. And on the
On the road there are many different model sizes and there's like different text and image performance, but yeah, but mostly you want to look at for image we improve uh more than we always introduce more than two X improvement. And on on the text actually we are just slightly better, the reason is this model transfusion already optimise text really well. But on the on the image size we can see we can easily get three X, two X improvement.
And here's a chameleon setup where everything is discretized and that's where I see oh there's like conflict between modalities. So here
We not only improve on text, we also improve oh sorry, we not only improve on image, we also improve on text. And the reason is because by untying the weights actually you also remove the conflict be between the modalities. So you recover the text uh performance really well.
So discrete token is very easy to add, so why not? Then we add a speech. So here we add a, we also put discreteized speech tokens into the mix, so like it's a mix of three different modalities of data. So we can say on speech we even can like turn X performance in some of the setup and on the

some of the setups and on the forex so through this experiment we just say oh this is like really universal and very general approach no matter what your training loss is discrete or continuous diffusion diffusion or lx token prediction or it's like different mortality is text image and speech we also we all like show great improvements
And next we just dive deeper to look at how each of the design choice impact the final result. Basically, it's very interesting. So earlier I show how we untie four different four different weights. So you can see actually if you only untie one of them, it actually hurts.
So we found out the modality on time is actually holistic. You need to on time every one of them. And in fact, combining them give you give you more improvement than Johnny just sounding them. Okay, this is basically our work, but there's we also did other
We also have other work. One work is a mixture of transformer. We didn't do Mamba, but we do transformer. But what I like about that work is we study how we can heterogeneously scaling different modalities. That means you can make one modality expert, one the other maybe five or something, then you can...
choose to put different number of flop into different modality and they can scale independently. And on the right is called L_M fusion. So we this cannot only work for t uh pre -training, you can also work for fine -tuning. That basically means we take a pre-trained lama
And then we phrase it, then we add a new expert. And the new expert is going to learn image generation, so this way, this way continue training, you can perfectly keep your original text or original visual text performance while also inject new capability. Yeah, so...
That's it's basically the work. Again, the first author is looking for a job. Okay. All right. Thank you. Thanks for the presentation and Question? Okay. Okay. So no.
So I have a question regarding the fact that for example you said that for the mixture of transformer you said that for different modalities uh different expert can have different flops right? Yeah. Uh is it same for your current paper like for the mixture of Mamba paper also or for that all the Mamba uh M_O_E_s are having similar flops? Uh yeah, I think it's for the Mamba paper we didn't do that for yeah. Okay, so that means uh here irrespective of the modality
ability all the experts are having same flops right. Yeah, that's correct. Uh that can be like over fitted for certain of certain modalities right.
Uh I think for all the modalities we have abundant data. So I it's not the case yet. Okay, got it. Yeah, but maybe like it could be it could be like we have a lot more text than the image than speech. I think speech is one of the data that's quite smaller. Yeah. Okay, okay, got it. Thanks. So for the next one,
All types of linear MOE, linear sequence modeling meets mixture of experts.
Hi everyone. Hi everyone. Uh my name is Weigao Sun and I work as a research scientist at Shanghai AI Lab. Okay, today I uh today I will talk about linear MOE. The linear sex modelling means the mixture of experts. Uh in the past year or two we have seen a lot of uh uh progress in the efficient uh uh modelling. One important direction is the linear modelling.
And where models have linear time training and constant memory inference. There are mainly three types of this RSM methods, like linear attention, SSM, and linear RN. Examples including the latent attention, GRA, based gated neural net, TTT, Titans, Mamba 2, RWKB, and HGRA.
Interestingly, uh all these mo models actually can be viewed under a unified uh uh recurrence uh formulation like uh the qo the qu equation uh oh sorry. Oh yeah. Like the yes they can uh they can uh be under a u unified recurrence formulation. And uh
Uh, well, there's a there's a lot of work on the linear sales models, but combining them with a mixture of experts, which can be a big part of next generation for of these models is still under its product.
And uh in this work, we build up a a system to study this uh combination, which we call the linear M_O_E_ The architecture looks like this. We have the L_S_M_ layer, which can be any uh linear effects model from the previous list. And we have the M_O_E_ layer which is widely used in today's as well M_ in today's as well M_s. It also supports a hybrid models that uh uh makes linear
layers and the traditional soft max attention layers. It's very a simple architecture and beyond just the architecture we have implemented the Gaussian MIUI as a complete system covering both the modeling and the training sub-systems. On the modeling side, it supports various linear self-models and three types of MOE.
implementations like chain one and the deep seek and the mixture MOE along with the uh uh jack point converters and examples. And on the training side, we integrate many advanced uh technologies like uh expert parallelism, alright alright R_E_S_P_ and uh mega blocks to make the training efficient.
And more importantly, everything is built on the top on top of the uh Megatron core framework, which uh ensures the stability and uh and uh scalability of the system. And the the system is a fully open sourced and uh uh you can find it at this uh project address here.
And currently, it supports all the linear models listed here, including our latest method MOM, highlighted here. And one key technique in the linear MOS system is the hybrid.
S uh uh sequence of paralyzed MFCC for the for the inter-layer hybrid models. Uh we propose the uh to use uh to use uh an all gather based uh communication strategy for both the linear SAX mode uh modules and the softmax attention modules as shown in the figure. And uh if you are interested in the
Uh uh second paralyzer for your attention I recommend you to check out our another work LASP2 for more technical details.
Here are some experimental results. We trained two linear MIMO models from scratch. And uh this plot shows the training loss curves, both for pure linear models and uh interlayer hybrid models. You can see that the hybrid models uh uh often show multiple training behaviour. And uh uh this plot shows the training speed. Yeah, it's show the training speed of the
Uh a two bit IMOI model and has a uh zero point three billion parameter act activated. Uh thanks to the technar uh techniques like uh uh as uh as per parallelism and mega block linear MOE maintains high training efficiencies.
And here is the infrared results as it as expected the linear

I thi I think expected the linear models should better influence speed and uh uh lower memory usage compared to the traditional architectures. Okay, finally we benchmark the we benchmark the models uh at two different scales and uh pair the results. Uh we can see that the MOE scaled well while maintaining the strong performance.
And there is uh there is also the MOE optimization performance. We have uh in integrated the uh mega-block uh framework to accelerate the computation related to uh MOE. Okay. Okay, thank you. Thank you for listening. Any questions?
Yeah uh uh thank you so much for a great talk. So um I'm um I have a question about uh like um how do you feel about like uh using linear attention hybrid architecture can scale up to uh very long context. Um I'm not sure whether you have done some evaluation on the uh most challenging long context benchmarks.
Actually the result is not included in this paper, but we have done the the similar uh experiments. We we used uh with the hybrid architecture architecture with uh with uh uh one sound mass attention layer in in average eight uh uh linear attention linear uh transformer layer. And it shows uh uh obviously uh improvement on the long context.
Uh benchmarking. Yes. Oh, so so so how long uh is your benchmark? Is it Uh thirty two K or Uh how how long it uh depends on the the model scale and the the and the and the results that you have. The long the lines to one may be uh four uh four four million. Four million contents lines.
Oh, I see. So uh so your conclusion is uh like using linear hybrid architecture can achieve even better results than the full attention architecture even on the long benchmarks. But the photo architecture has a drawback, it has a very high computation, complex...
complexity. So the computation and memory cost of the full attention will be very high. So we cannot uh extend to very long uh very long context. Yeah yeah, the Yeah. the t the decoding is the bottleneck for for Yeah, attention. yeah, yeah, yeah Yeah. yeah of course. It had key-v cache and the linear models cannot ha have key-v cache. Yeah yeah, Yeah. thank you. Okay, thank you.
Then thanks for the speaker. And uh our next talk is Latin Class Plus In has the relaxed speckleck specular decoding with the static train drafting for visual audio aggressive models. Uh it's so a quick Huh? Yeah.
Okay, hello. This is Si-Hyeon Park from KAIST, and I am a Ph.D. candidate of AI. First of all, it's a great honor to give a talk in this workshop. And today I will talk about a relaxed speculative decoding called Lantern Plus Plus, which achieves notable acceleration of visual autoregressive models. And here's the official implementation of
our work. So please feel free to refer to this repository. 'Kay. Um recently visual odour-evoked models have been proposed and demonstrated their great uh capability in generating images.
They generate images, auto-aggressively generate image tokens like LLMs and showed comparable performance to the diffusion models. However, they often suffer from slow inference due to the token-by-token generation manner. So in LLMs, speculative decoding have been effectively accelerate the generation by fast drafting and verifying multiple tokens in parallel.
So our question was that can speculative decoding accelerate visual AI models too? Unfortunately, the answer was no.
Okay. Hmm. As shown in the figure A here, the nine applications of the existing method to speech or AR models were not effective as we expected. For example, we go to here. We shows uh who shows around five times less generation steps in a LLM. But it results in only around two times or less generation steps in speech or AR models. And the problem was what we term token selection ambiguity.
In other than the next talk in distribution have a clear peak, but visual AI models often exhibits flat next next talk in distributions, which means many plausible talkings with low probabilities. As we can see in the figure c, other than presence
0.78 top one probability on average but visual AI models only have uh 0 point 20 and 0 point 26 top one probabilities. And since the original model fail hard to prioritize a single token as the next token, the drafter often fails to predict the target model's prediction as well, which results in low acceptance rate and thus limit
limits the the effectiveness of speculative decoding. Here's our first attempt, termed Lantern, which is published in this ICLR. Uh our observation was tokens close in latent space optionally to similar visual features. Note that the image tokens of visual AI models are vector quantized latent features of VQ-VAE.
The top low here presents original images and bottom low here presents each image tokens are replaced one of hundred closest tokens in the latent space. As we can see here, despite there are some artifacts, the overall visual semantics are quite well preserved. So our idea was, even if the Drifter's prediction is not accurate, if it is a near...
A high probability region of target model in latent space, we can safely accept it since they are close enough and highly likely to generate almost identical images.
However, uh such a relaxation introduces some distortion in image distribution. So we introduced a T_V_D_ bound to ensure the relaxed sampling stays close to the original image distribution. Okay now let's move on to the present work, Latent RepresPlus.
Despite lanterns successfully accelerate visual AI models, we found that lanterns drafting is still weak. Basically, lanterns construct a tree of draft tokens dynamically, which it dynamically prune low probability sequences and select high confident draft tokens deterministically. However,
Drifter confidences in visual AI models are often low, as the original visual AI models do. So deeper deeper sequences highly likely to have lower probability than the shallow ones, so the resulting drifter tree remains shallow. Here's an example shallow tree. As we can see here, it has only a depth three drifter tree.
So um a deterministic selection of draft tokens effectively set the draft or probability p equals to one. Thus it reduces accept probability to the target model's likelihood q, which is often low. And table here shows that the dynamic tree-drafting is effective for LLMs but
is not the case in the visual AR models.

Okay, our first component is the static tree draping. A fixed tree structure ensures consistent tree shape regardless of draping confidence. And the stochastic selection of draped tokens does not make P equals to one, and thus recover the meaningful accept probabilities.
Here's our aesthetic tree structure contains fifty eight node and has depth of five. And the second component is the multiplicative relaxation. And since our first attempt lantern uses an an additive relaxation, it can make some kinda inconsistency in the relaxation.
For instance, for a small p, large delta can overly amplify the accept probability, and for larger p, small delta gives only a negligible impact. So to ensure the the relaxation consistent, we introduce a multiplicative relaxation here.
Where the upper bound of the the aggregated probability does not exceed the lambda times of original acceptance probability. Okay, Theorem plus plus achieves up to two times two point five times speed up with minimal quality degradation degradation over different feature AI models.
When it compared to our first attempt lantern, as we can see in this table, Lantern plus plus can make significant improve improvements upon lantern. And here's an example images generated by Lantern plus plus where the white number below present the how much generation steps are reduced. We can see the resulting image quality is not that different while it
significantly accelerate the generation process. Okay, thank you for listening and any questions are welcomed. Any questions? If not I have a question. Uh you talk about the peak probability of a visual model is lower Yes. than language model-w do do you th why do think this is case? Do is there any fundamental pitfalls?
Missed alignments somewhere? Yes, um while we do not um dedicated analysis on that, but we s we speculate that the reason why is because um compared to the text, the images nature is quite continuous and complex, right? And and and the image tokens in the visual AI models are vector quantized.
latent features, so we we think that they are um hard to hard to prioritise it to a single token maybe. Thank you. Uh is there any more questions? If not let's thanks the speaker and our next presentation is
Over-trained language models. Over-trained language models are harder to fine-tune.
Hi everyone, my name is Jacob. I'm a PhD student in the Machine Learning Department at Carnegie Mellon, and I'm going to be presenting our paper, Overtrained Language Models Are Harder to Fine-Tune. And so let me begin by talking about the standard LLM pre-training and then fine -tuning paradigm that we observe today. Often language models are pre-trained on a ton of data and then fine-tuned on a relatively small amount of data. And in particular, what do we do if we want to improve performance in this paradigm?
Well, we can do a couple things, but based on the central dogma, as I'm calling it, of machine learning, the biggest thing you can do is simply scale the amount of c compute. This has been shown to be extremely effective in multiple settings.
So first of all, scaling compute and where you scale both the model size and the amount of data has been shown to be extremely effective. At the same time, you don't have to increase the number of model parameters. This is especially important when you want to keep the inference time compute fixed. And this has also been shown to improve the performance of the base model.
So, in fact, this regime, which we call overtraining, where you don't increase the size of the model, has consistently been used in order to improve performance. And you can see this notably with the LAMA models, where the number of tokens that have been used to train the same size model has increased 15-fold over about a year.
So what are some of the base model desiderata that we actually want if we're trying to pre -train a model? Well, if we want to be able to pre-train it for adaptability, we want two different qualities. First, we want the actual ability to adapt to your downstream task, which we're calling adaptability. And second, we want to be able to maintain the existing base model capabilities of the model, which we're going to call robustness. So let me give you an example of what this might look like with instruction tuning, which will be the recurring example we use at least for the beginning of this talk.
So if we want to measure adaptability, we want to measure the in distribution performance. And for instruction tuning, this might look like something like the response quality, which we can measure. Excuse me. For robustness, we can measure general LLM benchmarks such as QA knowledge or reasoning or any other set of benchmarks that would be unrelated to the task that you're fine tuning for.
And in particular, our first main claim of this paper is that overtraining that is training for too long, pre-training for too long can hurt the adaptability of your model. And so we can see this by looking at the following graph. On the x-axis we have the number of pre-training tokens, and you can see that early in training the performance is improving, going up. However, later in training the performance begins to decline.
We see the same thing with robustness. And so overtraining can hurt robustness. Again, we see the same trend where initially the model performance is increasing, but later the performance is declining. So we call this phenomenon catastrophic overtraining. And in particular, it's when extending the pre-training decreases the performance after subsequent modifications of the model like fine-tuning.
So let's understand exactly what's going on in a simplified controlled setting. In particular, we're gonna pre-train small models at the thirty million parameter scale, um we're going to fine tune on language modelling tasks and we're going to measure robustness by looking at the pre-training loss measuring the general capability of the model and the adaptability by looking at the fine tuning task performance.
And so we observe catastrophic forgetting, excuse me, overtraining in multiple situations. You see this with the characteristic U -curve highlighted in red, where both robustness begins to improve early in training and then eventually decline, as well as adaptability, which you see on the bottom. For the remainder of this talk, we're going to be focusing on robustness, which is measuring the overall capability of the model, although this also all applies.
applies to the downstream performance as well. We're just going to omit that for now. So when exactly does catastrophic overtraining occur?
So we can understand this by looking at a schematic in our minds. So there's two simultaneous monotonic processes that happen during training. First of all, we've already agreed earlier that the base model performance that is before fine tuning is going to consistently improve with additional pre-training. At the same time, the model is becoming more sensitive to changes, more sensitive specifically to perturbations. And you can see this as if you measure the difference in how much you degrade the model.
as a function of the amount of pre-training it will increase if you use a constant sized perturbation. So together if you are perturbing the model by a constant amount then you will see that the final model perplexity initially improves as the base model quality is getting better but eventually declines as the sensitivity starts to overwhelm the loss.
So let's look at a warm-up example of Gaussian perturbations. We don't have to do fine-tuning, we can consider a much simpler setting simply by perturbing each parameter by a Gaussian. So we can measure the sensitivity again in the same way, by measuring how much the perplexity of the model declines. And you can see that it increases monotonically.
Together, again, based on the same intuition, the overall perplexity of the model initially improves as the base model gets better, but then eventually declines as the sensitivity overwhelms this and starts to dominate the loss.
We can imagine the loss landscape where early in training you'll start within the center as your theta parameter having a reasonably good low loss and then a fixed size perturbation will bring you into a medium loss regime. At the same time, very late in training or after a lot of pre-training, you can imagine that there is a very low loss point that you're started at, but the model has become much more sensitive and so that same size perturbation will get you to a high loss regime.
So what about fine-tuning our intuition is almost the same except with one very important difference and that is that

very important difference. And that is that the actual magnitude of each change is not necessarily the same at different stages of pre-training. And so one thing we can do is we can look at a particular case where we actually do have this property that you get the same magnitude perturbation throughout any point in pre-training. And that's when you use the same learning rate. You don't tune the learning rate. And so we'll look at some examples where you don't tune the learning rate for different learning rates, of course.
And you can see, again, measuring the sensitivity, it's increasing approximately monotonically throughout training. And again, you see this characteristic U-curve again for when you do not tune the learning rate. So now what happens when you actually do turn the learning rate? Well, you can imagine a couple different cases depending on how the downstream task performs with different learning rates. In example one, if the downstream task benefits from a large fixed learning rate throughout training,
throughout all of pre-training, then you might imagine that keeping the same learning rate will eventually lead you to catastrophic over-training. However, in a second example, if the best learning rate, that is after you tune the model and choose the learning rate, is decreasing over training, you can see that you can actually improve your performance consistently. And so this together explains some of the diversity we saw earlier in the example where catastrophic over-training can sometimes happen and sometimes not.
not. And we can see in different cases we get this behaviour where sometimes you see degradation and sometimes you do not. And so beyond actually tuning the learning rate, any form of regularisation that might keep the parameters close to the base model we expect to help. So in summary, over-training can harm the fine-tuning performance after extended pre-training. And secondly, uh if you can regularise this properly, we might be able to address it. And so uh please come to my poster, it's over in the back there. And thank you.
Questions. Sure. Okay. Thanks for the great talk. Um I asked you questions in the morning already, but I have some follow -up questions here. So um I think by the logic, um not just the instruction fine-tuning, just things like uh R_ uh R_ H_F_ is probably gonna suffer the same problem. Do you have any evidence to that? And second, have a criticism about the uh the loss landscape theory. Um
If you're talking about the pre-training loss, of course, this is really the the training dynamic, uh but for fine-tuning tasks, a different fine-tuning task will have a different loss and uh that landscape may be very different and it may
may not be really near any like attractive basin for minimum. Yeah, those are both great questions. To the first one, to understand if there are other settings other than just instruction tuning where we see this, we don't study, I forget if you said RlHF or reasoning, we don't study either of those settings. We do study multiple instruction tuning data sets. So Anthropic HH is one of them, TULU is another. We also study
The multimodal fine-tuning where you want to do some sort of like VLM lava style fine-tuning to add the ability to to reason about images And we see the behavior in all of these settings towards your second point, which is that if you look at the actual fine-tuning task perplexity or the task performance that landscape can look very different I agree. We don't have a clear picture of exactly why we get degradation in this setting But I think intuitively if you imagine that
Imagine that the base model is helping the fine-tuning task. If the base model becomes worse, then we might expect very loosely and intuitively that then the resulting fine -tuning task becomes worse. And so if fine-tuning is distorting the base model features that are useful again for fine-tuning, especially that maybe are better out of distribution, you might get worse generalization than once you started to degrade the base model features.
Thank you. Hey, any insights on why the sensitivity is increasing? Because I thought if even though the capacity is seven billion parameters, if you increase the number of tokens, it's ingesting more of a you know bigger distribution of things.
So why is the sensitivity increasing? Right, so one thing is that we're looking at extending pre-training using IID samples, and so it's not necessarily the case that we're seeing sort of an expanded distribution. It might just be the same distribution with more samples. However...
We don't have like a precise understanding of exactly why sensitivity increases. There has been prior literature looking at sort of local approximations. People call this sharpness, where they show that sharpness will increase. We're talking about a slightly more global scale, not just what is approximated well by the second order approximation, but we could imagine that like maybe some of the intuitions in the literature might hold and people have many ideas of why it might happen. It's not clear at the moment exactly which one is right.
is right. You have more questions? If not, let's thank the speaker and our next talk is Steve, Scalable Text and Image Conditioning Video Generation.
The latest version. Oh, I sent it to Yeah, you in email. I downloaded already. Okay, thank you. Oh, can I use the keynote version? Oh yes. Mm no, it is not really. Check it. Still not here. In now yes. And this one, video gen two, right?
You know open the Kinect. Oh it's a Windows system. Yeah yeah. I see. I see. Okay that that's fine. Okay. Um so hi everyone. My name is Soi-Lin. I'm now a UCLA P_H_D_ student. On this is the work done by a d many done on during last summer at Apple. Um
Yeah, so the paper is uh um scalable text and uh image conditioned video generation. So we hope that uh we can provide a step by step transparent recipe for the research community to build their uh video generators step by step. Um so our task is uh uh text image to video. Uh sorry, I cannot see the
You channel the airbag ceiling and it's working. Or did he still not working? Means he cannot see here. yes I think Yeah. See do I cannot see it through the other point. No, it's video. Yeah, it's video. So Oh yeah. Think he went
You have to see the, you have to basically see here because this the extended version is not working. Okay. Okay. Now I can talk. Um so our task is to generate videos conditioned on the input text from the images and we hope to achieve better semantic alignment and better vision quality uh under higher resolution longer duration videos.
So basically from the experience of language models and vision language models, we can see that scaling is the key towards a better video-generation models. And the diffusion transformer is one of the architecture that shows the superior scalability against other architectures. So we use the diffusion transformer as the backbone for our scaling up experiments.
Yeah, so however scaling up is non-trivial, the first issue is the numerical instability which is often shown reflected as lost spikes which often happens during our training process and leading to the performance collapse or failure of convergence. And also another important issue is the training efficiency for the larger model training.
And also it is very hard to unify different kinds of tasks. And in our case we care about how to unify text to video, image to video.

Oh, so here comes our framework. Um our framework uh the backbone of our framework is mainly based on diffusion transformer, where the where the uh attention part is uh uh special temporal factorized attention, where we uh do uh the spatial attention on the 2D spatial sequence and uh do attention on the 1D temporal uh uh sequence. And we take inputs the text text prompts and the uh uh uh given images uh using our
a VAE image encoder and the clip-based text encoder and they are passing through the cross-attention layer into the transform into the diffusion transformer backbone.
And we also passed the information of time step of diffusion and also some micro-conditions about the images like resolutions and aspect ratio through the shared adaptive layer norm.
So for, you know that you achieve stable training, um we first do detailed monitoring um on the model architecture. Um basically we we we we do the monitoring on the magnitudes of the forward outputs and also one important thing is to do monitoring on the max attention logics. We observe that uh um
Max attention logits and the output of the magnitude of forward outputs in different in the special temporal attention and feedforward layers can can be increasing extremely or we can see some like very extreme values at the loss spikes so in order to tackle these phenomenon we propose we adopt several numerical stability tricks including
um using attention logic cap uh and the tuning beta one in M_W_ and also uh using a longer warm up uh warm up schedule and we also uh try hybrid normalisation or or we can say in a sandwich normalisation uh in the uh attention layer and M_L_P_ layer. And with the combination of all of the tricks um we can see that the loss spikes can be greatly mitigated.
Um and also for efficient training we we we use um first use mass DIT where we randomly drop some tokens uh in a in a special sequence um and uh use a encoder decoder architecture to do that uh and we also uh when we when we scale our model to a larger resolution or longer duration uh we initialize our uh text image to video model from both the text to image chapter
SharePoint and Mm-hmm. the text-to-video SharePoint uh to initialise different modules uh and also using uh rope interpolation for the for the uh for the length extrapolation of
And in order to effectively incorporate the image conditioning, we try different uh we try to major routes. Uh one is the frame replacement, where we uh replace the noised uh original uh latent with the ground truth's frame latent after passing through the VAE. Uh and by doing these, it is very flexible for supporting different modes, like uh for uh image image to video, it can just replace the first frame.
frame. For video to video, it can replace the first several frames. And another role is to pass the image embedding after going through the VAE or going through the image encoder like clip, we have tripos, and then concatenate with the text embedding and then passing through together by the cross attention layer into the diffusion transformer backbone. And the question is do we really need to route for incorporation?
So we have done sufficient ablation studies to show that like by adding a more complex or larger projection layer can help the cross attention for better image conditioning. However, we see that bias doing the frame replacement alone can already achieve very good performance.
And during our um image conditioning part, we also do our dropout during the training. So that so that
So the dropout means that we randomly replace the image-conditioned latency with the original noise latency during training. So it's something like we learn both the text -to-video task and also the text image-to-video task during the whole training process. So it can naturally support multitask training. So you can see we have three roles. So the first role only support the T2V and the second role has...
or worst performance on the T2V because it's mainly trained on the image to video and the third version is the model with the image conditioning dropout so that it can both handle the image to video and the text to video tasks together very well.
And during our practice, we found that when we train our video generation model on a very large scale, over 7 billion parameters, we see the image to video often like over following the first frame, like it will generate some state of frames after the first frame.
So we found that the using the image conditioning dropout can also uh uh greatly uh improve the motion quality which can mitigate the static issue I mentioned.
Yeah. So we have done a qualitative evaluation on VBANSH and some other benchmark, which is you can check our paper for more results. But here I'll just present the results on VBANSH, which is commonly used. You can see that all the scores can benefit from scaling, including the. So basically it was divided into the semantic dimension and as well as the.
quality dimension where each has like around the 10 sub -dimensions. So you can see that the semantic scores can benefit more from the scaling. So we guess there's something like their emergent capabilities of reasoning in language models that should be benefit more from the scaling and the quality should benefit more from the like the...
data quality and so here's the overall results you can see that we we use like 95 % is the open source data and with the 95 open source data we have achieved superior semantic scores compared with the state-of-the-art baselines
Yeah, this error is moving very fast. So the results in this paper does not include the most recent models. Yeah, so here is the results on the image to video. And you can see that our model, different versions has achieved a better performance compared with the state -of-the-art open source and close source models.
And yeah, so now we know that by scaling we can achieve better video quality and better alignment. So I'll just quick scan through how we like try longer video generation. So long video generation has many downstream applications and the major challenge is the training and sampling efficiency and how to achieve temporal consistency and richness.
Um so here we try two major routes the first is uh based on the divide and conquer where we have two major components uh the first is a key frame prediction model which is which is trained on downsample frames um and the other is uh is a interpolative frame uh frame interpolation models where we condition on key frame pairs to generate the frames in between and we merge two models together into our steep
Framework and we train on videos with different strides so that it can generate both the key frames as well as the interpolated frames
And another approach is we try the autoregressive rollout where we first multitask train our stiff condition on neural frame, one frame or two frames together. And then we first generate the video using the text to video mode or the text image to video mode. And then we condition on the last one or two generated frames to do the generation in a rollout manner.
So in our practice we found that autogressive rollout is better for visual quality and consistency and we employ a relatively small resolution video jam model with only 20 frames but do roll out several times and we test on the vbench long version and we show reasonable performance compared with the state of the art open closeness models.
So you can you can check our paper for more details about our adaptation of main architecture to different downstream applications like multi-view multi -view generation video prediction and interpolation models.
Yeah, so basically we provide a step-by-step recipe for building text image to video models and we scale our models to eight billion with stability and propose some efficient recipes to do that and we support flexible text and visual

And we support flexible text and visual conditions, and we uh we try different routes to uh support longer video generation. And our model has achieved uh decent performance uh in um we bench. Yeah. And that's all for my presentation. Thank you so much. It's time for questions. Any questions?
Uh I add I do have a question. You are talking about the loss of the mic s main issue. Uh do you have ablation study which techniques can like have some more? We have a bunch of the Yeah. tricks I think. So I don't know whether I can revert to. Oh, sorry.
So finally we actually adopt the longer warm -up and sandwich normalization because we found like attention logic cap and then tuning beta 1 in Adam W is essentially sacrificing the convergence speed for higher stability. But it's like so the first time we tried that it was pretty stable if we use attention logic cap over the like
um decreasing the beta beta one in adam w yeah but later we after we adopting uh the the sandwich normalization we found that uh um it is much stable as well as uh very effective in the training loss and validation loss and um um but for sandwich normalization the the optimal hyperparameter setup you need to like uh such a lot in order to get the optimal one like you need to increase the learning rate
For Yeah. for sandwich normalisation. Yeah for sandwich norm. Y so your hybrid normalisation is sandwich sandwich normalisation. Oh yes. Okay, I see. Thank you. Well thanks uh for the speaker. Next uh next our presentation is rescue, mixed resolution quantisation of a l language models with the low rank residues.
By the way, and end of this talk we are we are going to announce the best paper award for this workshop. Please stay with us. Thank you. Hello everyone, uh my name is Utkarsh, uh I am a PhD student at Purdue University and I'll be presenting our work Rescue, which is mixed precision quantization of large language models with low rank residuals.
So uh we know that uh parameter count uh of machine learning models has been increasing over the years, started with computer vision models, we are now in the era of large language models. And we see that uh most recent uh LLMs, they require memory which is orders of magnitude more than what can be supported by a single GPU.
And uh this this plot is little bit old now because lambda four is now two trillion parameters and GPT four point five has been rumored to be about ten trillion parameters. So but i also if you see their uh disparity with mobile GPUs uh the disparity is even larger. Uh more specific to large language models is K_V_ cache, uh which can be orders of magnitude more than the weights itself at long sequence length or at larger batch sizes.
And similarly, the amount of flops required by these models has been increasing exponentially and much more than what a single GPU card can support. Quantisation can solve all the three issues, where a weight quantisation kind of reduces your weight memory. Kv-cache quantisation reduces Kv-cache memory and if you add activation quantisation on top, you also reduce the amount of flops in your model.
And Hmm. so that's why I work rescue. It targets holistic weight activation and KVCache quantization of LLMs.
Now, uh what are the challenges? First is uh people have shown that you can quantize your weights of your LLM to four bit without losing much quality. People have also shown that you can quantize your KV cache to four bit without losing much quality as well. But quantizing your activations to four bit is still an open challenge and we we focus our discourse on like trying to uh quantize the activations to four bits. Um and why quantizing activations is
is challenging is because the activation feature map in your LLM has outliers. So when so you see that some channels in the feature map has values which are orders of magnitude more than other channels. And if you use a standard min-max based quantization, these outliers kind of extend your range. So all the values in the bulk are not represented accurately, which leads to high quantization error.
Also uh maybe you can do quantization aware training to kind of uh make your LLM such that the outliers are suppressed. But quantization aware training is expensive. So we want to stay in a setting where we do post-training quantization. So uh to kind of handle these outliers there are some works which have been proposed already in literature. There's a work called Quick published in EMNLP last year.
What it does is it kind of tries to find channels which have outliers and it keeps the channels in eight bits. So for example here shown in orange, those are the channels which are kept in eight bit and the ones shown in blue are kept in four bit. This is their approach to minimize quantization error.
And more recently works like Carrot and SpinQuant. Uh SpinQuant was just presented today morning. They introduce the concept of uh activation rotation where instead of quantising activation X, you quantise your rotated activation X times R_ Uh Carrot uses Hadamard transform to find the rotat to u like as the rotation, um while SpinQuant learns it using gradient descent.
R-work rescue, uh it does mixed-precision quantisation of projected activations. So our entire contribution is kind of designing the projection matrix U_ which helps you do better mixed-precision quantisation. Uh for uh our work we keep one by eight channels or twelve point five percent of channels in eight bit and remaining seven by eight or seven eighty seven point five percent of channels are kept in four bit.
So average bit width is 4.5. So in rescue, we project the activations and weights using an orthogonal matrix U and quantize the coefficients along the projection matrix. So since we do mixed precision quantization, we divide the projection matrix into a low precision part and a high precision part which is 4 bit part and 8 bit part.
And activation and weight quantization looks like this. You project X times U and you do a mixed precision quantization on projected activations. Similarly, you project the input space of weights with U transpose and you do a mixed precision quantization on the input space.
Um since we want to focus on minimizing activation quantization error which is more challenging we did we try to determine u to minimize the activation quantization error which can be written as a sum of uh quantization error of low precision or four bit part and a high precision eight bit component.
Ideally uh you should satisfy two things. First is the low-rank space that we keep in high precision should only keep much more important components of activations uh because we want to minimise uh error of things in activations which are more important. And second is the quantisation error within the four bit quantisation and eight bit quantisation groups should be minimised.
So to d do this we write projection matrix U as a product of two orthogonal matrices, P and R_ Uh in our case we choose P uh uh to be a P_C_A_ projection matrix uh and R_ is chosen to be a block diagonal random orthogonal rotation matrix. So so kind of uh you can visualise this as uh
After you project your activations with P or the PCA basis, it kind of gives you the eigenvalues of your activations and when you rotate them with R you are kind of mixing the eigenvalues so you are smoothing out the eigen spectrum of your activations which is helping you do better quantization. In our case we keep
Uh the projections along the principal basis uh or the eigen or the basis vectors with highest eigenvalue in eight bit. And the other uh projections along other basis vectors are kept in four bit. Uh one more thing is that uh we do not perform online PCA. Instead we d uh we take a calibration data set. Uh we find activation space offline for your L_L_M_ and that gives us the project

Mm-hmm. and that gives us the projection matrices offline. Uh so once you've have those you don't need to uh do any online uh principal component analysis. The second thing is that once you have the projection matrix how can you project your activations and your weights without any extra computer cost. So m we see that
Most of the projections can be merged into the weights. So you can merge the output space of your weights with U_ so that your activation s output activations are also projected. Uh and we merge the projection matrices and perform expression quantisation. Uh few of the projection matrices are left on the fly, which do incur uh extra cost, but it helps us do better quantisation.
Then we compare, we do a thorough comparison with different baselines, we compare with GBDTQ, SmoothQuant+, which is a better version of SmoothQuant, Quick, Carrot and SpinQuant and we test, so also we test WikiText Perplexity, we do an average zero shot reasoning benchmarking and we also test the MMLU accuracy and we see that Rescue outperforms SpinQuant and Carrot and Quick.
quick uh for the lama three model uh also uh we do not need to kind of train the rotations so it is more easy to quantize res uh using rescue. We also test on more recent lama three point two and two and two point five models and we see that the performance is better than related baselines. Uh we also test on some uh generative benchmarks like GSM8K Fei -Shot.
uh inference and some tasks from long bench and we see that uh the improvement is kind of sustained and uh rescue performs better. Finally we implement uh some exploration uh CUDA kernels and we try to evaluate speed up on RTX 3090. We get about 3x speed up uh max up to 3x speed up uh in pre-fill uh and up to 3x
uh reduction in memory usage over your F_ F_P_ sixteen base line. Uh compared with a pure Ink approach, we are fourteen percent slower and require eleven percent more memory, but we have much better performance in terms of accuracy. So thank you and I'm happy to answer any questions. Also the code is available in the paper and uh there are more results in the paper. Thank you.
Do we have any questions? I Yeah, first of all, thank you for the great talk.
And my questions are following. You che replaced uh add a modern transform with uh your P_C_ based uh transform. And uh add a modern transform has a very optimised algorithm for computing. And I assume that uh your rectangular transform is not. So how big is the slow-down?
compared to spin quanta, for example. Okay, uh so most of the projections are merged. So uh they don't lead to any run time overhead, except uh the U_C_ presentation or U_ k uh which is for K_V_ cache. Uh in spin quantum carrot there that is hadamard, but in our case it is uh regular orthogonal matrix. We try to uh implement that efficiently by first of all sharing the same
uh matrix for all the heads. So you don't need a large embedding dimension matrix. Your size of a matrix is uh one twenty eight cross one twenty eight, much smaller. Also we quantize that matrix and the input activations to it to eight bit as well to implement it efficiently. Thank you. Fancy. Oh, thank you. Thanks. Thanks everyone.
Cool, thanks all the great speakers and now we are going to the uh oh I already exposed it. Never mind. Now we are going to announce the best paper out of standing papers in our workshop. And our workshop we have uh in total eighteen seven submissions, and we we select one out of standing papers which is over trained language models are harder to fight you. As
And we also have two outstanding runner -up papers. One is Latin plus plus and another is linear MOE. And the the the the author of these three papers please come in front and we have a certification for you.
Congratulations for the award. Thank you. So we'll be starting the next keynote talk in like two three minutes.
So if you want to grab some coffee or tea, please feel free.

We are starting the last uh two keynote sessions. Uh so today we are pleased to have uh Pablo Moncharov. He is the Director of Research at NVIDIA uh and he is leading a team uh in the domain of efficiency of deep learning. Since twenty twenty three he has been leading the deep learning efficiency team at NVIDIA Research. Yeah.
He obtained a P_H_D_ from Temper University of Technology Finland in 2014 with Karen Ekwezerian.
During his studies he received the Nokia Foundation Scholarship, Getta Graduate School grant, best paper award and young researcher award at URAD. Recently he has focused on efficiency in L_L_M_ and multi-modal models like compression, neural architecture search like acceleration, novel architectures and adaptive or conditional inference. Up to you, Pablo. Yep.
Test test. Can you hear me? Can you hear me now? One two three. I'm just attaching. Yeah. Cool. Uh yes, thank you everyone. Uh I know it's late, the last day. So thank you for sticking here and uh you know the alternative it's about to rain outside. So definitely better to be inside right now. I'm gonna talk about efficient uh language models. We are compression and architecture design.
So let's go dive into it
So motivation of of works that we do in the team is that we usually need multiple models that we wanna run on different devices. Right, so device can change, for some we need large models, for some we need small models. Or the load even on a single GPU might change. And current solution to this is to train a family of the models. So we train many models, you know, from scratch, it takes a lot of resources. Um so the question we are asking then then this what gonna take like seventy five
present of my presentation is how can we make it more efficient. This uh instead of training the family of the models from scratch. And uh yes this is just some putting some numbers into perspective. Let me take a pointer here.
Yeah, I did some back envelope calculations here. This is not the actual numbers, so don't take a picture. A llama three, assume family we want to train on 7 trillion tokens. And if you're going to count for like, let's say five models in this family, 13B, 10B, 7B, 5B, 0B, 3B, I calculated amount of cost based on information in llama paper. And so if I want to do this family, it's going to take about 5.4.
million dollars and you can imagine this is doesn't include the research and development that was happening before. And also to serve these five models I will need roughly 20 gigabytes of memory assuming I gonna quantize model into int4. And like one of the issues here I will talk about this later but compute budget so sometimes you
can serve only this specific models, right? Hmm. And i if you have even a bit more computer budget until you reach the next model you cannot use it. So you're gonna waste it. Uh so to do uh
Anything about that? We first analyzed activations and what's happening in trained models. So here we take LAMA 7B model out of the box, the one that's in hugging phase, and we calculated energy, which is just activation value of different heads in the model. And we show this on the plot. So layer index is going to be my layer number from 0 to 31, and we're going to have, I don't remember, like 24 heads or something.
if we just plot them like this, we don't see anything uh much interesting. So first step is to normalise activations per every layer. We gonna make sure that it goes from zero to one this energy. And the final step is sorting out uh this values from very large one, which is one to to the smallest one, zero. And you can see an interesting pattern here, right? This is uh shows that not all
Heads have the same activation. We can consider this as an importance. And we can see that a lot of energy is concentrated in in this first part of uh of these heads. And if they can calculate that uh basically in the first twenty five percent of heads there is a forty percent of energy stored. Then twenty five percent twenty and fifteen. So it kind of means that the model is uh you know sl slightly over parametrized that it doesn't use
Ever since it's up there in the model. And so the intuition here is that if you want to, for example, compress models or do something about it, we can consider that in this case we're reducing amount of energy, but it's still going to be high. So even as I mentioned before, for 25%, if I'm going to keep only 25 % of heads, it still accounts for 40% of energy of the full model.
And the exactly same happens with MLP layers. There is also like, you know, not all neurons there are important. Some of them are more important than others. And so the idea of our next work, we call it Minitron pruning distillation for LLMs, is how we can leverage this non-equal importance in order to compress the model. This work was presented at NEURIPS like around half a year ago.
So let's go back to to our numbers here. Uh what we are trying to achieve is pruning is uh this kind of iterative uh process where we start from the large model so we still need to train it and then we're gonna compress larger model to the level of smaller one. And because we don't start from scratch, this is gonna save us a lot of money.
What I'm showing here is, for example, to go from 13B to 10B, we will spend only 60K dollars. I mean, not only, but you know, it's relatively small comparing to 2 million before.
And this is because we're going to use only 200 billion tokens to get these smaller models. And so overall saving here is going to be around 2.7x reduction. And obviously you can assume that if my model is going to be bigger, right, I might want to go with this to LAMA 405Bs and the scale of these numbers is going to be much larger. So let's see how we can do that.

see how we can do that. Uh main pipeline is shown on this uh slide. Again, uh a lot more details in in this paper, L_M_ pruning and distillation in practice, the minotaur approach. Uh let's just recap. So the challenge is uh the training the portfolio of models is very expensive. And our goal is to get smaller models that are more accurate and get them faster.
Uh our method is based on three steps. The first step is pruning. In this step we rank uh by importance all components in the model. So we rank for example embedding dimension which is uh has a hidden size. Uh we rank attention heads in the model based on importance. Uh same analysis I showed in beginning presentation. If we do the same for M_L_P_ layers. So once I have this importance measure
I can permute my weights such that, you know, the very first neurons are always most important ones, and the last one are less important. And once we have this, we can run a very lightweight neural architecture search, so that, you know, you give me a constraint, like I want to have a five-b model, and this NAS will create the model for us, like to trim the model.
Couple of words about lightweight uh neural architecture search here. Uh so the main challenge is that there might be many many models that satisfies a budget like five for example billion parameters. But we're interested to find the best architecture. And in this particular work we focus on uniform architecture. It means that all the layers in the model of the same type will have exactly same parameters like attention
number of attention heads for example and the way we solved it in this work is by first defining some search space there's going to be a discrete choices we can do for every layer like for example for MLP we're going to say we might have it only half of it this is means a number multiplier of the hidden size as we usually represent MLPs
Same I do for attention, I'm gonna give a different number of potential heads, uh embedding dimension and even depths of the model. So given this uh set of constraints, right, discrete choices for each of the parameters, and the target uh constraint like uh eight billion model size, we can enumerate all of the solutions. B depending on the setup, g can be from forty to hundred to two hundred of them.
Then we do a very lightweight fine -tuning. We found this step to be very important uh because some architectures zero shot and after fine-tuning will perform differently, so th there like Rankin will will switch.
And I show this example here. So we have validation loss. This is training steps which roughly corresponds to one billion tokens, not that much. And this is all of our potential architectures before fine tuning and after fine tuning. And you can see that some of the models change in the order. So the best architecture is still the same, but in other cases not in this graph. We observe that the order can change.
And so once you do this lightweight find find tuning, you pick the best architecture. Again, this case is gonna be the model up here, and we gonna do a longer find tuning for it. And we're gonna do find tuning with distillation. And uh when we do
Fine-tuning with distillation we can have basically two scenarios. One scenario is when the initial data is available. So the data on what the original model was trained is available. And second scenario when it's not available. So in the first case when data is available, we observe that we need only like hundred billion tokens and you can distill this large model into smaller that we just prompt.
And I mean you need that that little just because you kind of smartly initialize a small model we are pruning. But if data is not available, let's say in case of llama or Mistral NEMA models, we observe that it's beneficial to do a very quick fine tuning of the teacher model. Fine tuning on our own data and then use same data for distillation. So we call this step teacher correction when we do fine tuning of the teacher.
This is just in the kind of block diagram how it looks. So the teacher correction for it we will open up entire teacher model, all of the layers, and using language modeling loss, just next token prediction cross entropy loss, we will update the teacher model parameters. And when it's done.
We will do the distillation between models, between teacher and student. In this case, the teacher is frozen and the student is open so we can fine-tune the student. Now the the main difference between uh distillation and just training with LM loss is that distillation provides you more uh more single for training because we gonna use the entire set of logits. So if if uh let's say in the text you can put either cat or dog.
uh as as a word in the original ground truth data is going to be just uh one of them but it might be that you can use two so this is uh distillation signal from teacher will help in this case and provide stronger signal to the student. Here we show an example on uh language modeling validation loss uh how it progresses through fine tuning in case of applying uh
Applying the teacher correction stage I mentioned, orange line, and not applying it is gonna be a blue line. So we see that the LAEM validation loss is lower for the case when we fine-tune the teacher. That's better in this case.
Now going to results, uh here we have two setups. First setup is LAMA 3.1 8B model was compressed to a level of 4B model with its Minitron approach. And we can do this either by pruning depths only or pruning depths and widths. And there is interesting observation here i is that uh depths model usually will run faster
because you reduce number of layers, but accuracy-wise it will be worse than pruning the widths. And widths is what I mean like this number of heads or number of channels in MLP layer. And actually one of the biggest surprising factor for us was this biggest difference in GLM 8K. If you do depth pruning, you will have much smaller accuracy here comparing to widths pruning.
All right, and the second example here is Mistral NEMO 12 billion model. We compress to 8 billion and get really the best 8 billion model in its class with again small number of tokens. In this case it was 380 billion tokens.
Here are highlighted MLU that it's you know doesn't drop even too much when we go from 12B to 8B, uh the values are within uh same range. And so after we're doing this pruning we can also do instruction tuning and this is example shows that instruct extra instruct tuning model still performs well. Another thing we observed but didn't uh mention this in the paper is that distillation also helps during instruction tuning.
So when I'm going to do instruction tuning, I can use additionally the same distillation loss as before. This is an example of a model we compressed just a couple weeks ago called Nematron H. It's a hybrid model from NVIDIA. It has mamba and attention layers. Originally the model was trained for 56 billion parameters on 20 trillion tokens. The ratio between attention and mamba is around five to one.
It actually should be vice versa, sorry. So we have five Mamba layers, one attention layer. And if you calculate in this model, even in FP4, it will fit to 5090, but we'll have only 1K context. So what should I do if I want more, right? Kind of two solutions. First is train from scratch smaller model, but it's going to cost us a lot, 20 trillion tokens. Or second is do compression. And this is what we opted for in this Nimitron age work.
As the compression we did, it was even simpler than for Minitron case, but still a bit surprising. So for forty seven B
model we got 47 b model from 56 we observe that we can drop five layers five attention layers completely so this model will have only five attention layers it's it's quite interesting um then we still removed 10 mamba layers and five fully connected layers so mlp layers and did a slight compression of uh ffn's there and within only 100 billion tokens we obtain this model
This model forty seven B_ is actually twenty percent faster than original Ni_MO_ Tron A_H_ fifty six B_ and even uh more accurate on some benchmarks. Uh another thing I wanted to highlight here is this difference or like benefits in throughput we are getting just from hybrid models. So as I mentioned Ni_MO_ Tron are hybrid models.
And they are at least like two point four X faster than a transformer only models here. This is especially true for models which have very long input context or sequence sequence lengths. Good. So some learnings from this part is my first message is that we should train large and then compress small. So.

functions and compressed small. So all the GPU resources we have, we should devote to training the largest model we can. And then once the largest model is trained, we can use this pruning compression technique to get smaller models way faster and these models will be even more accurate than training them from scratch.
Uh some open problems that uh can be interesting for future. Well, first one is a better desalination without original data. As I mentioned, if you don't have original data, we did fine-tuning. But how can you solve and and don't do that.
Another observation we had is that this compression works when you compress by 2x. So you go, let's say, from 8B to 4B. But if you want to do to 2B, you should do this sequentially, iteratively. First go from 8B to 4B and then 4B to 2B. So the question is how we can do this in one shot there.
And sometimes it really excites me the direction of multi-teacher distillation, especially when we have different vocabularies. I don't think there is not right now any strong technique. There are a couple of research papers, but no strong technique on how we can apply this largest distillation in case of mismatching vocabularies.
Cool. Um so here I am with the next work we call uh LAMA Flex, many in one LLM with a generalised pruning and weight sharing, uh that was presented at ICLR this year. And the way I see this work is a next step after the pruning, after compression. So this is something better we can do to the model. We go again back to this numbers. And uh the main idea of FlexTron is to take all of this models
And create only single model that will represent all of them. So we call this concept many-in-one. So it gonna be one set of weights, but I can slice from these weights any number of smaller models uh kind of in zero shot. And the cost to to to get there is very very tiny. I just need to take my largest model and do some uh special fine-tuning with our with like around sixty or hundred uh billion tokens and I will be there.
And again, the main benefit of this uh many-antenna architecture is that now I will have infinite number of models in between uh and that's means given compute budget I will fully utilise it. Uh motivation for this work is uh again has this problem or uh trying to solve the problem, uh how to create a family of models, one way training from scratch, really not optimal, you need to spend a lot of computer resources. Another way we just went over with you.
I was pruning, so I take this model and going to compress to different sizes. Again, might be not optimal because in this case you even need to know what's going to be target size of the model, but what if you want to change it. With LamaFlex we are taking the largest pre-trained model from here, like Lama-8B.
Uh perform elastic training and convert it to llama flex. Once you have this llama flex with uh even zero token because zero shot you can slice any models that's of smaller size. This uh kind of a method on on on a very high level as I mentioned we start from trained model then we're gonna apply same technique from Minitron where we're gonna calculate importance of all parameters in the model and reshape uh all these weights as it's a very first
Neuron is the most important and the last one is the least important. And this is gonna be yeah quite quite useful for this particular model. Uh once that's done we're gonna do elastic uh fine tuning, I will show this on on the next slide, and once this is done, we can do this uh slicing for free. So how this llama flex architecture looks? Uh the plot is here. So basically user provides um desired
constraint, let's say the model size 50%. Now this signal goes to router and router gonna tell us how much of every, let's say, model configuration parameter we should use. So it can say that for hidden dimension use 62.5% of them for
Attention heads, you use 50% of attention heads. We'll tell which layers to use, which layers to skip. And finally for M_L_P_ uh width compression will also tell us. And and we can do this because we remember we uh change the order of uh uh of of neurons in my weight. So now if I'm gonna take the only first twenty five percent, that twenty five percent will be the most important.
And another thing here we add is a modulation, talk about it next slide, but first router. So router is the most important part. It takes uh input as a constraint, again how much of a model uh parameters you wanna have or what latency you wanna have. Then this signal pass through embedding layer, it's very similar embedding layer to what we have in uh L_L_M_s.
Then these features are going through a very small MLP, just a couple layers MLP layer and the output is passed through Gumbel softmax which allows us to train this you know discrete variable optimization because all these choices I mentioned like for example how many heads we want to use 25% 50 75 100
all of it is basically discrete choice, right? I cannot just train this back back prop. I need to use some tricks. And in this case it's a Gumbel softmax. So as you see all our architectures become nested here. So very small architectural is at twenty five percent is included in the models that's fifty percent, seventy five or hundred percent. So this is how the uh one like you know many in one concept is implemented here.
And this might hurt model a bit. So to address this issue that this nesting architecture kind of doesn't change weights, we aj uh we we solve this by modulation. In in case of modulation, we know what router uh choose and we pass this information through again tiny MLPs. This MLP will give us a scaling and a shift vector and we apply a fine transformation on hidden features after each layer. So that
So the kind of now depending on on the target which uh you provided to router, it will slightly modulate the features.
When we train this scene, we're going to use two losses. First loss is going to be LM loss to make sure that it outputs correct token. And second loss is going to be on the router to make sure that if you provide signal of 50% that when router going to select configuration of the model, this model will be in the 50% as we wanted.
Cool. So this slide is results now. We want to benchmark this LamaFlex in terms of M_M_U_ metric. Our starting point was Lama 3.18b. And uh this is basically this model. Dot right here. Once we convert this uh model into LamaFlex, we can sample infinite number and I put them here as a blue dot.
And fit at the curve. Uh so this kind of shows a separate frontier. Again, with zero shot we can get all of these models from from the largest we got. And interesting fact here is that uh
If you look at this Pareto frontier, some models that we can get with just pruning minitron previous V-Arc will be very close to this Pareto frontier. Or even models that was released after we finish this V-Arc, LAMA 3.23B. You see it's also very very close to the Pareto frontier. So it means we are not sacrificing accuracy when we are doing this flexible training. Okay, it seems I will have around five or six minutes left.
Let me go with a hummer very quickly. This is another work we presented at ICLR. It's a hybrid head architecture for small language models.
So we'll just talk very quickly about architectures and their efficiency. We all use transformers, right? Transformers are really great because of high parallelism and I can efficiently train it on GPUs. But transformers have two drawbacks. It's just inference slows as long as my context is because of quadratic complexity and memory cost linearly increases based on sequential sequence length again.
But it's doing very good on long context. RNNs, on the other side, are very slow to train because of the sequential nature and I will need to use backprop through time or something like that. That's why nobody trains now large language models with RNNs. And as a solution, we have state space models like Mamba or Mamba 2 or DeltaNet.
So these models are fast at training. Uh so they have hyperalism. They're very great at inference. They will have like uh you know scales linearly with sequence lengths, gonna have very fixed memory and the only problem is long context. Long context is gonna be bad, because for this models like Mamba, uh our memory is fixed in terms of size. So we will obviously forget more uh we process data.
But now hybrid models like Hanbao's estimator on H as showed in the past, it gonna check all of the boxes. So it's gonna be fast on train, fast on inference, gonna have a small footprint and gonna have the very good long context capabilities. This is a quick example of hybrid models. We for example have Jamba, Jamba model interleaves attention and Mamba layers in the model. Samba is doing similar way.
Zamba extended this to weight sharing between layers. NVIDIA

between layers, and NVIDIA hybrid model uh has like slightly different ratio between Mamba and attention. And in HANBA our main novelty here is that we put Mamba and attention in parallel. So instead of doing running them sequentially, they're gonna run in parallel. This gives us a number of uh uh interesting things. And one more novelty we add here as this meta tokens that we prepend to the input of any prompt, of every prompt.
A bit closer look to Hamba architecture. So we have standard transformers. I assume this is like bluish color. We have sliding window attention transformers. It's going to help us on reducing KV cache. We have Mamba as purple. And so Hamba is a combination of all of them. We're going to have like three global attention layers. The rest are going to be sliding window attention layers. And we will have Mamba in parallel for every layer.
together with these uh meta tokens. So basically there are kind of four innovations in this architecture, parallel fusion of attention and Mamba. These meta tokens uh I will show effect on next slide. Then we also found you can do K_V_ cache sharing between every two layers. So like in G_Q_A_ we share the cache between uh query heads. But we found you can do this even between layers.
Um and finally we have only 10% of layers gonna be global attention and the rest gonna be sliding window attention.
Uh so attention maps uh I think that's actually very important if we take LAMA 3.23B analyze uh get the average attention map is gonna look like that and you will not see it but you can believe me there is a column very first token is like over attended we call this usually attention sync and this what I'm trying to show here as a distribution on the right so 56 percent of attention is focused on this BOS token and we can consider this
This is a wasted attention. This happens because attention has to attend, like you know, the probabilities after logits, they need to sum to one. And this is the way.
attention finds this trick to over attend to BOS token for example and in Jamba which is sequential fusion of Mamba and attention we can see that attention still has exactly same problem but in Hamba because of two things because we put in parallel and we are prepend meta tokens we observe that first of all there is no attention sink anymore we don't attend to BOS token we don't have any
a red colour here. And second we see that our fit attention map is get uh gets more informative I would say. So uh attention focuses more on the context that's that's been there in instead of of a cell at attention that's on the diagonal. So this task is now uh so uh
taken by state space head. So by putting attention and Mamba in parallel, we kind of split the attention into two components. One that's more like self attention considering my current and couple previous tokens and cross attention where I'm going to look into more tokens in the past.
More details in the paper. In terms of results they are really great. The model is the best uh if you consider the size of one point five B_ model is the best in terms of um you know accuracy, its cache size is way way smaller. It's very tiny because of Mamba and KV cache sharing and uh throughput is great because again we use like things like Mamba. Uh just two numbers here, so if we compare at ISO
uh accuracy models and all these tricks result in twenty X uh reduction of cache size comparing to let's say small LM model and makes the model two point X faster. Cool, I think this is one. I'm run out of time. So thank you all uh please check the web page where we uh put in these papers and happy to answer any question.
So uh thank you for talk. I have two questions. The first one is about um the corporation of f uh uh hybrid uh Mamba and uh attention. Uh I saw the result that uh the compressed one has better performance than the original one. Which one compre compressed you means from Minitron or
Yeah, b so the the one detailed uh is a better and uh original Yeah, Better, better. yeah it's better. Yeah, yeah. Yeah. So could you explain why? Yeah, it's it's a very interesting uh first of all there is always noise in the benchmark, right? And second that uh when we do this pruning we really remove redundant let's say features or layers. So these layers were potentially even harmful to the model and we remove them. This is more like a basically a fav uh failure to
failure of optimizer that we can do this. But yeah, on average usually more compressed you'll gonna get the drop in accuracy, but for things like ten, twenty percent there is still s potential gain. Okay, thank you. And another question, so I'm quite curious about is a hybrid architecture. Can we do it s scaling with uh more parameters?
Yeah, great question. So I showed that uh this Nimatron H_ and video released two weeks ago, we scale up to fifty six billion model parameters. And we observe that everything works there. Right, so even if if your small model is good, as a hybrid your large model will also be good. Yeah. Okay, thank you. Yep. Thank you for questions. Any other
Hi. Thanks for the great talk. Um I had a question about the LAMA flex architecture um so um you had this sort of learn M_L_P_ to select sort of sub-architectures within your larger model. Um but it seems like there's really only like four inputs right? Just the choice of or one possible input, which is like the the level of sparsity, right? Um Yeah, yeah. yeah yeah. So I'm just wondering if what kind of trends you notice in like the kind of sub-architectures that fell out of this optimisation I see. and
you know, could we just do without it and hand select and like m manually select a sub architecture and train that instead Yeah, yeah, good point. So because we do this router training, it's like automatic neural architecture search in a way, and we can observe interesting things. I actually had it in the slide, but I removed it. Let's see.
Yeah, I removed that slide. Uh so interestingly like the more you compress, let's say to twenty five percent, the round-trip will select to prune more layers. So it removes like fifty percent of layers. Uh but in terms of attention, because we focus here on parameters versus accuracy, it doesn't compress attention much, because usually attention will have less parameters than M_L_P_ layers, like thirty to sixty percent. But yeah, I like your question, because this is something we should look
look in all this compression works is not only the final accuracy, but insights we can get from architectures there. Yep. Awesome, thank you. Uh
Uh I want I wanted to ask a question about the mini-tron approach and I think these days some companies want to make the biggest model as an M_O_E_ and then make some small models from desolating from that uh really large M_O_E_ And do you think that like pruning experts is possible in this kind of mini-tron sense?
Yeah absolutely I think uh first of all, MiniTron can be applied to MOEs or any other model, right, it it basically just follows the idea, let's see what parameters are less important than others in the model and compress them. Uh one way what what you mentioned I I agree with it, if you have a large MOE model, you can start compression by uh dropping some some of the experts for example. So I I I think we need to do a bit more research on MOE. I remember some early paper
The early papers couple years ago showed that you can even average just waits of these experts and get a, you know, single better expert. So we can do that even more, I feel like, uh rather than just removing experts. Okay, thank you. Thank you. Okay, let's thank the speaker and uh for the sake of time we are not taking any more question, please uh feel free to bug him in email or for any further question.
So for the next one we have Zeewee Liu who is currently an Associate Professor at NTU, Singapore. His research revolves around computer vision, machine learning and computer graphics. He has published extensively on top tier conferences and journals in relevant fields including CVPR, Neuroips, ACL-ICLR and Tipami.
He is the recipient of PEMI Mark Everingham Prize, CVPR Best Paper Award, Candidate, Asian Young Science Scientist Fellowship, International Congress of Basic Science Frontiers of Science Award, and MIT Technology Review Innovators Under Thirty Five, Asia Pacific.
Review. Appeal. Okay, so thanks for the nice introduction. So I am Zui here. I came from the Nanyang Technological University, Singapore. So my approach to the efficiency is more from the generation side. So my talk today is from multi-model generation models to dynamic word modelling. So inside the gen models actually how we can enable efficient model, uh it's different from the linear models. So for me, uh my approach is to deal with

Huh, my approach is to deal with from uh three different perspectives. That is, we have a foundation of these multi-modal training models. So it can be a transformer, it can be division models, and if we want go for this dynamic word modelling, there are definitely three different directions. So that is needs very complex modelling that definitely need more efficient uh designs in terms of both the architecture and representations. So the first aspect is be physical. So that is uh most of the uh models today, they are just uh very
very plain reflection of the observations. So it counts a really modern physical uh elements inside, like the material and the uh illuminations. The second is by the dynamic. So modern static scenes are usually pretty uh straightforward. So how to make model like the uh can deal with dynamic scenes? So that needs definitely further design. And finally is be social. Of course currently currently we have this chat box and
And of course we want more interactive media, interactive different uh models that can definitely uh have this social intelligence. So the third aspect is how to model uh social f uh interactions. So let's first talk about it be physical. So on this part I will focus on how to uh design a very efficient representations. So our first work is called uh 3D2PXL. So it's a high quality 3D PBR facial generation with our primitive diffusions.
So most of talks today, so you are happy using the transformers and also like the tokenizer everything and you use this next one prediction. So here our task actu actually is given one single image or one single prompt and we want to generate a 3D asset that is not just have the shape, have the appearance, but also have all the physical properties inside. For example, you want to model the material, you want to model the surface and also reflect
reflect this. So this a a very Okay. very hard problem, because you want to uh bake all the things inside. So of course your design should be primary efficient, and also your tokenisation should be as scalable as possible. And your final uh total architecture should be able to do this differentiable rendering, so that you can do end to end training, right? So our approach uh can achieve this kind of uh kind of this uh effect, that's given one image or one
One text prompt, you can synthesize a very high quality 3D asset that's ready for a blender that is some uh industrial level software. So our key idea is to design this uh so-called primitive diffusion. So that is I represent everything in the 3D space uh in terms of the primitive. So primitive is uh kind of consists of uh four uh five different parts like the position here, scale here.
S_D_F_ here, R_G_B_ here and material here. So a so to facilitate a very uh kind of uh efficient training, we have baked all the scenes into M_ by D_ tensor. Right? So with this tensor then I can train a V_A_E_ to tokenize everything and using just one diffusion transformers to learn everything inside. So for all the scenes here, it's just like a standard SORA models, if you've seen for the video diffusion.
Uh except that our representation here is not a grid in the space uh space time. We use these primitives so that we the latent re primitive diffusions to uh represent everything. So up that we can do in this dif diffusion in just five seconds. So it's very efficient uh deployment and can see the results here. We can even uh put into different background for this uh graphics engine. Okay? So our first uh approach to uh tackle this efficiency is under presentation.
and the second is more on the systematic level. So our uh goal is to do this inverse rendering. Just given one image, can you estimate all the materials inside so that we can do in relighting. So previously what people doing is you have to put a three-D objects inside a light stage. So light stage is very expensive, you have to collect like uh one thousand images and you do this uh all the clapper junctions inside,
inside our parameterizations, so that it's very time consuming. So our idea is so if the feature model is so good, it can generate model view and can generate your different figure images out there, can it uh be able to replace the light stage? So our key idea is to use the feature model as the virtual light stage so that we can using a very efficient pipeline to generate this multi-light image.
image. So we show that it's per it indeed possible. So our pipelines are actually very straightforward. With the diffusion models we can generate modulate diffusion, and with this modulate diffusion we train a large G-buffer models. So this model is a pure, feedforward models, we can see the lighting orientations here just a one parameters, this very fast. So we have compa our method with the previous method like the marigold, stable normals or icy light just in this light clear
Here, we choose our advantage. So here is uh the results here. So you can see uh definitely with just one given image, we can uh estimate all the sense inside. So that you can enable a very efficient inverse rendering. So that's our first uh aspect. And the second is be dynamic. So static scene is definitely more like straight-forward as I said. And most of talk today you have been hearing is on the language model side. So here I give you a different uh
uh perspective. So if we are doing this generations, how we can enable a very efficient uh dynamic scene generators out there? So here is the dynamic city, uh large scale of forty occupancy generations from our dynamic scenes is also this I clear uh spotlight. So our key idea is also how to do the com uh compression. Right? So everyone knows like compression is tangent, and if we can do really good
like lossless compressions can be pretty good. So it is can be down for language data, it can be down for image data, so can be also be down for forty data, right? So currently V_A_S_ if just doing it blindly, it's not inf uh inefficient for this kind of uh forty data. Very low compression, poor reconstruction, just like the results showing this oxora. So our idea is to learn this uh very speci this hex pem
they saw the space. So this is a very uh compact representation that we can put all the forty-six space, time and also all the three d occurrences into this space. We do the tokenisations, of course, then we're just doing a very scalable uh D_I_T_ for this uh forty-six generations. So without this thing you may need like hours to do the generation. So with our HEX plan, we our experiments show that
you can complete all the inferences just within seconds and for large graphs. So it even has this generation ability. You train on one data set, you can generate uh generalized and transfer to the other data set that has a completely different uh kind of scenarios out here. And you can even do uh condition generations because it's uh pure D_I_T_ after you co of course you can do this control nets, they all like layout condition
vision generations out there, okay. So that is good. However, we only modelling this 4D space-time motions without appearance, right? So just occupancy is out there can also do motions. So we also have another line of work that tries to generate 4D cities with all the very good appearance out there. So cities actually very challenging even than the natural cities, because it has all the different details. A very sharp uh
transitions audio. So our first work uh maybe I would just skip the details. That is just learning three D_C_D_s from uh annotated T_V_ images. So at that time we still using the Nerf-based approach. So we using the Nerf so that we can generate both the buildings there and also the uh background. Yeah. Okay. Okay? Maybe just one minute.
Okay, it's good? Yeah. So uh maybe I just skip this. I just show you the results here. So if we put our rendering in this uh Unreal Engine five, you can see it's pretty good. So all the buildings here, all the roads here, they are not real. So they are purely synthesised. We can put into them some engines doing all the re-rendering. We even have some like the U_I_s you can interactively uh specify the layout you want and also the structure you want. However, this one is uh
test two drawback. One is very very slow. Because using a nerf, if one generate city scale things, very large scale, it will be very slow. The second is the storage. Right? So for the city, if one to store all the weights for the nerf, it will take like uh hundred gigabytes. So that's why we have uh another idea. That is like how to make this city generation faster. Right? Of course,
We have two choice that is North or three de Gaussians. So North is slow, but three de Gaussians is not storage efficient. So can we have something that have the advantage of both, right? So that's our motivation to the work is called our Gaussian CD. So maybe I would not go to the details. The key idea is we have some uh hash memories inside. So this hash memory tries to store all the features for the structure and for the appearance.
So with this key design of this Gaussian city, we can see it's uh much faster. We can achieve like 60 times speed up for the generations. And our final goal is uh how to generate 40 cities. Perfect city only have like the very static cities out there. So nothing moves, right? Just a camera moves. So here uh we also have some ongoing work on this uh 40 cities. So our uh key idea is everyone now is working on this like also
Oh, the word modelling from different perspectives. Some people using video-based, uh P_C_G_ based, image-based or neural 3D-based. So they all have their own own drawback. So our key idea is, okay we should leverage data, but how

Okay, we should leverage data. But how can we generate data more efficiently, right? For the cities we can't do the capture like everywhere, it's very expensive. So of course our key idea is to using synthetic data. So by building a very efficient engines that it can like from this U_E_ to Houdini and finally to the uh different annotations out there. So this is the so -called uh City-Tobita data sets. So we are also going to open source data sets.
It can model the cities in like different like daytime, nighttime, different chemistry trajectories, different periods out there. So with this one, we can doing these generations with also the cars, the pedestrians moving out there and also arbitrary view rendering. So you can choose the views out there. OK, our final perspective is being social. Right. So most of the model nowadays, they are not considering this social intelligence.
intelligence. They just consider like the performance, the accuracy that's out there. So for the social we have like two like different approach to tackle. So one is called our code is called Solami here. So it's called short for the social vision language action modeling. So talking about this avatar or social avatars what would you think about? So of course one is this so-called the tongue.
kind of generative agents by Stanford. So it is purely LM-driven. So language model, no 3D body, you can't see the embodiment inside. Another way is also from our group, it's called Digitalize Project. So it's more like an agent who tries to put everything inside. So one module for motion generation, one module for speech generations, another module for the LM as a planning. So however, it's pretty slow because you have to put like three to five large models, foundation models together.
So how to make the seeds more efficient?
Of course, the key idea is to just using one end-to-end models to learn the war, right? So end-to-end model to learn the war, of course, there are some like prior work. It's the embodied AI. It's called VLA, Visual Language Action Models. So here, our key motivation is virtual avatars can also be seen as one kind of these embodiments, right? We can also use the VLA model to learn it. Of course, we're just using a very universal...
decoder only LLM. But our tokens are not just language model tokens. We have speech tokens, we have motion tokens, so that you can tokenize everything, then use this alignment, do the pre-training, and finally doing the instruction tuning. Okay. We also have collect data. So of course, our agent skipped this one. We have our data engines to collect this very personalized AI -based multimodal data. So our final results is pretty good.
So from user study, people even find our model can outperform this GPT plus this speech synthesis. To give you one of the examples, we even have implemented this VR interface. So it's we can we can like complete the hearing, the perception, the generation within five seconds with this entrant VR, social VR models. You can see here with this even a VR set.
If we implement all our models inside, you can interact with any characters you want, okay? So that is the social vision language action models. And this one is good. However, it only have like, you have just one companion, right? You just have one characters with you. Can we also modeling all the peoples? Because every day you associate where we interact with many peoples. Some of them are friends, some of them are strangers. So can you do this social?
modeling. So we also have a very ambitious project, it's called EgoLife. So as towards this egocentric life assistance, we want to build one model that can not just modeling one person, it's also modeling like multi -persons, human hand interactions, human-human interactions out there. So what we do is we invited six people.
Living together for seven days in one house, and we collect all the data using these meta-array glasses. So our data set, uh involves uh egocentric video, audio data, uh uh even the wi-fi data, the M_M_ uh ma uh wave data and all the first person, third person views out there. So we have the video data, we have the 3D reconstructions and all the video scenes out there. So for this project, uh stage one,
What we are interested in is actually on the foundation model side to do this multi-model understanding. So you can see across the seven days, they have done a lot of things like social, housekeeping, cooking, shopping, dining, party, something like that. So from the normal eczema datasets, you will not see the diversity of all the activities out there, right? It's normally just involves one type of activities. So with our data, with the modeling of all the very diverse stuff.
from day one to day seven, you can learn very kind of complex associations. So it indeed needs long context reasoning as well as the memory, long form memories to do all the tasks well. So here I give you one of the samples. So in the kitchens sometimes you have to collaborate with others. In the shopping sometimes you want to record the price, right? You also want to sometimes associate the different activities together.
So how to do it efficiently? Current language models for vision language models definitely not have this capability doing this one week long video, right? So that is a very long context sense. So our idea is to kind of combine this our Ego GPT with the RAG system. But the RAG system is not handcrafted. It's kind of a learning based RAG system. So the details are not going to that. But the idea, we show that it's very effective.
So just with our one week-long data you trend for our GBT and so it's our EG0-GBT is based on our previous work a lava foundation. Uh we showed that we can even outperform GDB4.0 on all the EG0 dataset out there. So the different EG0 data like EG0 schema is collected by Berkeley, we are never seen through our trainings. But just trend on this one week-long data you can perf outperform this uh GDB4 .0, this commercial API.
are the so-called ecocentric understanding task. So show the powerfulness of this long-form and multi-model data with a very efficient training pipelines. And here shows the kind of statistics of our final...
That is it. So it's still an ongoing project. So we still have some limitations out there. So we try to definitely improve on the different aspects for the limitations. So in summary, the final projects, we want to build extremely long, egocentric, interpersonal, multi-view, multi-model day life assistant. Just not for videos, but also for 3D, for 4D and for efficient processing. So I think we have already open sourced the first batch.
of our model and data on this EagleEye's website. Okay, so in summary, we have been talking about the efficient ways just from two different aspects. The first is representations, the second is architecture to be so be physical, be dynamic, and be social so that we can achieve really efficient modern model word modelling. Okay, thank you. That's the end of my talk and I'll be happy to take any question.
Thanks, JV. Question? Okay, so I have one question general like uh when you say that you
For the last one, uh the video data set, Mm-hmm. Mm-hmm. it's so long context so you have to create a Z separate architecture and take help from the R_ X_ system, right? So there are orthogonal research like for example a native sparse attention and this kind of architectural modification that is also happening. Mm-hmm. Uh to make sure that the pre-fill delay is reduced, right? Uh for particularly for long pre-fill scenario, for
at least for language modality maybe for uh vision modality as well, there might be more redundancy in the input tokens, right. So are you also incorporating those uh orthogonal efficiency aspect in your model design or like as of now no? Yeah, I think that's a good question. So we have like two levels. The first level is more like the system levels. So we have to design some like some of these rec systems, some of these language models, the video models together.
and another is on the operator levels. So of course we have incorporated like the start station, or very like the advanced acceleration like as j just introduced by Pablo, we have to try that. So I think the final way is to combine both, both system level design and also operator level optimization. Thank you. Let's thank the speaker again.
So we are now starting the panel discussion so right away. Uh because we are already late by around fifteen minutes. So for the panel discussion I would request uh uh Pavlo uh to come on stage and Zeewee also to stay on stage. Sure. Yeah yeah.

Zechun? For the panel discussion. So for the panel discussion we can have an open round of Q and A for last ten minutes, but we have prepared few generic questions associated to the theme of the workshop. So uh for them to put some insights.
And maybe help some of uh the incoming researchers to understand that what might be the next realm of research that will be useful in this domain. So I will ask one topic and each of you will have three to four minutes to comment on the topic, okay. So the first question is pretty generic, like
What is the like according to you pretty relevant problem in the area of efficient and scalable optimisation of foundation models that uh still keeps you awake at night because I know you guys have been doing research in this domain for like around more than ten years. So any specific topic that you want to highlight particularly in this uh like
Pretty rapidly changing domain of research and new domain of use cases that you think are still pretty open and people should really invest time in uh to actually solve from the angle of efficiency to enable new features or new use cases uh for E_I_ Maybe we should start with.
Um yeah, I think I'm seeing of um like more general directions than efficiency. Um like um for example we are currently um I am seeing a lot of progress in the past few years. Uh people are uh s looking forward to see a ha a high moment and um more like a um turning point to exis the human knowledge. Um but currently people f um w
We feel like we are hitting the cell ring. So there is a
like uh um we are because we are running out of data, uh now uh currently we are using our almost using app also available bit data on the website. Uh so what what can the Allen to like learn more through like without more data available. So I think that's a very interesting point for example taking the uh alpha go from from alpha go to alpha go zero.
zero, like so turning point is that alpha go can evolve itself in alpha go zero. So whether I am is a future, it can like just learn without data for example it can uh some s uh it can generate new new knowledge, generate a new like uh theory based on surrounding um common rules. There's some work uh on this point, but I think them might be
more interesting um um interesting work coming up with uh with the R_L_ or more like uh battery ambience. Yeah, I think that's my feel feeling.
Okay, so uh s thanks thanks Zhechun. I think that is uh very uh interesting perspective. So to me, I think the one thing I'm still feel uh very interesting and want to investigate is actually the uh kind of the trade-off between the knowledge and intelligence, right? So inside this uh even for this ICLEAR conference a lot of people have been debates whether knowledge is intelligence or not. So that this question actually motivates us how to design the next
next generation of architecture or representations of of our world right? So lots of the benchmarks nowadays or uh different evaluation metrics nowadays are more focused on the knowledge uh memorisation. So if you can memorise quite well, you can do it like MMU, MMLU quite well. Uh however like for our humans, sometimes for a very new topic we can just watch a five minute video, then you can learn it, right? You don't need to train for
uh so many hours of videos. So what's the difference? So I think that motivates me to think. So whether we should more focus on the design of the architecture, that can over fit into tons of data, or that something is still missing, right? Still missing from the knowledge to the true intelligence. Right? So that's my uh personal perspective.
Check check. Yeah, um so I think uh I will even parse your question to two parts. First is for what doesn't let me sleep at night. Right, that's I think it's stock price in the in the last months. This is what doesn't let let me sleep. But You now should not complain for that. Yeah anyway, but um so I I I will potentially mention two things.
First scene is about compression, right? Yes. Like I showed in my work, we can compress these models and I actually think it's bad. And it's also bad that we can remove like ten, twenty percent of the model parameters and our accuracy still same or even improves. So that's can be a failure of just as a optimiser and the way we you know, we we kind of use it there was a great uh a word talk about Adam Adam, right, and
We overfit our current techniques, current papers into this algorithm. But I think we need try fundamentally change it for LLMs and make sure that whatever I train, I use to the full potential. I I cannot compress anything from there, because uh if I can means I don't use it to full potential. So that's the first scene. And the second scene is when we scale models, we should scale smart. I think it's it's really related.
added to memorisation and the internet. Right now we put more data, at some point it's gonna end and we put more G_P_U_ Putting more G_P_U_ is a right way but uh how we use them, that's uh that's an interesting question. So right now we trying to force model to memorise and even if you're gonna give it some arithmetic question like multiply eleven point twelve times eleven point twelve, you will see that many models even seventy be
the size they will make a mistake there, because the way we train them, we train to memorise, and you cannot memorise multiplication of all the uh floating point numbers, right? So the better approach there is to use tools. I can teach even tiny model like one billion model to use a calculator, and in this case model will be able to output correct answer. So we should uh yeah, also check the way we use these models and not only scale them, but use them smartly.
Yep.
Okay, so Mm. so one question uh I have follow up for Zivi. Yeah. So you said that uh how we can actually learn the knowledge in a more efficient way, right? Uh with our uh investing effort on architecture is the right thing or something else that we are missing, right? So you are basically guessing that whether we should focus on various angle of optimization, are we actually minimising the right objective Mm-hmm. or also we should focus on architecture. That is your doubt, right? That is something that you are
Yours. Okay. So next question I have to discuss is basically now with the emergence of uh hybrid architectures
like there are uh m more than ten well-known uh linear attention models, right? And then there were transformer also transformer is still there, right? So are we going towards a unified architecture or actually we are going towards a diversified architecture? And now there are various emerging use cases for which you don't even know how these linear models will behave. Uh in many cases they don't behave as expected or as per as transformer. So
Where are we really going? Are we going towards unified architecture like singularity or we are actually branching out? Uh maybe we can start with Zeevi. Uh maybe Pavanah. In Okay Pablo. it's actually the same.
Okay. Okay, yeah. Yeah, so in terms of architectures I think there is not a single architecture for everything. Right? We we need to be careful and uh potentially in future we need to design architectures for specific uh scenarios. Like if if my input is a long context uh then I should use linear attention. But if my input is a short context and my output is short, then even attention gonna work very very well there, right?
Okay. Also, when we work in new architectures, we face this issue of uh deployment. If I, you know, experiment too much, produce a very n new architecture, I will have a hard time putting this into uh frameworks like V_L_L_M_ Uh, Lama_C_P_P_ So, that's that's creates an issue and and we need to uh think about it. Um Yeah, I think in short this is what what I think.
Yeah, I also agree that it's uh from application level, definitely it's a different uh situations needs different models, right? So for some of the situations we just need a very uh short context or in the generation like the perspective, you need like more vivid like motions out there, you should focusing on like one type of detention. How however you need like the pretty long generation, definitely you need another type of motions. So that's also the di what different companies do nowadays, right?
So if they have own product or just optimize for that s uh application,

to optimise for that uh applications to optimise all the operators inside. So for me there's another thought on this uh whether we should have the unification models or not. So uh actually currents all the optimisation or efficiency uh methods nowadays are too uh much focused on the language side uh from my perspective. So all the very mainstream models they are language centric like the Lama series and like all the models. So people
we'll focus on that. So all the techniques we are just uh more optimized for language. However when we are moving toward this uh physical AI or embodied AI, so lots of data actually come from vision or three-D_ So for vision data, so they have very different characteristic to the language data. There are two lots of redundancies inside and you have to capture all the long term correlations inside. So maybe for that if our switch is from this language centric to the vision centric
this century, whatever, the physics century. Maybe we need another uh round of shift in this architecture design. Yeah. Hmm.
Totally agree. Like um I feel like maybe besides the uh linear attention or transformer we might have a totally different uh architecture in the future. I I feel like the um process of research is not continuous, is my sometimes is discrete. I just uh from for example from convolution to transformer it's a huge um it's a some somewhat a big difference. And also in the vision domain from nerve
from like GAN to diffusion model. It's also like a big transform. I think like in academia people can put resources in small like small seeds and some mathematical intuitions and the strict mathematical deviations. It could lead to some new models and it can
bring some ref revolutionary changes into the industry. That's my like uh feeling, yeah.
Please. Please. Yeah, had a bit more time to think. So uh two things I wanna mention about architecture is I s I think like linear attention, it c we can consider it as a second generation after attention, right. And the third one I think it's uh seems related to test time training or meta learning because right now we are interested in very long context like imagine you wanna take video, it's gonna be like millions of tokens, right, and and putting everything to context is gonna be hard. So we should uh work more on this approach.
training uh yeah, test time training specifically. And uh for architectures, if you wanna pick up a new topic, I think diffusion L_L_M_s are really great. Uh that that's another alternative uh what we can work on.
distribution elements because of its like a sequential avoidance, right, compared to the traditional L_L_M_ Yeah, I say it's like one biggest problem I see with current orthoregressive models, that these models cannot correct themselves, right? If I if I start writing and and I'm making a mistake, this mistake is gonna be there till I'm gonna reach some aha moment or something like that. But with diffusion models we can uh kind of generate in parallel.
uh which will m reduce amount of errors I will make. But second it's even better for G_P_U_ because on small batch size we will uh become compute-bound instead of uh memory-bound. Okay, all right. So I have actually the follow-up question uh related to uh test time scaling. So train time scaling versus test time scaling, where the future research should be more hopeful and potentially why.
Because, like, uh there are l different opinions, people are still scaling up the model uh for the pre-training and obviously there are growing interest as you said for task time scaling and then task time uh compute for inference. Basically people are putting more money in terms of compute power for inference. Uh so is that the right future?
Uh compared to for example train time scaling, or we should do both or maybe one out of the two. You may wanna start.
Where Let's start. you start. Yeah, you start. Alright, um so I think we should always scale training. As our says, you buy more, you save more. So, with more GPUs we can train bigger models. And we always need bigger models because we wanna create some synthetic data with them, for example, or run them as very fires, uh uh for for important things. And in the end we also need models that gonna be very reliable. Models that will try to m make as minimal mistakes as possible.
simple, if you can think of uh let's say financial advisor who makes taxes, and I will be really willing to have the largest possible models that doesn't make mistake in in this particular case. Um so yeah I think training time we should always train the largest model we can, and then go compress to smaller if it still needs the smallest. Yeah. Yeah.
Okay, so for the uh training time and also for the test time scaling, so my theory is that uh the first thing I want to learn is actually the whether the post time scaling or post-training scaling actually has introduced this new knowledge inside. Well I ha actually had introduced like new skills inside. Because there are some recent works showing that uh actually for the test time scaling, it's just doing some like re-ranking scenes.
perfectly after pre-training you have something like you pass for 100 times, you get the results, but for the
After the 10 times scaling, you just need like 10 times uh rolling the dice to get the results, and I think that's the key question. So what is the actually the key part that the post-training scaling has been introduced, right? So we can understand this part, then we can know like what role for each of them. And my second view is that uh whether post-training can uh this scene, post-training scaling can gets even more important than
pre-training actually depending on the
actual data set, right? So currently the post-training they uh post uh post-training scaling just works for coding, mass, because all the verifier, all the reward are very clear. So for the general case, so can we get all the reward? Or can we have some environments like what Nvidia has been doing for the omniverse, right, have this environment we can have all the automatic gradients to update model. I think that's the key to uh predict whether this post-training can be even more
important than the pre-training. Yeah.
Yeah, so I think I uh absolutely I very agree with the um the way s uh um comments I think um if we print out the deep-scaled R_s weights and the model difference with the deep-sea distilled Q_M_ model, you will find that actually it's only like a just uh zero point one percent uh of the weight norm. It's um w like weight difference.
So the difference is very small. And if you print out the output of the like R_I_O_ trend model and compare with the output of the um like S_F_T_ model, uh then you will see like what I_R_ do is is actually like kind of creating the formatting. It's not uh d uh or like uh change some uh coi coherent words. It's not uh uh doing anything with the formula.
c correcting the formula like that. So um p people under uh so there's the some thinking of uh what I will actually do. Are they like uh just uh introduce new knowledge in the side or it's just uh um to doing some tricks to overfitting some matrix. So that's one thing when you think about and that I feel like um um give feel like like uh giving model more
um training and uh it's uh it's what what would be might might be more beneficial than text times tallying and uh if you print out the long count testings uh uh test times scaling you will find the set um when the model cannot answer that question, it's will just repeat itself uh and it uh doesn't uh find it's it's cannot uh get the point of so correct answers eventually. So so that's yeah, I think training times scaling is uh
currently more like uh important in my opinion. Okay. So I have a follow-up question in terms of for example training time scaling or test time scaling. In general as also you are working with various forms of architecture and looks like that there should be more diversity in the architecture based on the requirement of the downstream task. So
uh b the maybe first to Pavlov, that how should the hardware like be behaving because hardware freeze happens around two years m uh before uh like twenty twenty seven hardware freeze generally happens in twenty twenty five, and we don't even know what is coming in twenty twenty seven. And we are thinking that there is going to be more diversity in terms of architectural primitive uh because different downstream task different
and emerging use cases might require different architectures, right? So what can be a good way to actually envision hardware architecture in that sense?
Yeah, great uh thank you. Uh so I I will say that I don't know answer for this question because if I will knew I will be already running startup or something, I don't know. Uh so what what usually happens is that uh we at NVIDIA we really look uh up for research that's going on in the field. And then uh if there are some promising things we see related let's say to sparsity on new architectures, this is something where we are interested to invest more time and
and

invest more time and make it support of it in future hardware. So at least this is the way NVIDIA operates. We are always innovative because we are looking into what uh research is doing. Uh so yep thank you everyone for doing the research. This is uh definitely changing uh future of GPUs.
Yeah, I think that's also uh kind of depending on the the hardware how the hardware how you evolve also depending on the uh the whole markets, right. So the the currently I think uh we are still in trying to f figure out what's the killer app for AI. Of course everyone nowadays we are using chat GPT, but besides that well what will be the market, right. So if you do if it is the agents then our architecture with all the hardwares were evolved with the agents. So for the agents we not only need the data processing,
thing. You will need all the IOs, you will need all the communications out there. So maybe you need uh another type of a CAC architecture that can be both uh data efficient and communication efficient. So for me that's more like thinking from the uh market, right, market driven that our heart valve and our algorithm can co-evolve.
Yeah, I also feel like uh hardware software co-design is a very important part. Like uh uh currently I think uh uh our research is uh m m ma like more and more focused like uh requiring some software to be uh like uh suitable to our hardware. For example in my papers reviewer always nowadays reviewer always ask what's the speed up in the real hardware. So uh like um
Well I feel th um we need to keep in mind in uh of hardware when we design software, uh and though because this actual implementation could be very beneficial. And also this uh community like is a co-involving uh like f it is a c like a equal dep pe it's it's the mutual dependent. Like when there is a new hardware come out so more software um people will thinking
like how we can design our specific uh software algorithm um for this um particular um to at to suit for the particular hardware and for different applications, if one s uh s one stream is to become more dominant, uh hardware will a be optimised for that particular architecture or like um
So a stream of use case for example the transformer is it is quite different from convolution networks. Whereas a transformer come out, it is slow in compute. But um more and more hardware uh like uh they adopt transformer and they make out processes and then transformer could become like as fast as uh or even faster than the convolutions. Yeah. So s s yeah.
Okay, thank you. So I have one last question, but before that um anyone from the audience has any question? If not then I will go ahead with my last question. Okay. So thanks. Um yeah, thanks all for uh all of the talks you gave. Um
So my question's about sort of the rise of what I see as the multimodal models and sort of architectures that all kind of take different inputs from the world and just kind of project them into tokens and then just throw them at a transformer. And this seems to work and has given rise to things like Qynomni, Internomni, and even Professor Leo's work, your work with Asset Generation.
From the outside looking at it seems like while transformers seem to really take care of everything you can kind of just project them in silicon space and it works like that but I can imagine that there's a lot of complications in there so my question is about sort of what are the challenges you see in sort of these
really buy and try modal combinations of architectures and is there even a place is it really the future for us to just throw everything into token space and use transformers or is there still a place for unimodal architectures and combining systems
Yeah, it's a great question. I I really agree that uh Omni models has a future and because you know we can speak to these models say we'll also generalise to new modalities much better. It's just the way why we are working on LLMs right now is because we have tons of data there, right? We have uh trillion tokens people train like this uh latest video model twenty five trillion tokens. Now with uh Omni models we have the biggest challenge is uh
the alignment between modalities. I don't have twenty trillion uh, you know, image, text, pairs. Uh so uh I cannot efficiently use that same same goes for audio. I have for example audio image from videos, uh but but not
Yeah, I mean audio I can also transcribe potentially. But we don't have all of these modalities going in and out and alignment is a big big problem. I I think uh we should investigate a bit more direction of like semi-supervised or self-supervised learning. Uh this is what will improve the Omni models.
Yeah. So uh we have actually working on this like Omni model models uh in terms like like vision, language and motion sign. So from that project my lesson is that uh two things are pretty important. The first is uh kind of data mix. So because different data they're very imbalanced as uh Balfour said, some of them are unpaired data, right. So they're not paired data. So how can you uh construct interleaved data?
to train the model so that the model can learn the associations and our alignment between different modality of data. So that part is uh very important. So for our project we didn't see the scale as the most important thing, but the quality and alignments we see it's uh very important. And the second part uh I see is on the uh tonisation. So because for now everyone here, I think most of you are just working on language models for language, so the
Tokenisation is pretty straight-forward and the p compression is almost lossless. But for other type data, like for the motion data, it's still not quite good. So our tokenisation and when we do the decoding, we still lost lots of information. Because like different data, they are lie in different sub-spaces. So it's very hard to find a r universal way to capture the very essence information inside. So if we can do that, have a very very good Omni-encoded
With the decoder I think we can maybe solve the problem. Yeah, that's my lessons. Yeah.
Yeah, I feel like uh LLMs uh they are good at something, but they are not good at som like uh I mean auto-regressive models, they are good at something, but uh for example they are good at low frequency information, but they are like bad at uh producing high frequency information. Like um but diffusion is on the other hand, it's very good at pre producing high frequency information. So I feel like um combining
So s um different uh architectures could benefit uh more use cases. For example in V_L_S_ source is V_L_S_ when we will use uh like um uh L_M_ as uh um to decode to encode the information and uh use the um diffusion model to generate the final act actions. Um and also I feel like um we need to invest more on more diverse architectures.
Like uh we we need um people are more focusing um currently as investing m many um money in many resources into the transformer models um but we still need to keep an eye on what could be the like um more useful or totally different uh architectures and uh maybe could just the reversal that's so um like uh total replace the tr transformers. Yeah.
Okay, uh keep it to you. The last question for today is a panel discussion is like the one bit you would like to take to make L_L_M_ reason more efficiently or maybe uh the question is valid for multi-modal models as well, not only for L_L_M_s but how to make foundation model reason in a more efficient way. Uh and if we are to start a new research thread for that? If you
that it for example assume from a graduate student perspective that if you have to invest your time there what can be the first bit or first dig that you want to start with uh in the domain of foundation modelling and reasoning efficiency.
Yeah, we can start with the Zhejun. Okay. Um I feel like uh um maybe a more practical suggestion is to just uh look at how many GPUs you have, like uh um if you then like it depends on the uh available GPUs you can choose uh whether you want to do uh post-training or do fine -tuning or do like a pre-training. I um and also like um I feel there's a
uh many redundancies in the uh output. Oh not actually t currently it's some mainstream like saying we need to scale up the length and the so longer the output uh is the better the result is. But actually if you look at the outputs there are many repetitive repetitive or like nonsense outputs. So um I think one direction could we could do is we can
Just um summarise those uh um summarise those uh mm uh sentences during the generation, or we can like um having some red hat red trat is

having some red hat red hat um having some penalties or just uh mm making all use the S_S_T_ to trend on the um like uh self uh self-generated or like a data to make the model um like uh generating better better and shorter sequences and start from here we can just uh prolong and uh shorten and prolong and shorten.
So is this way maybe we can improve further improves accuracy. Yeah, something like that.
Okay, so uh my take on this uh reasoning model efficiency is actually uh un under part. So all the reason model just involves like two different stage. So one is in which space do you do the reasoning? So nowadays most people do the reasoning just verbalized in the language space. And second is what is the incentive, right? What is the reward model? So of course you want to improve on the efficiencies you can like doing from both perspective. So in terms of the space
this space. So for humans, so sometimes when are not just used its verbalised reasoning, right? You're not thinking like step step in your in your head, using odd language out there. Sometimes you're just thinking visually, sometimes you are thinking like more like uh using this multi-modal cues. Right? You are not just thinking in terms of language. So that is definitely one way that whether we can find in some
Like multi-model, even on model space, we can do this uh both fast and slow uh reasoning in that space. So there's a pretty uh large scope and don't know how to do that. And the second is how to design a more uh scalable uh reward, right. So currently reward function, I think
Uh for general problem it's too ambiguous and too noisy. It's very hard to give very meaningful signals out there. And for certain tasks we have the simulators. We have the uh environments. But how to do this parallel like simulations out there, so that's a another problem. Whereas sometimes it's even slower than the G_P_U_ processing. So I think for the reward function this whether we can find in a really general and scalable reward
reward function or we can find a really efficient simulators word simulators out there can give it the meaningful signals that's my my thought yeah
Thank you. Um so I think for any problem it doesn't matter is it reasoning or agents or something, the most important components is always data. Right, we can see that progression in Llama primary is happening uh due to data. Uh but yeah Llama of course is slightly different, but I'm sure training same transformer on on the same data will uh bring us uh higher accuracy. So if you wanna do efficient reasoning, we need to
look uh and work on efficient data uh so that the data is diverse, um you know, it it covers multiple topics and it really makes this uh sinking there important. Because we for example see that current reason in models if you ask them a straight up question, they can make a mistake or they m they will start reasoning about something that is should not reason. And I think this primary uh driven by uh data.
done in this end. And in terms of what to do for P_H_D_ students, I s I think we need to analyse more existing models. Uh we need to analyse how reasonable is different between small and large model, uh what's uh attention maps of this reason and do we really look back or we only use uh uh latest couple of tokens. So I think same as any other research. Analysing things that up there because in academia many people cannot train large models. But at least they can analyse what's uh up there.
Thank you. Thanks very much for the insightful comments and uh thanks everyone for not making us feel lonely. Okay. It's the last day, last session and after this we will have the last poster session. So thanks the panelists again.
