Manuscript Offprint

arXiv:2610.08312

CoDe-LoRA: Mitigating the Orthogonality Dilemma in Continual Learning of LLMs via Knowledge Consolidation and Decoupling

Maoqi Liu, Quan Fang, Yufei He

Abstract

Continual learning (CL) is essential for Large Language Models (LLMs) to sequentially adapt to evolving tasks. To mitigate catastrophic forgetting, recent advances implement low-rank adaptation with orthogonal projections (e.g., O-LoRA) to isolate task parameters. However, we reveal that such strict geometric constraints trigger an “Orthogonality Dilemma”: rigid parameter isolation impedes the transfer and accumulation of shared representations across semantically related tasks. In this work, we propose a new replay-free method, called Consolidation and Decoupling LoRA (CoDe-LoRA), for CL of LLMs. CoDe-LoRA disentangles the learning process into Consolidating Universal Knowledge and Decoupling Task-Specific Knowledge. To achieve this, CoDe-LoRA leverages an adaptive null space projection mechanism and semantic routing to balance knowledge accumulation with task-specific adaptation. Experimental results across four backbones and three CL benchmarks show that CoDe-LoRA achieves the best average accuracy. Our code is available at https://github.com/Estrellajer/CoDe-LoRA.

1 Introduction

Large Language Models (LLMs) have redefined the boundaries of natural language processing, exhibiting remarkable capabilities across a wide range of tasks (Wei et al., 2021). However, adapting these models to a continuous stream of evolving tasks, known as Continual Learning (CL) (De Lange et al., 2021), remains challenging. While parameter-efficient fine-tuning (PEFT) methods, particularly low-rank adaptation (LoRA) (Hu et al., 2021), have significantly lowered the cost of adaptation, naively applying them to sequential tasks leads to catastrophic forgetting (Li and Hoiem, 2017), where learning new tasks degrades previously acquired capabilities on earlier tasks.

To mitigate forgetting, recent work combines PEFT with orthogonal projection strategies (Saha et al., 2021; Wang et al., 2023a). A representative example is O-LoRA (Wang et al., 2023a), which isolates task-specific parameters in mutually orthogonal subspaces. Although effective at reducing inter-task interference, such rigid isolation introduces a trade-off between interference mitigation and knowledge transfer. When sequential tasks share semantic structure, their optimal parameter updates should naturally overlap. Enforcing strict orthogonality removes these shared components, reducing representation reuse and weakening cross-task transfer. As illustrated in Figure 1, this phenomenon reveals an “Orthogonality Dilemma”: the same geometric constraint that protects previous knowledge can also restrict transferable representation learning across related tasks.

This limitation highlights a key challenge in continual adaptation: how to preserve prior knowledge while still accumulating transferable representations across related tasks. Motivated by this tension, we investigate two questions:

Q1. Why does strict orthogonality limit generalization across related tasks, and under what conditions is this limitation most severe?

Q2. How can we design a parameter-efficient framework that preserves transferable representations while maintaining task-specific expertise in a replay-free setting?

In this paper, we introduce Consolidation and Decoupling LoRA (CoDe-LoRA), a dual-branch continual adaptation framework motivated by the orthogonality-induced transfer limitation. We provide a geometric characterization showing that strict orthogonal isolation becomes increasingly detrimental as task similarity grows.

CoDe-LoRA separates transferable representation consolidation from task-specific specialization through two complementary branches. Unlike strict orthogonal isolation methods that suppress overlapping representations entirely, our framework preserves transferable components while constraining interference-prone directions. Specifically, the Consolidation Branch (Co-LoRA) maintains shared transferable representations through adaptive null-space projection with dynamic scaling to stabilize

Corresponding author: qfang@bupt.edu.cn.

Parameter Space Usage Comparison

Figure

Figure

Figure

Figure 1. Conceptual illustration of parameter space utilization. Traditional LoRA suffers from interference, while O-LoRA's strict orthogonality hinders knowledge sharing. CoDe-LoRA leverages null space projection to consolidate shared knowledge.

long-horizon continual adaptation, as empirically verified in Appendix A.2 (Table 5). Meanwhile, the Decoupling Branch (De-LoRA) maintains a pool of independent LoRA experts together with a prototype-based semantic routing mechanism for robust inference without explicit task identifiers. Importantly, CoDe-LoRA operates without relying on historical data replay, avoiding additional storage overhead and privacy concerns.

Our main contributions are summarized as follows:

• We identify and analyze the Orthogonality Dilemma in PEFT-based continual learning, showing that strict parameter isolation becomes increasingly detrimental as task similarity grows.

• We propose CoDe-LoRA, a dual-branch continual adaptation framework that separates transferable representation consolidation from task-specific specialization through adaptive null-space projection and prototype-based expert decoupling.

• Extensive experiments across four backbones and three continual learning benchmarks show that CoDe-LoRA achieves the best average accuracy while balancing knowledge transfer and interference mitigation.