Introduction
Fine-tuning Large Language Models (LLMs) is computationally expensive and resource-intensive. Parameter-efficient fine-tuning (PEFT) methods like LoRA (Low-Rank Adaptation) have emerged to mitigate this by updating only a small subset of parameters. However, these methods often rely on "local vision," focusing on specific weight matrices within individual layers. This paper introduces GloC (Global Controller), a novel PEFT approach that utilizes a set of "latent units" to steer the model's behavior from a global perspective.
The Limitations of Local PEFT
Most existing PEFT techniques, such as LoRA or Adapters, focus on local weight updates. The authors argue that this approach has several drawbacks:
- Local Optimization: Updates are confined to individual layers, neglecting global coordination across the entire model.
- Rank Deficiency: Low-rank approximations may lack the expressive power needed for complex tasks, especially in the Feed-Forward Networks (FFNs) of Transformers.
- Task Insensitivity: These methods often prioritize approximating original weights over explicitly capturing task-specific semantic features.
The GloC Architecture
GloC shifts the focus from internal weight modification to an external global controller. The architecture consists of three main components:
Latent Units
A small set of learnable vectors, termed Latent Units ($U$), are maintained outside the main LLM backbone. These units act as a global memory that evolves as information passes through the model's layers.
Distilled Attention
Information exchange between the frozen LLM and the Latent Units is facilitated by a novel Distilled Attention mechanism. This is an asymmetric attention process that operates in two directions:
- Distillation (LLM $\rightarrow$ Latent Units): The latent units extract relevant features from the LLM's hidden states.
- Steering (Latent Units $\rightarrow$ LLM): The refined global information is injected back into the LLM to guide its representations.
Dimensionality Reduction
To maintain efficiency, GloC projects high-dimensional hidden states into a significantly smaller latent space (e.g., 8 or 16 dimensions) before performing attention. This keeps the parameter count low while allowing for global coordination across all layers.
Experimental Results
The researchers evaluated GloC on the GLUE benchmark and common-sense reasoning tasks using DeBERTaV3 and Llama/Llama2-7B backbones.
- NLU Performance: On the GLUE benchmark, GloC consistently outperformed LoRA and its variants. For instance, on the CoLA dataset, GloC achieved a score of 72.35 compared to LoRA's 69.73, using a similar parameter budget (~1.33M).
- Reasoning Tasks: Applied to Llama2-7B, GloC reached an average score of 79.8 across six reasoning tasks, surpassing Llama2-LoRA (77.1) and even beating GPT-3.5 on benchmarks like HellaSwag and OBQA.
- Semantic Anchoring: Analysis revealed that latent units learn to act as semantic anchors, with specific units correlating strongly with task-specific labels, such as sentiment polarity.
Conclusion
GloC demonstrates that global coordination via a small set of latent units is a highly effective strategy for PEFT. By moving beyond local weight approximations and facilitating bidirectional information flow, GloC achieves state-of-the-art performance with minimal parameters. This suggests that the future of fine-tuning may lie in providing models with a "global brain" to coordinate their existing power.
Summary updated