Looking Right is Sometimes Right: Investigating the Capabilities of Decoder-only LLMs for Sequence Labeling
David Duki\'c, Jan \v{S}najder

TL;DR
This paper investigates how removing causal masking layer-wise during fine-tuning can significantly improve decoder-only LLMs' performance on sequence labeling tasks, surpassing traditional MLM-based encoders.
Contribution
The study introduces a layer-wise causal mask removal technique during fine-tuning, enhancing decoder-only LLMs' sequence labeling capabilities beyond existing methods.
Findings
Layer-wise causal mask removal improves SL performance.
Open LLMs outperform MLM-based encoders with this technique.
Technique matches or exceeds state-of-the-art SL models.
Abstract
Pre-trained language models based on masked language modeling (MLM) excel in natural language understanding (NLU) tasks. While fine-tuned MLM-based encoders consistently outperform causal language modeling decoders of comparable size, recent decoder-only large language models (LLMs) perform on par with smaller MLM-based encoders. Although their performance improves with scale, LLMs fall short of achieving state-of-the-art results in information extraction (IE) tasks, many of which are formulated as sequence labeling (SL). We hypothesize that LLMs' poor SL performance stems from causal masking, which prevents the model from attending to tokens on the right of the current token. Yet, how exactly and to what extent LLMs' performance on SL can be improved remains unclear. We explore techniques for improving the SL performance of open LLMs on IE tasks by applying layer-wise removal of the…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
Taxonomy
TopicsTopic Modeling · Natural Language Processing Techniques · Speech Recognition and Synthesis
