利用物理注意力偏置预测电缆动力学

·

研究论文 · 2026/10/10

学习到的可变形线性物体(如线缆)模拟器必须预测未训练过的线缆运动,并在长时间展开中保持稳定。其大部分误差发生在缆线自接触或与地面接触处。对所有缆线段对进行注意力计算可以表示沿长度方向相距较远的缆线部分之间的接触,但注意力没有几何概念。缆线有两种成对距离,仅在伸直时一致:沿缆线的弧长距离(支配弹性力)和空间中的欧几里得距离(支配接触)。我们添加了物理注意力偏置,即在注意力logits上添加一个带有学习速率的加性项,并探究应使用哪种距离。我们在不相交的注意力头上比较了无偏置、单独使用每种距离以及同时使用两种距离,保持模型其余部分和训练协议不变。物理偏置提高了对未见缆线的预测。当注意力是连接远距离线段的唯一机制时,增益最大:此时弧长偏置将预测误差降低15%,并将线段长度漂移减少一半以上。单独使用欧几里得偏置与无偏置注意力接近,而在每个报告的指标上,将两种距离分配到不同注意力头表现最佳或接近最佳。代码和每次运行记录:https://github.com/avihaig/dlogps。

该研究通过引入物理注意力偏置,显著提升了线缆动力学预测的准确性和长期稳定性,为可变形线性物体的模拟提供了新思路,且代码开源,便于复现和进一步研究。

Learned simulators for deformable linear objects (DLOs) such as cables have to predict the motion of cables they were not trained on and stay stable over long rollouts. Most of their error occurs where the cable touches itself or the floor. Attention over all pairs of cable segments can represent contact between parts of the cable that are far apart along its length, but attention has no notion of geometry. A cable has two pairwise distances, which agree only while it is straight: the arc-length distance along the cable, which governs elastic forces, and the Euclidean distance in space, which governs contact. We add a physical attention bias, an additive term on the attention logits with a learned rate, and ask which distance it should use. We compare no bias, each distance alone, and both distances on disjoint sets of heads, keeping the rest of the model and the training protocol fixed. A physical bias improves prediction on unseen cables. The gain is largest when attention is the only mechanism that connects distant segments: there, the arc-length bias reduces prediction error by 15% and more than halves the drift in segment length. The Euclidean bias alone stays close to unbiased attention, while assigning both distances across heads is best or near-best on every metric we report. Code and per-run records: https://github.com/avihaig/dlogps.

阅读原文

参与讨论