arXiv is now an independent nonprofit! Learn more
License: arXiv.org perpetual non-exclusive license
arXiv:2607.26283v1 [cs.CV] 28 Jul 2026

HeteroPROMPT: A Real-time and Privacy-Preserving Heterogeneous Collaborative Perception Framework

Armin Maleki1 (malekiar@msu.edu) and Hayder Radha1 (radha@msu.edu)
1 Electrical and Computer Engineering, Michigan State University
Abstract

Collaborative Perception (CP) improves autonomous systems’ awareness of their surroundings via shared data, intermediate features, and/or detection results. However, in real-world scenarios, collaborating vehicles often use heterogeneous sensors, perception models, datasets, and training domains, causing a domain shift in the feature space, which degrades downstream fusion and detection. Previous efforts aligned this domain gap by retraining fusion and detection components or by introducing feature interpreters for each modality, which scale poorly to new joining agents and mostly rely on access to proprietary metadata, raising privacy concerns. In this paper, we propose HeteroPROMPT, a heterogeneous, real-time, and privacy-preserving collaborative perception framework. HeteroPROMPT supports rapid heterogeneous agents’ features alignment using modular prompts and learning-based tuning, which aligns each heterogeneous agent modality to an ego-centric unified feature space, while freezing agents’ encoders, and collaboration fusion and detection stacks. Our novel framework performs visual prompt-based training and inference to efficiently modulate Bird’s Eye View (BEV) features across channels and spatial locations while significantly reducing computational overhead. To enable a metadata-free deployment, we use an AutoEncoder to learn a compact unified feature space, extracting modality cues from shared features to support real-time and privacy-preserving modality classification and routing to the appropriate HeteroPROMPT’s modules. Experiments on the OPV2V-H and V2XSet datasets show that our framework improves object detection performance, in terms of Average Precision (AP), over state-of-the-art heterogeneous CP methods while using orders of magnitude fewer trainable parameters, representing a scalable, practical, and privacy-preserving solution to heterogeneous CP. Moreover, the proposed novel modality classification scheme rapidly predicts the joining agent’s modality from compact features with >99.99%>99.99\% accuracy during deployment. Code is available at https://github.com/arminmaleki007/HeteroPROMPT.

I INTRODUCTION

Collaborative Perception (CP) improves connected vehicles’ awareness of their surroundings by enabling agents to share perception data, thereby supporting safer driving decisions than single-agent perception, which is limited by a restricted field of view and occlusions [1]. Despite rapid progress, CP systems still suffer from key bottlenecks, including bandwidth constraints [2, 3], sensitivity to communication latency [4, 5], pose noise/uncertainty [6, 7], and feature-domain shifts arising from heterogeneous sensors and perception models. The majority of existing approaches address subsets of these issues but assume homogeneous sensors and models across collaborating agents. Such an assumption imposes strong deployment constraints: performance can degrade sharply when a newly observed neighbor uses a different sensor, model, or training data than those seen during training. In practice, vehicles employ diverse and often proprietary perception stacks that introduce a domain gap among intermediate features, which leads to degradation in both perception accuracy and driving safety. Therefore, aligning this domain gap to enable robust collaboration is essential for deploying CP in real-world autonomous driving.

A single fusion model with fixed weights has not yet been developed to bridge the feature-domain gap induced by diverse sensor and model configurations encountered in practice. As a result, prior work typically adapts the collaboration pipeline to a limited set of heterogeneous neighbors, either by (i) retraining major components of the fusion and detection models [8, 9, 10, 11] or the joining agent’s backbone [12], or by (ii) attaching an extra feature interpreter that aligns intermediate features for each new agent [13, 14, 15]. Approaches in the first category often incur substantial retraining costs when new modalities appear and may raise privacy concerns because they require updating the joining agent’s model, and hence revealing details of the model. For example, HEAL [12] constructs a homogeneous unified base and then adapts newly joining heterogeneous encoders, leading to repeated retraining and requiring access to the joining agent’s model parameters. In contrast, feature-interpreter-based approaches can better preserve privacy but may rely on more complex models to align the features effectively, which can slow down deployment.

Nevertheless, many existing approaches rely on proprietary sensor and model metadata to select the appropriate adaptation module (model/interpreter) for each joining agent during deployment. In practice, sharing such metadata is often infeasible because perception stacks are companies’ proprietary and disclosure may expose sensitive design details or increase the attack surface. These limitations motivate a lightweight and privacy-preserving framework that can select the appropriate adaptation modules for each joining agent in real time without requiring any proprietary metadata, while maintaining detection accuracy and computational efficiency.

In this work, we propose HeteroPROMPT, a Heterogeneous collaborative perception framework for real-time, Privacy-preserving, and Rapid Object-alignment using Modular Prompts and Tuning that addresses BEV feature-domain gaps among heterogeneous agents. In Stage 1, we follow prior efforts (e.g., HEAL [12]) to learn an ego-centric unified feature space under a homogeneous setting. To support heterogeneous deployment, we introduce DRIFT (Decomposed-Rank Interpreter for FiLM Tuning), a modality-specific interpreter that aligns a newly joining agent’s intermediate features to the unified space. In Stage 2, we fine-tune DRIFT at two points in the detection pipeline to efficiently reduce the domain gap for each new modality while keeping the ego fusion/head and the joining agent encoder frozen. We further train an AutoEncoder (within an intermediate Stage 1.5, between stages 1 and 2) to obtain a compact unified feature space using the frozen homogeneous base, which will be used to infer the joining agent’s modality in real-time deployment without requiring any proprietary sensor/model metadata. HeteroPROMPT preserves the single-agent perception stack (for when no collaboration exists) and the privacy of newly joining agents during both training and deployment, while enabling scalable adaptation with low computational and storage overhead.

DRIFT implements Feature-wise Linear Modulation (FiLM) [18] using low-rank visual prompts to adaptively modulate intermediate BEV features across channels and spatial locations. To reduce the number of trainable parameters and improve optimization efficiency, we apply a Parallel Factor (PARAFAC [26]) low-rank decomposition to the prompt tensors, substantially lowering the adaptation complexity compared to dense prompts and accelerating convergence while retaining competitive detection performance.

Our key contributions are summarized as follows:

  • We propose HeteroPROMPT, a lightweight heterogeneous collaborative perception framework that aligns newly joining agents to an ego-centric unified feature space. For each new modality, we adapt only two learnable visual prompt-conditioned FiLM modules, requiring access solely to communicated intermediate features while keeping sensor/model configurations private.

  • We introduce a compact representation of the ego unified feature space by training an AutoEncoder, and learn modality cues from BEV intermediate features in this compact space. Then, we train a classifier using these modality cues. At deployment, the ego agent uses this feature-based classifier to predict the joining agent’s modality and select the appropriate prompt–FiLM pair without relying on any proprietary metadata.

  • We reduce adaptation cost by using PARAFAC low-rank decomposition for visual prompts, enabling fast feature alignment with substantially fewer trainable parameters, lower computation cost, and reduced storage by saving only modality-specific DRIFT modules.

  • Extensive experiments demonstrate that HeteroPROMPT achieves state-of-the-art detection accuracy, while reducing average training overhead by 96%96\%, and hence supporting scalable and privacy-preserving deployment of collaborative perception in real-world autonomous driving. In addition, the proposed modality classification scheme classifies the compact features during deployment with >99.99%>99.99\% accuracy.

II RELATED WORKS

II-A Collaborative Perception

Collaborative perception (CP) enables autonomous vehicles to improve environmental awareness by sharing perceptual information, particularly under occlusions and limited field-of-view [1]. Early CP approaches perform early fusion by transmitting raw sensor data, which can achieve strong performance but incurs substantial bandwidth cost. To reduce communication load, late fusion shares only high-level detection outputs, offering low bandwidth cost but often being limited by local prediction errors. More recent methods adopt intermediate fusion, where agents exchange intermediate features to balance bandwidth and detection accuracy. Beyond fusion strategies, prior work has investigated communication-efficient feature compression and bandwidth allocation [2, 3], robustness to latency, and communication [4, 5] and detection noise/uncertainty [6, 7]. However, performance degradation caused by feature-domain shifts among heterogeneous agents (e.g., different sensors, models, or training domains) remains comparatively underexplored, despite being critical for safe and reliable real-world CP.

II-B Heterogeneous Collaborative Perception

Aligning heterogeneous intermediate features is critical for collaborative perception when agents employ different sensors, models, datasets, or training domains; otherwise, feature misalignment can significantly degrade fusion performance. Existing approaches generally fall into two categories. The first category reduces the domain gap by retraining core components, such as the fusion/detection modules [8, 9, 10, 11] and/or the joining agent’s encoder. For example, HEAL [12] constructs an ego-centric unified space and then adapts heterogeneous encoders to match it. Although effective, such retraining-based solutions are computationally expensive for newly emerging modalities and raise privacy concerns because they require access to the joining agent’s model parameters for optimization. The second category introduces model interpreters that align heterogeneous features while freezing the main collaborative pipeline and agent encoders [13, 14, 15]. These methods can better preserve privacy and enable faster adaptation, but often introduce additional complexity and may incur non-trivial inference latency. Recent prompt-based variants reduce this cost using lightweight prompts. For example, Faster-HEAL [16] uses low-rank prompts with a learnable aligner, while PEARL [17] performs anonymous real-time selection using modality-specific compressors/interpreters and domain-invariant feature similarity. In contrast, HeteroPROMPT performs metadata-free routing through a compact AutoEncoder (AE)-based latent space and a lightweight classifier, using a shared resizer before modality inference. This routes communicated BEV features to the corresponding prompt-conditioned FiLM/DRIFT modules without requiring proprietary metadata or modality-specific learnable compression for the routing stage.

II-C Feature Modulation

A practical strategy for domain adaptation is to modulate intermediate activations with lightweight, conditional transformations, instead of retraining large perception backbones. Conditional normalization methods achieve this by predicting per-channel affine parameters conditioned on an external signal, e.g., (CBN) [19]. Related channel-wise recalibration mechanisms, such as squeeze-and-excitation (SE) blocks [20], gate feature channels to improve robustness and representation capacity with minimal additional parameters. These approaches demonstrate that channel-wise modulation can efficiently reshape feature distributions while keeping the main network largely unchanged. Building on this family, Feature-wise Linear Modulation (FiLM) [18] provides a general conditioning layer that applies learnable, feature-wise affine transformations to intermediate representations, making it a natural fit for parameter-efficient feature alignment. In parallel, prompt-based learning adapts models by optimizing small learnable visual prompts while freezing the backbone, as in low-rank prompting [21]. Prompting has also been explored for detection and domain shift, including visual prompt-driven domain generalization/adaptation and detection-oriented settings [22, 23, 24]. Motivated by these advances, we combine visual prompts with FiLM-style channel-wise modulation to obtain a compact interpreter for aligning heterogeneous intermediate BEV features, while keeping the main collaborative perception pipeline frozen.

III METHODOLOGY

Fig. 1 illustrates the overall architecture of HeteroPROMPT. We adopt a two-stage training paradigm with an intermediate AutoEncoder (AE) training step (Stage 1.5), to address feature misalignment in heterogeneous collaborative perception. Stage 1 learns an ego-centric unified feature space for detection by following the homogeneous base architecture and loss design of HEAL [12] (summarized in Subsection III-A). To obtain a compact representation for deployment, we further introduce a shallow distillation step via an AutoEncoder, which is used at inference time. Stage 2 introduces and fine-tunes two lightweight visual prompts beside feature-wise linear modulation to bridge the domain gap between heterogeneous intermediate features and the ego agent unified space, enabling fast adaptation with low inference overhead while preserving privacy and single-agent performance 111Here, single-agent performance refers to the performance when an agent has to revert to its own perception results without the benefits of other collaborating agents’ features e.g., due to interruption in connectivity., unlike retraining. Two prompts operate at different points in the detection pipeline, aligning BEV features to the unified space in a complementary manner.

Refer to caption
Figure 1: Overview of HeteroPROMPT. (a) Stage 1 learns an ego-centric unified BEV feature space for collaborative fusion and detection. (b) Stage 1.5 trains an AE to obtain a compact latent representation from ego-domain BEV features. (c) Color/marker legend. (d) Stage 2 fine-tunes two DRIFT modules to align a newly joining heterogeneous agent to the unified space. (e) DRIFT uses PARAFAC low-rank prompt-conditioned FiLM to modulate BEV features. (f) Metadata-free modality inference maps communicated BEV features to the AE latent space and classifies the modality for DRIFT selection. (g) Heterogeneous CP after routing and feature alignment.

III-A Stage 1: Homogeneous Unified Space Training

The purpose of Stage 1 is to learn an ego-centric unified feature space under a homogeneous setting, where all agents share the same encoder. Let 𝒜={1,,N}\mathcal{A}=\{1,\dots,N\} denote the agent set including the ego agent ee and neighbors j{𝒜\{e}}j\in\{\mathcal{A}\backslash\{e\}\}. Each agent i𝒜i\in\mathcal{A} encodes its observation OiO_{i} into a BEV feature map FiF_{i} using the shared encoder fm1(ego)f_{m_{1}(ego)}, which would be transmitted to the ego agent through a communication operator Γie\Gamma_{i\rightarrow e}. Here, modality represents the collective configuration of an agent’s sensors, encoder, and detection architecture/model. Hence, m1m_{1} represents the ego agent modality, and fm1(ego)f_{m_{1}(ego)} is the ego agent unified feature space encoder function. The ego agent aggregates the received features via pyramid fusion to obtain the unified feature representation Hm1H_{m_{1}}, which is then fed into the detection head to predict final detections BB, described in Algorithm 1.

Algorithm 1 Stage 1 Training Logic for Agent Set 𝒜\mathcal{A}
1:Input: Agent observations {Oi}i𝒜\{O_{i}\}_{i\in\mathcal{A}}.
2:Output: Detection output BB.
3:1. Per-agent feature extraction:
4:Fifm1(ego)(Oi),i𝒜F_{i}\leftarrow f_{m_{1}(\text{ego})}(O_{i}),\quad i\in\mathcal{A} // Shared encoder
5:2. Feature communication:
6:FieΓie(Fi),i𝒜F_{i\rightarrow e}\leftarrow\Gamma_{i\rightarrow e}(F_{i}),\quad i\in\mathcal{A} // Communication
7:3. Fusion and detection:
8:Hm1fpyramid(F1e,,FNe)H_{m_{1}}\leftarrow f_{\text{pyramid}}\left(F_{1\rightarrow e},\dots,F_{N\rightarrow e}\right) // Pyramid fusion
9:Bfhead(Hm1)B\leftarrow f_{\text{head}}(H_{m_{1}}) // Detection head
10:return BB

HeteroPROMPT adopts a pyramid fusion scheme for efficient and accurate fusion, following [12]. We perform fine-to-coarse fusion by downsampling the received features using a ResNeXt [25] block to obtain LL scales. At each scale ll, a foreground estimator ffg(l)f_{\text{fg}}^{(l)} produces an occupancy map to highlight informative regions. Fusion weights are computed by applying a softmax across agents. The fused features are then upsampled to a common resolution and concatenated to produce Hm1H_{m_{1}}, described in Algorithm 2.

Algorithm 2 Pyramid Fusion Logic
1:Input: Aligned features {Fie(0)}i=1N\{F_{i\rightarrow e}^{(0)}\}_{i=1}^{N}.
2:Output: Fused pyramid feature Hm1H_{m_{1}}.
3:1. Multi-level feature extraction and weighting:
4:Fie(l)fResNeXt(l)(Fie(l1)),lL,i𝒜F_{i\rightarrow e}^{(l)}\leftarrow f_{\text{ResNeXt}}^{(l)}\left(F_{i\rightarrow e}^{(l-1)}\right),\quad l\in L,\ i\in\mathcal{A}
5:OCCi(l)ffg(l)(Fie(l))OCC_{i}^{(l)}\leftarrow f_{\text{fg}}^{(l)}\left(F_{i\rightarrow e}^{(l)}\right) // Foreground score
6:W1:N(l)softmax(OCC1(l),,OCCN(l))W_{1:N}^{(l)}\leftarrow\operatorname{softmax}\left(OCC_{1}^{(l)},\dots,OCC_{N}^{(l)}\right) // Normalize
7:Fm1(l)i=1NFie(l)Wi(l)F_{m_{1}}^{(l)}\leftarrow\displaystyle\sum_{i=1}^{N}F_{i\rightarrow e}^{(l)}\cdot W_{i}^{(l)} // Weighted sum
8:Fm1(l)fupsample(l)(Fm1(l))F_{m_{1}}^{(l)}\leftarrow f_{\text{upsample}}^{(l)}\left(F_{m_{1}}^{(l)}\right) // Match resolution
9:2. Multi-scale concatenation:
10:Hm1concat(Fm1(1),Fm1(2),,Fm1(L))H_{m_{1}}\leftarrow\operatorname{concat}\left(F_{m_{1}}^{(1)},F_{m_{1}}^{(2)},\dots,F_{m_{1}}^{(L)}\right)
11:return Hm1H_{m_{1}}

Besides the final detection loss det\mathcal{L}_{\text{det}}, which includes focal classification loss focal\mathcal{L}_{\text{focal}}, regression loss smooth-L1\mathcal{L}_{\text{smooth-L1}}, and direction loss dir\mathcal{L}_{\text{dir}}, Stage 1 additionally supervises the foreground estimator at each pyramid level using a focal loss:

=det(B,Y)+l=1Lαlforeground(l)det(B,Y)=focal(B,Y)+2smooth-L1(B,Y)+0.2dir(B,Y)foreground(l)=i=1Nfocal(OCCi(l),Yi(l)),\begin{gathered}\mathcal{L}=\mathcal{L}_{\text{det}}(B,Y)+\sum_{l=1}^{L}\alpha_{l}\,\mathcal{L}_{\text{foreground}}^{(l)}\\ \mathcal{L}_{\text{det}}(B,Y)=\mathcal{L}_{\text{focal}}(B,Y)\\ +2\cdot\mathcal{L}_{\text{smooth-L1}}(B,Y)+0.2\cdot\mathcal{L}_{\text{dir}}(B,Y)\\ \mathcal{L}_{\text{foreground}}^{(l)}=\sum_{i=1}^{N}\mathcal{L}_{\text{focal}}\!\left(OCC_{i}^{(l)},Y_{i}^{(l)}\right),\end{gathered} (1)

where YY is the ground-truth, BB denotes the predictions, OCCi(l)OCC_{i}^{(l)} is the predicted occupancy map, and Yi(l)Y_{i}^{(l)} is the foreground mask with αl\alpha_{l} as weighting contribution of scales.

III-B Stage 2: New Joining Heterogeneous Agent

After Stage 1 learns an ego-centric unified feature space, new agents may join the collaboration group. Since the unified space is learned under the ego agent’s sensor/model configuration, a distribution mismatch in BEV features arises when a new agent employs different sensors, perception backbones, or datasets, which can significantly degrade the detection performance. Therefore, the new agent’s features must be aligned to the unified feature space to minimize performance loss. In practice, retraining the fusion and detection modules for every newly joining agent (or each new agent backbone for each base) is often infeasible. This motivates a lightweight and privacy-preserving adaptation mechanism that can efficiently align heterogeneous features under constraints such as limited computation/resources and the proprietary nature of companies’ sensors and models.

HeteroPROMPT addresses these constraints by freezing the ego fusion module and detection head, thereby preserving the Stage 1 unified feature space. We also freeze the newly joining agent’s encoder, confining adaptation to a small set of prompts operating on shared intermediate features; this reduces computational overhead and better preserves the new agent’s privacy. By significantly reducing complexity and by preserving critical aspects of new agent’s metadata (i.e., sensor type, encoder, detection head model, etc.), our approach represents a major departure from prior CP frameworks, including HEAL [12]. To align heterogeneous features to the unified space, we introduce Decomposed-Rank Interpreter for FiLM Tuning (DRIFT) at two points in the detection pipeline containing lightweight and modality-specific visual prompts, and fine-tune them. For a newly joining agent of modality m2m_{2}, we use a set of agents 𝒜m2\mathcal{A}_{m_{2}} and a frozen encoder fencm2f^{**}_{enc_{m_{2}}}. The alignment procedure is described in Algorithm 3:

Algorithm 3 Stage 2 Training Logic for Joining Agent m2m_{2}
Input: Joining agent observation {Ok,m2}k𝒜m2\{O_{k,m_{2}}\}_{k\in\mathcal{A}_{m_{2}}}
Output: Detection output Bm2B_{m_{2}}
1. Frozen feature extraction and communication:
Fk,m2fencm2(Ok,m2),k𝒜m2F_{k,m_{2}}\leftarrow f_{\mathrm{enc}_{m_{2}}}^{**}(O_{k,m_{2}}),\ k\in\mathcal{A}_{m_{2}} // Frozen encoder
Fk,m2eΓk,m2e(Fk,m2),k𝒜m2F_{k,m_{2}\rightarrow e}\leftarrow\Gamma_{k,m_{2}\rightarrow e}(F_{k,m_{2}}),\ k\in\mathcal{A}_{m_{2}} // Communication
2. DRIFT fine-tuning:
Fk,m2FiLMm2,1(Fk,m2e,Pm2,1)F^{\prime}_{k,m_{2}}\leftarrow FiLM_{m_{2},1}(F_{k,m_{2}\rightarrow e},P_{m_{2},1}) // DRIFT 1 tuning
Fk,m2′′fresizer(Fk,m2)F^{\prime\prime}_{k,m_{2}}\leftarrow f_{\mathrm{resizer}}(F^{\prime}_{k,m_{2}}) // Match ego-agent size
Fk,m2′′′FiLMm2,2(Fk,m2′′,Pm2,2)F^{\prime\prime\prime}_{k,m_{2}}\leftarrow FiLM_{m_{2},2}(F^{\prime\prime}_{k,m_{2}},P_{m_{2},2}) // DRIFT 2 tuning
3. Frozen fusion and detection:
Hm1,m2fpyramid({Fk,m2′′′}k𝒜m2)H_{m_{1},m_{2}}\leftarrow f_{\mathrm{pyramid}}^{*}\left(\{F^{\prime\prime\prime}_{k,m_{2}}\}_{k\in\mathcal{A}_{m_{2}}}\right) // Fusion
Bm2fhead(Hm1,m2)B_{m_{2}}\leftarrow f_{\mathrm{head}}^{*}(H_{m_{1},m_{2}}) // Detection head
return Bm2B_{m_{2}}

Here, Fk,m2F_{k,m_{2}} is the BEV feature produced by the new agent k, Fk,m2eF_{k,m_{2}\rightarrow e} denotes the communicated BEV feature after synchronization and ego-frame transformation at the current collaboration timestamp, following the benchmark CP pipeline, and Pm2,iP_{m_{2},i} is the learnable prompt for modality m2m_{2} at step ii. fresizerf_{\text{resizer}} maps the new agent feature to the common unified resolution (e.g., spatial resizing and lightweight channel projection). The superscripts * (Stage 1) and ** (new agent) indicate frozen pretrained modules during Stage 2. We use Feature-wise Linear Modulation (FiLM) [18], defined as:

FiLMm,i(Fm,Pm,i)=γm,i(Pm,i)Fm+βm,i(Pm,i),FiLM_{m,i}(F_{m},P_{m,i})=\gamma_{m,i}(P_{m,i})\odot F_{m}+\beta_{m,i}(P_{m,i}), (2)

where γm,i()\gamma_{m,i}(\cdot) and βm,i()\beta_{m,i}(\cdot) are produced from the prompt Pm,iP_{m,i} for the modality mm at step ii using a lightweight MLP or CNN, and are broadcasted to match the feature dimensions.

To ensure compatibility, the first prompt Pm2,1P_{m_{2},1} matches the shape of the communicated feature, i.e., (Cm2,Hm2,Wm2)(C_{m_{2}},H_{m_{2}},W_{m_{2}}), while the second prompt Pm2,2P_{m_{2},2} matches the unified resolution after resizing, i.e., (C,H,W)(C,H,W). Directly optimizing dense prompts of size C×H×WC\times H\times W can introduce a large number of trainable parameters, increasing optimization difficulty and slowing convergence. To reduce the trainable parameter count, we apply PARAFAC (CP) decomposition [26] to represent each prompt with a low-rank factorization of rank RR. Specifically, we learn three factor matrices AR×CA\in\mathbb{R}^{R\times C}, BR×HB\in\mathbb{R}^{R\times H}, and DR×WD\in\mathbb{R}^{R\times W}, and reconstruct the prompt as

Pc,h,wr=1RAr,cBr,hDr,w,P_{c,h,w}\approx\sum_{r=1}^{R}A_{r,c}\cdot B_{r,h}\cdot D_{r,w}, (3)

where Pc,h,wP_{c,h,w} denotes the prompt element at channel cc and spatial location (h,w)(h,w). This decomposition reduces the number of trainable parameters from C×H×WC\times H\times W to R(C+H+W)R(C+H+W) with Rmin(C,H,W)R\ll\min(C,H,W), lowering training cost and accelerating convergence while maintaining comparable performance.

FiLM [18] is used to modulate intermediate BEV features using the learnable prompts, thereby aligning heterogeneous features to the ego agent unified space. During Stage 2, we jointly optimize the lightweight prompt factors and FiLM in DRIFT , while keeping the new agent encoder and the ego fusion/head frozen. This design reduces the feature-domain gap without requiring access to raw sensor data or proprietary model metadata. Moreover, only the low-rank prompt factors and FiLM weights need to be stored for each modality, notably reducing storage compared to full perception stacks.

III-C Real-Time Deployment

To support generalization, Stage 2 adaptation is performed offline for a set of common sensor/model configurations (referred to as modalities). The ego agent stores the corresponding prompt–FiLM pair in DRIFT for each modality. During real-time deployment, when a new agent joins, the ego must select the appropriate prompt–FiLM pair; an incorrect selection can lead to substantial performance degradation.

Many existing approaches perform this selection using sensitive sensor/model metadata, which may be unavailable due to privacy or proprietary constraints. Moreover, metadata alone can be insufficient. Even with the same sensor and backbone, a model trained on a different dataset exhibits a shifted feature distribution, causing a domain gap and degrading performance by selecting wrong DRIFT modules. Hence, we developed a real-time, privacy-preserving mechanism to detect the joining agent’s modality and select the appropriate modules without revealing sensitive metadata.

To identify the modality of a newly joining agent at runtime, HeteroPROMPT extracts modality-discriminative cues from communicated BEV features using an AutoEncoder (AE). After completing Stage 1, we introduce an intermediate Stage 1.5 to train the AE on ego domain features and construct a compact unified representation. In this stage, we keep the encoder, pyramid fusion, and detection head frozen, and train only the AE, as described in Algorithm 4.

Algorithm 4 Intermediate Stage 1.5 Training Logic
1:Input: Ego feature FeF_{e}; aligned partner features {Fie}i=1N1\{F_{i\rightarrow e}\}_{i=1}^{N-1}.
2:Output: Detection output BB.
3:1. Compact encoding and reconstruction:
4:zegAE(Fe)z_{e}\leftarrow g_{\text{AE}}(F_{e}) // Encode to compact latent
5:F¯edAE(ze)\bar{F}_{e}\leftarrow d_{\text{AE}}(z_{e}) // Reconstruct unified feature
6:2. Frozen fusion and detection:
7:Hm1fpyramid(F1e,F2e,,FN1e,F¯e)H_{m_{1}}\leftarrow f_{\text{pyramid}}^{*}\left(F_{1\rightarrow e},F_{2\rightarrow e},\dots,F_{N-1\rightarrow e},\bar{F}_{e}\right) // Fusion
8:Bfhead(Hm1)B\leftarrow f_{\text{head}}^{*}(H_{m_{1}}) // Frozen head
9:return BB

The AutoEncoder consists of an encoder gAEg_{AE} that maps the BEV features to a compact feature space, and a decoder dAEd_{AE} that maps the compact features back to the original size. ff^{*} is for frozen modules. Stage 1.5 is trained using the Stage 1 objective in (1) together with a reconstruction loss:

1.5=Stage1+λFeF¯e22,\mathcal{L}_{1.5}=\mathcal{L}_{\text{Stage1}}+\lambda\left\|F_{e}-\bar{F}_{e}\right\|_{2}^{2}, (4)

where λ\lambda balances detection and reconstruction. Therefore, the AE is guided by both the frozen Stage 1 detection pipeline and the reconstruction objective, encouraging the compact representation to preserve detection-relevant unified BEV features for real-time modality selection.

For a newly joining agent, its communicated BEV feature is first resized to the ego agent’s unified resolution to ensure compatibility with the AE encoder. The AE encoder then maps the resized feature into a compact latent space, which captures modality-discriminative cues for identifying the agent’s feature domain. We train a lightweight classifier on a collection of such compact latent codes obtained from a set of common modalities (sensor/model configurations).

During deployment, when a new agent joins, the ego agent applies the resizer, AE encoder, and classifier to infer the agent’s modality as:

zm=gAE(fresizer(Fme))m^=fcls(zm)\begin{gathered}z_{m}=g_{AE}(f_{resizer}(F_{m\rightarrow e}))\Rightarrow\hat{m}=f_{cls}(z_{m})\end{gathered} (5)

Based on the predicted modality (m^\hat{m}), the ego selects the corresponding DRIFT  modules, which enables real-time module selection without requiring any sensitive sensor or model metadata. After choosing the appropriate DRIFTs, the ego agent performs collaborative fusion and detection.

IV EXPERIMENTS

IV-A Dataset and Heterogeneous Scenario Design

We evaluated HeteroPROMPT on two large-scale CP datasets: OPV2V-H [12] for the main results and ablations, and V2XSet [27] for further validation of the performance of our proposed framework. OPV2V-H [12] is built upon OPV2V [28] and is designed specifically for heterogeneous CP. Different perception encoders have been used both for LiDAR (PointPillar [29] and SECOND [30]) and camera (Lift-Splat-Shoot [31] to lift image features to BEV features, with EfficientNet [32] and ResNet-50 [33] as image encoders) to evaluate the generalization capability of HeteroPROMPT under heterogeneous CP settings.

For fair comparison with prior work, we define heterogeneous modalities following HEAL [12]. Table I summarizes the four modalities used in our experiments. Modality m1m_{1} is used as the ego agent to construct the ego-centric unified feature space with feature size (64,128,256)(64,128,256) using 64-channel LiDAR. We then progressively add three heterogeneous agents with modalities m2m_{2}, m3m_{3}, and m4m_{4}. All agents use pretrained, frozen single-agent encoders and backbones with [0.4m,0.4m][0.4\,\mathrm{m},0.4\,\mathrm{m}] BEV grid. The detection range is [102.4m,+102.4m][-102.4\,\mathrm{m},+102.4\,\mathrm{m}] and [51.2m,+51.2m][-51.2\,\mathrm{m},+51.2\,\mathrm{m}] along xx and yy.

Implementation details. We use three ResNeXt [25] blocks with [3,5,8][3,5,8] layers in pyramid fusion to generate multi-scale features with [64,128,256][64,128,256] channels, and 1×11\times 1 foreground estimators. The resizer applies average pooling to match the ego feature resolution. The FiLM module uses a three-layer CNN architecture, and the AutoEncoder contains three CNN layers, producing a compact latent feature of size (64,8,16)(64,8,16) from resized features. The classifier uses adaptive average pooling followed by three MLP layers. All training stages run for 35 epochs using the Adam optimizer. We report average precision (AP) at IoU thresholds of 0.5 and 0.7.

TABLE I: Heterogeneous modality definitions. The ego agent uses m1m_{1} modality and m2m_{2}, m3m_{3}, and m4m_{4} join progressively.
Modality Sensor Encoder
m1m_{1} (ego) LiDAR (64-channel) PointPillar
m2m_{2} camera EfficientNet
m3m_{3} LiDAR (32-channel) Second
m4m_{4} camera ResNet-50

IV-B Experimental Results Comparison

We compare HeteroPROMPT with state-of-the-art intermediate-fusion frameworks for heterogeneous collaborative perception under progressively added heterogeneous agents. As summarized in Table II, HeteroPROMPT consistently improves AP50 over HEAL [12] on both datasets while using orders-of-magnitude fewer trainable parameters. On OPV2V-H, HeteroPROMPT outperforms HEAL by +1.8%+1.8\%, +1.0%+1.0\% and +1.2%+1.2\% at AP50, for +m2+m_{2}, +m3+m_{3}, and +m4+m_{4}, respectively, while maintaining a comparable AP70. Additionally, HeteroPROMPT on average improves +4.7%/10.4%+4.7\%/10.4\% and +5.8%/10.8%+5.8\%/10.8\% at AP50/AP70, for CoBEVT [34] and HM-ViT [9], respectively. On V2XSet, HeteroPROMPT similarly improves AP50 over HEAL by +1.4%+1.4\% for +m2+m_{2}, +1.5%+1.5\% for +m3+m_{3} and +1.1%+1.1\% for +m4+m_{4}, while maintaining a comparable AP70. Importantly, HeteroPROMPT reduces the trainable parameters to only 0.0640.064M across all settings, yielding 94.194.199.6%99.6\% parameter reduction relative to HEAL, dramatically lower overhead than retraining baselines (CoBEVT [34], HM-ViT [9]), supporting fast and privacy-preserving feature adaptation. We further evaluate training efficiency by comparing HeteroPROMPT with HEAL. As reported in Table III, HeteroPROMPT reduces peak GPU memory usage by 45.7%45.7\%, while achieving end-to-end training throughput of 30.7430.74 samples/sec. (2.5×2.5\times higher than HEAL) and 2.27×2.27\times higher computational throughput in TFLOPs/sec. on an NVIDIA RTX A6000 (batch size 1), demonstrating its computational efficiency.

TABLE II: Detection performance comparison on OPV2V-H (upper block) and V2XSet (lower block) using m1m_{1} as the collaborative base and progressively adding three new heterogeneous agents (m2m_{2}, m3m_{3}, m4m_{4}). We report AP50%, AP70%, and the number of trainable parameters for No-Fusion (no retraining), Late Fusion, HEAL [12], CoBEVT [34], and HM-ViT [9] ( retraining methods).
Based on m1m_{1}, Add New Agent +m2+m_{2} +m3+m_{3} +m4+m_{4}
Metric      Dataset AP50 \uparrow AP70 \uparrow # Params (M) \downarrow AP50 \uparrow AP70 \uparrow # Params (M) \downarrow AP50 \uparrow AP70 \uparrow # Params (M) \downarrow
No Fusion     OPV2V-H 74.8 60.6 / 74.8 60.6 / 74.8 60.6 /
Late Fusion 77.5 59.9 / 83.3 68.5 / 83.4 68.5 /
CoBEVT [34] 82.2 67.1 33.2 88.5 74.2 42.0 88.5 74.2 51.7
HM-ViT [9] 81.3 64.6 47.7 87.1 74.3 65.1 87.6 75.5 83.3
HEAL [12] 87.2 78.3 15.0 91.3 84.8 1.1 90.9 84.5 1.9
HeteroPROMPT (ours) 89.0 78.6 0.064 (99.6 %\% \downarrow) 92.3 84.2 0.064 (94.1 %\% \downarrow) 92.1 84.0 0.064(96.6 %\% \downarrow)
HEAL [12]     V2XSet 82.0 68.4 15.0 82.8 71.2 1.1 82.4 71.4 1.9
HeteroPROMPT (ours) 83.4 68.7 0.064 (99.6 %\% \downarrow) 84.3 70.7 0.064 (94.1 %\% \downarrow) 83.5 70.5 0.064(96.6 %\% \downarrow)
TABLE III: Training computation cost comparison on OPV2V-H using heterogeneous scenario (m1+m2+m3+m4m_{1}+m_{2}+m_{3}+m_{4}). We report training throughput (TT, samples/s), computational throughput (TF, TFLOPs/s), and peak GPU memory usage (PM).
Metric TT \uparrow TF \uparrow PM (GB) \downarrow
HEAL [12] 12.34 7.68 7.0
HeteroPROMPT (ours) 30.74(2.5×\uparrow 2.5\times) 17.44(2.27×\uparrow 2.27\times) 3.8(45.7%\downarrow 45.7\%)

IV-C Deployment Modality Classification

After Stage 1, we train an AutoEncoder (AE) to construct a compact unified feature space using the frozen ego encoder, fusion, and detection modules in an intermediate training stage. The AE encoder/decoder each use three CNN layers. We evaluate four latent sizes: (64,8,16)(64,8,16), (64,16,32)(64,16,32), (128,8,16)(128,8,16), and (128,16,32)(128,16,32). For m2m_{2}, m3m_{3}, and m4m_{4}, we extract compact features using 140/30/30 train/val/test samples per modality using OPV2V-H and V2XSet datasets. To visualize the geometry of the learned latent space, we apply t-SNE [35] (perplexity 40–50) on flattened compact tensors. Fig. 2 shows clear modality-dependent clustering in the compact space.

Refer to caption
Figure 2: t-SNE visualization of AE compact features (flattened) for modality domains. m2m_{2} to m4m_{4} use OPV2V-H dataset and m7m_{7} to m9m_{9} use the same models with V2XSet dataset. Each color denotes a modality, and shade indicates data split (train/val/test). The compact space forms distinct modality clusters.

Table IV reports the classification test loss for different latent sizes. Since (64,8,16)(64,8,16) yields the lowest loss, we use it for classification with all samples. For modality classification, we apply average pooling on the compact features followed by a three-layer MLP classifier. To evaluate scalability, we further extend the modality set with m5m_{5} (SECOND [30]) and m6m_{6} (PointPillar [29]) with different voxel sizes than m3m_{3} and m1m_{1}. Fig. 3 reports the test confusion matrix over all modalities. The classifier achieves near-perfect accuracy (>99.99%>99.99\%), with one confusion between m5m_{5} and m2m_{2}.

TABLE IV: AutoEncoder latent-size ablation for modality classification. Test loss is reported on a small sample for m2m_{2} to m4m_{4} (OPV2V-H), and m7m_{7} to m9m_{9} (same modality with V2XSet).
Metric (64,8,16)(64,8,16) (64,16,32)(64,16,32) (128,8,16)(128,8,16) (128,16,32)(128,16,32)
Test loss \downarrow 0.0290 0.0377 0.0858 0.0577
Refer to caption
Figure 3: Test confusion matrix for deployment modality classification using AE latent features and a lightweight MLP classifier. The classifier achieves >99.99%>99.99\% accuracy across m2m_{2}m9m_{9}, with only one error between m5m_{5} and m2m_{2}.

IV-D Ablation Study

We study the contribution of each DRIFT module in Stage 2 heterogeneous adaptation of HeteroPROMPT. We used a CNN-based FiLM block with PARAFAC prompts of rank R=16R=16, and evaluated three variants: using only DRIFT 1 (pre-resizer), only DRIFT 2 (post-resizer in the unified resolution), or both. Table V shows that combining both DRIFT modules is important for effectively closing the feature-domain gap. Removing DRIFT 2 yields a drop of 2.9%2.9\% at AP50 and 3.4%3.4\% at AP70, while removing DRIFT 1 reduces performance by 4.6%4.6\%/4.8%4.8\% at AP50/AP70, indicating that DRIFT 1 contributes more strongly in this setting.

TABLE V: Effect of each DRIFT module in Stage 2 feature-domain adaptation. DRIFT 1 has a larger contribution in this setting. Results are reported for m1+m2+m3+m4m_{1}+m_{2}+m_{3}+m_{4}.
DRIFT 1 DRIFT 2 AP50% \uparrow AP70% \uparrow
89.2 80.6
87.5 79.2
92.1 84.0

We also evaluated the effect of the FiLM architecture (MLP vs. CNN) and the PARAFAC prompt rank RR on the accuracy–complexity trade-off under the m1+m2+m3m_{1}+m_{2}+m_{3} setting. Fig. 4 reports AP50 (circles) and AP70 (triangles) results versus the number of trainable parameters. Overall, CNN-based FiLM with R=16R=16 (brown) provides the best AP70 performance while maintaining low complexity, and achieves competitive AP50 precision. Among the MLP architectures, a competitive option is MLP-based FiLM with R=64R=64, which achieves the best AP50 performance. Increasing RR further increases model capacity and complexity with diminishing gains, while MLP-based FiLM generally yields lower complexity but weaker accuracy. As highlighted above, it is important to note that the HEAL AP results come at a high cost in complexity that is almost two orders of magnitude higher than HeteroPROMPT’s overall complexity. For R=16R=16, varying the CNN width (squares and upside-down triangles) shows that 3232 channels provides the best trade-off, whereas smaller widths reduce capacity and larger widths increase complexity with marginal gains.

Refer to caption
Figure 4: Accuracy-complexity ablations for Stage 2 new-agent adaptation under collaboration of three agents. We report AP50 and AP70 versus the number of trainable parameters. 1. Effect of PARAFAC prompt rank RR and FiLM architecture (MLP vs. CNN) (\ocircle:AP50 and \triangle:AP70). 2. For fixed R=16R=16, effect of CNN FiLM hidden-layer channels (\square:AP50 and \bigtriangledown:AP70).

V CONCLUSION

In this paper, we introduced HeteroPROMPT, a heterogeneous collaborative perception framework for real-time, privacy-preserving, and rapid object alignment. Our method mitigates the BEV feature-domain gap across agents with different sensors and perception stacks by aligning communicated intermediate features to an ego-centric unified space using lightweight, prompt-conditioned FiLM interpreters. HeteroPROMPT reduces trainable parameters by orders of magnitude while maintaining state-of-the-art detection performance by freezing the ego fusion/detection stack and joining-agent encoders, and adapting only two DRIFT modules with PARAFAC low-rank prompts and feature-wise linear modulation. HeteroPROMPT also preserves the privacy of joining agents by relying solely on received intermediate features. We further enable metadata-free and privacy-preserving deployment by learning a compact AutoEncoder representation and a classifier that infers the joining agent modality from features with >99.99%>99.99\% accuracy on the evaluated modality set, supporting real-time routing to the correct DRIFT modules. Experiments on the OPV2V-H and V2XSet datasets demonstrate HeteroPROMPT’s efficiency in addressing the heterogeneous feature-domain gap without retraining whole perception stacks, providing a scalable and privacy-preserving approach for training and deployment. Future work will examine generalization to unseen sensors/models and robustness under stronger latency, packet loss, localization errors, and real-world V2X deployment.

VI Acknowledgment

This work was supported in part by the US Department of Transportation under grant 69A36523420190CRSCA.

References

  • [1] R. Hao et al., Research challenges and progress in the end-to-end v2x cooperative autonomous driving competition. In Proceedings of the IEEE/CVF International Conference on Computer Vision 2025 (pp. 1828-1839).
  • [2] D. Yang et al., How2comm: Communication-efficient and collaboration-pragmatic multi-agent perception. Advances in Neural Information Processing Systems. 2023 Dec 15.
  • [3] J. Xu, Y. Zhang, Z. Cai, D. Huang. Cosdh: communication-efficient collaborative perception via supply-demand awareness and intermediate-late hybridization. In Proceedings of the Computer Vision and Pattern Recognition Conference 2025 (pp. 6834-6843).
  • [4] S. Wei et al., Asynchrony-robust collaborative perception via bird’s eye view flow. Advances in Neural Information Processing Systems. 2023 Dec 15;36:28462-77.
  • [5] J. Wang, T. Nordström. Latency robust cooperative perception using asynchronous feature fusion. In 2025 IEEE/CVF Winter Conference on Applications of Computer Vision (WACV) 2025 Feb 26 (pp. 1-10).
  • [6] Z. Huang et al., Roco: Robust cooperative perception by iterative object matching and pose adjustment. In Proceedings of the 32nd ACM International Conference on Multimedia 2024 Oct 28 (pp. 7833-7842).
  • [7] J. Xu, C. Song, C. Shi, H. Liu, Q. Wang. UncertainBEV: Uncertainty-aware BEV fusion for roadside 3D object detection. Image and Vision Computing. 2025 Jun 1;159:105567.
  • [8] P. Zhi et al., Cross-domain generalization for lidar-based 3d object detection in infrastructure and vehicle environments. Sensors. 2025 Jan 27;25(3):767.
  • [9] H. Xiang, R. Xu, and J. Ma, “HM-ViT: Hetero-modal vehicle-to vehicle cooperative perception with vision transformer,” in Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), Paris, France, 2023, pp. 284–295.
  • [10] Y. Zhao et al., HeatV2X: Scalable Heterogeneous Collaborative Perception via Efficient Alignment and Interaction. arXiv preprint arXiv:2511.10211. 2025 Nov 13.
  • [11] C. Shao et al., NegoCollab: A Common Representation Negotiation Approach for Heterogeneous Collaborative Perception. arXiv preprint arXiv:2510.27647. 2025 Oct 31.
  • [12] Y. Lu et al., An extensible framework for open heterogeneous collaborative perception. arXiv preprint arXiv:2401.13964. January 2024.
  • [13] L. Xin et al., PnPDA+: A Meta Feature-Guided Domain Adapter for Collaborative Perception. World Electric Vehicle Journal. 2025 Jun 21;16(7):343.
  • [14] Y. Xia et al., One is Plenty: A Polymorphic Feature Interpreter for Immutable Heterogeneous Collaborative Perception. In Proceedings of the Computer Vision and Pattern Recognition Conference 2025 (pp. 1592-1601).
  • [15] J. Zhou et al., Pragmatic Heterogeneous Collaborative Perception via Generative Communication Mechanism. arXiv preprint arXiv:2510.19618. 2025 Oct 22.
  • [16] A. Maleki, H. Radha. Faster-HEAL: An Efficient and Privacy-Preserving Collaborative Perception Framework for Heterogeneous Autonomous Vehicles. arXiv preprint arXiv:2603.07314. 2026 Mar 7.
  • [17] A. Maleki, H. Radha. PEARL: A Lightweight Prompt-based Feature Interpreter Framework for Real-Time, Anonymous, and Heterogeneous Collaborative Perception. InProceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition 2026 (pp. 1138-1147).
  • [18] E. Perez, F. Strub, H. De Vries, V. Dumoulin, A. Courville. FiLM: Visual reasoning with a general conditioning layer. In Proceedings of the AAAI conference on artificial intelligence 2018 Apr 29 (Vol. 32).
  • [19] H. De Vries et al., Modulating early visual processing by language. Advances in neural information processing systems. 2017;30.
  • [20] J. Hu, L. Shen, G. Sun. Squeeze-and-excitation networks. In Proceedings of the IEEE conference on computer vision and pattern recognition 2018 (pp. 7132-7141).
  • [21] C. Jin et al., Lor-VP: Low-rank visual prompting for efficient vision model adaptation. arXiv preprint arXiv:2502.00896. 2025 Feb 2.
  • [22] A. Li, L. Zhuang, S. Fan, S. Wang. Learning common and specific visual prompts for domain generalization. In Proceedings of the Asian conference on computer vision 2022 (pp. 4260-4275).
  • [23] H. R. Medeiros, A. Belal, S. Muralidharan, E. Granger, M. Pedersoli. Visual modality prompt for adapting vision-language object detectors. In Proceedings of the IEEE/CVF International Conference on Computer Vision 2025 (pp. 2172-2182).
  • [24] H. Phan, L. Tran, Q. Tran, T. Le. Enhancing domain adaptation through prompt gradient alignment. Advances in Neural Information Processing Systems. 2024 Dec 16;37:45518-51.
  • [25] S. Xie, R. Girshick, P. Doll´ar, Z. Tu, and K. He. Aggregated residual transformations for deep neural networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, 2017.
  • [26] J. D. Carroll, J. J. Chang. Analysis of individual differences in multidimensional scaling via an N-way generalization of “Eckart-Young” decomposition. Psychometrika. 1970 Sep;35(3):283-319.
  • [27] R. Xu et al., V2x-vit: Vehicle-to-everything cooperative perception with vision transformer. In European conference on computer vision, pages 107–124. Springer, 2022.
  • [28] R. Xu, et al., Opv2v: An open benchmark dataset and fusion pipeline for perception with vehicle-to-vehicle communication. In 2022 International Conference on Robotics and Automation (ICRA), pp. 2583–2589. IEEE, 2022.
  • [29] A. H. Lang et al., Pointpillars: Fast encoders for object detection from point clouds. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 12697–12705, 2019.
  • [30] Y. Yan, Y. Mao, and B. Li. Second: Sparsely embedded convolutional detection. Sensors, 18(10):3337, 2018.
  • [31] J. Philion and S. Fidler. Lift, splat, shoot: Encoding images from arbitrary camera rigs by implicitly unprojecting to 3d. InEuropean conference on computer vision 2020 Aug 23 (pp. 194-210). Cham: Springer International Publishing.
  • [32] M. Tan and Q. Le. Efficientnet: Rethinking model scaling for convolutional neural networks. In International conference on machine learning, pp. 6105–6114. PMLR, 2019.
  • [33] K. He, X. Zhang, S. Ren, and J. Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016.
  • [34] R. Xu et al., Cobevt: Cooperative bird’s eye view semantic segmentation with sparse transformers. arXiv preprint arXiv:2207.02202, 2022.
  • [35] L. V. Maaten, G. Hinton. Visualizing data using t-SNE. Journal of Machine Learning Research. 2008;9(Nov):2579-605.