# Oral 31799

- Kind: Oral
- Talk page and recording: https://iclr.cc/virtual/2025/oral/31799

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

Okay, hello everyone. Today, I'm excited to share our research on unlocking the power of function vectors for character writing and mitigating catastrophic forgetting in continual instruction tuning. My name is Gangwei. This is a research is a joint effort by my colleagues from USDC, CTU, and the Zhejiang University.
Our research focuses on container instruction tuning in the area of large language models. We have models like Lama 2, Chain 1 2.5, which had with super real general abilities, but in practice these models are expected to meet more downstream necessities, for example, handling tasks like function calling, code generation, or satisfying human preferences.
For this goal, the LLMs needs a process to streamly fine-tuning on a sequence of tasks over time to keep it effective as new instruction arises. This is called continuous instruction tuning. However, a significant issue occurs during continuous instruction tuning, which is catastrophic forgetting. When LLMs adapt to new tasks, their performance on older tasks often declines, as you can see in this figure.
either if the model and train on five tasks they are ability in domain knowledge and the reasoning declare declaratively so existing studies have already focused on the forgetting problem but the only they only analyze it's forgetting from limited perspectives for such as focusing on a single training sequence or only evaluating a limited
range of model abilities. In addition, we still lack a deep understanding of the internal mechanism that a cost model which cost model to forget. To address this gap, we
We do this research and in this paper we make a contribution in threefold. First, we investigate take it catastrophic forgetting from multi-pilot perspectives. Second, we propose a novel method by using functional character to characterize catastrophic forgetting. And the third, we propose a new training method named functional character -guided training to mitigate forgetting.
So let's n now first uh diving into our empirical analysis, we conduct a serious of experiments to understand how forgetting behaves in A_O_M_s. Uh first we find that uh the uh forgetting is the instruction tuning sequence dependent. Uh jun we we our generation task is lead to a greater forgetting compared to classification.
Additionally, forgetting is model dependent. The same training sequence may improve performance on one model while for the same setting, it hurts the performance on another model. Third, we also discovered that forgetting may be naturally mitigated during training.
Uh in the case there's a label with our arrows and the performance of the model on evaluation task first drop and then raises as the training progresses. Here we verify the training task are dis uh similar to the evaluation task. Another interesting finding is that and the in-context learning farmers may even uh
degrades more than zero-shot ability. This means that when forgetting happens, the contextual information may even hurt uh the model's task ability. So while mo model forgetting has different phenomenon in different tasks and models, so what is the inherent phenomenon in large language models behind the forgetting? For this goal, we turn to the function vector which can be see as a a i
Internal representation of a task ability in model. If you uh here we for the at the time limited, we omitted the calculation of this function evaluator. If you are interested in it you can turn to the paper, function evaluator in large language models uh published in October or twenty twenty four.
So by using function vectors, we identify a strong correlation between function vector similarity and the forgetting degree across task type and training stages. That means when we train on a new task, we will get a new model and then the parameters and the function vector for specific evaluation task is updated. We find that the cosine similarity between the...
The current function vector and the initial one is the strong correlated to the parameters job. We put we plot this points on the figure to show its representation uh relationship.
Uh we can see that uh one of the similarity of the function factors of the task after learning uh is high, so model forgetting is a re relatively mild mild. Uh on the contrary, the last hidden stage uh similarity uh or the perimeter shift of models uh do not have such phenomena.
And so now we want to get the interesting cost of forgetting. We first reformulate the LLM as a latent variable model so by this equation we can divide the calculation into two parts. The first is the activation of function and the second is the execution of task function.
So by comparing this part with the function vector hypothesis, we will find that the calculation of the function vector is directly equals to the activation of function. So this means that the shift in function vector is just equals to the shift of activation of function. Well, in the last slide we mentioned that the shift in function vector is related to the promised job. We can thus...
conclude that the uh forget the interesting cause of forgetting is the shift in cost function rather than the previous function. Uh so we can also tend to this figure for a deep pro uh clear understand. Uh while we understand the model as a latent variable model, we can depart the model into two parts. The first is the uh activation of function, and second uh is the calcul uh the uh calculation of this uh
Activated function. So before learning task 1, the model can correctly activate the task 0 function and then get the correct answer. But after learning task 1, the model may introduce a new function vector additionally influences the activation of task 0 input. And thus forgetting happens.
So to prove this, we conduct intervention experiments. We manipulating the function vector during forward with ending the function vector of task zero or subtracted the function vector of newly learned task one. We find that both experiment set up can recover the model parameters as shown in this figure, which provides empirical evidence for our ideas that.
The root cause of forgetting is the bias function activation rather than the function overwriting.
So based on our findings, we propose function vector-guided training, which is a simple yet efficient design to mitigate forgetting through to regularization term. To prevent, the first is the function vector consistency loss, which should directly prevent the shift in function vector activation. The second is the function vector-guided KL divergence loss. It regularizes model representation with the function vector...
uh uh involve the one it's uh it's uh by using this uh lots we can prompt model to use its original task function rather than build a new function. So by using these two turn we can uh enhance the stability of the model training.
So our experimental show promising results. We tested our measures on various models. The results clearly show that our function value guided training can significantly mitigate forgetting, especially for the in-context learning setting. In addition, our model can successfully prevent the shift of function vector during training.
So that's all my talk today. Thank you all for your attention. I'm happy to answer any question you may have. Also, if you are interested in our paper, welcome to join me for a discussion in the post of time. Thank you. Maybe I can like ask a question like Okay. synchronizing with the like appearance of deep sync and I'm wondering how could you extend your framework to some like long recently models
Yeah, uh see for yes long model, it's maybe more complicated. so currently we didn't test our methods on the reasoning models so maybe next step we will test some more cases for the continual instruction tuning. As current reasoning model has already built a super real instruction following abilities maybe our setting is somehow needed to be updated for the reasoning model.
So Yeah, thank you. got it. Yeah, thank you.
