Skip to main content
QUICK REVIEW

[Paper Review] PROMPT2BOX: Uncovering Entailment Structure among LLM Prompts

Neeladri Bhuiya, Shib Sankar Dasgupta|arXiv (Cornell University)|Mar 22, 2026
Topic ModelingComputer Science0 citations
TL;DR

Prompt2Box embeds prompts as boxes to capture both semantic similarity and prompt specificity, enabling entailment-aware analysis and improved hierarchical clustering of LLM weaknesses.

ABSTRACT

To discover the weaknesses of LLMs, researchers often embed prompts into a vector space and cluster them to extract insightful patterns. However, vector embeddings primarily capture topical similarity. As a result, prompts that share a topic but differ in specificity, and consequently in difficulty, are often represented similarly, making fine-grained weakness analysis difficult. To address this limitation, we propose PROMPT2BOX, which embeds prompts into a box embedding space using a trained encoder. The encoder, trained on existing and synthesized datasets, outputs box embeddings that capture not only semantic similarity but also specificity relations between prompts (e.g., "writing an adventure story" is more specific than "writing a story"). We further develop a novel dimension reduction technique for box embeddings to facilitate dataset visualization and comparison. Our experiments demonstrate that box embeddings consistently capture prompt specificity better than vector baselines. On the downstream task of creating hierarchical clustering trees for 17 LLMs from the UltraFeedback dataset, PROMPT2BOX can identify 8.9\% more LLM weaknesses than vector baselines and achieves an approximately 33\% stronger correlation between hierarchical depth and instruction specificity.

Motivation & Objective

  • Motivate the need to model prompt specificity, not just topical similarity, for diagnosing LLM weaknesses.
  • Propose a box-embedding representation that models entailment through containment among prompts.
  • Develop training data synthesis and learning objectives to map prompts to box embeddings.
  • Introduce Box-SNE for dimensionality reduction and a hierarchical clustering method tailored to box embeddings.
  • Show that box embeddings better capture prompt specificity and enable more informative weakness analysis than vector baselines.

Proposed method

  • Represent each prompt as a high-dimensional axis-aligned box defined by a center vector and a width vector.
  • Define entailment as the containment relation, using the conditional probability p(b|a) = VolInt(a,b)/Vol(Box(a)).
  • Train an encoder (from a Sentence Transformer) with two MLP heads to predict Box(a) from prompts, using contrastive objectives for similarity and entailment.
  • Synthesize and curate entailment and relevance data from Infinity Instruct, MultiNLI, WildChat (hierarchical and sibling relations via SURI), and a linkage dataset to train the model.
  • Introduce Box-SNE, a box-aware dimension reduction technique that preserves intersection and entailment signals in 2D representations.
  • Develop a hierarchical clustering framework for box embeddings, using a volume-based join distance to build trees over prompts.
Figure 1 : Comparison between the widely-used vector representation and our box representation for analyzing the performance of an LLM on four prompts. Blue means that the LLM achieves a high performance on the prompt while red means the opposite. Our approach correctly highlights that a weakness of
Figure 1 : Comparison between the widely-used vector representation and our box representation for analyzing the performance of an LLM on four prompts. Blue means that the LLM achieves a high performance on the prompt while red means the opposite. Our approach correctly highlights that a weakness of

Experimental results

Research questions

  • RQ1Can box embeddings better capture entailment and specificity between prompts compared to vector baselines?
  • RQ2How does the proposed entailment-aware representation affect downstream weakness analysis and hierarchical clustering of prompts across LLMs?
  • RQ3To what extent does synthesized entailment data improve the quality of prompt representations?
  • RQ4Can Box-SNE provide faithful low-dimensional visualizations that preserve volume, intersection, and entailment relationships?
  • RQ5How do box embeddings impact the discovery and containment of LLM weaknesses in hierarchical prompt analyses?

Key findings

  • Box embeddings outperform vector baselines on entailment-related tasks (FollowBench and SURI) and offer competitive semantic similarity performance.
  • In retrieval-based evaluation (FollowBench), Box-based models achieve higher accuracy than vector baselines, especially when entailment data are used.
  • Box embeddings enable more accurate hierarchical clustering of prompts, improving local score consistency and specificity ordering compared to vector methods.
  • A box-based hierarchy yields better specificity alignment (over 70% accuracy) than vector baselines, indicating stronger capture of instruction specificity.
  • Box-SNE preserves volume, intersection, and entailment relationships in 2D visualizations, enabling clearer discrimination of prompt difficulty and specificity across datasets and model scales.
Figure 2 : Illustration of our encoder training method. White $\Rightarrow$ means entailment and $\bigotimes$ means intersection. (a) An encoder is trained to take a prompt and output a box. Our loss function encourages its output box to overlap with the box of its corresponding response and being c
Figure 2 : Illustration of our encoder training method. White $\Rightarrow$ means entailment and $\bigotimes$ means intersection. (a) An encoder is trained to take a prompt and output a box. Our loss function encourages its output box to overlap with the box of its corresponding response and being c

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.