<p>Fine-grained sentiment classification in highly specialized domains poses fundamental algorithmic challenges, as general-purpose pre-trained language models assign uniform prior weights to all input tokens and lack structured mechanisms for disentangling aspect-level representations. To resolve these limitations, this paper proposes a novel domain-adaptive Transformer architecture specifically designed for Chinese cultural heritage tourism review analysis, featuring two core algorithmic components. First, we introduce an asymmetric attention mechanism that injects a domain indicator bias directly into the pre-softmax score matrix. By augmenting the standard scaled dot-product <InlineEquation ID="IEq1"><EquationSource Format="TEX">\(QK^{\top }/\sqrt{d_{k}}\)</EquationSource><EquationSource Format="MATHML"><math><mrow><mi>Q</mi><msup><mi>K</mi><mi>⊤</mi></msup><mo stretchy="false">/</mo><msqrt><msub><mi>d</mi><mi>k</mi></msub></msqrt></mrow></math></EquationSource></InlineEquation> with an additive term <InlineEquation ID="IEq2"><EquationSource Format="TEX">\(\alpha \cdot \text {diag}(m) \cdot \textbf{1}^{\top }\)</EquationSource><EquationSource Format="MATHML"><math><mrow><mi>α</mi><mo>·</mo><mtext>diag</mtext><mrow><mo stretchy="false">(</mo><mi>m</mi><mo stretchy="false">)</mo></mrow><mo>·</mo><msup><mn mathvariant="bold">1</mn><mi>⊤</mi></msup></mrow></math></EquationSource></InlineEquation>, this mechanism breaks the token-symmetric attention prior in a principled manner without altering encoder depth or parameter count. Second, we design a parallel attention-pooling architecture that utilizes <i>K</i> independent learnable query vectors to compute soft alignment weights, producing disentangled aspect representation vectors. These modules are seamlessly integrated and jointly optimized under a multi-task cross-entropy objective, simultaneously supervising global polarity and <i>K</i>-way aspect-level predictions. The six aspect dimensions—historical authenticity, cultural experience, facility accessibility, service quality, price perception, and environmental atmosphere—are grounded in the experience economy framework and validated through preliminary data analysis of the constructed corpus. Theoretical and empirical analyses demonstrate that the proposed asymmetric bias provides an interpretable relevance signal, and the joint architecture significantly outperforms strong baselines across multiple evaluation metrics, proving the necessity of each structural design decision.</p>

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

A dual-branch transformer architecture via asymmetric keyword prior and parallel attention pooling for fine-grained sentiment analysis

  • Nana Xie,
  • Xin Liu,
  • Dongmei Zhang,
  • Peijie Ye,
  • Xinke Du

摘要

Fine-grained sentiment classification in highly specialized domains poses fundamental algorithmic challenges, as general-purpose pre-trained language models assign uniform prior weights to all input tokens and lack structured mechanisms for disentangling aspect-level representations. To resolve these limitations, this paper proposes a novel domain-adaptive Transformer architecture specifically designed for Chinese cultural heritage tourism review analysis, featuring two core algorithmic components. First, we introduce an asymmetric attention mechanism that injects a domain indicator bias directly into the pre-softmax score matrix. By augmenting the standard scaled dot-product \(QK^{\top }/\sqrt{d_{k}}\)QK/dk with an additive term \(\alpha \cdot \text {diag}(m) \cdot \textbf{1}^{\top }\)α·diag(m)·1, this mechanism breaks the token-symmetric attention prior in a principled manner without altering encoder depth or parameter count. Second, we design a parallel attention-pooling architecture that utilizes K independent learnable query vectors to compute soft alignment weights, producing disentangled aspect representation vectors. These modules are seamlessly integrated and jointly optimized under a multi-task cross-entropy objective, simultaneously supervising global polarity and K-way aspect-level predictions. The six aspect dimensions—historical authenticity, cultural experience, facility accessibility, service quality, price perception, and environmental atmosphere—are grounded in the experience economy framework and validated through preliminary data analysis of the constructed corpus. Theoretical and empirical analyses demonstrate that the proposed asymmetric bias provides an interpretable relevance signal, and the joint architecture significantly outperforms strong baselines across multiple evaluation metrics, proving the necessity of each structural design decision.