TL;DR
TokenMem is a novel memory system that enhances frozen large language models (LLMs) by injecting external knowledge through a dedicated cross-attention channel, achieving up to 70% Knowledge Compliance on counterfactual benchmarks, significantly outperforming traditional retrieval-augmented generation methods.
✦ Why It Matters
Implement TokenMem to enhance your LLMs' knowledge integration and reduce output inconsistencies today.
Key Takeaways
How It Works
TokenMem enhances frozen LLMs by introducing a dedicated cross-attention channel that allows external knowledge to be injected without conflicting with the model's internal memory. It uses a thin gating adapter, which is trained in two phases: the first phase focuses on general knowledge utilization, while the second phase strengthens the model's ability to comply with counterfactual information.
This mechanism allows the model to effectively manage knowledge conflicts and improve output reliability.
Related