TL;DR
Extracting precise job skills from text using LLMs often leads to messy span boundaries and hallucinations. This paper introduces SRICL, a framework combining Supervised Fine-Tuning (SFT), Multi-Source Retrieval-Augmented Generation (RAG), and In-Context Learning (ICL) with a deterministic verifier to ensure strict, legally formatted skill span extraction (BIO tagging) across diverse domains and languages.
What Problem Does This Paper Address?
Automated job skill extraction from job advertisements is crucial for labor-market analytics, recruitment matching, and resume recommendation systems. It is typically framed as a named entity recognition (NER) task using BIO (Beginning, Inside, Outside) tagging to mark the exact spans of text representing a skill.
While Large Language Models (LLMs) lower the barrier to entry for information extraction via prompting, deploying them at scale for skill extraction introduces major hurdles:
- Boundary Drift: LLMs struggle with exact token alignment, often cutting off multi-word skills or including irrelevant adjacent words.
- Hallucinations: Generative models frequently invent skills not present in the source text.
- Syntax Violations: LLMs often output illegal BIO tag sequences (e.g., placing an "Inside" tag immediately after an "Outside" tag).
Traditional supervised models (like BiLSTM-CRFs) are robust in-domain but label-hungry and brittle under domain or language shifts. The authors bridge this gap by making generative LLMs reliable and controllable sequence labelers.
Methods
The authors propose SRICL (SFT + RAG + ICL), a multi-module framework structured as follows:
- SFT with Span Anchoring: Instead of relying purely on few-shot prompting, they fine-tune an open-source backbone (Qwen2.5-14B via LoRA). They convert BIO labels into anchored text targets by bracketing gold spans with
@@...##. Training includes span-balanced sampling and hard negatives (sentences with no skills) to stabilize formatting. - Multi-Source Retrieval (RAG): For any input sentence, the system queries a dense index across three distinct sources:
- RAG-1: In-domain annotated sentences for phrase/boundary style matching.
- RAG-2: Authoritative definitions from standard taxonomies (like ESCO) for sense disambiguation.
- RAG-3: Near-neighbor hard cases across sectors/languages to handle domain shift.
- In-Context Learning (ICL) & BIO-only Decoding: The prompt explicitly defines a strict system persona ("skill-span extractor"), boundary rules, and the output contract, constraining the LLM's decoding space strictly to valid BIO tags.
- Verification and Targeted Retry: A lightweight, deterministic post-hoc checker validates BIO legality. If a violation or hallucination is detected, the system re-prompts the model with targeted hints within a small retry budget ($K \in \{1, 3\}$).
Datasets
The framework was evaluated on six public, span-labeled job advertisement corpora spanning multiple languages and industries:
- SkillSpan (English)
- Kompetencer (Danish)
- Sayfullina (Russian/English mix)
- Gnehm (German)
- Green (Ecological/Environmental domain)
- FIJO (Japanese)
Key Insights and Ideas
- SFT is the Primary Driver of Precision: As shown in the ablation studies, removing SFT causes the most drastic drop in performance (especially on datasets with long, multi-word skills like SkillSpan). SFT is what teaches the LLM to respect strict token boundaries.
- The RAG Precision-Recall Trade-off: Introducing RAG consistently boosts recall and helps the model navigate domain shifts and noisy text. However, it can occasionally introduce a slight penalty to precision if the retrieved context confuses the span boundaries.
- Taxonomy as a Regularizer: Incorporating external authoritative definitions (ESCO) acts as an effective anchor, helping the model ground its understanding of technical jargon without requiring massive, domain-specific retraining.
Key Results
- State-of-the-Art Open-Source Performance: SRICL (built on Qwen2.5-14B) achieved an average STRICT-F1 score of 41.51% across all six datasets, significantly outperforming strong GPT-3.5 prompting baselines (which averaged 30.55%).
- On the SkillSpan dataset, SRICL achieved 54.59% F1, compared to just 13.70% for the GPT-3.5 baseline with identical retrieval context.
- Balanced Multi-Metric Profile: As visualized in the radar chart below, the full SRICL configuration maintains a highly balanced performance profile across both sequence-level (SeqEval) and skill-level metrics compared to its ablated counterparts.
Limitations and Future Work
- Inference Latency: Relying on multi-source retrieval and potential post-hoc retries increases computational overhead, making real-time production deployment a challenge.
- Cross-Lingual Gaps: While SRICL handles multi-lingual datasets well, it still occasionally falls short of heavily optimized, monolingual encoder models (like JobBERT) on highly specialized datasets.
- Future Directions: The authors suggest exploring ways to bake the deterministic verification rules directly into the LLM's decoding logit-biases, eliminating the need for post-hoc retry loops entirely.
Summary updated