Transformer堆栈中的上下文门控:协同特征调节以增强歌词分类与校准
Contextual Gating within the Transformer Stack: Synergistic Feature Modulation for Enhanced Lyrical Classification and Calibration
AI总结:
SFL Transformer通过在Transformer堆栈中引入上下文门控机制,有效融合结构和语义信息,提升了歌词分类的准确率和概率估计的可靠性。
摘要:
本研究通过将辅助结构特征直接整合到预训练Transformer的自注意力机制中,引入了特征融合在歌词内容分类中的重大架构进步。我提出了一种新的深度学习模型SFL Transformer,该模型利用上下文门控机制(中间SFL)来调节BERT编码器堆栈中的隐藏状态序列,而不是在最终输出层融合特征。这种方法利用低维结构线索(Fstruct)来调节深层、上下文化的语义特征(Hseq)。该模型应用于一个具有挑战性的二元分类任务,该任务基于UMAP减少的歌词嵌入衍生而来。SFL Transformer在准确率方面达到0.9910,在宏F1分数方面达到0.9910,显著提高了之前发表的SFL模型(准确率0.9894)所建立的最先进水平。关键的是,这种上下文门控策略保持了极高的可靠性,具有极低的预期校准误差(ECE=0.0081)和对数损失(0.0489)。这项工作验证了假设,即在堆栈中注入辅助上下文是协同结合结构和语义信息最有效的方法,从而创建了一个具有强大判别能力和高保真概率估计的模型。
英文摘要:
This study introduces a significant architectural advancement in feature fusion for lyrical content classification by integrating auxiliary structural features directly into the self-attention mechanism of a pre-trained Transformer. I propose the SFL Transformer, a novel deep learning model that utilizes a Contextual Gating mechanism (an Intermediate SFL) to modulate the sequence of hidden states within the BERT encoder stack, rather than fusing features at the final output layer. This approach modulates the deep, contextualized semantic features (Hseq) using low-dimensional structural cues (Fstruct). The model is applied to a challenging binary classification task derived from UMAP-reduced lyrical embeddings. The SFL Transformer achieved an Accuracy of 0.9910 and a Macro F1 score of 0.9910, significantly improving the state-of-the-art established by the previously published SFL model (Accuracy 0.9894). Crucially, this Contextual Gating strategy maintained exceptional reliability, with a low Expected Calibration Error (ECE = 0.0081) and Log Loss (0.0489). This work validates the hypothesis that injecting auxiliary context mid-stack is the most effective means of synergistically combining structural and semantic information, creating a model with both superior discriminative power and high-fidelity probability estimates.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。