Skip to main content
QUICK REVIEW

[Paper Review] ChatGPT may Pass the Bar Exam soon, but has a Long Way to Go for the LexGLUE benchmark

Ilias Chalkidis|arXiv (Cornell University)|Mar 9, 2023
Topic ModelingComputer Science3 citations
TL;DR

This paper evaluates OpenAI's GPT-3.5-turbo (ChatGPT) on the LexGLUE benchmark in a zero-shot setting using templated instruction-following prompts. Despite achieving an average micro-F1 score of 49.0%, significantly above random guessing, the model underperforms substantially compared to fine-tuned models, with peak performance of 70.1% on LEDGAR and 62.8% on ECtHR B, indicating limited generalization in legal text classification without fine-tuning.

ABSTRACT

Following the hype around OpenAI's ChatGPT conversational agent, the last straw in the recent development of Large Language Models (LLMs) that demonstrate emergent unprecedented zero-shot capabilities, we audit the latest OpenAI's GPT-3.5 model, `gpt-3.5-turbo', the first available ChatGPT model, in the LexGLUE benchmark in a zero-shot fashion providing examples in a templated instruction-following format. The results indicate that ChatGPT achieves an average micro-F1 score of 47.6% across LexGLUE tasks, surpassing the baseline guessing rates. Notably, the model performs exceptionally well in some datasets, achieving micro-F1 scores of 62.8% and 70.2% in the ECtHR B and LEDGAR datasets, respectively. The code base and model predictions are available for review on https://github.com/coastalcph/zeroshot_lexglue.

Motivation & Objective

  • To evaluate the zero-shot performance of GPT-3.5-turbo (ChatGPT) on legal text classification tasks from the LexGLUE benchmark.
  • To assess whether ChatGPT's emergent capabilities extend to legal NLU beyond question-answering, particularly in structured classification.
  • To compare zero-shot and few-shot performance across diverse legal text classification datasets with varying label set sizes.
  • To investigate the impact of prompt templating and few-shot demonstrations on model performance in legal text understanding.
  • To determine whether zero-shot LLMs like ChatGPT can serve as viable alternatives to fine-tuned models in production legal NLP applications.

Proposed method

  • The study uses the GPT-3.5-turbo model (v. March 2023) in a zero-shot setting, prompting it with dataset-specific instruction templates that frame input documents, classification questions, and label options.
  • Each test example is converted into a prompt using a templated instruction-following format, where the input document, question, and available labels are structured for model comprehension.
  • A subset of 1,000 test examples per dataset is used to limit computational cost, with total inference cost under $50 using the model's $0.002 per 1,000 tokens rate.
  • Performance is evaluated using micro-F1 scores across seven LexGLUE datasets: ECtHR A/B, SCOTUS, EURLEX, LEDGAR, UNFAIR-ToS, and CaseHOLD.
  • Few-shot prompting is tested with K=8 demonstrations, and performance is compared across different prompt templates and label set sizes.
  • The study uses a fixed temperature of 0 for deterministic outputs and does not tune hyperparameters or perform prompt engineering beyond template design.

Experimental results

Research questions

  • RQ1Can GPT-3.5-turbo achieve competitive performance on legal text classification tasks in a zero-shot setting without fine-tuning?
  • RQ2How does performance vary across different legal text classification datasets with varying label set sizes and document lengths?
  • RQ3Does few-shot prompting improve zero-shot performance, and under what conditions (e.g., small vs. large label sets)?
  • RQ4To what extent can prompt engineering, such as improved question framing and label descriptors, enhance model performance on LexGLUE?
  • RQ5How does the zero-shot performance of ChatGPT compare to fine-tuned models in legal text classification tasks?

Key findings

  • ChatGPT achieves an average micro-F1 score of 49.0% across all LexGLUE tasks in the zero-shot setting, significantly exceeding the 25% baseline for random guessing.
  • The model performs best on the LEDGAR dataset, achieving a micro-F1 score of 70.1%, and on ECtHR B, achieving 62.8%, indicating strong performance on specific legal classification tasks.
  • In the few-shot setting, performance improves substantially when the number of demonstrations (K=8) is close to the number of labels (L=9) in UNFAIR-ToS, but deteriorates when K << L, as in EURLEX and LEDGAR.
  • Performance degradation in large-label-set tasks (e.g., EURLEX, LEDGAR) is hypothesized to stem from label bias due to insufficient demonstration diversity.
  • Prompt engineering with improved templates leads to minor performance gains—e.g., from 62.8% to 64.0% micro-F1 on ECtHR B—but does not overcome the fundamental performance gap with fine-tuned models.
  • Despite strong performance on select datasets, ChatGPT’s zero-shot performance remains approximately 30 percentage points below state-of-the-art fine-tuned models, indicating it is not yet suitable for production use in legal text classification without fine-tuning.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.