Manuscript Offprint

arXiv:2608.27070

Unifying Detection and Adaptation in Task-Free Continual Learning

Dezheng Han, Anbang Zhang, Zhihao Zhu, Shuaishuai Guo

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

To mitigate catastrophic forgetting in downstream continual learning (CL) for large language models (LLMs), existing methods typically constrain parameter updates or introduce task-specific adaptation modules. However, these methods often rely on explicit task boundaries during training, limiting their applicability to realistic task-free scenarios. In this paper, we propose a Fisher-guided unified (FiUni) framework for batch-level task detection and parameter-efficient continual adaptation. FiUni is motivated by a key observation about the Fisher information matrix (FIM) of pre-trained models: the orthogonality among the principal subspaces of its Kronecker-Factored Approximate Curvature (K-FAC) approximation, estimated from a small number of downstream task samples, can reflect the similarity between different tasks. Based on this observation, FiUni constructs FIM-derived frozen subspaces to guide low-rank adaptation (LoRA), while matching the Fisher principal subspace of each incoming batch window with historical subspaces. This enables FiUni to adaptively determine whether to reuse existing knowledge, expand a related subspace, or create a new subspace, dynamically balancing knowledge sharing and task isolation. Experiments show that FiUni can effectively infer latent batch-level task affiliations and achieve competitive performance against advanced task-aware CL methods with fewer trainable parameters.

1 Introduction

With the remarkable generalization capabilities of large language models (LLMs) (Raffel et al., 2020; Grattafori et al., 2024; Yang et al., 2025) across diverse downstream tasks, enabling LLMs to continuously adapt to dynamic environments has emerged as a critical research problem (Shi et al., 2025). However, direct full-parameter fine-tuning for continual learning (CL) (Zhou et al., 2024; Wang et al., 2024) suffers from prohibitive computational and storage costs, and inevitably leads to severe catastrophic forgetting (McCloskey and Cohen, 1989), where the model loses performance on old tasks after learning new ones. Parameter-efficient fine-tuning (PEFT) (Han et al., 2024; Wang et al., 2025), which updates only a small number of original or additional parameters, provides a more feasible solution to this problem. Following this idea, existing parameter-efficient continual learning methods typically manage the low-dimensional parameter update spaces of different tasks, thereby reducing inter-task interference while maintaining fine-tuning efficiency (Wang et al., 2023a; Liao et al., 2026; Biswas et al., 2026).

Despite promising performance in multi-task continual learning, existing methods typically rely on task-aware assumptions, where task boundaries or IDs are available for allocating and switching parameter subspaces. In contrast, real-world continual learning is often task-free, with data arriving in an online stream without explicit boundary annotations or task identities (Aljundi et al., 2019). Thus, the model must autonomously infer latent task structure while adapting its parameters to incoming data. Although recent methods exploit model-internal task-related signals to relax this assumption (Du et al., 2024), they mainly focus on task-label-free forgetting mitigation, rather than explicitly unifying task identification with the isolation and sharing of PEFT subspaces.

To address these issues, we need a meaningful geometric signal that can characterize the relationships among different incoming data and further guide parameter-efficient adaptation. Fisher geometry (ichi Amari, 1998) provides a promising perspective for this purpose. Recent studies have shown that the Kronecker-Factored Approximate Curvature (K-FAC) (Martens and Grosse, 2015)

Code is available at: https://github.com/SSG2019/FiUni.

Figure

Figure 1: Fisher principal subspaces encode task similarity. For each downstream task, we estimate the K-FAC approximation and extract the top-r principal subspaces of its gradient and activation covariance factors. Higher subspace similarity indicates more similar task geometry, while lower similarity indicates stronger orthogonality.

of the Fisher information matrix (FIM), estimated from a small number of downstream samples of different tasks on a pre-trained model, can serve as effective fixed low-rank update bases to guide LoRA along parameter-sensitive directions (Han and Guo, 2026). This motivates us to further explore whether Fisher principal subspaces can be used to model latent task relationships among different downstream data.

Under this perspective, we discover that in the K-FAC (Martens and Grosse, 2015) approximation of the FIM estimated on a few downstream samples, the orthogonality of the principal subspaces, spanned by the top-r eigenvectors of the gradient and activation covariance factors, naturally reflects the geometric similarity between distinct tasks, as shown in Figure 1. Specifically, data from identical or related tasks tend to exhibit higher Fisher principal subspace similarity, whereas those from unrelated tasks tend towards orthogonality. This indicates that for pre-trained models, the Fisher principal subspace not only characterizes the sensitive update directions for the current data but also serves as a geometric signal to identify the latent task affiliation of each batch in an online data stream. Here, a latent task does not necessarily align perfectly with human-annotated discrete tasks, but rather represents an implicit learning phase perceived by the pre-trained model, characterized by similar learning requirements and adaptation behaviors.

Motivated by the above observation, we propose a Fisher geometry-based unified task-free framework, named FiUni, for the continual parameter-efficient fine-tuning scenario. The key idea of FiUni is to utilize the same Fisher principal subspace signal to simultaneously perform batch-level latent task detection and LoRA subspace construction. Specifically, FiUni maintains a storehouse of historical Fisher subspaces during online training and matches the Fisher principal subspace of each incoming batch against this storehouse. The resulting subspace similarity serves as a unified geometric signal to adaptively determine whether the current batch should reuse an existing subspace, expand a related subspace, or be assigned to a new subspace. Thus, FiUni jointly models latent task detection and parameter-efficient adaptation within a single framework, enabling the model to dynamically balance knowledge sharing and task-specific isolation without relying on explicit task boundaries or IDs.

The main contributions of this work are summarized as follows:

• We reveal the intrinsic task geometry within Fisher/K-FAC principal subspaces. By utilizing only a small number of downstream samples to estimate the Fisher/K-FAC principal subspace, we depict meaningful task-geometric structures, thereby providing an ef-fective signal for measuring task similarity.

• We propose FiUni, a task-free continual parameter-efficient fine-tuning framework that unifies latent task shift detection and LoRA subspace construction via a single geometric signal. Furthermore, we design an adaptive decision mechanism to dynamically balance knowledge sharing and task isolation based on the matching degree between current data and historical Fisher subspaces.

• Experimental results demonstrate that FiUni can effectively infer the latent task affiliation of each incoming batch without relying on task boundaries or IDs, and achieve competitive performance compared to state-of-the-art task-aware continual learning baselines while requiring fewer trainable parameters.

References (8)