[Paper Review] Can GPT-4 Support Analysis of Textual Data in Tasks Requiring Highly Specialized Domain Expertise?
GPT-4, when prompted with annotation guidelines, performs on par with well-trained law student annotators for legal sentence analysis and can batch-predict at lower cost, though chain-of-thought prompts offer limited benefit and model brittleness is a concern.
We evaluated the capability of generative pre-trained transformers~(GPT-4) in analysis of textual data in tasks that require highly specialized domain expertise. Specifically, we focused on the task of analyzing court opinions to interpret legal concepts. We found that GPT-4, prompted with annotation guidelines, performs on par with well-trained law student annotators. We observed that, with a relatively minor decrease in performance, GPT-4 can perform batch predictions leading to significant cost reductions. However, employing chain-of-thought prompting did not lead to noticeably improved performance on this task. Further, we demonstrated how to analyze GPT-4's predictions to identify and mitigate deficiencies in annotation guidelines, and subsequently improve the performance of the model. Finally, we observed that the model is quite brittle, as small formatting related changes in the prompt had a high impact on the predictions. These findings can be leveraged by researchers and practitioners who engage in semantic/pragmatic annotations of texts in the context of the tasks requiring highly specialized domain expertise.
Motivation & Objective
- Assess GPT-4's capability to analyze court opinions for legal concept interpretation against human annotators.
- Explore batch prediction as a cost-effective alternative to single-sentence evaluation.
- Evaluate whether chain-of-thought prompting improves accuracy in this specialized task.
- Investigate how annotation guideline changes affect GPT-4 performance and model robustness.
Proposed method
- Use GPT-4 with system prompts derived from annotation guidelines to perform sentence-level and batch labeling.
- Compare GPT-4 outputs to gold labels from a published dataset of court opinions and statutory interpretations.
- Experiment with single-label predictions versus batch predictions to assess cost and performance trade-offs.
- Test chain-of-thought prompting to see if explanations improve or degrade accuracy.
- Modify annotation guidelines to identify improvements in GPT-4 performance and assess robustness to prompt changes.

Experimental results
Research questions
- RQ1RQ1: How does GPT-4's annotation performance compare to human annotators on this specialized legal task?
- RQ2RQ2: Can GPT-4 effectively perform batch predictions without significant loss in accuracy?
- RQ3RQ3: Does requiring explanations (CoT prompting) improve GPT-4's predictions on this task?
- RQ4RQ4: How do modifications to annotation guidelines impact GPT-4's performance?
- RQ5RQ5: How robust are GPT-4 predictions to small prompt changes across experiments?
Key findings
- GPT-4's overall F1 is 0.53 when predicting single labels with original instructions, comparable to human law students on this dataset.
- Batch predictions yield an F1 of 0.52 with slightly lower performance than single-point predictions but at a substantially reduced cost.
- Prompting with explanations (CoT) does not improve performance under original guidelines and can degrade results, especially in batch settings.
- Refining annotation guidelines (prompt) improves single-label F1 to 0.57, and reduces certain mislabeling issues observed previously.
- Batch predictions with updated guidelines and explanations show mixed results, with some configurations preserving performance while others degrade it; robustness to prompt changes remains an issue.
- GPT-4's predictions are brittle: small prompt formatting changes can significantly affect outcomes.

Better researchstarts right now
From reading papers to final review, dramatically reduce your research time.
No credit card · Free plan available
This review was created by AI and reviewed by human editors.