计算机科学
嵌入
职位(财务)
自然(考古学)
自然语言
自然语言处理
人工智能
地质学
财务
古生物学
经济
标识
DOI:10.1109/iceib61477.2024.10602658
摘要
The role of positional embeddings in various transformer-based language models was investigated, focusing on text generation and sentiment analysis. The primary issue addressed is whether different types of positional embeddings (Attention with Linear Biases (AliBo), Rotary Position Embeddings (RoPE), Sinusoidal, and No Positional Embeddings (NoPos)) impact performance in these tasks. Four types of positional embeddings were compared to evaluate their effectiveness in text generation and sentiment analysis. The analysis was conducted to identify which embeddings are most effective and provide insights for designing more efficient and task-specific Transformer models. ALiBi embeddings outperformed other types in text generation by effectively capturing sequential dependencies. In sentiment analysis, RoPE, and NoPos embeddings exhibited similar performance, indicating that the contextual relationships inherent in attention mechanisms were sufficient without complex positional encodings. These findings highlight the varying necessity and impact of positional embeddings across tasks, offering valuable guidance for the development of more efficient and task-specific Transformer models.
科研通智能强力驱动
Strongly Powered by AbleSci AI