# Poster 27872

- Kind: Poster
- Talk page and recording: https://iclr.cc/virtual/2025/poster/27872

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

Hello everyone, thanks for watching. I'm Siyuan and I'm excited to share our new approach to knowledge editing in language models. So, what is knowledge editing? It's the process of updating specific facts in a language model without retraining the whole model. For example, if a model says Messi hasn't won a World Cup, that's because it was trained with data before 2022. With knowledge editing, we inject the new fact.
Messi has won and we expect the model to reflect that in future responses. The challenge is how do we make sure that one update is not hurting the model's ability to answer other questions. So traditional fine tuning can inject new knowledge, but it's risky.
It often requires retraining on large datasets and fine-tuning on just one or a few examples might lead to overfitting or collapsing the model's generalization ability. For instance, if we only train on messy, vulnerable cup, the model might overfocus on that and start producing odd answers elsewhere. Now why is that? Instead of fine-tuning, we use one-hot targets, and this supervision can cause overfitting when data is scarce.
So we ask, can we design a software target that reflects the correct answer while leaving some room for flexibility? And one thing that comes to mind is sampling. We can actually sample a bunch of sequences from the model itself and do a data mixture. However, this approach turns out to be mathematically equivalent to traditional fine-tuning.
And the reason behind that is there is no information introduced. And how can we introduce new information? And let's take a look at in-context learning. So LLMs can answer questions based on temporary examples, like pretending Messi won the World Cup to a query. The model then can answer correctly without retraining.
So that is very powerful but temporary. Once the context is removed, the knowledge disappears too. In our approach, in context editing builds on this idea. We use a context prompt denoted as C to guide the model toward a more informative distribution. Then we fine-tune the model not on a single answer but on the output distribution given the context.
So we minimize the KL divergence between the model's response to just the query Q and the full context query pair. This way, the model internalizes new information while preserving prior knowledge. So if we take a look at all these approaches, in context learning is fast and parameter-free, but it is temporary. When the context is moved, the knowledge is not present.
Fine-tuning is the last thing, but it's risky with small data. It can easily lead to overfitting. And in-context editing combines the two approaches. So temporary context guides the permanent parameter update. We carefully control the model to preserve generalization.
For the experiments result, we tested ICE on four datasets from the NoEdit benchmark. We measured added success, locality, portability, and fluency. We also introduced the normalized perplexity metric to fairly evaluate language quality after the editing.
Compared to strong baselines like Roam, Memet, and some fine-tuning -based methods, for example, FTL and FTM, ICE matches or outperforms them across the board, especially in balancing accuracy with generalization and fluency. So, in summary, ICE is a lightweight, effective way to inject new knowledge into LLMs.
It brings the flexibility of in-context learning and the permanence of fine-tuning, while avoiding their disadvantages. It is a promising step toward making language models more updatable, trustworthy, and adaptable. Thank you.
