[论文解读] Large Language Models in the Workplace: A Case Study on Prompt Engineering for Job Type Classification
在毕业生岗位分类任务中,零-shot 的 GPT-3.5-turbo 配合精心设计的提示超过了有监督模型,且提示工程对性能有重大影响。
This case study investigates the task of job classification in a real-world setting, where the goal is to determine whether an English-language job posting is appropriate for a graduate or entry-level position. We explore multiple approaches to text classification, including supervised approaches such as traditional models like Support Vector Machines (SVMs) and state-of-the-art deep learning methods such as DeBERTa. We compare them with Large Language Models (LLMs) used in both few-shot and zero-shot classification settings. To accomplish this task, we employ prompt engineering, a technique that involves designing prompts to guide the LLMs towards the desired output. Specifically, we evaluate the performance of two commercially available state-of-the-art GPT-3.5-based language models, text-davinci-003 and gpt-3.5-turbo. We also conduct a detailed analysis of the impact of different aspects of prompt engineering on the model's performance. Our results show that, with a well-designed prompt, a zero-shot gpt-3.5-turbo classifier outperforms all other models, achieving a 6% increase in Precision@95% Recall compared to the best supervised approach. Furthermore, we observe that the wording of the prompt is a critical factor in eliciting the appropriate "reasoning" in the model, and that seemingly minor aspects of the prompt significantly affect the model's performance.
研究动机与目标
- 推动对招聘信息的自动筛选,以辨识适合毕业生的岗位。
- 将传统的有监督方法与大型语言模型(LLMs)在毕业生与非毕业生二元分类任务中进行比较。
- 在真实场景中展示提示工程对LLM性能的影响。
提出的方法
- 评估基线关键词、SVM、ULMFiT和DeBERTa-V3分类器。
- 评估基于GPT-3.5 的模型(text-davinci-002/003)和GPT-3.5-turbo 在零-shot 和少量-shot 设置下的表现。
- 应用多种提示工程技术(系统/用户提示、思维链、模板、命名、强化学习/强化提示)。
- 以 Precision@95%Recall 作为主要指标来衡量性能,并将 Recall 与 P@85%Recall 作为次要指标进行报告。
实验结果
研究问题
- RQ1在毕业生岗位分类任务中,LLMs 是否可以在 95% Recall 阈值下达到比传统有监督分类器更高的 Precision?
- RQ2不同的提示工程策略如何影响此任务中 LLM 的性能?
- RQ3提示设计相对于模型类型对下游分类性能的相对贡献是多少?
主要发现
- 在零-shot 下,使用精心设计的提示的 GPT-3.5-turbo 在 P@95%R 上优于所有其他模型,且 Recall 高达 97%。
- 最好的有监督模型(DeBERTa-V3)达到 79.7 P@95%R 和 83.2 P@85%R,但在 P@95%R 上落后于GPT-3.5-turbo。
- 提示工程具有很大影响,最终提示达到 91.7 的 F1 和 97% 召回率,而基线提示为 65.6 F1 和 70.6 召回率。
- 添加系统/用户指令、模拟对话和强化学习可带来显著提升,而模板约束(严格/宽松)影响模板黏性和性能。
- 在这项任务中,少-shot 的思维链提示的表现不如零-shot 提示,表明示例可能比必要的更容易偏向模型。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。