Skip to main content
QUICK REVIEW

[Paper Review] Analogy Generation by Prompting Large Language Models: A Case Study of InstructGPT

Bhavya Bhavya, Jinjun Xiong|arXiv (Cornell University)|Oct 9, 2022
Topic ModelingComputer Science5 citations
TL;DR

This paper proposes prompting InstructGPT to generate analogies for conceptual and explanatory tasks, demonstrating that precise imperative prompts with low temperature yield the most effective results. The largest InstructGPT model achieves human-level performance on analogous concept generation, though explanation generation remains challenging, highlighting the model's sensitivity to prompt design and size-dependent performance.

ABSTRACT

We propose a novel application of prompting Pre-trained Language Models (PLMs) to generate analogies and study how to design effective prompts for two task settings: generating a source concept analogous to a given target concept (aka Analogous Concept Generation or ACG), and generating an explanation of the similarity between a given pair of target concept and source concept (aka Analogous Explanation Generation or AEG). We found that it is feasible to prompt InstructGPT to generate meaningful analogies and the best prompts tend to be precise imperative statements especially with a low temperature setting. We also systematically analyzed the sensitivity of the InstructGPT model to prompt design, temperature, and injected spelling errors, and found that the model is particularly sensitive to certain variations (e.g., questions vs. imperative statements). Further, we conducted human evaluation on 1.4k of the generated analogies and found that the quality of generations varies substantially by model size. The largest InstructGPT model can achieve human-level performance at generating meaningful analogies for a given target while there is still room for improvement on the AEG task.

Motivation & Objective

  • To investigate the feasibility of using large language models like InstructGPT to generate meaningful analogies for conceptual and explanatory tasks.
  • To examine how prompt design, temperature hyperparameters, and spelling errors affect analogy generation quality.
  • To evaluate the impact of model size on the quality of generated analogies through automated and human evaluation.
  • To establish a benchmark for analogy generation in the science domain using human-annotated reference data.

Proposed method

  • The study employs InstructGPT models of varying sizes (0.3B to 175B parameters) to generate analogies using carefully designed textual prompts.
  • Two tasks are defined: Analogous Concept Generation (acg), where a source concept is generated for a given target, and Analogous Explanation Generation (aeg), where an explanation of similarity is produced.
  • Prompts are systematically varied in form—such as imperative statements versus questions—and tested under different temperature settings to assess sensitivity.
  • Spelling errors are injected into prompts to evaluate robustness, and outputs are compared against a manually curated reference dataset of 100 science analogies.
  • Human evaluation is conducted on 1,400 generated analogies to assess quality, with inter-annotator agreement measured via Cohen’s kappa.
  • Automated evaluation uses BLEU and ROUGE scores to compare generated outputs against reference texts.

Experimental results

Research questions

  • RQ1RQ1: How effective is InstructGPT in generating meaningful analogies across different prompt designs and temperature settings?
  • RQ2RQ2: How sensitive is InstructGPT to variations in prompt style, temperature, and spelling errors?
  • RQ3RQ3: How does model size influence the quality of generated analogies in both acg and aeg tasks?

Key findings

  • The largest InstructGPT model (175B parameters) achieved human-level performance on the Analogous Concept Generation (acg) task, with 70.05% of generated analogies rated as meaningful in human evaluation.
  • Precise imperative prompts with low temperature settings produced the highest-quality analogies, outperforming question-based prompts, which led to inconsistent or less relevant outputs.
  • The model showed high sensitivity to prompt design, with imperative statements yielding significantly better results than interrogative forms.
  • Smaller models (e.g., 0.3B) performed poorly, with only 1.90% of outputs rated as meaningful in the acg task, indicating strong dependence on model scale.
  • The aeg task proved more challenging: even the largest model achieved only 53.79% meaningful explanation rate, suggesting it remains a strong test for analogical reasoning in LMs.
  • Human evaluation revealed inter-annotator agreement with kappa scores between 0.3 and 0.5, indicating moderate reliability, and the authors released all datasets to support future research.

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.