arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.04752cs.LGcs.AI
收藏

多通道信号Transformer输入编码器的实证审计

An Empirical Audit of Input Encoders for Multi-Channel Signal Transformers

Anthropic

Ossi Lehtinen

AI总结:

通过合成基准和真实数据ETTh1,实证审计八种输入编码器,发现标准线性投影(nn.Linear(C, d_model))在大多数情况下与复杂替代方案性能相当,仅共享标量基线和通道独立基线显著落后。

摘要:

处理多通道标量信号的Transformer必须在每个时间步将$C$个同时值嵌入到一个$d_{ ext{model}}$维向量中。我们在一个设计为使通道身份信息丰富的合成基准和作为真实数据检查的ETTh1上,以下一步负对数似然(NLL)为指标,实证审计了八种输入编码器——包括共享标量基线、每通道线性投影、正交正则化器、非线性MLP主干、块分区拼接、通道独立和通道作为令牌架构,以及投影位置编码。主要结论是宽泛的“第一梯队”内实际近似等价:标准每通道线性投影(nn.Linear(C, $d_{ ext{model}}$))与该梯队中的每个替代方案相比,差异在统计上显著但实际中很小。两种编码器明显失败:共享标量基线(由于我们明确的信息论原因而崩溃)和通道独立的PatchTST风格基线(在两个基准上表现不佳,并在合成基准上普遍过拟合)。配对测试解决了两个小差距:通过学习的线性层投影正弦位置编码在小$C$时略胜一筹,直接几何探测表明其机制是位置-通道正交化;非线性MLP主干在我们测试的最大$C$时略胜一筹,但差距在更多训练数据下缩小。实际建议是默认使用nn.Linear(C, $d_{ ext{model}}$),仅当手头任务有实际理由时才采用更复杂的方案。重现本文所有实验的代码和数据可在https://github.com/OssiLehtinen/channel-encoder-audit获取。

英文摘要:

Transformers consuming multi-channel scalar signals must embed $C$ simultaneous values into one $d_{\text{model}}$-dimensional vector per time step. We audit eight input encoders -- a shared-scalar baseline, per-channel linear projections, an orthogonality regulariser, a nonlinear MLP, block-partitioned concatenation, channel-independent and channel-as-token architectures, and a projected positional encoding -- on a synthetic benchmark where channel identity is informative and on ETTh1, scored by next-step negative log-likelihood. The headline is practical near-equivalence within a wide "top tier": the standard per-channel linear projection matches every alternative up to small, statistically real but practically modest differences. A direct geometric probe attributes this to a spontaneous orthogonalisation of the per-channel projections: with no explicit regulariser they tighten well beyond the near-orthogonality of random initialisation, letting the standard linear recover channel identity from the summed embedding. Two encoders lose decisively: the shared-scalar baseline collapses for information-theoretic reasons we make explicit, and the channel-independent PatchTST-spirit baseline overfits universally on the synthetic benchmark and underperforms on both. Paired tests resolve two small gaps: projecting the sinusoidal positional encoding through a learned linear layer edges the rest at small $C$ by extending this orthogonality to the positional subspace; a nonlinear MLP stem edges them at the largest $C$, with the gap shrinking under more training data. The practical recommendation: use the standard per-channel linear projection by default; reach for something more elaborate only when the task calls for it.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑