paper-with-me

홈 › Papers

Model Editing with Canonical Examples

2024-02-09 · John Hewitt, Sarah Chen, Lanruo Lora Xie, Edward Adams, Percy Liang, Christopher D. Manning

We introduce model editing with canonical examples, a setting in which (1) a single learning example is provided per desired behavior, (2) evaluation is performed exclusively out-of-distribution, and (3) deviation from an initial model is strictly limited. A canonical example is a simple instance of good behavior, e.g., The capital of Mauritius is Port Louis) or bad behavior, e.g., An aspect of researchers is coldhearted). The evaluation set contains more complex examples of each behavior (like a paragraph in which the capital of Mauritius is called for.) We create three datasets and modify three more for model editing with canonical examples, covering knowledge-intensive improvements, social bias mitigation, and syntactic edge cases. In our experiments on Pythia language models, we find that LoRA outperforms full finetuning and MEMIT. We then turn to the Backpack language model architecture because it is intended to enable targeted improvement. The Backpack defines a large bank of sense vectors--a decomposition of the different uses of each word--which are weighted and summed to form the output logits of the model. We propose sense finetuning, which selects and finetunes a few ($\approx$ 10) sense vectors for each canonical example, and find that it outperforms other finetuning methods, e.g., 4.8% improvement vs 0.3%. Finally, we improve GPT-J-6B by an inference-time ensemble with just the changes from sense finetuning of a 35x smaller Backpack, in one setting outperforming editing GPT-J itself (4.1% vs 1.0%).

📄 PDF Abstract BibTeX arXiv:2402.06155

Code (1)

john-hewitt/model-editing-canonical-examples 공식 구현

Tasks

Language ModellingmodelModel Editing

Methods 이 논문이 사용한 방법론

SET Dynamic Sparse Training method where weight mask is updated randomly periodically
Pythia Pythia is a suite of decoder-only autoregressive language models all trained on public data seen in the exact same order and ranging in size from 70M to 12B parameters. The…

Similar Papers 제목 키워드 기반

UltraEdit: Instruction-based Fine-Grained Image Editing at Scale

2024-07-07 · Haozhe Zhao, Xiaojian Ma, Liang Chen, Shuzheng Si 외

This paper presents UltraEdit, a large-scale (approximately 4 million editing samples), automatically generated dataset for instruction-based image editing. Our key idea is to address the drawbacks in existing image edit…

DiversityImage Editing

NaRCan: Natural Refined Canonical Image with Integration of Diffusion Prior for Video Editing

2024-06-10 · Ting-Hsuan Chen, Jiewen Chan, Hau-Shiang Shiu, Shih-Han Yen 외

We propose a video editing framework, NaRCan, which integrates a hybrid deformation field and diffusion prior to generate high-quality natural canonical images to represent the input video. Our approach utilizes homograp…

SchedulingVideo EditingVideo Temporal Consistency

Learning Naturally Aggregated Appearance for Efficient 3D Editing

2023-12-11 · Ka Leong Cheng, Qiuyu Wang, Zifan Shi, Kecheng Zheng 외

Neural radiance fields, which represent a 3D scene as a color field and a density field, have demonstrated great progress in novel view synthesis yet are unfavorable for editing due to the implicitness. In view of such a…

Novel View Synthesis

VideoReTalking: Audio-based Lip Synchronization for Talking Head Video Editing In the Wild

2022-11-27 · Kun Cheng, Xiaodong Cun, Yong Zhang, Menghan Xia 외

We present VideoReTalking, a new system to edit the faces of a real-world talking head video according to input audio, producing a high-quality and lip-syncing output video even with a different emotion. Our system disen…

Video EditingVideo Generation

IDE-3D: Interactive Disentangled Editing for High-Resolution 3D-aware Portrait Synthesis

2022-05-31 · Jingxiang Sun, Xuan Wang, Yichun Shi, Lizhen Wang 외

Existing 3D-aware facial generation methods face a dilemma in quality versus editability: they either generate editable results in low resolution or high-quality ones with no editing flexibility. In this work, we propose…

3D-Aware Image SynthesisImage Generation