Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
41 tokens/sec
GPT-4o
59 tokens/sec
Gemini 2.5 Pro Pro
41 tokens/sec
o3 Pro
7 tokens/sec
GPT-4.1 Pro
50 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

Kformer: Knowledge Injection in Transformer Feed-Forward Layers (2201.05742v2)

Published 15 Jan 2022 in cs.CL, cs.AI, cs.DB, cs.IR, and cs.LG

Abstract: Recent days have witnessed a diverse set of knowledge injection models for pre-trained LLMs (PTMs); however, most previous studies neglect the PTMs' own ability with quantities of implicit knowledge stored in parameters. A recent study has observed knowledge neurons in the Feed Forward Network (FFN), which are responsible for expressing factual knowledge. In this work, we propose a simple model, Kformer, which takes advantage of the knowledge stored in PTMs and external knowledge via knowledge injection in Transformer FFN layers. Empirically results on two knowledge-intensive tasks, commonsense reasoning (i.e., SocialIQA) and medical question answering (i.e., MedQA-USMLE), demonstrate that Kformer can yield better performance than other knowledge injection technologies such as concatenation or attention-based injection. We think the proposed simple model and empirical findings may be helpful for the community to develop more powerful knowledge injection methods. Code available in https://github.com/zjunlp/Kformer.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (6)
  1. Yunzhi Yao (27 papers)
  2. Shaohan Huang (79 papers)
  3. Li Dong (154 papers)
  4. Furu Wei (291 papers)
  5. Huajun Chen (198 papers)
  6. Ningyu Zhang (148 papers)
Citations (42)
Github Logo Streamline Icon: https://streamlinehq.com