# Edycja wiedzy w modelu (ROME, MEMIT)

EN: **Knowledge editing in language models** · id `knowledgeediting` · aliases: knowledge editing, model editing, ROME, MEMIT

Path: [AI Atlas](https://aiatlasgraph.com/llms.txt) › [Trenowanie i dostrajanie](https://aiatlasgraph.com/t/training.md) › [Uczenie ciągłe i transfer](https://aiatlasgraph.com/t/continual.md) › Edycja wiedzy w modelu (ROME, MEMIT)

## Description

- PL: Ukierunkowana zmiana faktów lub zachowań zapisanych w modelu bez pełnego ponownego treningu — przez edycję wag albo użycie pamięci zewnętrznej. Celem jest ograniczenie skutków ubocznych poza zakresem edycji, ale nie jest to gwarantowane.
- EN: A targeted change to facts or behaviours stored in a model without full retraining — by editing weights or using external memory. The goal is to limit side effects outside the edit's scope, but this is not guaranteed.

## In one sentence

- PL: To ukierunkowane poprawianie wybranej informacji lub zachowania modelu bez pełnego ponownego treningu.
- EN: This targets a particular model fact or behaviour for correction without full retraining.

## Problem it solves

- PL: Model powtarza nieaktualną informację, a zmiana całej sieci byłaby kosztowna i mogłaby naruszyć inne odpowiedzi.
- EN: A model repeats outdated information, while changing the whole network would be costly and could affect other answers.

## What it does

- PL: Metoda zmienia wybrane ustawienia lub dołącza pamięć poprawek, próbując zachować pozostałe odpowiedzi; skutki uboczne i skuteczność wymagają sprawdzenia.
- EN: A method updates selected parameters or adds correction memory while trying to preserve other responses; effectiveness and side effects need checking.

## Everyday example

- PL: Korygujesz zapamiętaną nazwę działu w modelu i testujesz zarówno pytania o ten dział, jak i niezwiązane tematy.
- EN: You correct a remembered department name and test both questions about that department and unrelated topics.

## This concerns you if you…

- PL: potrzebujesz zmienić wybraną informację w modelu
- PL: chcesz ograniczyć wpływ poprawki na inne zadania
- EN: need to change a particular model fact
- EN: want to limit a correction's effect on other tasks

## Keywords

ROME · MEMIT · MEND · AlphaEdit · EasyEdit · locate-then-edit

## How it works

- PL: Metody lokalizują obliczenia związane z wybraną relacją i modyfikują wagi lub dodają mechanizm korekty. Testy sprawdzają nową odpowiedź, jej parafrazy oraz niezwiązane fakty, odróżniając skuteczność edycji od ubocznej zmiany zachowania.
- EN: Methods locate computations associated with a selected relation and modify weights or add a correction mechanism. Tests assess new answers, paraphrases and unrelated facts, distinguishing edit effectiveness from collateral behavioural changes.

## Limits

- PL: Zmiana jednej odpowiedzi nie gwarantuje spójności powiązanych faktów. Kolejne edycje mogą interferować i pogarszać model; zakres stosowalności zależy od architektury, relacji oraz testowanej lokalności.
- EN: Changing one answer cannot guarantee consistency across related facts. Successive edits can interfere and degrade models; applicability depends on architecture, relations and tested locality.

## Key terms

- PL: **lokalność edycji**: Zachowanie odpowiedzi niezwiązanych z korygowanym faktem.
- PL: **generalizacja edycji**: Przenoszenie korekty na parafrazy i powiązane pytania.
- EN: **edit locality**: Preservation of answers unrelated to the corrected fact.
- EN: **edit generalisation**: Transfer of a correction to paraphrases and related questions.

## Know first

- [Interpretowalność mechanistyczna (Mechanistic interpretability)](https://aiatlasgraph.com/t/mechinterp.md)
- [Zbiory testowe i regresje (Evaluation datasets and regression tests)](https://aiatlasgraph.com/t/evalsets.md)

## Examples

- PL: lokalizacja faktów w wagach · ROME · MEMIT · edycja z pamięcią zewnętrzną
- EN: locating facts in weights · ROME · MEMIT · editing with external memory

## Related topics

Untyped, symmetric "see also" links.

- [Podmiana aktywacji (activation patching) (Activation patching)](https://aiatlasgraph.com/t/activationpatching.md)

## Sources

- [Continual Learning for Large Language Models: A Survey](<https://arxiv.org/abs/2402.01364>) `continual-llm-survey-2024` · by Tongtong Wu, Linhao Luo, Yuan-Fang Li i in.
- [Locating and Editing Factual Associations in GPT](<https://arxiv.org/abs/2202.05262>) `rome-2022` · by Kevin Meng, David Bau, Alex Andonian, Yonatan Belinkov
- [A Comprehensive Study of Knowledge Editing for Large Language Models](<https://arxiv.org/abs/2401.01286>) `knowledge-editing-study-2024` · by Ningyu Zhang, Yunzhi Yao, Bozhong Tian i in.
- [Mass-Editing Memory in a Transformer](<https://arxiv.org/abs/2210.07229>) `memit-2022` · by Kevin Meng, Arnab Sen Sharma, Alex Andonian, Yonatan Belinkov, David Bau

---

AI Atlas revision 122 (2026-10-30) · HTML: https://aiatlasgraph.com/t/knowledgeediting · index: https://aiatlasgraph.com/llms.txt · everything: https://aiatlasgraph.com/llms-full.txt · updated 2026-10-30
