对变压器模型和循环神经网络在路径依赖复合材料中的比较研究
A comparative study of transformer models and recurrent neural networks for path-dependent composite materials
AI总结:
本研究比较了变压器模型与循环神经网络在路径依赖复合材料建模中的性能,发现RNN在小数据集和外推任务中表现更优,而变压器模型在推理速度上更快。
摘要:
短纤维增强复合材料(SFRCs)的准确建模在全场模拟中仍然计算成本很高。数据驱动的替代模型使用人工神经网络(ANNs)已被提出,作为数值建模的高效替代方案,在路径依赖的多尺度建模中,循环神经网络(RNNs)越来越多地被用来预测代表性体积元素(RVE)的均质响应。然而,最近,变压器模型已被开发出来,它们提供了可扩展性和高效的并行化,但尚未在该领域系统地与RNNs进行比较。在本研究中,我们对训练有素的RNN和变压器模型进行系统比较,这些模型基于SFRC RVE的均质响应序列。我们研究了两种类型的超参数对的影响,即架构超参数(如GRU层的数量、隐藏大小、注意力头的数量和编码块的数量)和训练超参数(如学习率和批量大小)。这两组超参数均使用贝叶斯优化进行调整。然后我们分析了数据集大小和推理准确性在插值和外推领域中的缩放规律。结果表明,尽管在大数据集上,变压器模型在准确性上仍然具有竞争力,但RNNs在小数据集上表现更好,并且在外推性能上更优。此外,在外推情况下,存在明显差异,其中RNN保持准确,而变压器模型表现不佳。另一方面,变压器模型在推理方面快7倍,需要0.5毫秒每预测,而RNN模型需要3.5毫秒每预测。
英文摘要:
Accurate modeling of Short Fiber Reinforced Composites (SFRCs) remains computationally expensive for full-field simulations. Data-driven surrogate models using Artificial Neural Networks (ANNs) have been proposed as an efficient alternative to numerical modeling, where Recurrent Neural Networks (RNNs) are increasingly being used for path-dependent multiscale modeling by predicting the homogenized response of a Representative Volume Element (RVE). However, recently, transformer models have been developed and they offer scalability and efficient parallelization, yet have not been systematically compared with RNNs in this field. In this study, we perform a systematic comparison between RNNs and transformer models trained on sequences of homogenized response of SFRC RVEs. We study the effect on two types of hyperparameters, namely architectural hyperparameters (such as the number of GRU layers, hidden size, number of attention heads, and encoder blocks) and training hyperparameters (such as learning rate and batch size). Both sets of hyperparameters are tuned using Bayesian optimization. We then analyze scaling laws with respect to dataset size and inference accuracy in interpolation and extrapolation regimes. The results show that while transformer models remain competitive in terms of accuracy on large datasets, the RNNs demonstrate better accuracy on small datasets and show better extrapolation performance. Furthermore, under extrapolation, there is a clear difference, where the RNN remains accurate, while the transformer model performs poorly. On the other hand, the transformer model is 7 times faster at inference, requiring 0.5 ms per prediction compared to the 3.5 ms per prediction for the RNN model.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。