Skip to main content
QUICK REVIEW

[Paper Review] Sensitivity and Robustness of Large Language Models to Prompt Template in Japanese Text Classification Tasks

Chengguang Gan, Tatsunori Mori|arXiv (Cornell University)|May 15, 2023
Topic ModelingComputer Science5 citations
TL;DR

This paper investigates the sensitivity and robustness of large language models (LLMs) to prompt template variations in Japanese text classification tasks. Using a Japanese benchmark dataset, it reveals that minor structural changes in prompts cause drastic accuracy drops—e.g., GPT-4’s performance fell from 49.21% to 25.44%—highlighting instability in even state-of-the-art models, and calls for improved robustness in low-resource language settings.

ABSTRACT

Prompt engineering relevance research has seen a notable surge in recent years, primarily driven by advancements in pre-trained language models and large language models. However, a critical issue has been identified within this domain: the inadequate of sensitivity and robustness of these models towards Prompt Templates, particularly in lesser-studied languages such as Japanese. This paper explores this issue through a comprehensive evaluation of several representative Large Language Models (LLMs) and a widely-utilized pre-trained model(PLM). These models are scrutinized using a benchmark dataset in Japanese, with the aim to assess and analyze the performance of the current multilingual models in this context. Our experimental results reveal startling discrepancies. A simple modification in the sentence structure of the Prompt Template led to a drastic drop in the accuracy of GPT-4 from 49.21 to 25.44. This observation underscores the fact that even the highly performance GPT-4 model encounters significant stability issues when dealing with diverse Japanese prompt templates, rendering the consistency of the model's output results questionable. In light of these findings, we conclude by proposing potential research trajectories to further enhance the development and performance of Large Language Models in their current stage.

Motivation & Objective

  • To evaluate the robustness and sensitivity of LLMs to variations in prompt templates for Japanese text classification.
  • To identify whether minor syntactic changes in prompts significantly affect model performance in low-resource languages like Japanese.
  • To assess the effectiveness of instruction-based prompting versus standard prompt templates in Japanese NLP tasks.
  • To explore the impact of fine-tuning with multilingual corpora (e.g., Chinese-Japanese) on LLM performance and stability in Japanese.
  • To provide actionable insights for improving LLM reliability and consistency in non-English, low-resource language settings.

Proposed method

  • Evaluation of multiple LLMs (GPT-4, GPT-3.5-Turbo, LLaMA-7B/13B, T5, and LLaMA-7B-LoRA) on a Japanese text classification benchmark dataset.
  • Application of multiple semantically similar but structurally different prompt templates to the same model and task to measure performance variance.
  • Use of box-plot visualization to analyze the distribution of accuracy scores across different prompt templates, highlighting volatility and outliers.
  • Training of LLaMA-7B-LoRA with a Japanese-Chinese fine-tuning corpus to assess the impact of multilingual pre-training on performance and stability.
  • Manual analysis of generated outputs to assess contextual understanding and generation quality, especially for smaller models like T5.
  • Comparison of model outputs across different prompt templates to identify patterns in sensitivity and response consistency.

Experimental results

Research questions

  • RQ1How does the performance of LLMs vary when prompted with structurally different but semantically similar templates in Japanese text classification?
  • RQ2To what extent do minor syntactic changes in prompt templates affect the accuracy and stability of state-of-the-art LLMs in Japanese?
  • RQ3Can instruction-based prompting improve robustness compared to standard prompt templates in low-resource language settings?
  • RQ4Does fine-tuning with multilingual corpora (e.g., Chinese-Japanese) enhance the robustness and performance of LLMs in Japanese text classification?
  • RQ5How do smaller models like T5 compare to larger LLMs in understanding and responding to Japanese prompts with varying structures?

Key findings

  • A simple change in prompt structure reduced GPT-4’s accuracy from 49.21% to 25.44%, indicating high sensitivity to template design.
  • LLaMA-7B-LoRA achieved performance parity with GPT models and even outperformed GPT-3.5-Turbo on the Japanese benchmark, demonstrating effectiveness of multilingual fine-tuning.
  • The GPT series showed a significantly larger interquartile range in accuracy across templates, indicating poor robustness and high sensitivity to prompt variations.
  • T5 failed to understand the intent of the prompt and instead repeated the text after 'Answer:', indicating poor contextual comprehension.
  • LLaMA-13B and LLaMA-7B generated meaningful responses in Japanese despite lacking native Japanese support, though occasional out-of-vocabulary tokens appeared.
  • GPT-4 produced more format-compliant responses than GPT-3.5-Turbo, which generated more conversational-style outputs, suggesting differences in instruction-following behavior.

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.