Hybrid dynamic expert method and system for continuous visual target tracking
By employing dynamic expert hybridization and sample-aware optimization strategies, the problems of high computational cost and catastrophic forgetting in visual target tracking are solved, achieving efficient improvement in visual target tracking accuracy across multiple modalities and environments.
Patent Information
- Application Number
- CN202611676035.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-28
- Publication Date
- 2026-11-27
AI Technical Summary
Existing visual target tracking methods suffer from high computational costs or catastrophic forgetting when faced with different sensor modalities and varying lighting conditions. They also ignore the distribution offset between tasks and the differences in sample prediction accuracy, leading to a decline in model performance.
By employing a dynamic expert hybrid (D-MoE) mechanism and a sample-aware optimization (SAO) strategy, a low-rank fitting expert network is dynamically allocated by evaluating the differences in data distribution, and the gradient constraint space is adjusted according to the sample prediction accuracy, thereby achieving efficient model updates.
While reducing computational resource consumption, it significantly improves the model's tracking accuracy in multimodal and cross-environment scenarios, avoiding catastrophic forgetting.
Smart Images

Figure CN123181869A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of computer vision and deep learning technology, and in particular to a hybrid dynamic expert method and system for continuous visual target tracking. Background Technology
[0002] Visual target trackers deployed in dynamic real-world environments such as autonomous driving, robotics, or video surveillance must constantly adapt to new sensor modalities (e.g., switching from visible light to infrared or event cameras) and changing lighting conditions (e.g., from day to night).
[0003] However, traditional retraining or fine-tuning under the independent and identically distributed (iid) assumption can lead to either prohibitive computational costs or "catastrophic forgetting," where the model's performance on previously learned scenes drops drastically after learning new ones.
[0004] While continuous learning offers a promising solution, existing methods overlook two key factors when applied to visual tracking: First, the distribution shift varies greatly between different consecutive tasks, for example, the shift from visible light to event cameras is large, while the shift between two datasets of visible light is smaller; second, within each task, the prediction accuracy of different samples varies drastically, causing easy samples (with high prediction accuracy) to dominate the gradient constraint space, thus hindering the model's optimization for difficult samples. Summary of the Invention
[0005] To address the problems existing in the prior art, the present invention aims to provide a hybrid dynamic expert method for continuous visual target tracking. Another objective of the present invention is to provide a hybrid dynamic expert system for continuous visual target tracking that implements the above method.
[0006] To achieve the above objectives, the present invention provides a hybrid dynamic expert method for continuous visual target tracking, comprising the following steps: Obtain the image dataset for the current visual object tracking task; Assess the degree of difference between the data distribution of the current visual target tracking task and the data distribution of historical tasks; Based on the degree of difference, a corresponding low-rank fitting expert network is dynamically allocated at the architecture level of the tracking model; when the degree of difference is greater than a preset threshold, a new expert network is generated and activated in the model for training; when the degree of difference is less than or equal to the preset threshold, the historical expert network that best matches the current visual target tracking task is reused. When reusing the historical expert network, a sample-aware optimization strategy is used to update the parameters of the historical expert network. The sample-aware optimization strategy reweights the gradient constraint space of the model update according to the prediction accuracy of each training sample. During the inference phase of target tracking, based on the features of the input image, a matching expert network is dynamically activated through a global routing module to output the target tracking result.
[0007] Furthermore, assess the degree of difference between the data distribution of the current visual object tracking task and the data distribution of historical tasks, specifically including: The feature vector of the current visual target tracking task image is extracted using a feature extraction network; Model the feature vectors as a Gaussian distribution and obtain the current distribution center; Calculate the distance between the current distribution center and the distribution centers of each historical task, and use the distance as a measure of the degree of difference.
[0008] Furthermore, the new expert network includes a low-rank factorization matrix and the original model weights; when generating and activating the new expert network for training, the original model weights are kept frozen, and only the parameters of the low-rank factorization matrix are activated and optimized.
[0009] Furthermore, a sample-aware optimization strategy is employed to update the parameters of the historical expert network, specifically including: When learning the current visual target tracking task, the gradient descent process is constrained to a subspace orthogonal to the gradient space of the historical task to construct an orthogonal gradient constraint space. The weights of sample dependencies are calculated based on the prediction accuracy of the training samples. When constructing the representation matrix, the contribution of each sample in the orthogonal gradient constraint space is weighted and adjusted using the sample-dependent weights.
[0010] Furthermore, the prediction accuracy of the training samples is determined by calculating the cross-union ratio (CURRR) between the predicted target bounding box and the ground truth bounding box; samples with a higher CURRR are classified as easy samples, and samples with a lower CURRR are classified as difficult samples.
[0011] Furthermore, when weighting the orthogonal gradient constraint space: for training samples of historical tasks, increase the weight of easy samples and decrease the weight of hard samples, so that the updated gradient space can retain the dominant subspace of easy samples in historical tasks and release the optimization direction corresponding to hard samples.
[0012] Furthermore, when weighting the orthogonal gradient constraint space: for the training samples of the current visual target tracking task, increase the weight of difficult samples and decrease the weight of easy samples, so that the parameter optimization process moves towards the low error region of difficult samples in the current visual target tracking task and historical tasks.
[0013] Furthermore, the global routing module is a multi-class classifier whose network structure includes a residual backbone network and a dynamic fully connected layer. When a new expert network is generated, the dynamic fully connected layer is expanded by adding new neurons to achieve classification and recognition of the new task distribution.
[0014] Furthermore, the training method for the global routing module is as follows: after the training of each task is completed, a very small number of historical task image samples are retained and mixed with the image samples of the current visual target tracking task. The global routing module is then trained for classification based on the cross-entropy loss function.
[0015] Hybrid dynamic expert systems for continuous visual target tracking include: The data acquisition module is used to acquire the image dataset for the current visual target tracking task; The difference assessment module is used to evaluate the degree of difference between the data distribution of the current visual target tracking task and the data distribution of historical tasks; The expert dynamic allocation module is used to dynamically allocate the corresponding low-rank adaptive expert network at the architecture level of the tracking model according to the degree of difference. Specifically, when the degree of difference is greater than a preset threshold, a new expert network is generated and activated for training; when the degree of difference is less than or equal to the preset threshold, the historical expert network that best matches the current visual target tracking task is reused. The sample-aware training module is used to update the parameters of the historical expert network by adopting a sample-aware optimization strategy when reusing the historical expert network. The sample-aware optimization strategy reweights the gradient constraint space of the model update according to the prediction accuracy of each training sample. The tracking routing module is used in the inference phase of target tracking to dynamically activate a matching expert network through a global routing network based on the features of the input image, so as to output the target tracking result.
[0016] This invention proposes a Sample-Aware Dynamic Expert Hybrid (DMSAE) framework. At the architectural level, a Dynamic Expert Hybrid (D-MoE) mechanism is designed, which possesses the ability to perceive distribution differences. By evaluating the data distribution distance between the new task and the old task, it dynamically decides whether to allocate a new expert network based on Low-Rank Adaptation (LoRA) to isolate interference from large distribution shifts, or to reuse an existing expert network to handle small distribution shifts. At the optimization level, a Sample-Aware Optimization (SAO) strategy is designed. This strategy breaks the traditional gradient constraint constraint that treats all samples equally, and reweights the gradient constraint space according to the prediction intersection-over-union (IoU) ratio of each sample. For the old task, the weight of easy samples is increased to preserve their learning subspace, while the weight of hard samples is decreased to keep the optimization direction open. For the new task, the weight of hard samples is increased, thereby prompting the entire model to prioritize optimization in the low-error region of hard samples during updates.
[0017] The beneficial effects of this invention are: while significantly reducing the storage requirements and computational resource consumption during the continuous learning process of the model, it not only overcomes catastrophic forgetting, but also greatly improves the overall tracking accuracy of the model in multimodal and cross-environmental scenarios. Attached Figure Description
[0018] Figure 1 This is an overall framework diagram of the hybrid dynamic expert method in this embodiment of the invention, illustrating the architectural flow of the training and inference phases.
[0019] Figure 2 This is a schematic diagram of the basic structure of the Gaussian expander and global routing module in an embodiment of the present invention.
[0020] Figure 3 This is a comparative schematic diagram of the gradient space guidance principle in the sample perception optimization strategy of this invention.
[0021] Figure 4 This is a schematic diagram of the matrix design principle based on corrected gradient orthogonality and corrected function curve in an embodiment of the present invention.
[0022] Figure 5 A qualitative visualization diagram of the tracking results from different methods.
[0023] Figure 6 This diagram illustrates the evolution of overall tracking performance, data storage usage, and computing costs as the number of tasks increases.
[0024] Figure 7 This is a diagram illustrating the validity verification. Detailed Implementation
[0025] The technical solution of the present invention will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0026] In the description of this invention, it should be noted that the terms "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used only for the convenience of describing the invention and for simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on the invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.
[0027] In the description of this invention, it should be noted that, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances.
[0028] The following combination Figures 1-7 Specific embodiments of the present invention will be described in detail below. It should be understood that the specific embodiments described herein are for illustrative and explanatory purposes only and are not intended to limit the present invention.
[0029] like Figure 1 As shown, this invention provides a hybrid dynamic expert method for continuous visual target tracking, which mainly includes two core components: dynamic expert hybrid (D-MoE) and sample-aware optimization (SAO).
[0030] Step 1: Distribution Difference Assessment and Dynamic Routing When the dataset for the k-th task is reached, the Gaussian Expander is first used to evaluate the distribution differences between the current task and previous tasks. For example... Figure 2 As shown, the Gaussian expander extracts image feature vectors using a pre-trained ResNet18 and assumes they follow a Gaussian distribution. The distribution difference is measured by calculating the distance between the current distribution center and previous distribution centers.
[0031] Step 2: Dynamic Expert Assignment at the Architecture Level (D-MoE): If the average distance calculated by the Gaussian expander exceeds a preset threshold, it indicates that the distribution of the new task differs greatly from that of the old task. In this case, the D-MoE mechanism will add a new expert network in the "Continual LoRA" module. Figure 1 The new expert network contains the original model weights and a new low-rank decomposition matrix. During training, only the low-rank parameters are activated and optimized to avoid serious interference with the old task. If the data distributions are similar (distance less than or equal to a preset threshold), the existing expert network associated with the old task is selected. Figure 1 The experts (old) in the training process are reused and updated using a sample-aware optimization strategy during training.
[0032] Step 3: Sample Awareness Optimization (SAO) at the Optimization Level: To mitigate catastrophic forgetting when reusing legacy expert networks, this invention introduces a SAO strategy based on the idea of gradient orthogonality. It restricts the gradient descent process to a subspace orthogonal to the gradient space of the legacy task. Traditional methods treat all samples equally, while this invention argues that samples with higher prediction accuracy have lower marginal optimization gains. Therefore, as... Figure 3 and Figure 4 As shown, SAO determines weights based on the intersection-over-union (IoU) ratio between the predicted and ground truth bounding boxes. By increasing the weights of easy samples from the old task and decreasing the weights of hard samples, the dominant component of the gradient space of the old task is primarily determined by easy samples, while its orthogonal space is dominated by the directions of hard samples from the old task. Simultaneously, the weights of hard samples from the new task are increased, while the weights of easy samples are decreased. This bidirectional reweighting shifts the optimization process from the low-error region of the old task to the low-error region associated with the hard samples in both the old and new tasks.
[0033] Step 4: Dynamic activation during the reasoning phase: During reasoning, such as Figure 1 As shown on the right, the input image is first processed by the global routing module of D-MoE to determine which expert network should be activated. The global routing module is essentially a multi-class classifier with a ResNet-18 backbone followed by a dynamically connected layer. When a new task with a significantly different distribution is identified, this fully connected layer adds a new neuron for classification. Efficient routing can be achieved by retaining only a very small number of historical task samples during training. Finally, the tracker uses the activated expert weights to generate the final tracking result.
[0034] Visual object tracking aims to predict the position and scale of an object in subsequent frames, given initial object annotations in the first frame. Most state-of-the-art visual trackers are based on deep learning, including trackers based on Siamese networks, trackers built on the Transformer architecture, and the recently proposed tracker that combines Transformer with Mamba.
[0035] These trackers are typically trained under the traditional assumption of identically independent (i.i.d.) data. However, in real-world applications, trackers often need to be updated when deployed to new environments. For example, a tracker trained under normal lighting conditions may need to be adapted to underwater scenes or low-light environments. Similarly, when deployed on new platforms, trackers must adapt to novel data modalities, such as infrared images or event-based cameras. When the environment or sensors change, current trackers are typically updated by retraining with the full dataset or by fine-tuning under the i.i.d. data assumption. However, fine-tuning using only new scene data often leads to catastrophic forgetting, where the tracker's performance drops sharply on previously learned scenes. Conversely, joint training using full datasets from both old and new scenes requires significant additional storage and computational resources, resulting in inefficient resource utilization.
[0036] To address these challenges, this invention constructs a continuous visual object tracking task, which introduces continuous learning into visual object tracking by breaking the i-id data assumption during training. In this task, training datasets with different data distributions arrive sequentially, and the tracker is updated only using the current dataset. During this process, it has little or no access to previously observed data, while aiming to maintain strong performance on all observed datasets. Although continuous learning has made significant progress, existing research has largely focused on image classification. Furthermore, these works have mostly prioritized performance improvements while largely neglecting the assessment of computational resource consumption.
[0037] More importantly, directly applying existing continuous learning (CL) methods to visual object tracking exposes two overlooked but crucial challenges: 1. The varying degrees of distributional shift between tasks. In image classification, tasks are typically defined by disjoint sets of labels, but with similar input distributions. However, in visual tracking, tasks originate from fundamentally different sensing modalities (visible light, infrared, events) or environmental conditions (daytime, nighttime, underwater). The degree of distributional shift between tasks can be extremely large (e.g., visible light → event data) or extremely small (e.g., GOT-10k → LaSOT, both under well-lit visible light). Existing continuous learning methods do not adjust their architectural decisions based on variations in the magnitude of this shift. 2. Significant differences in prediction accuracy among samples within a task. In tracking, training samples (template-search region pairs) exhibit wide variations in prediction accuracy, measured by the intersection-union ratio (IoU) between predicted and ground truth bounding boxes. Simple samples (high IoU) dominate the gradient space, while difficult samples (low IoU) contribute negligibly. This imbalance of samples is rarely taken into account in standard continuous learning.
[0038] 1. This invention proposes a sample-aware dynamic expert hybrid framework for continuous visual target tracking. At the architectural level, this invention introduces a Dynamic Expert Hybrid (D-MoE) mechanism. Unlike Expert Gate's task-by-task full-network allocation, D-MoE is built upon LoRA for efficient parameter adaptation. When the data distribution of a new task differs significantly from previous tasks, D-MoE introduces new experts to learn the new task without gradient constraints, thereby mitigating the interference caused by large distribution shifts. Conversely, when the data distribution of a new task is similar to previous tasks, D-MoE reuses existing experts and updates them using a Sample-Aware Optimization (SAO) strategy. At the optimization level, SAO reweights the gradient constraint space based on the predicted IoU of each sample. For older tasks, this invention increases the weight of simple samples to preserve their learning subspace and decreases the weight of difficult samples so that their update directions remain open to the future. For new tasks, this invention increases the weight of difficult samples to encourage optimization to proceed towards their low-error regions. This bidirectional reweighting causes the model to shift from the low-error region of the old task to the low-error region corresponding to the difficult samples in both the old and new tasks, a behavior that a uniform gradient constraint cannot achieve.
[0039] Finally, this invention constructs a continuous visual target tracking benchmark comprising six datasets: a visible light dataset, an event-based camera dataset, an infrared dataset, and a low-light visible light dataset. Extensive experiments were conducted on this benchmark to demonstrate the effectiveness of the proposed method, while also providing a comprehensive evaluation of storage requirements and computational costs. The main contributions of this invention are summarized below: To meet the continuous update requirements of visual target trackers, this invention defines a continuous visual target tracking task and proposes a sample-aware dynamic expert hybrid framework that balances tracking performance with efficient resource utilization.
[0040] To address the varying degrees of distribution offset across tasks, this invention designs a dynamic expert hybrid: an architecture mechanism with distribution difference awareness that can dynamically decide whether to generate a new LoRA-based expert (for large offsets) or reuse an existing expert (for small offsets).
[0041] To address the problem of significant differences in prediction confidence among different samples within a task, this invention proposes a sample-aware optimization strategy, which is a precision-guided gradient constraint that reweights samples based on prediction IoU.
[0042] 2. Related work 2.1 Visual target tracking In recent years, with the rapid development of deep learning, visual object tracking has made substantial progress. Mainstream deep learning-based trackers can be broadly categorized into Siamese-based methods, Transformer+CNN methods based on the Transformer architecture, and pure Transformer trackers. Recently, research has also proposed methods combining Transformer and Mamba for visual tracking.
[0043] While most existing research focuses on visible light datasets with favorable lighting conditions, visual object tracking has also been explored in challenging scenarios such as low light and underwater environments. For example, some studies have employed unsupervised domain adaptation to train visible light trackers that perform better in low light conditions. Furthermore, visual object tracking has been investigated using infrared imagery and event-based vision. However, these studies have all been conducted within a single deployment platform setting.
[0044] With the rise of multimodal visual object tracking, some methods have addressed multimodal data by training separate model weights for different modalities (e.g., RGB-thermal imaging / event / depth) using a unified architecture. However, this still inherently assumes a single deployment platform. In contrast, some studies have broken the single-platform limitation by training a unified model across multiple modalities. While these methods employ efficient fine-tuning techniques with various parameters, such as low-rank adaptation (LoRA), prompts, and adapters, to improve computational efficiency to some extent, their training paradigm remains based on the assumption of independent and identically distributed (i.i.d.) data. Their resource utilization remains highly inefficient when adapting to new environments or deployment platforms while maintaining performance in existing scenarios. In contrast, this invention introduces continuous learning that breaks the i.i.d. data assumption and proposes a resource-efficient framework tailored for continuous visual object tracking.
[0045] 2.2 Continuous Learning Continuous learning has been extensively studied in object classification and detection, as well as visual language models (VLMs) and large language models (LLMs), with object classification being the most widely explored task. Replay-based methods mitigate forgetting by replaying data from previous tasks. Representation-based methods utilize contrastive learning to learn robust representations. Architecture-based methods suppress interference between old and new tasks through parameter isolation or dynamic network expansion. Regularization-based methods restrict the updating of model weights to preserve knowledge from previous tasks. Conversely, optimization-based methods constrain model updates by restricting the gradient space. Continuous learning has also been studied in visual object tracking. Specifically, there are methods that employ incremental learning to update object representations; methods that use continuous learning to build more comprehensive online object appearance models to enhance robustness; and studies that formulate visual object tracking as a semi-supervised continuous learning problem. However, the fundamental problem settings addressed by these works differ from those presented in this paper.
[0046] Among architecture-based approaches, Expert Gate is most relevant to the work presented in this invention. It measures task relevance by the reconstruction error of the autoencoder, selects the most relevant prior model as the starting point for the new task, and then chooses between full-model fine-tuning and "Low Forgetting Learning" (LwF) based on a relevance threshold. While it can adjust the transfer algorithm based on task similarity, it suffers from two fatal limitations for continuous visual object tracking: (i) It always assigns a completely new full-parameter network to each task, even if the distribution of the new task is highly similar to that of the existing task, which leads to unnecessary parameter growth; (ii) It cannot solve the inherent sample-level precision imbalance problem in tracking (i.e., the huge difference in IoU between training samples).
[0047] In optimization-based methods, gradient orthogonal projection constrains gradient updates to a space orthogonal to the gradient space of the previous task. While this works well for image classification (where distribution shifts are typically moderate), it presents two problems when applied to visual tracking. First, they impose the same uniform constraint regardless of the magnitude of the distribution shifts between tasks. When the shifts are large (e.g., visible light → event data), this enforced orthogonality severely limits plasticity, leading to underfitting on new tasks. When the shifts are small (e.g., GOT-10k → LaSOT), this constraint is overly conservative. Second, they treat all training samples equally, allowing easy samples (high IoU) to dominate the orthogonal space and preventing optimization on difficult samples (low IoU).
[0048] 2.3 Expert Mix Hybrid Expert (MoE) frameworks originated as solutions to scalability challenges and have recently gained significant attention due to their successful applications in large-scale language models. MoEs have also been used for multimodal visual object tracking. Furthermore, several studies have explored the use of MoEs in continuous learning. While some work has investigated MoEs for continuous learning in visual language models, it has not accounted for the interference caused by large distribution shifts between new and old tasks. In contrast, while methods address the large distribution shift problem in object classification, they invariably involve training a completely new network, leading to inefficient parameter growth and excessive computational overhead.
[0049] 3. Specific methods and steps First, the continuous learning task of visual object tracking is defined as domain-incremental learning. Considering the varying degrees of distributional shift across tasks and the fact that trackers exhibit different prediction accuracies on training samples, an efficient continuous learning framework that jointly utilizes architecture and optimization strategies is proposed. This framework consists of a dynamic expert hybrid mechanism and a sample-aware optimization strategy.
[0050] 3.1 Prerequisites First, we define the continuous learning process for visual object tracking. Let a series of tasks be represented as D = [D1, ..., D2]. t ,...,D T ], where each task dataset consists of Given. Here, This represents the i-th video sequence in the t-th task. This represents the true bounding box of the target in the sequence. express The number of video sequences in the middle.
[0051] Continuous learning in visual object tracking aims to train a tracker sequentially across a series of tasks. When learning the current task, data from previous tasks is either inaccessible or only has very limited access, while the ultimate goal is for the tracker to perform well on all observed tasks. Since this invention focuses on continuous tracking across different environments and sensor modalities, the input distribution varies with the task, while the bounding box annotation distribution can be considered constant. Therefore, continuous learning in visual object tracking can be categorized as a domain incremental learning problem.
[0052] In this study, the present invention uses OSTrack as the baseline tracker, which takes a template and search region extracted from the video sequence as input. The tracker is formulated as follows:
[0053] Where s and t represent the search region and the target template, respectively. It is the predicted bounding box. These represent the model parameters of the tracker.
[0054] 3.2 Overview like Figure 1 As shown, this invention proposes a sample-aware dynamic expert hybrid framework. The core of this framework is dynamic expert hybridization, in which each expert is trained using a sample-aware optimization strategy during continuous learning.
[0055] When the dataset for the k-th task arrives, the Gaussian Expander module of D-MoE is first used to evaluate the distribution difference between the current task and previous tasks. If the difference is large enough, D-MoE introduces a new expert into the Continual LoRA module to handle the new task. Figure 1 As shown in the diagram, the new expert consists of a low-rank decomposition matrix and the original model weights. During training, only the low-rank parameters of the new expert are activated and optimized. If the data distribution of the new task is most similar to the data distribution processed by the existing expert, this invention applies sample-aware optimization to that expert to achieve continuous learning. Figure 1 As shown in the "Expert (Old)" section, an additional pair of low-rank matrices is introduced. , and carefully designed The parameters are set such that the gradient space of the new task is orthogonal to the gradient space of the old task.
[0056] To ensure the activation of appropriate experts during the inference phase, this invention trains the D-MoE global router based on distribution judgments provided by a Gaussian expander. When a new data distribution is determined to have significant differences, it is considered a new category, and a corresponding routing path to the new expert is subsequently added. During inference, such as... Figure 1 As shown on the right, the input is first processed by the global router to determine which expert to activate, and then the tracker uses the weights of the activated expert to produce the final tracking result.
[0057] 3.3 Dynamic Expert Hybrid Dynamic expert hybrid module in Figure 1 The values are highlighted in blue. When data for a new task k arrives, the Gaussian expander is used to determine if the distribution offset from previous tasks exceeds a predefined threshold. If it does, a new expert (Expert q) is added to ContinualLoRA, such as... Figure 1 The term "Expert (New)" is shown in the table. This newly introduced expert is specifically designed to handle new data, thereby avoiding severe interference between tasks with vastly different distributions.
[0058] Each expert consists of the original tracker weights and a set of low-rank matrices. Taking a fully connected layer in a multilayer perceptron (MLP) with the l-th Transformer layer as an example, let the original weights be: For expert q, the low-rank matrix is: and The calculation for this layer can be represented as:
[0059] in, For input, This is the output. n is the input feature dimension, m is the output feature dimension, and r is the rank of the low-rank matrix. Let W be the matrix space containing the original weights W. A low-rank matrix space, A low-rank matrix The space.
[0060] Accordingly, the tracker that activates the q-th expert can be expressed as: ; in, and Let represent the set of low-rank matrices of the backbone network (including each multi-head attention MHA and MLP) and the q-th expert within all Continual LoRA modules in the prediction head, assuming the tracker contains a total of l pairs ( , ).
[0061] With the q-th expert activated, the tracker training for task k can be described as follows:
[0062] in, It is the loss function that measures the difference between the tracker's predicted values and the actual values. Indicates new task data Expectations. For the true bounding box, For the qth expert in the th... The layer's dimension-upgrading matrix, For the qth expert in the th... The dimension reduction matrix of the layer.
[0063] During the inference process, the global router of D-MoE The system determines which expert to activate based on the input, while keeping the remaining experts inactive. The calculation for a single layer is then as follows: ; in, This indicates that the j-th expert is activated. This indicates that it is inactive. This indicates one-hot encoding.
[0064] Therefore, the tracker's reasoning can be written as:
[0065] A global router is essentially a multi-class classifier. It treats data distributions with significant differences as different categories, and its goal is to determine which data distribution (i.e., category) an input image belongs to. The architecture of a global router is as follows: Figure 2 As shown on the right, it uses ResNet-18 as the backbone feature extractor, followed by a dynamic fully connected layer. When the Gaussian expander determines that the data distribution of the current task differs significantly from the previous distribution, it expands the dynamic fully connected layer by adding a new neuron, thereby achieving classification of the new task.
[0066] To train the global router, this invention retains a very small number of samples for each old task and combines them with a small subset of samples from the current task. The training objective of the global router can be expressed as:
[0067] in, This represents the global router parameters for task k. For category labels, This represents the cross-entropy loss.
[0068] To measure the difference in data distribution between new and old tasks, this invention proposes a Gaussian expander. The Gaussian expander assumes that the image features for each task follow a Gaussian distribution and quantifies the distribution difference by calculating the distance between the Gaussian centers (i.e., the mean of the distribution). The overall architecture of the Gaussian expander is as follows: Figure 2 As shown on the left. Specifically, this invention randomly samples M images from the video data of a new task and extracts their feature maps using a pre-trained ResNet18. Global average pooling is then applied to obtain the feature vectors of these M images. Assuming the image feature vectors... It follows a Gaussian distribution, that is: ; in, and Let represent the mean vector and covariance matrix of the Gaussian distribution, respectively. Corresponding to Figure 2 The center point in the matrix. For simplicity of calculation, assume that the covariance matrix Sigma is diagonal. The number of channels in the feature map. Let C be the space containing column vectors. Let Σ be the space of the covariance matrix.
[0069] Two Gaussian distributions and The difference between them is measured by their central distance, defined as: ; in, express Norm, Construct a diagonal matrix using vectors. If the average distance exceeds a preset threshold T, the two tasks are considered to have significantly different data distributions. , The standard deviations of the first and second feature dimensions are given.
[0070] When the Gaussian expander determines that the image data distribution of the new task k is similar to that of an existing task, it will select the corresponding expert associated with the old task and update it using a gradient correction optimization strategy during training.
[0071] 3.4 Sample-aware optimization When the data distribution of a new task is similar to that of a past task, updates are assigned to the corresponding expert for that past task. To mitigate catastrophic forgetting as experienced experts learn the new task data, this invention employs a sample-aware optimization strategy.
[0072] Sample-aware optimization is essentially based on the idea of gradient orthogonality. When learning a new task with data distributions similar to those of the previous task, the gradient descent process is constrained to operate in a subspace orthogonal to the gradient space of the old task. This ensures that the optimized model parameters lie within a region that keeps the errors of both the new and old tasks relatively small.
[0073] Similar data distributions often share a large amount of transferable knowledge and can complement each other, while widely different distributions share very little common knowledge and are difficult to reconcile. The higher the prediction accuracy of a tracker on a training sample, the better the relevant knowledge has been learned, and therefore the lower the marginal gain of further optimization along the gradient direction corresponding to that training sample. Conversely, samples with lower prediction accuracy provide higher optimization gains. InfLoRA treats all samples equally when constructing the gradient constraint space, while this invention weights the samples according to their prediction accuracy, thereby modifying the gradient constraint space. Figure 3 As shown, this encourages the optimization process to shift from the low-error region of the old task to the low-error region of the new task that is associated with difficult samples in both the old and new tasks. When learning a new task, the structure of the old expert is as follows: Figure 1 The "Expert (Old)" section in the "Sample-Aware Optimization" subsection illustrates this. For clarity, we'll use a single fully connected layer in an MLP as an example. When using sample-aware optimization to learn the data for the p-th task (new task), a pair of low-rank matrices is appended to the old expert. and The fully connected layer (with bias omitted) can be written as: ; in, ,and .
[0074] , , and The gradients are respectively:
[0075] exist Changes on ( (for learning rate) The corresponding changes are:
[0076] Similarly, through renew It will cause The following changes:
[0077] in, This is the output vector of the fully connected layer. The equivalent weight after the p-th task, Before completion The equivalent weight after each task Let be the loss function for the p-th task. Let be the upgraded / reduced low-rank matrix of the i-th expert.
[0078] For the (p-1)th task, by For each sample Caused The change is given by the following formula:
[0079] Consider all samples in the (p-1)th task, by Gradient-induced The gradient set is:
[0080] in, This is the number of samples in task p-1. Then it will be determined by... caused by gradient The gradient space is defined as: ,in This represents the subspace spanned by the elements of the set.
[0081] because Each element in can be written as:
[0082] For any matrix For all Meet the conditions When, and only when:
[0083] Therefore, it is related to:
[0084] The elements in the gradient space whose product is zero form a gradient space related to task p-1. Orthogonal subspaces. For the output side column vector space, For the input side row vector space, This is the gradient vector for a single sample. The representation matrix is weighted.
[0085] Similarly, for the current task p, by For each sample Caused The change is given by the following formula:
[0086] Considering all samples in the current task p, by caused by gradient The gradient set is:
[0087] Then define by Gradient generation The gradient space is .
[0088] If by Gradient-induced The gradient space satisfies:
[0089] During the learning of the current task p, gradient space Guaranteed to be in the gradient space of the previous task p-1 Orthogonal. This ensures that learning task p will not interfere with task p-1. Here ,and It is orthogonal to The space. In order to obtain the intersection. Only need to start from Subtract from the middle The components in. Specifically, from the representation matrix Subtract from the middle The components produce a satisfying New gradient space The calculation formula is as follows: ; in, The columns constitute a structure made up of An orthogonal basis of the subspace spanned by each column. Through the This is obtained by performing Singular Value Decomposition (SVD). However, in practice, the number of samples is usually much larger than the feature dimension. This will lead to Full rank, thus making =0. To solve this problem, the rank-k approximation was used, where Depend on The first k singular values in the middle The columns are composed of [these]. In this case, Only the principal components of the sample were captured. The gradient space in Figure 4 It is depicted as a pink oval with a solid outline. For new input, For the new representation matrix, For the new gradient set, For the gradient space of the previous task p-1 The standard orthogonal basis.
[0090] because Each matrix in the matrix has row vectors located in a subspace. Inside, among which If you want to construct a matrix Make ,So .here This represents the set of column vectors of a matrix. Singular value decomposition yields To maintain the efficiency of LoRA-based fine-tuning, it is mandatory to stipulate... Therefore, construct , where the column corresponds to The first r singular vectors in In this way, Only the principal components represented by the sample were captured. See the design principles behind the matrix. Figure 4 Explanation on the left. for The direction of the principal component in the r-th row, It is a left singular vector matrix. It is a singular value diagonal matrix. It is a right singular vector matrix.
[0091] However, as Figure 3 As shown, the weights of the training sample contributions were readjusted when constructing the representation matrix. Figure 4 As shown in the middle section, the weights of easy samples are first increased, while the weights of hard samples from the old task are decreased. This results in a change in the gradient space of the old task (…). The dominant component of will be primarily determined by easy samples. Therefore, its orthogonal space The direction will be dominated by the direction associated with the difficult samples of the old task. This makes the new gradient space after projection ( When learning a new task, the algorithm can optimize along the direction of the hard samples in the corresponding old task, thus encouraging the optimization process to move towards the low-error region associated with hard samples in the old task. Then, the weights of hard samples in the new task are increased while the weights of easy samples are decreased. Therefore, the gradient space of the new task ( The dominant component of ) becomes primarily determined by hard samples. This makes the new gradient space after projection ( This allows optimization to proceed along directions associated with difficult samples of the new task, encouraging the optimization process to also move towards low-error regions related to these difficult samples. To achieve this sample-aware optimization behavior, sample-dependent weights are applied when constructing the representation matrix. The reweighted representation matrix is defined as follows: ; in, It is the number of samples in task p. Perceive weights for samples.
[0092] It is determined based on the tracker's prediction accuracy for each sample: ; in, This represents the intersection-over-union (IoU) ratio between the predicted bounding box and the ground truth bounding box. To determine the threshold for IoU, This is the decay weight for low-quality samples. The correction function is as follows Figure 4 As shown. By reweighting the samples from the old task, the aim is to calculate The model retains the subspace corresponding to well-predicted samples in task p-1 while suppressing the subspace associated with difficult samples. This allows the model to optimize within the subspace corresponding to challenging samples from older tasks when learning new tasks. Conversely, it uses the subspace associated with samples from the current task. Reweighting encourages the model to focus its optimization efforts on the subspace that is poorly predicted in the current task p.
[0093] However, the above process only forces the gradient space of task p to be orthogonal to the gradient space of task p-1. To ensure that the gradient space of task p is orthogonal to the gradient spaces of all previous tasks, its basis is updated to... In practice, the strategy already employed in previous work, namely joint maintenance, was adopted. and its orthogonal complement space ,satisfy .in, For the front The gradient space of old tasks accumulated from each task. For the first Each task adds a new basis vector.
[0094] 4. Experiment 4.1 Dataset and Evaluation Metrics To validate the effectiveness of the proposed method, a continuous learning benchmark comprising six different tracking tasks was constructed. This benchmark incorporates six widely used tracking datasets: GOT-10k, TrackingNet, LaSOT, EventVOT, Anti-UAV410, and NAT2021.
[0095] GOT-10k covers a diverse range of scenes and object categories, featuring nearly 10,000 visible light video sequences. The average sequence length is approximately 15 seconds (about 150 frames), and most videos were filmed under favorable lighting conditions. The target categories in the training and test sets are mutually exclusive, and tracking performance on the test set is evaluated on the official GOT-10k evaluation server.
[0096] TrackingNet is a large-scale visible light tracking dataset containing 30,643 video sequences across 27 object categories, with an average sequence length of 471 frames, and most of them were filmed in good lighting conditions.
[0097] LaSOT is a long-term tracking dataset containing 1,400 visible light video sequences covering 70 object categories. The average video length is 68 seconds (approximately 2,053 frames), and most sequences are well-lit.
[0098] EventVOT is constructed using video sequences generated by high-resolution event cameras. It contains 1,141 sequences covering 19 object categories, with an average length of 499 frames.
[0099] Anti-UAV410 is an infrared tracking dataset containing 410 video sequences, all targeting unmanned aerial vehicles (UAVs). The average sequence length is 1,069 frames.
[0100] NAT2021 consists of video sequences captured by a visible light camera under low-light conditions. Since ground truth labels are only available on the test set, the dataset was re-split into 206 training sequences and 60 test sequences, for a total of 266 sequences. The average length is 731 frames.
[0101] First, standard metrics commonly used in visual object tracking literature are employed to evaluate tracking performance. Then, the continuous learning performance of different methods is evaluated. On GOT-10k, the average overlap rate (AO) and average success rate (SR) at thresholds of 0.5 and 0.75 are reported, denoted as SR. 0.5 and SR 0.75On TrackingNet, LaSOT, EventVOT, and NAT2021, the area under the curve (AUC) and normalized accuracy (P) are used. norm AUC and accuracy (P). On the Anti-UAV410, AUC, P, and status accuracy (SA) are reported.
[0102] Based on these metrics, three widely used continuous learning metrics were further introduced to evaluate overall performance: final accuracy ( ), used to quantify the overall performance after learning all T tasks; average accuracy ( ), reflecting the historical overall performance of all tasks; and reverse migration ( These metrics measure the impact of learning the T-th task on previous tasks. These metrics are defined as follows: ; in, This indicates that after incrementally learning to the T-th task, the tracker is at the j-th task ( AUC performance on ) This represents the average accuracy rate for task i after learning the first i tasks. Let be the accuracy on task j after learning task j. Since the GOT-10k dataset does not provide an AUC metric, and its AO can be used as a substitute for AUC for class balancing, AO is used instead of AUC on GOT-10k.
[0103] In addition, to analyze the computational and memory efficiency of model training, the average memory usage and total number of floating-point operations (GFLOPs) throughout the continuous learning process are reported.
[0104] 4.2 Implementation Details The proposed method is validated using the ViT-based template matching tracker OSTrack. The template size is set to 128×128, the search region size is 256×256, and the batch size is 128. The proposed Continual LoRA is integrated into the MLP and MHA modules of the ViT backbone network in OSTrack, as well as the convolutional layers of the prediction head. The same loss function as in the original paper is used.
[0105] For the global routing module, the input image size is 224×224, and the batch size is 256. Standard multi-class cross-entropy loss is used. For each task, only 200 images from the dataset are retained to train the global router. For the Gaussian expander, the distribution difference threshold is empirically set to 10.
[0106] The sequence of continuous learning tasks is defined as follows: GOT-10k (Task 1) → TrackingNet (Task 2) → LaSOT (Task 3) → EventVOT (Task 4) → Anti-UAV410 (Task 5) → NAT2021 (Task 6). For the first task, the Continual LoRA module is disabled, and the tracker is trained according to the original OSTrack protocol to obtain initial tracker parameters. All experiments were conducted on a server equipped with four NVIDIA A40 GPUs.
[0107] 4.3 Comparison with other methods "Fully" means training the tracker from scratch using data from the current and all previous tasks; "Fine-tune" means initializing the model using the parameters from the previous task and training it only on the current task.
[0108] The overall performance of this invention, ACC6, is slightly lower than "Fully" by 1.81%, but it significantly reduces resource consumption. Specifically, the average data storage space is reduced by 228.83GB (from 301.24GB to 72.41GB), and the computing cost is reduced from 132.52 × 10⁻⁶. 8 GFLOPs decreased to 31.31 × 10 8 GFLOPs. This is equivalent to only 24.04% of the storage usage and 23.63% of the computing cost of a "Fully" setup. Meanwhile, the average historical accuracy... The reductions for BWT6 and reverse migration were only 1.78% and 0.83%, respectively. Notably, this invention even surpasses the "Fully" setting on the NAT2021 dataset. This is primarily because the limited amount of data in NAT2021 makes it difficult for the "Fully" method to balance all tasks, while the method of this invention can effectively handle this data imbalance problem.
[0109] Although the method of this invention introduces a very small increase in storage footprint (0.13 GB, 0.05%) and a slight increase in computational cost (0.04 × 10⁻⁶), 8 (GFLOPs, 0.13%), but its overall performance ACC6 consistently outperforms InfLoRA by 4.68%. The improvement is 2.05% for D-MoE and 2.78% for BWT6. Across all six datasets, the proposed method consistently outperforms InfLoRA on all evaluation metrics, demonstrating superior tracking performance. These results clearly demonstrate the effectiveness of the proposed D-MoE and GCO (referring to the SAO strategy).
[0110] Finally, compared to the conventional "fine-tune" method, although the method of the present invention increases the average storage footprint by 0.13 GB (0.05%) and computational cost by 0.32 × 10⁻⁶, it still achieves a relatively low performance. 8 While GFLOPs (1.03%), it resulted in a significant performance improvement. Specifically, the method of this invention improved ACC6 by 12.77%. The improvement was 9.32%, and for BWT6 it was 17.23%. On EventVOT and GOT-10k, the method of this invention improved performance across multiple metrics (including AO, SR). 0.5 SR 0.75 AUC,P norm The method outperforms "Fine-tune" by 19.90% to 30.90% on both the target performance (P) and timescale (P). These results demonstrate that the method of this invention effectively mitigates catastrophic forgetting in visual continuous target tracking. On NAT2021, the method of this invention performs worse than "Fine-tune". This is because NAT2021 is the last task in the sequence, and "Fine-tune" updates all model parameters using the entire task dataset, while the method of this invention only updates a very small number of parameters in Continual LoRA.
[0111] Qualitative analysis, such as Figure 5 As shown, a qualitative visualization of the tracking results of different methods under a six-task continuous learning benchmark is provided. After successively learning all six tasks, the method of this invention demonstrates higher robustness and accuracy compared to "Fine-tune" and InfLoRA.
[0112] To further analyze the continuous learning process, Figure 6 This demonstrates the evolution of overall tracking performance, data storage usage, and computational costs as the number of tasks increases. For example... Figure 6 As shown in (a), throughout the continuous learning process across the six tasks, the tracker trained using the method of this invention consistently outperforms InfLoRA in overall performance, significantly surpasses the traditional "Fine-tune" method, and is only slightly inferior to the "Fully" setting that uses all current and historical data for joint training. Figure 6(b) and (c) depict the data storage requirements for training across six tasks and the computational cost required for model training, respectively. Since "Fully" requires storing all past data for joint training, its storage requirements steadily increase with the number of tasks, and the computational cost rises accordingly. In contrast, "Fine-tune," InfLoRA, and the method of this invention train only on the current task data. Although the method of this invention additionally retains a very small number of samples from previous tasks and requires training a global router, the resulting increase in resource consumption is negligible.
[0113] 4.4 Ablation Experiment 4.4.1 Effectiveness of Dynamic Mixture of Experts This invention has conducted extensive experiments to verify the effectiveness of the proposed dynamic expert hybrid approach. Firstly, as... Figure 7 As shown in (a), this invention evaluates the effectiveness of the Gaussian expander. 400 images were randomly selected from each dataset, features were extracted using a pre-trained ResNet-18, and their Gaussian mean and covariance were estimated. Distribution distances were then calculated. The results show that the maximum distance between datasets with good lighting conditions (GOT-10k, LaSOT, TrackingNet) is 4.55; while the minimum distance between the infrared, event, and low-light datasets is 16.80. Furthermore, the minimum distance between these two groups (favorable lighting vs. low-light datasets, etc.) is 15.00. Based on these observations, setting the threshold tau to 10.00 is appropriate. Figure 7 (b) Sample features and Gaussian centers were further visualized using t-SNE. These results demonstrate that the proposed Gaussian expander can effectively distinguish the degree of distributional differences between different datasets.
[0114] 4.4.2 Effectiveness of Sample-Aware Optimization The present invention further conducted extensive experiments to verify the effectiveness of the proposed Sample Aware Optimization (SAO). Figure 7(c) shows the prediction accuracy distribution of the tracker on GOT-10k and TrackingNet training samples after training with GOT-10k. Prediction accuracy is measured by the IoU between the predicted bounding box and the ground truth bounding box. After training on GOT-10k, although the tracker achieved very high prediction accuracy on most training samples, there was still a small group of difficult samples that were poorly predicted. For unseen TrackingNet samples, the tracker showed low accuracy on many samples, but also achieved high scores on some other samples. Accordingly, higher weights were given to the easy samples that were well predicted in GOT-10k, and the weights of the difficult samples were reduced, allowing the gradient space corresponding to the difficult samples to remain open in subsequent trials. When venturing into the new TrackingNet task, this invention does the opposite, reducing the weights of well-predicted samples and increasing the weights of poorly predicted samples, thereby encouraging focused optimization within the gradient subspace corresponding to these difficult samples. This strategy has spared no effort in improving the tracking performance between similarly distributed datasets.
[0115] Any process or method described in the flowcharts of this invention or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing a particular logical function or process, which can be implemented in any computer-readable medium for use by an instruction execution system, apparatus, or device. The computer-readable medium can be any medium containing a program for storage, communication, propagation, or transmission for use by the execution system, apparatus, or device, including read-only memory, magnetic disks, or optical disks.
[0116] In the description of this specification, references to terms such as "embodiment," "example," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, those skilled in the art can combine or combine the different embodiments or examples described in this specification and the features therein without causing contradiction.
[0117] While embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those skilled in the art can make changes, modifications, substitutions, and alterations to the above embodiments within the scope of the present invention.
Claims
1. A hybrid dynamic expert method for continuous visual target tracking, characterized in that, Includes the following steps: Obtain the image dataset for the current visual object tracking task; Assess the degree of difference between the data distribution of the current visual target tracking task and the data distribution of historical tasks; Based on the degree of difference, a corresponding low-rank fitting expert network is dynamically allocated at the architecture level of the tracking model; when the degree of difference is greater than a preset threshold, a new expert network is generated and activated in the model for training; when the degree of difference is less than or equal to the preset threshold, the historical expert network that best matches the current visual target tracking task is reused. When reusing the historical expert network, a sample-aware optimization strategy is used to update the parameters of the historical expert network. The sample-aware optimization strategy reweights the gradient constraint space of the model update according to the prediction accuracy of each training sample. During the inference phase of target tracking, based on the features of the input image, a matching expert network is dynamically activated through a global routing module to output the target tracking result.
2. The method according to claim 1, characterized in that, Assess the degree of difference between the data distribution of the current visual object tracking task and the data distribution of historical tasks, specifically including: The feature vector of the current visual target tracking task image is extracted using a feature extraction network; Model the feature vectors as a Gaussian distribution and obtain the current distribution center; Calculate the distance between the current distribution center and the distribution centers of each historical task, and use the distance as a measure of the degree of difference.
3. The method according to claim 1, characterized in that, The new expert network contains a low-rank factorization matrix and the original model weights; when generating and activating the new expert network for training, the original model weights are kept frozen, and only the parameters of the low-rank factorization matrix are activated and optimized.
4. The method according to claim 1, characterized in that, The historical expert network is updated using a sample-aware optimization strategy, specifically including: When learning the current visual target tracking task, the gradient descent process is constrained to a subspace orthogonal to the gradient space of the historical task to construct an orthogonal gradient constraint space. The weights of sample dependencies are calculated based on the prediction accuracy of the training samples. When constructing the representation matrix, the contribution of each sample in the orthogonal gradient constraint space is weighted and adjusted using the sample-dependent weights.
5. The method according to claim 4, characterized in that, The prediction accuracy of training samples is determined by calculating the cross-union ratio (CUI) between the predicted target bounding box and the ground truth bounding box; samples with a higher CUI are considered easy samples, and samples with a lower CUI are considered difficult samples.
6. The method according to claim 5, characterized in that, When weighting the orthogonal gradient constraint space: for training samples of historical tasks, increase the weight of easy samples and decrease the weight of hard samples, so that the updated gradient space can retain the dominant subspace of easy samples in historical tasks and release the optimization direction corresponding to hard samples.
7. The method according to claim 6, characterized in that, When weighting the orthogonal gradient constraint space: for the training samples of the current visual target tracking task, increase the weight of difficult samples and decrease the weight of easy samples, so that the parameter optimization process moves towards the low error region of difficult samples in the current visual target tracking task and historical tasks.
8. The method according to claim 1, characterized in that, The global routing module is a multi-class classifier whose network structure includes a residual backbone network and a dynamic fully connected layer. When a new expert network is generated, the dynamic fully connected layer is expanded by adding new neurons to achieve classification and recognition of the new task distribution.
9. The method according to claim 8, characterized in that, The training method for the global routing module is as follows: after the training of each task is completed, a very small number of historical task image samples are retained and mixed with the image samples of the current visual target tracking task. The global routing module is then trained for classification based on the cross-entropy loss function.
10. A hybrid dynamic expert system for continuous visual target tracking, characterized in that, The system is used to implement the method according to any one of claims 1-9, the system comprising: The data acquisition module is used to acquire the image dataset for the current visual target tracking task; The difference assessment module is used to evaluate the degree of difference between the data distribution of the current visual target tracking task and the data distribution of historical tasks; The expert dynamic allocation module is used to dynamically allocate the corresponding low-rank adaptive expert network at the architecture level of the tracking model according to the degree of difference. Specifically, when the degree of difference is greater than a preset threshold, a new expert network is generated and activated for training; when the degree of difference is less than or equal to the preset threshold, the historical expert network that best matches the current visual target tracking task is reused. The sample-aware training module is used to update the parameters of the historical expert network by adopting a sample-aware optimization strategy when reusing the historical expert network. The sample-aware optimization strategy reweights the gradient constraint space of the model update according to the prediction accuracy of each training sample. The tracking routing module is used in the inference phase of target tracking to dynamically activate a matching expert network through a global routing network based on the features of the input image, so as to output the target tracking result.
