Introduction
Large Language Models (LLMs) are typically static after training, making it difficult to incorporate new information without expensive retraining. While techniques like Retrieval-Augmented Generation (RAG) and model editing exist, they often struggle with "lifelong scaling"—where cumulative updates eventually lead to "edit collapse" and model incoherence—and the complexity of unstructured, long-form knowledge. This paper introduces RILKE (Representation Intervention for Lifelong KnowledgE Control), a method that enables thousands of precise, memory-efficient updates by intervening in internal hidden states rather than modifying model weights.
The RILKE Framework
RILKE builds upon Representation Fine-Tuning (ReFT) to steer model outputs through low-rank transformations of hidden states at specific layers. The framework introduces three primary innovations to ensure robustness and efficiency:
- Consistency-Robust Training: To handle paraphrased queries, RILKE trains intervention modules to be stable within an $\epsilon$-ball of the original query's representation, using a KL-divergence loss to maintain output distribution consistency.
- Query-Adaptive Routing: During inference, a router identifies the correct intervention by calculating the cosine similarity between the current hidden state and a "knowledge index" of stored training query states.
- Shared Subspace Intervention: To optimize memory, RILKE employs Hierarchical Agglomerative Clustering (HAC) to group semantically similar edits, allowing a single shared module to handle related knowledge clusters.
Experimental Setup
The researchers evaluated RILKE using Llama-3.1-8B-Instruct and Qwen2.5-7B-Instruct across several benchmarks:
- UnKE (Unstructured Knowledge Editing): Focused on free-form knowledge updates.
- EditEverything: A benchmark for long-form knowledge across diverse domains like biochemistry and code.
- ZsRE (Zero-Shot Relation Extraction): A standard for structured, triplet-based editing.
- MMLU: Used to ensure that editing does not degrade the model's general reasoning capabilities.
Key Results and Performance
RILKE demonstrates significant advantages over existing baselines in stability, generalization, and efficiency. As shown in the performance comparison, RILKE maintains near-perfect semantic similarity (BertScore) even as the number of edits ($T$) scales to 1,000, whereas methods like MEMIT and GRACE show substantial degradation or total collapse.
Key Insights
- Semantic Locality: The authors validated that paraphrases naturally cluster in the LLM's representation space, making representation-space routing more reliable than traditional keyword matching.
- Memory Efficiency: By utilizing shared-subspace clustering, RILKE reduced storage costs for 1,000 edits to just 29.4 MiB, a ~7.6x improvement over the WISE baseline (224 MiB).
- Preservation of Base Intelligence: Because RILKE leaves base weights frozen and intervenes only at a single layer, general reasoning (MMLU scores) remains largely unaffected.
Conclusion and Future Work
RILKE provides a robust solution for lifelong knowledge control in LLMs, effectively mitigating edit collapse while maintaining high performance on paraphrased unstructured data. While highly effective for thousands of updates, scaling the routing mechanism to millions of facts remains a challenge. Future research may explore automated governance for conflicting edits and the security implications of malicious interventions.
Summary updated