Manuscript Offprint
arXiv:2610.18195Link Both Views: Cross-Image Routing Attention for Dual-Endpoint V2I Beam-Pair Power Prediction
Shiliang Lu, Graduate Student Member, IEEE, Lu Bai, Senior Member, IEEE, Ziwei Huang, Member, IEEE, and Xiang Cheng, Fellow, IEEE
Abstract—For sensing-aided communications, single-endpoint sensing offers only a partial view of propagation, motivating link-centric sensing across both endpoints. We propose cross-image routing attention (CIRA) for sparse association and mutual enhancement of propagation-relevant features from dual-endpoint RGB images. Building on CIRA, CiFormer predicts millimeter-wave (mmWave) beam-pair power matrices for vehicle-to-infrastructure (V2I) communications. Experiments show that CiFormer reduces mean absolute error and improves top-1 beam-pair selection accuracy by 3.15 percentage points over the strongest baseline. Visualizations and ablation studies support dual-endpoint sensing and selective cross-view interaction in capturing propagation-relevant dependencies, suggesting broader applications in wireless tasks beyond beam prediction.
Index Terms—Dual-endpoint sensing, link-centric sensing, cross-image routing attention, beam-pair power prediction, V2I communications.
I. INTRODUCTION
ARTIFICIAL INTELLIGENCE (AI) and machine learning (ML) are revolutionizing wireless network design, enabling more efficient, adaptive, and autonomous operation [1]. In the Internet of Vehicles (IoV), environment sensing further supports this evolution by providing observations of the propagation environment, offering new opportunities for informed and proactive decision-making [2]. However, leveraging high-dimensional environment observations for IoV communication system optimization is far from straightforward. This difficulty arises from the complex and dynamic relationship between environment observations and wireless propagation. Consequently, developing effective mechanisms to identify, represent, and exploit propagation-relevant sensing information remains a key challenge for environment-aware intelligent communications.
Most existing sensing-aided approaches rely on single-endpoint sensing, with sensors deployed at either the vehicle or the infrastructure endpoint [3], [4]. However, a single sensing endpoint captures only a partial view of the propagation environment due to its limited sensing coverage [5]. This limitation reveals a structural mismatch: a wireless link is inherently defined by two communication endpoints, i.e., the transmitter (Tx) and receiver (Rx), whereas single-endpoint sensing observes the propagation environment from only one side. Accordingly, this mismatch highlights the need to better align sensing with the two-endpoint structure of the wireless link, motivating a transition from endpoint-local sensing to link-centric sensing.
Nevertheless, effective characterization of the wireless link requires more than simply acquiring dual-endpoint observations. The two endpoint views are captured from distinct positions and orientations, resulting in substantial differences in perspective and semantic content. Given these differences, independently processing the two views or directly concatenating their features is insufficient to capture the link-relevant cross-view relationships [6]. Therefore, dual-endpoint sensing calls for an effective mechanism to identify and associate propagation-relevant information across the two views, jointly highlighting regions in both views associated with propagation paths that couple Tx-side departure and Rx-side arrival, rather than treating them as two independent observations. More broadly, capturing propagation-relevant relationships across the Tx and Rx views could support a range of tasks, including channel modeling, beam management, and resource allocation.
A representative link-centric task arises in millimeter-wave (mmWave) vehicle-to-infrastructure (V2I) communications. High mobility, dynamic blockage, and scattering can induce rapid channel fluctuations and consequently change the received powers of different beam pairs [7], [8]. A beam-pair power matrix (BPPM) characterizes the received powers across all candidate beam pairs, providing a more comprehensive description of the beam-domain link state than the strongest beam-pair index alone [8]. Accordingly, BPPM prediction depends jointly on the states of both endpoints and the propagation-relevant information of their surroundings. However, existing sensing-aided beam prediction approaches [3]–[5] predominantly exploit observations from only one side of the communication link, leaving link-relevant information across the two endpoint views insufficiently exploited.
To address these challenges, we develop CiFormer, a novel link-centric framework that captures propagation-relevant information through interactions between Tx- and Rx-side images. Then, this resulting joint representation is used for BPPM prediction. The main contributions and novelties are summarized as follows:
- A novel cross-image routing attention (CIRA) mechanism is proposed. Specifically designed for sensing-aided wireless communications, CIRA recasts visual attention from individual views to dual-endpoint views through a propagation-inspired coupling mechanism, making it the first attention mechanism to incorporate link-level dependencies into visual perception. Motivated by endpoint co-
Shiliang Lu and Lu Bai are with the Joint SDU-NTU Centre for Artificial Intelligence Research (C-FAIR), Shandong University, Jinan 250101, China. Shiliang Lu is also with the School of Software, Shandong University (e-mail: shiliang.lu@mail.sdu.edu.cn; lubai@sdu.edu.cn).
Ziwei Huang and Xiang Cheng are with the State Key Laboratory of Photonics and Communications, School of Electronics, Peking University, Beijing 100871, China (e-mail: ziweihuang@pku.edu.cn; xiangcheng@pku.edu.cn).
visibility, it links both views through sparse cross-view associations and potentially supports broader wireless environment-aware communication tasks.
- A link-centric BPPM prediction framework, CiFormer, is proposed. Through CIRA, Tx- and Rx-side visual features are enabled to interact and form mutually enhanced representations. The resulting joint propagation representation alleviates single-endpoint partial observability, improving power prediction across candidate beam pairs and enabling more reliable beam-pair selection.
To characterize the link in the beam domain, fixed discrete Fourier transform (DFT)-based codebooks with unit-norm codewords are employed at both endpoints [9]. Let and denote the Tx precoding and Rx combining codebooks, respectively, where and denote the numbers of Tx and Rx beams. The codebook beams cover different azimuth directions, with elevation steering fixed at broadside. Following [8], each beam pair has a power gain , and the complete BPPM is computed in matrix form as
Here, denotes the conjugate transpose, denotes the entrywise squared magnitude, and contains the dimensionless channel power gains for all candidate beam pairs. Its row index and column index correspond to the Rx and Tx beams, respectively. For a fixed transmit power, these gains are proportional to the received signal powers.
Given the endpoint-indexed image pair, the prediction target, i.e., the entire BPPM, is expressed in dB as , where ensures numerical stability, and the target matrix is . The prediction problem is formulated as learning the mapping
where denotes the learnable parameters and the input images retain their endpoint identities. Training uses paired endpoint images and their corresponding BPPM labels. H is used only to construct the labels and is not an input to the predictor. The predicted beam pair is selected as [8].
Overall, this formulation connects dual-endpoint visual observations with the power gains of all candidate beam pairs. The following section presents CiFormer for learning this mapping through propagation-relevant cross-view interactions.
III. PROPOSED METHOD
In this letter, we propose CiFormer, which couples propagation-relevant cross-view feature association with struc-

(a) Physical Motivation of Tx–Rx Co-visible Reflection

(b) Cross-image Routing Attention
Fig. 1. Illustration of the proposed cross-image routing attention. (a) Physical motivation of Tx–Rx co-visible reflection in wireless channels, where objects simultaneously visible from both views are more likely to contain scatterers that give rise to NLoS paths. (b) Cross-image routing attention, which enhances the modeling of potential reflection-related windows guided by the Tx–Rx co-visible propagation mechanism.
tured beam-pair power prediction. CIRA provides the underlying interaction mechanism, while the BPPM prediction head estimates beam-pair powers from the jointly enhanced endpoint features.
A. Cross-Image Routing Attention
The RGB images captured at both link ends provide visual semantics of the propagation environment. However, the Tx and Rx cameras observe the same physical scene from substantially different viewpoints, resulting in disparities in object appearance, scale, and occlusion. This challenge is further motivated by wireless channel propagation, where a single-bounce non-line-of-sight (NLoS) path requires a scattering region to be visible from both Tx and Rx, as illustrated in Fig. 1(a). Therefore, co-visible regions are more informative for characterizing such propagation, whereas dense attention computes interactions for all regions without accounting for their propagation relevance. Motivated by this observation, we propose CIRA, which establishes sparse cross-view interactions through a learnable top-k routing mechanism. As shown in Fig. 1(b), CIRA extends BiFormer's bi-level routing [10] to cross-image attention, where queries from one view are routed to the most relevant windows in the other view rather than within the same feature map. By focusing cross-view interaction on selected windows, CIRA reduces redundant computation while enhancing propagation-relevant feature association. Algorithm 1 summarizes the overall procedure.
Window partitioning and QKV projection. Given RGB features from two views , we first partition each into windows of size , yielding . Each window is then mapped to query, key, and value via learnable linear projection as
Note that are shared across both views to ensure a consistent embedding space. To reduce the cost of

Fig. 2. Overall architecture of CiFormer, with detailed structures of the CiFormer block on the left and the BPPM prediction head on the right.
Algorithm 1 Cross-Image Routing Attention
Input: Tx, Rx features
Output: Tx, Rx features
1: Partition into N windows
2: Shared QKV projection; downsample to
3: Obtain by average pooling
4: for do
5:
6:
7:
8:
9: for to N do
10:
11:
12:
13: end for
14:
15: end for
16: Return
subsequent attention, the key and value features are spatially downsampled via adaptive average pooling to tokens, with following [10], yielding .
Window-to-window cross-image routing. To capture the co-visible prior, we perform routing at the window level. Specifically, each window is summarized by average pooling over the spatial dimension to obtain window-level descriptors . A learnable projection is adopted to enhance their discriminability, after which the cross-view affinity is computed as
where , i.e., affinity score, quantifies the semantic similarity between two windows. For each window in view , the top- most relevant windows from view are retained, yielding a routing index set and routing weights via softmax, where and denote the query and routed key window indices, respectively. Then, a soft query gate modulates routing weights to suppress unreliable queries.
Semantic-aware bias. Without a shared geometric reference, conventional relative position biases offer limited benefit. Instead, we introduce a semantic-aware bias (SAB) that derives a pairwise additive term from the feature discrepancies between a query window and its routed key windows, formulated as
where are learnable linear projections, MLP denotes a multilayer perceptron, and provides the additive bias for the top-k routed windows.
Token-to-token cross-image attention. With the routing index set and weights from window-level routing, the downsampled KV tokens of the target window are gathered for efficient computation [10]. For the -th Tx window, can be given as
Then, the gathered tokens are re-weighted by the routing scores before being stacked as . The token-level cross-attention, augmented by the semantic-aware bias , is written as
where contains the query tokens in window of view . The reverse direction is computed symmetrically. Window outputs are merged into the spatial grid and augmented by local context enhancement following [10], a depthwise convolution over . Finally, a projection produces the fused output as
B. CiFormer Architecture and BPPM Prediction
Building on CIRA, CiFormer realizes (2) through a four-stage backbone and an azimuth-aware head that explicitly models beam-pair interactions.
Backbone architecture. As illustrated in Fig. 2, the backbone combines convolutional downsampling with stacked CIRA blocks for cross-view interaction. Each CIRA-based block comprises a depthwise convolution for implicit positional encoding, CIRA, and a two-layer MLP. Final projection convolutions produce the endpoint features , which retain spatial information for subsequent prediction.
BPPM prediction head. As illustrated in Fig. 2, the head first applies convolutional projection followed by azimuth-oriented pooling. Since the codebooks scan azimuth with fixed elevation, pooling aggregates features over height while preserving horizontal order. Specifically, the pooled feature at column w is computed as

Fig. 3. Bird's-eye view of the V2I simulation scenario, with endpoint locations, vehicle trajectories, BS orientations, and seven vehicle (Tx)–BS (Rx) links.
where is the projected feature, is a learned attention weight normalized over height, and controls the mixture. The pooled features are then embedded into a vector for each codebook beam at view .
To construct the BPPM, the head computes dot products between the two sets of beam vectors. Taking and following the BPPM row–column convention, the score for Rx beam and Tx beam is
where denotes the beam embedding dimension. Collecting all scores forms the BPPM . The resulting BPPM is refined by a residual branch comprising two convolutions with an intermediate GELU. CiFormer is trained end to end on standardized absolute-dB BPPM targets using a weighted Huber loss as
where is the Huber-type loss and is a mean-normalized weight derived from the ground-truth, thereby prioritizing the optimal beam pair during training.
Overall, CIRA provides a general mechanism for propagation-relevant cross-view interaction through reciprocal feature selection and enhancement. Building on this, CiFormer integrates CIRA with a dedicated BPPM prediction head to jointly exploit dual-endpoint observations and realize the BPPM prediction mapping in (2), as formulated in Section II.
IV. EXPERIMENTAL RESULTS
A. Simulation Setup
Following the aligned sensing–communication data-generation methodology in [11], we construct the Dual-endpoint Sensing Dataset for Beam-pair Power Prediction (DuSen-BP ). As illustrated in Fig. 3, DuSen-BP is generated in a V2I environment comprising six vehicles and five BSs, which form 7 communication links. The carrier frequency is 28 GHz, and each endpoint uses a uniform planar array (UPA) and a seven-beam codebook. Each sample pairs dual-endpoint RGB images with the corresponding BPPM computed via (1). Finally, DuSen-BP comprises 6,965 valid samples, which are split into training, validation, and test sets in a 7:1:2 ratio.
TABLE I COMPARISON OF BPPM PREDICTION PERFORMANCE
| Model | Params. (M) | RMSE (dB) | MAE (dB) | Acc@1 (%) | Acc@3 (%) | Mean BF loss (dB) |
|---|---|---|---|---|---|---|
| ViT | 10.995 | 6.318 | 4.143 | 68.25 | 91.81 | 0.943 |
| MobileNetV4 | 14.950 | 6.553 | 4.156 | 68.39 | 91.16 | 0.924 |
| MambaOut | 11.831 | 6.014 | 3.864 | 69.26 | 93.03 | 0.658 |
| CiFormer | 10.986 | 5.810 | 3.638 | 72.41 | 94.68 | 0.641 |
RGB inputs are resized to . The four-stage backbone has depths (2, 2, 8, 2), where the first three stages use CIRA with routing top- values (4, 8, 12), and the fourth adopts self-attention to refine the features. CiFormer is trained with AdamW for 150 epochs using a batch size of 64, a learning rate of , and weight decay of . The learning rate uses a five-epoch linear warm-up followed by cosine decay. For comparison, three representative vision backbones, i.e., Vision Transformer (ViT), MobileNetV4, and MambaOut, are adopted as baselines. BPPM prediction is evaluated using root mean squared error (RMSE) and mean absolute error (MAE) in dB. For the optimal beam-pair index and the predicted top- beam-pair index set of sample , beam-pair selection is evaluated using top- accuracy (Acc@, %) and beamforming (BF) loss (dB), defined as
where is the number of evaluation samples and is an indicator. Here we report Acc@1, Acc@3, and mean BF loss.
B. Simulation Results
Table I compares CiFormer with the three baseline backbones on DuSen-BP . It can be seen that CiFormer achieves lower RMSE, MAE, and mean BF loss and higher Acc@1 and Acc@3 than all three baselines. Relative to MambaOut, the strongest baseline, RMSE and MAE decrease by 3.39% and 5.85%, respectively. CiFormer's Acc@1 and Acc@3 reach 72.41% and 94.68%, exceeding MambaOut by 3.15 and 1.65 percentage points, respectively. CiFormer achieves these gains with a parameter count comparable to ViT and lower than the other baselines. ViT's global self-attention, MobileNetV4's spatial and channel mixing, and MambaOut's gated convolutions extract intra-view context, leaving cross-endpoint association to later feature fusion. CIRA instead uses opposite-view information to guide feature selection and enhancement, better aligning visual representations with the coupled Tx–Rx structure of beam-pair powers.
This interpretation is further supported by the Grad-CAM [12] visualizations in Fig. 4. CiFormer highlights co-visible buildings and roadside tree clusters in both endpoint

RGB inputs
CiFormer
ViT
MobileNetV4
MambaOut
Fig. 4. Grad-CAM visualizations of CiFormer, ViT, MobileNetV4, and MambaOut. CiFormer's activation maps emphasize the building and roadside trees in both views, whereas those of the baselines exhibit weaker cross-view correspondence.
TABLE II ABLATION STUDY OF DUAL-ENDPOINT INPUTS AND CIRA COMPONENTS
| Variant | RMSE (dB) | MAE (dB) | Acc@1 (%) | Acc@3 (%) | Mean BF loss (dB) |
|---|---|---|---|---|---|
| w/o Tx | 10.097 | 7.047 | 40.95 | 65.30 | 6.590 |
| w/o Rx | 12.344 | 6.867 | 54.96 | 73.56 | 4.414 |
| w/o Interaction | 6.001 | 3.740 | 70.98 | 93.89 | 0.723 |
| w/o top-k routing | 5.922 | 3.672 | 71.19 | 93.97 | 0.703 |
| w/o Gating | 5.827 | 3.678 | 71.19 | 93.53 | 0.756 |
| w/o SAB | 5.893 | 3.767 | 71.05 | 93.53 | 0.708 |
| Full CiFormer | 5.810 | 3.638 | 72.41 | 94.68 | 0.641 |
views, with more consistent activations than the baselines despite differences in image position and scale. ViT appears to rely on a few localized visual cues, as indicated by its isolated hotspots. MobileNetV4 also activates sky and road regions, suggesting distraction by backgrounds. MambaOut exhibits a broad, diffuse response in the Rx view. These paired activations suggest that CIRA encourages both endpoint representations to focus on shared scene content, providing qualitative support for its use of opposite-view information to guide feature selection and enhancement.
To further validate the effectiveness of CiFormer, an ablation study is also conducted. As shown in Table II, using only one endpoint image substantially degrades CiFormer's prediction and beam-selection performance. This degradation in both single-endpoint settings highlights the necessity of dual-endpoint sensing. In addition, RMSE increases more when the Rx view is removed, indicating greater sensitivity to the loss of receiver-side information. Disabling cross-view interaction degrades prediction and beam-selection performance, highlighting the importance of associating features across endpoints. Removing top-k routing turns CIRA into dense cross-view attention over all windows and reduces performance, suggesting that irrelevant background regions can interfere with propagation-relevant feature association. The degradation without gating or SAB supports their respective roles in suppressing unreliable queries and modeling semantic correspondence across viewpoints without a shared geometric reference. These results demonstrate the effectiveness of CiFormer's link-centric design, which combines dual-endpoint observations with selective cross-view association to improve BPPM prediction and beam-pair selection, suggesting its applicability to broader sensing-aided communication tasks.
V. CONCLUSION
In this letter, we proposed CIRA for selective association and enhancement of propagation-relevant features across dual-endpoint views. CiFormer applies CIRA to link-centric V2I BPPM prediction from paired RGB images. Experiments on DuSen-BP showed improved prediction and beam selection with fewer parameters. Grad-CAM and ablation results further supported dual-endpoint sensing and selective interaction. These results demonstrate the effectiveness of CIRA's design, suggesting its applicability to broader wireless communication tasks that rely on environment sensing.
REFERENCES
[1] X. Cheng et al., “Intelligent multi-modal sensing-communication integration: Synesthesia of Machines,” IEEE Commun. Surveys Tuts., vol. 26, no. 1, pp. 258–301, 1st Quart. 2024.
[2] L. Bai, Z. Huang, M. Sun, X. Cheng, and L. Cui, “Multi-modal intelligent channel modeling: A new modeling paradigm via Synesthesia of Machines,” IEEE Commun. Surveys Tuts., vol. 28, pp. 2612–2649, 2026.
[3] G. Charan, M. Alrabeiah, T. Osman, and A. Alkhateeb, “Camera based mmWave beam prediction: Towards multi-candidate real-world scenarios,” IEEE Trans. Veh. Technol., vol. 74, no. 4, pp. 5897–5913, Apr. 2025.
[4] W. Xu, F. Gao, X. Tao, J. Zhang, and A. Alkhateeb, “Computer vision aided mmWave beam alignment in V2X communications,” IEEE Trans. Wireless Commun., vol. 22, no. 4, pp. 2699–2714, Apr. 2023.
[5] B. Lin, F. Gao, Y. Zhang, C. Pan, and G. Liu, “Multi-camera views based beam searching and BS selection with reduced training overhead,” IEEE Trans. Commun., vol. 72, no. 5, pp. 2793–2805, May 2024.
[6] J. Zeng, C. Pan, H. Weng, R. Liu, H. Ren, and J. Wang, “A BEV-Fusion based framework for sequential multi-modal beam prediction in mmWave systems,” arXiv:2604.05668, 2026.
[7] J. Tan et al., “Beam alignment in mmWave V2X communications: A survey,” IEEE Commun. Surveys Tuts., vol. 26, no. 3, pp. 1676–1709, 3rd Quart. 2024.
[8] Y. Wang, M. Narasimha, and R. W. Heath, “MmWave beam prediction with situational awareness: A machine learning approach,” in Proc. IEEE 19th Int. Workshop Signal Process. Adv. Wireless Commun. (SPAWC), 2018, pp. 1–5.
[9] D. Yang, L.-L. Yang, and L. Hanzo, “DFT-based beamforming weight-vector codebook design for spatially correlated channels in the unitary precoding aided multiuser downlink,” in Proc. IEEE Int. Conf. Commun. (ICC), 2010, pp. 1–5.
[10] L. Zhu, X. Wang, Z. Ke, W. Zhang, and R. W. H. Lau, “BiFormer: Vision transformer with bi-level routing attention,” in Proc. IEEE/CVF Conf. Comput. Vis. Pattern Recognit. (CVPR), Vancouver, Canada, 2023, pp. 10323–10333.
[11] X. Cheng et al., “SynthSoM: A synthetic intelligent multi-modal sensing-communication dataset for Synesthesia of Machines (SoM),” Sci. Data, vol. 12, May 2025, Art. no. 819.
[12] R. R. Selvaraju, M. Cogswell, A. Das, R. Vedantam, D. Parikh, and D. Batra, “Grad-CAM: Visual explanations from deep networks via gradient-based localization,” in Proc. IEEE Int. Conf. Comput. Vis. (ICCV), 2017, pp. 618–626.