paper-with-me

홈 › Papers

Transformer-Patcher: One Mistake worth One Neuron

2023-01-24 · Zeyu Huang, Yikang Shen, Xiaofeng Zhang, Jie zhou, Wenge Rong, Zhang Xiong

Large Transformer-based Pretrained Language Models (PLMs) dominate almost all Natural Language Processing (NLP) tasks. Nevertheless, they still make mistakes from time to time. For a model deployed in an industrial environment, fixing these mistakes quickly and robustly is vital to improve user experiences. Previous works formalize such problems as Model Editing (ME) and mostly focus on fixing one mistake. However, the one-mistake-fixing scenario is not an accurate abstraction of the real-world challenge. In the deployment of AI services, there are ever-emerging mistakes, and the same mistake may recur if not corrected in time. Thus a preferable solution is to rectify the mistakes as soon as they appear nonstop. Therefore, we extend the existing ME into Sequential Model Editing (SME) to help develop more practical editing methods. Our study shows that most current ME methods could yield unsatisfying results in this scenario. We then introduce Transformer-Patcher, a novel model editor that can shift the behavior of transformer-based models by simply adding and training a few neurons in the last Feed-Forward Network layer. Experimental results on both classification and generation tasks show that Transformer-Patcher can successively correct up to thousands of errors (Reliability) and generalize to their equivalent inputs (Generality) while retaining the model's accuracy on irrelevant inputs (Locality). Our method outperforms previous fine-tuning and HyperNetwork-based methods and achieves state-of-the-art performance for Sequential Model Editing (SME). The code is available at https://github.com/ZeroYuHuang/Transformer-Patcher.

📄 PDF Abstract BibTeX arXiv:2301.09785

Code (1)

zeroyuhuang/transformer-patcher 공식 구현 pytorch

Tasks

Model Editing

Similar Papers 제목 키워드 기반

Patcher: Patch Transformers with Mixture of Experts for Precise Medical Image Segmentation

2022-06-03 · Yanglan Ou, Ye Yuan, Xiaolei Huang, Stephen T. C. Wong 외

We present a new encoder-decoder Vision Transformer architecture, Patcher, for medical image segmentation. Unlike standard Vision Transformers, it employs Patcher blocks that segment an image into large patches, each of …

DecoderImage SegmentationLesion SegmentationMedical Image Segmentation+3

Defending Against Malicious Finetuning by Scaling Train-time Adversarial Attacks

2026-06-06 · Haoming Wen, Shi Chen, Qingyu Shi, Siyuan Liu 외 arxiv

Current open-weight large language models (LLMs) are prone to malicious finetuning attacks, which could compromise the safety alignment of LLMs with only a few steps of supervised finetuning (SFT) on poisoned datasets. E…

The Concept of the Deep Learning-Based System "Artificial Dispatcher" to Power System Control and Dispatch

2018-05-07 · Nikita Tomin, Victor Kurbatsky, Michael Negnevitsky

Year by year control of normal and emergency conditions of up-to-date power systems becomes an increasingly complicated problem. With the increasing complexity the existing control system of power system conditions which…

Improving Emotional Support Delivery in Text-Based Community Safety Reporting Using Large Language Models

2024-09-24 · Yiren Liu, Yerong Li, Ryan Mayfield, Yun Huang

Emotional support is a crucial aspect of communication between community members and police dispatchers during incident reporting. However, there is a lack of understanding about how emotional support is delivered throug…

Language ModelingLanguage ModellingLarge Language Model

GraphPatcher: Mitigating Degree Bias for Graph Neural Networks via Test-time Augmentation

2023-09-21 · NeurIPS 2023 11

Recent studies have shown that graph neural networks (GNNs) exhibit strong biases towards the node degree: they usually perform satisfactorily on high-degree nodes with rich neighbor information but struggle with low-deg…