Hello me um yeah I think it's time to start yeah yeah okay uh at first I I introduce M and today very happy to invite M from Monas University and he work on graph new network and C serious analysis and also L language model and we all know the time series it's a very important modality for finance for EMG human behavior understanding so it's very important and uh and also large language Model for H so uh me me tried to link temp series and lar language model together and use reprogramming um method try to put
them together to uh inte cre large language model to process time series data set so uh next time we can now we can move to me for the presentation hello M yeah yes and uh very appreciate for the Dr UC invitations to host for today's session and in today's session I will introduce our recent work accepted by the clear This year and it was time irm uh by reprogramming the lar language model for time ser series forecasting and my name is mingin and I'm a final year and graduating PhD student from the monish University and
my research is meaning about the general time series analyze uh graph new network and the multimodal learning so um let's get it started and oh by the way this work uh yes and this work was uh a very great uh collaboration with the ant group and IBM Research and other institutes across the world and uh before we get started uh let me briefly give the outline for today's session so we break them into three parts so in part one uh I will give a very brief introduction of the whole thing that we need to know
like the time series and language modeling and we have the concept of the motor reprogramming and uh on this I mean in the second part uh I will M discuss our method uh that's the time irm and in the Last part I will um uh highlight some very interesting related work that Worth to read and I will also provide a very brief Prospect of our Visions for the uh language models for time series analyze and uh let's begin from the first part so in the first part I mentioned I will uh introduce what is the
time series for those people who are not familiar in the field and the language modeling and also so I will give a brief very brief Introduction of the multimodal large language models and how it's likes and what we can learn from them and the meanwhile I will give a hint of the larger language models for time series data i' we a very interesting concept recently that is the motor reprogramming okay so uh time series right so conceptually time series a the sequence of data points that occur in successive order over some periods of time so
it's a recording uh from the sensus and it's High Precision numerical values and in real world for example you know in the highway there was some sensor right and uh for example the vehicle speed so that could be one of the uh time series uh recorded in this system and in practice uh we I mean for the Standard Time series we have we you know in practice we have two types the Univar time series and the multivar time series okay so imagine that the green line for example in this Case that represent the vehicle speed
uh that's the universe scenario right but in multivar scenarios imagine that the Blue Line could be something that's I mean integrated into this system like the engine oil temperature right like with the increasing of the wle speed the engine uh oil temperature will increasing at both so that's the moary scenario and then the language model So uh conceptually uh language modeling is to let the machine to understand our human language or we say the natural language but how we can do that um here is a very uh uh naive examples to illustrate the the idea
behind so imagine there the language model that it expects the texture input so the texture input could be something like I saw a cat so those are kind of uh examples of the pure input and then after the uh the language modeling we Could have the the texure output right so in this example of the web search engine the taex uh the texure output could be the predictions of that what you might like like on the chair or running after dog or something like that so that's the predictions of the model and uh for for
for language models because uh till the recent days most of them are still like open source so in that case we still can obtain the numerical reputations of the tokens That's useful for other Downstream task and systems so that's is the very brief picture of the language Ming and if we dig little bit deep we could say that the objective here is that we're trying to design a kind of neuron Network right so we use the neuron networks to process the context so the context could be some Pro history right and based on that we
have a kind of prediction hat here and then we want to get the probability distribution for The next token so that's a very typical scenarios in the language modeling that's like if the context could be like ISO cat on then we want to predict this the next token so we want to actually to estimate this kind of conditional distribution in this system all right and in this case imagine that we have TR examples like ISO CAD on a m anyway so if the context could be like the I saw then the cat something that I
want to predict no matter what's the Skip gra model or continue bag of model that that I'm going to use anyway my objective here is trying to uh predict or maximize this condition probability that cat and I on the context of the iso so this is the the optimal objective in uh the very beginning of the language modeling or we say in a big picture of the language motoring okay and here is the roots map you know nowadays because nowadays we normally talk about the large language models but what are large Language models right so
conceptually that's a a a language model in larger scales but what is it so here is the root map like we introduce the Ingram models right so that's a very specific task helper so it could be some um grammarly correctors in email rating right if you use uh Gmail or something when you type a when you give a typ post the system are trying to correct that automatically right so that's a specific task T and then we have the uh the Neural language models like what to act something like that and then we have prr
language models like Earth that's very famous in COD only mode right and then nowaday we have a more general purpose the task server so as you can see that the task serving capacity is increasing okay and for the uh large language models we expect that because nowaday you know in most of cases we trying to treat that at kind of agent or we say the the CPUs of a of a workflow is Trying to coordinate the information and to achieve the general purpose the task solving uh capabilities so that's the large language model so it
has some emerging abilities like the income tax learning Chan of so ET such and um um give a very remarkable achievement in recent years all right so um so that's the uh the things oh by the way here is another you know background related to the RM so like uh uh we say that you know for most of the existing uh I would Discuss the open source uh large language models like T5 fcon llama at we at gpt3 so as you can see most of the training data actually from the web pages so that's contain
a lot of diverse informations collected on the on the website as well as there were some uh uh portions of the conversion conversation datas Book News scientific data as whereas code so no matter what kind of the conversation we just find that time series may be involved but in Small amount most of the the Cs here are still uh based on the modality of the nature languages so uh in this case we may ask a question like how we can activate the time series capabilities of a large language models in a system so that is
the question we are going to figure out and here is the the architectures of the large language models so uh as mentioned um we you know at the very beginning we have the encoder only models right like birds and Then we have the uh encoder decoder uh models and by using that we could do some we could very uh we could build a system that's very uh uh handful for some task like the the nature translation right like it can use the encoder to better understand the source language and to transform that into a hide
and representation right and based on that we can use the decoder to generate the the the target language that that um maintain the same sematic Meanings here so that's the encoded decod uh decoded models and recently most of the large language model are actually based on the decoder owning architectures because it's mainly focus on the generation task but based on the prompt so the prompt could be the combining of the tasking instructions without the context information okay so for the decoders uh they were casual decoders prefix decoders but the key difference is like the attention
mask Like this one if the uni directional attention mask right but the prefix decoders I mean on the on the pr uh prefix part it's low the B directional uh attention mask that's the technical difference but anyway the uh most of the large uh language models recently they actually build on the decod owning architectures and in this article we also use uh Lama so Lama is also based on this architectures and let's say uh I mean in the part two I will I will Discuss like how we can activate the llas uh capability for the
time series for costing all right and then um we know a little bit about the uh the large language models now we uh we talk about the multimodel uh large language models so uh RM you know uh it's they were natively designed for the Ste kind of uh language moders right so they're natively designed for processing the the taxure input and give you the texture Output but recently we see a rapid development of the multimodal RMS okay like uh imagine that our W is not owning the lamage the it's very Vivid right it contains other
information like the image like audio videos and so far we know that there were at least they were like U there were at least one Solutions existing to do that for example the next GPT right it can will handle these three modalities like we can give the instructions we can give the images and I can allow the system to generates those uh videos that's related to this topic or this image so that's possible but the question is like how time series analyze can benef can benefit from the recent advance of the time series sorry of
the large language models right like uh this data modality is still the missing puzzles in the whole I mean in the whole um in the whole part of the development like how we can let the multimodal RMS to incorporate the Modality of the time series that's SK and open questions and uh we also see that there were many recent works are trying to answer this question okay so but anyway this is also the the key topic for today's session and in this Visions um we recently gave a uh given review like how uh language or
other Foundation models can be used to uh to do the general analyze of the time series data and the special temporal data so time Series data is one we introduced right and for the spatial temper data because you combine them together that's uh consist of the most part of the temperal data we see in the physical world and special temper data it could be like the special temperal graphs and it could be the temporal knowledge graphs as well as the videos so they were common special temporal datas and based on those um data modalities we
can train a foundation model or we can repurpose Specific for example large language models for specific tasks like forecasting classification imputation at such right like anomal detection and of course we could also like to use whatever fine tuning or r or reprogramming to benefit a lot a series of domain specific applications like climate modeling Clinic question answering in this case we also see that there were some Works related to that um I still deal with one made by Google and They are trying to analyze for example I give the the the EAS or EEG of
the patient and I also tell the RRM with the patient contacts that could be like U uh uh the history of the diagnos and the patient questions and then the system could based on the based on the time series readings like ECGs to answer some basic questions uh to the patient like the the like the GPS right so uh that's Clinic QA and uh we also could do the urban Computing and we're at the video Reading so um they're all possible and in today's sessions we care more about this Branch that's the uh large language
model for time series data so um uh in this context we actually have two branches right like for the general purpose analyze or domain specific applications and for the general purpose analyze we could do uh General forecastings right like what we're going to introduce uh uh that is the time uh there were also other works to uh to do Um this direction like the 1 FAL uh promp cost Temple uh test Etc so there were the branch of the method in this U uh in this branch and for other tasks uh like to support uh
for example time series classification and other task there were also some and for domain specific applications like what I just mentioned like theu Trin uh as where as the G train so they were were doing the clinic uh related cases and of course there were also some Application related to the financial th because those uh those domains are typically I would say usually involv the time series data and this is very critical to to solve uh the puzzle of the time series analyze with the larger language models right like to like what we just mentioned
to complete the the process of the multim modal uh uh learning in the real world so uh if you want to uh learn more about the I mean the background things you Could have a look of this survey and uh now let's move to the background of the uh time RM so in this work actually using a technology called the motor reprogramming but compared to the motor reprogramming uh we may very familiar with the with these three concepts right so the first one is the uh task specific learning so like imagine that you uh you
are trying to design forecasting model and you are provided with a specific data set so you may want to do some for Example manual uh pre-processing uh visualization ET such things and you build the motor on that data set to solve a specific for costing task so that's the task specific learning and um on top of that recently we we are also um having some Works related to the transfer learnings in Time series like we we train the models for example the traffic models in the San Francisco but we are typically like uh considering like
U for example if we have a lot of Data in the San Francisco but we have list data in Melbourne we would say that can we transfer the knowledge in the traffic models from San Francisco to the the traffic system in the Melbourne so that's the TR the transfer learning right and in most cases they're all considering the in domain knowledge transer but there were also some like Cru Domain transfer so uh that's also possible so that's one um directions to do to do that and again on top of that We have the foundation model
recently right like uh uh no matter in the uh you know in in in computer vision um and other where other domains we see rapid development of the foundation model even for the time series recently like recently we see that uh no matter the Aman uh Google at where other uh company they did um we say they released some time series Foundation models for specific cost like for casting Etc so that's possible but it's emphasizes Strong uh data collections like you typically need a large scale time series data for the Mel training and that's the
pin point in the in the field like in most the cases our public data set remains in the small scales and their training data is actually uh collected from um their um applications uh their application cases and not open source yet so that's the Ping point of uh of developing the foundation models for the time series so um based on these um Situations we consider another possibility that we can we just uh activate or we say reprogram the the large language motor because we the common sense is that we believe large language model can obtain
a diverse we say a universal Knowledge from a massive amount of the training data so we have that assumptions and based on that we could we just think uh we just think like can we activate the inherent capability of the large Language model to solve the time series task and in this Pap just find that's possible okay and for model reprogramming the key idea is uh the first step is usually like we need to design a kind of input transformation layer for example if your model is about the the language the kind of language model
then you need to bridge the modality Gap right because your inputting not in nature language and you need to let the model to understand what You're saying and the output of the for example the model The Source model may not your divided output so at this stage you also need the output maing layer so that's the typical pipeline of the motel reprogramming and and in the following I I will show you like how we can actually we can simply achieve this goal in using the for time series forecasting okay and here is a um is
an example together with the table to summarize some related works but um due To time read will not uh discuss too much details here and if you have questions you can ask after the fent and I'm willing to to answer here okay uh let's move to the second part okay so the time irm so in this part I will first discuss our motivation like what motivate us to design this model including the conceptual designs and then I will talk about the model architectures again with some highlights and finally I will uh summarize our main Results
like our findings and our evaluations then uh let's begin so firstly uh our uh the motivation right so our motivation is in two fold so firstly we believe that the reprogramming can make the large language models instantly ready for time series uh tasks so uh to achieve this we need some adaptation right so um our idea uh at depicting this picture is that we keep the pru larg language model intact and we only Incorporate the trainable reprogrammer here and to achieve certain alignments but how to achieve this alignment sorry this alignment should be um should
be the things we we we're trying to think about and in this paper we have this formula uh established that's way trying to appro approximate the perfect reprogramming with two steps the adaptation together with the alignment Okay so uh adaption here is actually to make the large L models to understand How to process the input time series uh time series data so this is what I'm seeing to Breaking the domain isolation right and based on this we are thinking about another another layer of the motivation that's how we can re to to reprogram the rrms
to make it as a powerful time series analyzer okay so uh in this case case we consider another layer of alignment here that to further eliminate the domain bounding but how so in this case we are considering To using the the uh The Prompt so we treat the prompt as a kind of prefix and then together with the reprogramming layers we call the time series patch reprogramming we combine them together and we just find it can achieve a very good reprogramming readout to makes the inact we say the through the large language modules to do
very strong time series analyze especially in the forecasting scenario okay so that's our Motivations and here is the illustration of the reprogramming large language models that's the part C uh in comparison of the task specific learning this is what we just introduced and the mod find tuning so this this is more common for the Ping time service models or in many of the re the recent socalled Foundation models so uh the part A is quite easy to be understand right like most uh time serious forecasting model are Actually are actually task specific Learners I would
say so for example they do traffic prediction they could do the uh the energy uh the energy for casting and they could also do other kind of task but you just need to design or we say to to train a specific models to do to achieve that and for the part B all the key idea here is like to we can we use a large scale Source data samples to train a foundation model here and then for our uh specific Source task we tune The motor hat and to achieve that so for different sour task
we have different adaptations uh need to be done so I mean in the typical way and um but this also put another um hypothesis here like we need to have a large scale of the uh the training data but in Time series um until uh today it's still really difficult to collect that amounts like the huge amount of the uh the data samples for a successful foundation Modor training okay so uh here that's why we considered this scenario the the cross modality adaptation so that's the part C so uh the key idea here is to
transfer the knowledge from powerful protu Source Foundation models and in our case it's the lar language models to perform Target tasks like different forecasting tasks here with the model fine tuning or reprogramming and we choose to uh achieve that with a very simple but effective reprogramming so That's what we are trying to do here and okay so here is the architecture of our proposal so um uh to make a one sentence summary so our work is trying to combine two parts together to make a significantly better forecast so the part one is the prompt so
the prompt contains domain expert knowledge together with the task in instructions as well as other informations in the Nal language okay And another part is the reprogram in Time series so you may ask that okay so the you you're trying to combine different modalities the short answer is yes but after the reprogramming the input time series will be transformed into the source representation space that is the the language representation space so after that we unify these two different modalities in a single um repetition space and then based on that we we put into the r
to do the reasoning And we've just find It's Kind it's really effective to activates the um to to activate the to do task related uh reading so uh in other word to unlock the rm's ability for time series so that's possible and uh as we mentioned there were two uh the two key parts right so the first part is the adaptation like you need to make the entire workflow to work at least right so that's one two and five so that means by removing three and four the entire System can still work but compromise the
per uh the Mel performance right so because there no alignment that been down so uh the key part are three and four so three is for the patch reprogramming so uh this is the first key aspect of our work like we are trying to reprogram the time series patching Bings into the source data representation space like in short we're trying to use the word embeddings we use word embeddings to generate taex Prototypes and we use those top uh tax prototypes to reprogram the inove time series patches okay so that's the key idea of the patch
reprogramming and the second part so this one so this blue uh prefix so that's called The Prompt as prefix so this uh technique a is to use the nature language based prompt to act as the prefix to enrich the input context and guide the transformation of the reprogrammed time series patches so in Um in other world so this part uh plays the role of the activation like to activate the RRM to better understand the Yellow Part like how I need to transform these part of the reputations for a successful um task uh conducting so that's
the key idea of the promp prefix so combine these two key aspect together we have our model like this so uh here is the examples to illustrate the idea of the patch reprogramming okay so uh of Course like we are trying to do the cross modality adaptation so we have the source uh Source modality and the the target modality so the so our source modality this case it's the word embeddings pin word embeddings from the larger language models and our Target modality the time series patches like and uh inspired from the image captioning like for
a specific image we human can always use like a field of sentence to describe the key information In that image right but for time series it's it's usually difficult like for us to to accurately to to to uh describe the information in that time series but it doesn't mean it's impossible so the key idea is like for different patch of the time series I believe that there should be some way for us like to use the natureal language to do such or we say to do similar captioning so for example if the The time series
in patch five given the trends of like uh steady down first and sorry uh like shut up first then steady down then we can actually to represent this time series patch with these two text prototypes the uh the green one and purple one right and to learn the green and purple text prototypes we need to do the mapping from the real vocabularies from the large language models and that represent different wording B so in this way um we actually want wish to uh Establish two different mappings and to achieve this so that's the basic idea
of the patch reprogramming and it actually reflects the things of the uh time series captioning and then uh we move to the uh uh the promiz prefix so conceptually we could do both like um in the left it's with in a generative manner that we use the patch information we could use the patch uh reprogram the patches as the prefix and Then followed by um the language based uh prompt to Get the forecasting but there were there were at least there were two technical challenges the one is how we can achieve the high precision tokenization
to tokenize the high Precision floating lers especially for our like if we want to do the long-term forecasting there will be a large site of the uh Hy pris numbers but how we can do the effective toiz that could be a question and the second part is the contact window because if we want to do The long-term forecasting our forecast could larger than um 520 so that's lot of numbers so how we can uh address those technical challenges that remains a question for us to implement the things in a generative manner but it then to
mean that's impossible okay and um there also another uh PRI knowledge that in the context of Time series forecasting we usually think that the predict in a predictive manner like this that can Build better performance compared with the generative things so that's why like recently there were the lots of the transforma based forecasting models are trying to operate in the mode of the in a predictive manner so that's in another layer of the reasons like why we are trying to give the prompt as prefix compared to this like the patch as prefix so prompt as
prefix is actually proposed to enrich the input contact so like given The time series we could provide some context information here to guid the transformation of this yellow part the reprogrammed time series patches and uh this p is actually more desired in Time series forecasting as for the reason that I mentioned compared to the patch as prefix uh like this okay so that's why we do this and our motivation to do this as well and in this example we provide um promp template like how we can design the the P part so in this Case
for example you want to forast uh the electricity Transformer temperature so here at the very beginning I will give a background informations to the RM like what what the case I'm trying to I'm trying to solve uh this part is important in short together with the domain knowledge cuz imagine that you're trying to do the traffic uh forecasting cuz in the traffic domain we human knows there were some uh par knowledges like uh we could see that the traffic in the Highway could be uh could be bad like especially during the the rush hours right
so that's a type of the domain knowledge uh we're trying to give the machines to help it better understand the context but for the traditional forecasting model they you you actually cannot find an explicit way to to provide the model with lose uh information right so that's one of the benefits like uh we that's why one of the benefits we can use the RM to to do A more income text for cting okay so that's the first part and second part we give the tasking struction so that's quite normal right then uh we have some
uh st stickers to be provided and uh this part is actually if not mandatory but uh what we want to see here is that in practice there were much more possibilities here like in breing Time series and the related textual context together so you can imagine there were lots of combinations and lots of Possibilities here in different applications we may have different prompt templates that's possible and that's pretty much all abouts uh the time so the methodology is very simple and here and here are some uh experiment result so in this case this is the
standard longterm forecasting result and uh our R is summary in the First Column here and here is the takeaways so in short we have an average Performance skin of over 12% and 20% compared to the gbt forts that's also know know as the 1p to model as well as the tsnet so that's a strong model in those common uh time series forecasting benchmarks and sorry and this table uh represents the shortterm time series forecasting results on the M4 so that's it also the standard protocol is it the the they usually use the benchmarks for the
shortterm uh for casting evaluations and And we see that compared to the gbd4 TS we out outperformed by around 9% as whereas in uh some cases are without even better than the in heat so that's very remarkable because this is very strong um classic Model in in the M M4 competition and here is the result of the F short learnings on both 10% of training data and we're at the 5% of training data and in general we also see a lot of uh improvements compared to whatever the Gbt forts deline patch TST at where as
times notet so uh here's the statistic summaries so I will not read uh read them and I will leave uh uh it for the readers to uh to to have a look after the sessions and here is the result for the F short learning on 5% training datas uh and you could see that uh similar trains holds here at we're even compared with the tb4 TS said we have the patch TST okay and table five this part gives The zero short learning result and I believe this is the things that most the people cares about
like uh when I did for example successful reprogramming on for example et1 does my model can be like directly used on other similar um scenarios like for example adm2 for for the minute level datas on another uh on on another site so the short answer is yes our model also support a very good differ learning capabilities and and you can See that it's consistently outperform the most competitive baselines by large margins okay like it's over 40% and here's the um the overall comparison and you can find more details uh in the papers appendex and ation
right so ablation is is important like we usually see some interesting Clues here like first part A1 to A4 um the things we want to demonstrate Here is that reprogramming will not violate the scaning law properties provided in always embeding in most of the modern large language models like if we train on a Lama 7 billion that if that has the Vols uh layers of 32 uh we have this performance and we say that it's better than the Llama model that we use only like the first eight layers and anyway you could also experiment on
the Llama 2 for example um f billions or whatever so the scaling LW Actually remains written here after the reprogramming so this will not change the properties of the RMS and that's good CU we can't expect that the models to uh to to REM work across different language models the methodologies or we say the Frameworks remains workable even on for example gbt2 or even more advanced models like uh Lama 270 billions that also works depend on the hardware um situations on each of the persons so that's the first part and the Second part is the
Cru modality alignment right because as the mentioned we have two key aspect the one is the pat reprogramming and another one is the pr prefix and we find that if whatever I mean um which part uh you you disabled will harm the Motor Performance whatever the pat programming or PR prefix so that's um if the things we I expected okay and then the uh the oh sorry I forgot to mention the C1 to C3 so this part is related to the Components in the uh in the prompt uh in the prompt template like we have
uh for example we have data set contacts right like we have domain knowy and we also have task instructions or something of that so here we provide a very brief um ablation uh read so like uh if we disable each of them with the r will be so um in practice and I mentioned uh we believe there could be more possibility and this is just for your information and then the efficiency so Uh in short what we are trying to demonstrate here is that the motor reprogramming this technique will not overburden the RM so for
example if the uh the inference time for for for large language model is for example either at a specific level motor programming will not increase this bar significantly but incon will hold most you know almost the same inference level I mean the the the cost level so it will not overburden the large language models So this is what we're trying to demonstrate here in table siip and here we also compared with uh the Kora so the param efficient fine tuning and our takeway conclusion is that it's favorable model reprogramming is favorable even compared to the
parameter efficient fine tuning in this contacts in Time series analyze so uh that's our main result and this part is very interesting visualization okay so here we're trying To uh investigate whether patch programming can do what we expect it to do so uh in the first a2d in the first top four subplots we are trying to visualize the optimization of the reprogramming space from the randomly initialized to well optimized so at the very Beginnings the mot do know like which wording Bing should I use to reprogram the input time series but after the optimization we
could find that this is really sparse and only a Small set of the prototypes that the different colums here participated in reprogramming the input patches so each of the role going to be different input time series patches in this experiment and we find it's it's in the spot so that's it what we expected right because we believe that there were only a small amount of the the related uh context related text prototypes that we can use to caption life the time series patches so that's The things and indeed we can see it here and at
the bottom here we did another set of experiment that we select three set of the word from the rm's vocabulary so word set one that's mostly related to the time series captioning so it's really it's some words like periodics seasonal increase so imagine that you you naturally can use this word to increase or sorry to describe the trend of the time series imagine that time series at the image you can use these Words to describe them and word set too that's some of them related to the time series captioning like Quant average short Etc and
what set three that's that's make no sense like here it's totally irrelevant sorry it's not correlated to the time series at all it's like uh it's some word like outspoken garly analog Etc so ideally we expect that word set one those word are actively are actively involved in the Prototype forming like this so this heat Map is more active than this one right so that's what we expect let's demonstrate that the pat programming indeed can use the can choose the correct wording Bings to caption the the time series patches we provided so that's the visualization
we provided um yes so that's pretty much about the time RM so it's very simple and it's very effective in adapting the Frozen large language models for time series for casting and uh it actually Can outperform many uh specialized expert model but uh the Highlight here is we only use the outdated uh and the smallest llama model due to the h constraints that's the Lama 7 billions and if you use a stronger RMS we expect and we mention the scaling R remains hold here and we expect a better performance much better performance here and um
and here we also uh have a very interesting Insight that the time series For casting at where uh task can actually be cast as yet another language task that can be tackled by of the shift large language models to Simply achieve or match the Sola performance so that forms a very interesting insight for the followup works and lastly I don't I mentioned because for the bigger picture that's the multimodel argumented time series forecasting or even multimodel argumented time series analyze so we are The first to achieve this aspect but we believe there there is a
there is a room that we can so we can do more yes so uh that's pretty much for the part two and now let's move to the part three so here I will highlight some related work that that I think they that that I think uh we're Worth to read and I will also provide a brief perspect of what we think about the uh large L large langry models uh for time series in the future Okay so the first related work um I mentioned is the uh gbd for TS so that forms an important Baseline
meod in our methods uh for comparison and gbt forts uh the architecture is very simple and very straightforward so given the input time series you do the patching like uh what we did in the patch TST right and then with put into the gpt2 model and here we only tune um the A and layer Norm layers in the gpt2 and then we um we forward The uh embeddings to a specific task head for different task and their result demon streate that even for the gpt2 they can achieve a very strong performance in lots of the
time series tasks like forecasting different type of forecasting and time ser imputation and nomal detection and even classification so it's demonstrate that it's possible for us to use the language models to do time series sa and this work RRM time so this work has been published in uh the Nips uh conference last year and this work is uh is even more straightforward like it's using uh um out of shief language models and without any training here it just input the time series into that model and to get the forecasting so here they will introduce some
uh they were introduced some uh uh specific tokenization strategies and uh sorry like this so they find that for different language models different tokenization may have significant impact So this is the challenge that I just mentioned so we don't know like what hand of token iations a shootable for specific language model so that's the challenge but they their experiment uh prove that with a specific um crafting we can actually achieve a very good uh performance by simply influence the large language models with the input time series without even any trainings like here is The air
passengers forecasting you can say that the the predicted result actually follow the trend well and at we at for these cases so anyway both of these baselines demonstrate uh one things that's the large language model can indeed help uh in solving the time series uh problems and that's feasible and the next question is like how we can we can do more with this so here is our uh Prospect so although that we have Witnessed a great success of the pre-train model in NPS CV right and mention like limited progress has been made for powerful General
times and analyze there remains a limited progress and I would say this is the buring field and the question here is like can we just simply prompting a reprogramed larger language model to perform various General time Ser an analyzed so uh like what we depict here that the first step we uh we extend the concept of the motor Reprogramming here like we crafted the multimod instruction data for the motor tuning and then we use the specific reprogramming here we use that to do the instruction tuning and optimize on different pretext tasks here and then we
have our reprogramed the tuned models established here and then we design different Inc context learning queries for example the first one is for time series forecasting and the second one is for time series Classifications and with some hint with I mean the innex examples here we could uh can we just successfully prompt this model to do diverse task like we can let it to do the effective forecast we can also so like by just the by by sampling prompt it to do the successful classification so that's what we saying um what's going to be happened
in the field of the time series analyze uh maybe in the mid or late this year so again uh the next GPT right so by Connecting the RMS with the multimod adapters and the diffusion decoders so that's the generation part right so it's possible for us to achieve the universal multimodal understanding or we say the multimodal switching right so this idea is actually um can be fly explored on time series data right like imagine that you plug a Time serice encoder here as well as a time service generation here even though we still not have
too much of them we can make the entire workflow To work as well so the there were two youth case like the one we can do the forecast and mention and then we can do the uh do the classification with the reasons like explan explainable classifications so that's possible and uh here is the use casing next gbt and due to time readon I cannot discuss too much details here and all right so uh that's pretty much and uh here is here like back to our Effect and we believe that like RM empowered time series agent
could be the next um next topic I would say after the exploration of the RM for whatever time series forecasting or or other kind of task because they are still in the in the area of the RRM Centric predictors but what next so that's could be the r empowered agent okay so um that's all for today's session and thank you so much like uh if you are Interested in this work uh you could find out what papers in this QR code and our code has also been made U public and uh you could access the
code on GitHub with this QR code and thank you so much guys yeah yeah thank you me yeah it's a great excellent job and the next SE we will go to the question and answer so uh can you see can you see the chat there is a a question from SM yes can yeah yeah actually I can see so Indeed the patch side is actually one of the the hyper parameters in the model design so on so far in this work you have to tune that like based on I mean tune that in a uh
in a task specific manners and you are right so if there were many fluctuations your patch size should be relatively small like to reflect to always say to tokenize that time series correctly right so because there were many voice saying that the the Pion is Actually a kind of a in time Ser data and yes yeah okay cool uh there some other question you can unmute and to direct use the speech to talk with the me and are there some person yeah if if no person I have some question about it it's it's a great
work so have here and I also do some time series things about EG EMG and like kind of things and body skeleton data so I have a question About for the data set you have a uh reprogrammer for TR or speciic model to link the language to 10 Series right so it means you have a data set uh with the time 10 series and also related text description right do you have yes yeah so so like this so it means uh do you think it's a big challenge for example like EG and EMG date because
a human it's hard to it's hard to describe for human to describe it because they up down with a very big Frequency there's some solution for it from me your said yeah so in short I think the health care area like what you mentioned the the EG or ECGs yeah it's very good application area for this kind of technique why because imagine that's how the GP make the make the diagonal for a patient that's the GPS will read them the the historical diagonal of that patient so that will be some informations in nature language right
so Like uh some record in the computers though so the GP will refer to that kind of record and then the GP will have a look of your your recent EEG or ECG readings combined with them so actually in fact that you can see that the recordings are in nature language and E is different time series right so combining with them togethers you can natur fit them into a framework like the time irm but depending on what you are trying to do because is actually doing The forecasting but if you but if you don't want
to do the forecasting actually you wish to refer to like to this kind of Visions here like uh to enable a diverse kind of the downstream task like uh the diagnos like where whether the patient have the the Aral fabri relations or normal EC or or or EGC or ECG sorry so uh that's one of the use case but you could also like use the time um to Simply do the forecast that's also possible but I don't think in this In in this application eror the forecasting is the case because we normally don't want to
do the forecast we want to do the classification and by simply modify the the task had I believe that there should be a way to uh to Simply achieve this yeah cool cool uh are there some other questions and you can answer know yeah thank you so much for this uh great work it's very very very Interesting merging LMS with time series data as it's very complicated to but you have succeeded to do it so congratulations and thank you so much for this great presentation uh thank you have just a question regarding the data preparation
because it's not a question but just to clarify uh ambiguity I have so like as it's a multivariate data set so uh like like those patches they contain few rows of data and those patches that like that preserve local Semantic information we use them we embed them like through that pre-trained model right so like does the patches like they contain each patch for example contain normally like few rows of data uh that refer for example to the source data set that contains all those words right so in my vision I think the the key benefit
by using the large language model their emerging abilities as I Mentioned one of them could be a very strong reasoning capability but how you can activate that that's the question so in your case as you mention there was some meta metadata here uh the team the te nature language right so if if it's this case you can simply like refer to the framework we made we we we introduced the here like for example the time it's naturally accept the language based sematic information as to treat that as The the the domain knowledge of or something
like that to treat that as a prefix of the whole things and then followed by your time series data then you can use the RRM to do the transformation of those time series edings to do specific task so in short natively typm do the forecasting but by changing the um the decoder part or we say the task Ahad you can actually let it to do other other kind of tasks So based on Your need that's it what we uh what I can tell about your use case so I'm I'm not sure whether that answer your
question uh great yeah uh it anwers like the first part second part is about for time LM like it could be great if you can just summarize like in few sentences the data preparation like from the input channel into like passing the inid into the to the freezed Model okay so this is very a good question so I need to back to the framew yeah all right so let's have a look of this so firstly uh sorry one okay so firstly most of the time series data especially for those public time serious dat that they
don't have the very rich me the data available right so that's why we introduced this part the input statistics right because we want to embach the context but in some use case Such as the what we discussed the houseal scare they have reach me met data available so in that case you could treat that as the domain part as the domain knowledge part so naturally incorporate that into the into the prompt for each batch of the data samples so you'll attach that nature in nature language into that prompt temp uh template so you could refer
to our code on GitHub for the details and then the instruction instruction is quite common right like to tell the um what you are trying to do so for a better transformation of the the yellow part because we still run in a predictive mode so that's why we still need the projection layers but we believe that you could also try to to modify this part into a generative mode so to do that you will not need the projection anymore so that will allow The whole thing in a generative manner so that's also possible so that's
what I uh what I will do if I'm solving your your problem yeah thank you so much yeah and also in the chat there another question I mean you can check from USF yeah okay so you mean the so this question is about uh the Baseline comparison all right so and you can see so here because I only screenshot the uh The summarize the results in the in the main tax of the paper so we compared with some related models that I just introduced the gbt Forts and some Transformer based methods right like patch TST
uh f for for ETC stational uh Transformers EST for ETC so those are deep learning based algorithms and we haven't compared with the rstm um because we just compare the very Recent methods but we could also compare with the rst and that's that's not impossible and here I don't know if this can also address your problem that we have compared with some uh statistical or semi or some hybrids methods like the M and M beats so that's more close to the traditional things so I don't know if this address your question and you could also
refer to our paper anyway so yeah it's okay yourself yeah okay another question yeah It's okay okay I think it's a last question in the chat because time now it's more than one hour so yes yeah last question see yeah I say yes exactly so this question I think is uh if is some words overlapped with Dr R question so in short yes but you need to do something modifications right like uh uh as I mentioned um time LM is native for for casting but if you want to do the classification you at least need
to Modify sorry you at least need to modify the output projection part and we add the optimization uh problems here but I believe it's possible yes in short so I have a question about this part so if if he he or she use e EG for classification does they need do the labing for the each data B text V I believe I believe yes okay the laboring Right yes could you give you some example like what kind of text description should the game yeah okay yes so uh let me jump to this part The Prompt
okay so for the uh for the EEG or ECG diagonals so the first part like I mean in the in in the prompting part right because for the model architecture I mention you need to do some modifications right and for the prompting the domain knowledge could be Some the patient related things right because your diagonal should should in the context of the patient situation so it could be some something like the historical diagonal like what's the patient situations that could be your domain information here and instruction of course here could be like to classify the
the given EGS to like you need to you need to be specific to simplify the who things like to predict whether the the EEG is for example yes yes Represents the the unit and no not belong to that unit so that could be the case for most of the situations and of course you could also use the income tax learning things like to give examples but that's more related to a kind of uh agent like system so that's another level of things but for the time irm that's the thing you can simply that that that's
the modif modifications you can simply to do and to optimize the time out to to to to change that from Forecasting for the classification so technically I think that's possible yeah yeah Al so you said here uh it's it's about the whole the whole task text description um is it possible to give the for each 10 series give them the TCH uh description like some research on post language they give the the post temp Ser they say okay this is jumping this is jogging like this for each uh each one well um that It yes
so I would not see very absolute word but what I can tell is you can treat this part actually at the strong multimodal time series pattern machine okay so the means that given a specific for example EG data together with the with the prompt like this you are expected to represent a very informative representation like this green part but what you are trying to use that part for what spefic T that's really depend on you like you want to do Classification okay like um let's do classif ification by using for example let's Implement a very
simple projection to see how it works so that's what I can tell at this stage