A heterogeneous dual-branch cross-attention transformer for engineering cost modeling

Heterogeneous engineering data contain categorical and numerical variables with distinct statistical properties and complex interactions, making direct concatenation suboptimal for regression. This study proposes a Cross-Attention Feature-aware Transformer (CAFT), a dual-branch architecture in which categorical features are embedded and encoded by a Pre-LayerNorm Transformer, while numerical features are converted into tokens and modeled by a residual multilayer perceptron. A cross-attention module allows numerical tokens to query categorical representations, followed by self-attention for interaction refinement. An improved particle swarm optimization algorithm tunes key hyperparameters independently within each cross-validation fold to prevent information leakage. For engineering cost prediction on 163 residential projects, leakage-free nested cross-validation (5 outer folds, 3 inner folds) yields an RMSE of 93.4 CNY/m2, MAE of 65.5 CNY/m2, R2of 0.927, and MAPE of 3.90%. CAFT achieves lower or comparable mean error than six tuned tree-based/kernel baselines and an FT-Transformer, although Holm-corrected paired tests do not show significance for every comparison. Ablation, sensitivity, and out-of-fold SHAP analyses further validate component contributions, robustness, and interpretability.

Authors

Institutions

Publication Details

Journal
Journal of Asian Architecture and Building Engineering
Published
2026-08-27
DOI
https://doi.org/10.1080/13467581.2026.2724206
Primary Topic
Machine Learning and Data Classification
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
article

A heterogeneous dual-branch cross-attention transformer for engineering cost modeling

Fengju Zhu, Nan Zhang, Chao Ye, Weizhou Xu et al.
Journal of Asian Architecture and Building Engineering
Machine Learning and Data Classification
article

A heterogeneous dual-branch cross-attention transformer for engineering cost modeling

Fengju Zhu, Nan Zhang, Chao Ye, Weizhou Xu, Yang Luan, Bo Wang, Ruiwu Wang
article en

Abstract

Heterogeneous engineering data contain categorical and numerical variables with distinct statistical properties and complex interactions, making direct concatenation suboptimal for regression. This study proposes a Cross-Attention Feature-aware Transformer (CAFT), a dual-branch architecture in which categorical features are embedded and encoded by a Pre-LayerNorm Transformer, while numerical features are converted into tokens and modeled by a residual multilayer perceptron. A cross-attention module allows numerical tokens to query categorical representations, followed by self-attention for interaction refinement. An improved particle swarm optimization algorithm tunes key hyperparameters independently within each cross-validation fold to prevent information leakage. For engineering cost prediction on 163 residential projects, leakage-free nested cross-validation (5 outer folds, 3 inner folds) yields an RMSE of 93.4 CNY/m2, MAE of 65.5 CNY/m2, R2of 0.927, and MAPE of 3.90%. CAFT achieves lower or comparable mean error than six tuned tree-based/kernel baselines and an FT-Transformer, although Holm-corrected paired tests do not show significance for every comparison. Ablation, sensitivity, and out-of-fold SHAP analyses further validate component contributions, robustness, and interpretability.

Journal of Asian Architecture and Building Engineering
State Grid Corporation of China (China) (CN), Shanghai Electric (China) (CN)
Science and Technology Project of State Grid, State Grid Jiangsu Electric Power
Industry, innovation and infrastructure
Openalex Percentile: Top 8%
Machine Learning and Data Classification
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.