Transformer结构优化在建筑能耗短期预测中的应用研究

Research on Transformer architecture optimization for short-term building energy consumption forecasting

  • 摘要: 建筑能耗短期预测的精度直接影响需求响应策略的实施效果与建筑节能系统的优化空间。Transformer模型 凭借自注意力机制,在捕获长时序依赖方面展现出独特优势,但其原生结构在应对建筑能耗数据的局部波动特性时 存在位置感知能力不足、计算开销过大等问题。针对上述问题,从结构优化视角出发,提出一种融合局部敏感位置 编码与分层稀疏注意力机制的改进Transformer架构。通过引入可学习的时间模式嵌入,增强模型对周期性特征的 感知能力,采用分段稀疏注意力降低计算复杂度,并聚焦关键时序片段。基于实测建筑能耗数据集开展对照实验, 结果表明,优化后的模型在预测精度与计算效率方面均显著优于标准Transformer、LSTM、CNN-LSTM等常用模 型,验证了所提优化策略的有效性。

     

    Abstract: The accuracy of short-term building energy consumption forecasting directly affects the effectiveness of demand response strategies and the optimization potential of building energy-saving systems. The Transformer model demonstrates unique advantages in capturing long-range temporal dependencies through its self-attention mechanism. However, its original architecture exhibits limitations when dealing with local fluctuations in building energy data, such as insufficient positional awareness and high computational cost. To address these issues, this study proposes an improved Transformer architecture from the perspective of structural optimization, integrating locally sensitive positional encoding and a hierarchical sparse attention mechanism. A learnable temporal pattern embedding is designed to enhance the model’s ability to capture periodic features, while segmented sparse attention is employed to reduce computational complexity and focus on critical temporal segments. Experimental results on real-world building energy datasets show that the optimized model significantly outperforms the standard Transformer as well as commonly used methods such as LSTM and CNN-LSTM in both prediction accuracy and computational efficiency, validating the effectiveness of the proposed optimization strategies.

     

/

返回文章
返回