[KongchangAI]
· 2 min read· 1,244 words

COTEX: A New Approach for Continuous Tool-Space Expansion in Multimodal Agents

COTEX: A New Approach for Continuous Tool-Space Expansion in Multimodal Agents

COTEX continuously expands multimodal agents' tool space at low adapter-level cost while avoiding catastrophic forgetting.

COTEX is a continual tool-space expansion method for multimodal agents that addresses catastrophic forgetting of old tool capabilities when expert vision models are introduced. It decomposes tool invocation into invocation and selection directions, and uses adapter-level parameter expansion plus orthogonal constraints to confine new tool learning to a subspace orthogonal to old tool-selection directions, keeping existing strategies stable while expanding the tool space. COTEX also designs a protocol that converts expert models' existing task-specific annotations into validated tool-use trajectories to accelerate integration. Experiments across two agents, three expert tools, and ten vision-language benchmarks show new tools improve task performance while existing tools drop by at most 0.3 percentage points, validating the method's effectiveness and practicality in continual learning.

Multimodal agents typically rely on general-purpose tools such as cropping, search, and code execution, while specialized vision models are often excluded from the tool space. How to enable agents to efficiently learn new tools without forgetting old ones is a key challenge. The recently proposed COTEX (Continuous Tool-Space Expansion Learning) method offers a new approach to this problem through low-cost expansion at the adapter level.

COTEX paper illustration

Why do we need continuous tool-space expansion?

When handling complex tasks, current multimodal agents mainly rely on a predefined set of general-purpose tools. Although these tools are broad in coverage, they lack fine-grained handling capabilities for domain-specific tasks. For example, in scenarios requiring specialized visual recognition (such as medical image analysis or fine-grained object classification), general-purpose tools often fall short.

Bringing expert vision models into an agent's tool space seems straightforward but is in fact fraught with difficulties. The agent has already been trained and has acquired strategies for invoking existing tools; directly adding new tools may interfere with the existing tool-selection logic and lead to performance degradation. Therefore, the core question is: how to learn new tools while preserving the ability to use old ones, that is, avoiding catastrophic forgetting.

COTEX is a continual learning framework designed precisely for this pain point. It allows agents to add new tools at low cost at the adapter level without retraining the entire model.

Catastrophic forgetting is a classic problem in neural network continual learning: when a model is trained on a new task, parameter updates overwrite or interfere with previously learned knowledge, causing a sharp drop in performance on old tasks. In agent scenarios, this problem is particularly prominent—the agent has mastered strategies for invoking existing tools through reinforcement learning or supervised fine-tuning, and these strategies are distributed across a large number of parameters; if new tools are directly added and the model is retrained, gradient updates on new data may destroy the original tool-selection logic. Common mitigation methods include experience replay (rehearsal), regularization constraints (such as EWC), and parameter isolation (such as adapters and LoRA). COTEX belongs to the parameter isolation line: by restricting the learning of new tools to a low-rank adapter subspace, it structurally avoids perturbing the main model parameters, thereby preserving old tool capabilities without replaying old data.

COTEX's core mechanism: direction decoupling and orthogonal constraints

COTEX's innovation lies in decomposing the tool invocation process into two parameter directions:

  • Invocation direction: determines whether to trigger a tool call and start a multi-turn reasoning trajectory;
  • Selection direction: determines which specific tool to choose.

By locating these two sets of directions, COTEX can precisely control the impact of introducing new tools on existing tool selection. Specifically, the adapter for a new tool is restricted to the invocation direction, and orthogonal constraints ensure that it does not interfere with existing tool-selection directions. This decoupled design allows new tools to be learned independently without damaging the selection strategies of old tools.

The role of the orthogonal constraint is akin to drawing an "isolation belt" in parameter space: parameter updates related to new tools occur only in the subspace orthogonal to the old tool-selection directions, thereby minimizing interference. Experiments show that when new tools are introduced, the impact on the performance of existing tools is minimal—across ten vision-language benchmarks, the performance of existing tools drops by at most 0.3 percentage points.

Adapter is a lightweight parameter module, usually inserted into specific layers of a pretrained model as a low-rank bottleneck structure; during training, only adapter parameters are updated while the backbone network is frozen. Compared with full-parameter fine-tuning, adapters can reduce the number of trainable parameters by one to two orders of magnitude, significantly lowering storage and computation costs, and naturally support multi-task parallelism—each task or tool corresponds to an independent adapter, and switching requires only replacing the module. In COTEX, new tools are mounted on the model precisely in adapter form, and their parameters are constrained within the "invocation direction" subspace. Orthogonal constraints further ensure that the inner product between the update vector of the new adapter and the old tool-selection direction is close to zero, i.e., parameter updates are not projected onto directions sensitive to old tasks. This is consistent with the idea of gradient projection methods in continual learning (such as OGD), but COTEX applies it to the specific structure of tool selection, making isolation more precise and perturbation to old tool performance smaller.

From annotations to trajectories: a protocol design that enables rapid integration of expert models

In addition to innovations at the parameter level, COTEX also introduces a protocol that converts existing task-specific annotations of expert models into validated tool-use trajectories. This means that for expert models that already have annotated data (such as object detection and image segmentation models), demonstration trajectories of the agent invoking that tool can be automatically generated, thereby accelerating the learning process for new tools.

The key to this protocol lies in the "validation" step: it ensures that the generated trajectories are correct and effective, preventing noisy data from affecting learning. In this way, COTEX can leverage the existing knowledge of expert models to quickly integrate them into the agent's tool space without collecting large amounts of interaction data from scratch.

Tool-use trajectory refers to the multi-step interaction record of an agent completing a task, usually containing structured fields such as observations, thoughts, tool invocation parameters, tool return results, and the final answer. High-quality trajectories are the core data for training an agent's tool-invocation strategy, but manual annotation is costly. COTEX's protocol uses the existing task-specific annotations of expert models (such as bounding boxes and segmentation masks) to construct trajectories in reverse: first determine, based on the annotations, when the expert tool should be invoked and with what input parameters, then execute the tool to obtain outputs, and retain the trajectory only after verifying that the outputs are consistent with the annotations. This "annotation → trajectory → validation" process is essentially procedural data synthesis. Compared with bootstrapping methods such as STaR and ReAct, its advantage lies in using expert annotations as anchors for correctness, reducing hallucinations and error propagation commonly found in model self-generated trajectories, thereby obtaining reliable demonstration data at lower cost.

Experimental validation: multiple agents, multiple tools, multiple benchmarks

The researchers conducted experiments on two representative agents and three expert tools, and evaluated COTEX on ten vision-language benchmarks. The results show that after introducing new tools, the agents' performance on related tasks improved, while the performance degradation of existing tools was kept at an extremely low level (at most 0.3 percentage points).

This result validates the effectiveness of COTEX in continual learning scenarios: it both expands the tool space and maintains the stability of existing capabilities. Compared with methods that require retraining or fine-tuning the entire model, COTEX's adapter-level cost is also more practical.

Significance for the development of multimodal agents

The significance of COTEX lies not only in technical innovation, but also in providing a sustainable path for capability expansion in multimodal agents. As expert models continue to emerge, agents can continuously integrate new tools at low cost without worrying about forgetting old skills. This lays the foundation for building more powerful and more flexible multimodal agent systems.

In the future, as more expert models are added and the tool space further expands, how to efficiently manage collaboration and conflicts among tools will remain a direction worth exploring. COTEX's orthogonal constraint idea may offer useful reference for this.

#COTEX#multimodal agents#continual learning#catastrophic forgetting#adapter#orthogonal constraints#tool space expansion
Share:

Related articles