Source-linked AI summary

Interpretable Text Embeddings Based on Hierarchical Questions

Kohei Oda, Po-Min Chuang, Kiyoaki Shirai, Natthawut Kertkeidkachorn

arXiv:2611.06402v1cs.CL

TL;DR

QA-based text embeddings are interpretable, but examining many questions is burdensome and the appropriate number and granularity for general-purpose tasks remain unclear. The paper constructs hierarchical questions through recursive clustering, contrastive prompting, and alignment. Across tasks, it improves the performance–cognitive-load trade-off, and shallower questions can perform better under a limited question budget.

  • Problem

    QA-based embeddings can require humans to examine many detailed questions, while the appropriate number and specificity of questions for general-purpose tasks remain unclear.

    Source: §1 · p. 1
  • Method

    The method generates increasingly specific questions through recursive clustering and contrastive prompting, then aligns questions across levels so shallower questions can replace deeper ones during interpretation.

    Source: §1 · p. 2
  • Results

    Across multiple tasks, hierarchical questions improve the Pareto front between task performance and cognitive load.

    Source: §7 · p. 8
  • Takeaways & Limitations

    When only a limited number of questions are available, shallower-level questions can be more effective than randomly selected deeper-level questions.

    Source: §7 · p. 8

    Manual inspection of all generated questions remains difficult, so qualitative analysis is limited to sampled questions and broader human evaluation is needed.

    Source: Limitations · p. 9

Abstract

from arXiv · show

QA-based text embeddings represent texts as vectors consisting of 1/0 answers to yes/no questions. Although these embeddings provide detailed information for interpretation and achieve high task performance, they often require humans to examine a large number of questions. Furthermore, the relationship between the number of questions and the appropriate level of question granularity has not been sufficiently studied. To address these challenges, we propose a method for constructing hierarchical questions for text embeddings. As the hierarchy deepens, questions become more specific and their number increases. During interpretation, we reduce the number of questions that humans need to examine by replacing questions at deeper levels with aligned questions at shallower levels. The question hierarchy is constructed through recursive clustering, contrastive prompting, and question alignment. Experimental results on general-purpose tasks show that our method improves interpretability while maintaining task performance. It is also found that, when only a limited number of questions are available, questions at shallower levels tend to achieve higher task performance than those at deeper levels, even with the same number of questions.

1 Introduction

QA-based embeddings make individual dimensions interpretable as yes/no questions, but detailed questions can burden human interpretation and the right number and specificity for general-purpose tasks are unclear. The paper proposes a hierarchy of questions and reports improved trade-offs between embedding performance and cognitive load.

1 Introduction

  • QA-based embeddings encode each dimension as a yes/no question answered with a binary value, but detailed questions can require humans to examine many questions.Source: §1 · p. 1
  • Hierarchical questions place more specific questions at lower levels, allowing the number of embedding dimensions to vary by downstream task.For interpretation, a human can use a small number of general questions in place of aligned questions at deeper levels.Source: §1 · pp. 1–2
  • The hierarchy is built using recursive clustering and contrastive prompting, with adjacent-level questions aligned through entailment relationships.Source: §1 · p. 2
  • Across three tasks, the method substantially improves the Pareto front between embedding performance and cognitive load.When only a limited number of questions are available, shallower-level questions perform better than randomly selected deeper-level questions.Source: §1 · p. 2

2 QA-based Text Embeddings

QA-based text embeddings represent texts through binary answers to natural-language questions, preserving interpretable dimensions. Question generation builds on clustering texts by semantic similarity and prompting language models to produce questions that distinguish clusters.

2 QA-based Text Embeddings

  • Each QA-based embedding dimension corresponds to a natural-language yes/no question, whose answer is encoded as 1 or 0.The resulting vectors allow texts to be compared in semantic space while retaining interpretable dimensions.Source: §2 · p. 2
  • CQG-MBQA groups texts by semantic similarity, then uses language models to generate yes/no questions that distinguish the clusters.The paper builds its question-generation method on this framework, which produces interpretable embeddings comparable to black-box text embeddings.Source: §2 · p. 2
  • The question-generation algorithm identifies recursive clustering, contrastive question generation, and question filtering as successive steps.Source: §2 · p. 3

3 Proposed Method

The method builds hierarchical questions through generation, alignment to parent questions, and training models to predict yes probabilities for each question.

3 Proposed Method

  • The proposed method combines question generation, question alignment, and model training to produce QA-based text embeddings.Source: §3 · p. 3

3.1 Question Generation

  • Recursive clustering of approximately 6.8 million MEDI2 texts creates question-generating clusters at successive hierarchical levels.Source: §3.1 · p. 3
  • For each cluster, contrastive prompts give an LLM positive and hard or easy negative examples to generate 10 questions.Source: §3.1 · p. 3
  • Generated questions are filtered for quality and semantic redundancy, with higher-quality questions prioritized when cosine similarity exceeds a threshold.Source: §3.1 · pp. 3–4

3.2 Question Alignment

  • Each question at a deeper level is aligned to the preceding level’s question with the highest predicted entailment probability.Source: §3.2 · p. 4

3.3 Model Training

  • For each question, a regression model is trained on black-box text embeddings paired with LLM-predicted yes/no answers.Training examples are sampled from the question’s cluster, its closest clusters, and other clusters.Source: §3.3 · p. 4

4 Experiments

Experiments compare hierarchical QA embeddings with a single-clustering baseline across three general-purpose tasks, measuring embedding quality and cognitive load. Results show an improved performance–load trade-off, with outcomes depending on threshold and hierarchy level.

4.1 Experimental Setup

  • The evaluation compares CQG-MBQA, which uses one clustering step, with recursive clustering on STS, text clustering, and information retrieval datasets from MTEB.The fourth-level question-generation settings match the baseline; shallower levels increase np by 2 and nh and ne by 6 each.Source: §4.1 · pp. 4–5, Table 2 · p. 5

4.2 Metrics

  • Embedding quality is measured with Spearman’s rank correlation for STS, V-Measure for clustering, and nDCG@10 for retrieval; cognitive load counts questions a human must ask.For STS it counts questions answered yes in both vectors; for clustering and retrieval it counts questions answered yes across the cluster or in both the query and top-1 passage.Source: §4.2 · p. 5

4.3 Result and Discussion

  • Question alignment reduces cognitive load while maintaining task performance, significantly improving the performance–load Pareto front over the baseline.Across thresholds, the trade-off between performance and cognitive load remains similar.Source: §4.3 · pp. 5–6, Figure 3 · p. 6
  • Performance peaks around τ=0.3 across all three tasks, while cognitive load decreases as τ increases.At thresholds that are too low, model–human answer disagreements may increase and potentially reduce embedding reliability.Source: §4.3 · p. 6, Figure 4 · p. 6, Figure 5 · p. 6

5 Analysis

The analysis examines whether question alignment preserves meaning, how question granularity affects embeddings at matched question counts, and how alignment can aid interpretation.

5.1 Entailment Relationships between Aligned Questions

  • For many level pairs, over 67% of lower-level questions entail upper-level questions, while the reverse is uncommon, indicating finer granularity at deeper levels and coherent upper-level summaries.Figure 6 reports proportions of cross-level question combinations whose entailment probability exceeded 50%.Source: §5.1 · p. 7

5.2 Impact of Granularity of Questions

  • At τ=0.7, shallower questions tend to outperform deeper questions at matched counts, especially with few questions; fine-grained questions may yield mostly “no” answers and less informative embeddings.At τ=0.3, performance differs little across granularities. Figure 7 reports the STS comparison across five seeds.Source: §5.2 · p. 7, Figure 7 · p. 7

5.3 Case Study

  • In an MS MARCO retrieval example, aligned third-level questions summarize shared yes-answers while preserving text-specific differences, making the embeddings easier for humans to interpret.The example uses questions at the fourth level with τ=0.5; Table 3 presents the answers for both texts.Source: §5.3 · p. 8, Table 3 · p. 8

6 Related Work

Related work covers general text embeddings and approaches that make embedding dimensions interpretable, including QA-based embeddings.

General Text Embeddings

Interpretable Text Embeddings

7 Conclusion

The paper proposes hierarchical questions for interpretable text embeddings. Across multiple tasks, it reports an improved performance–cognitive-load Pareto front, frequent entailment among aligned questions, and an advantage for shallower questions when question counts are limited.

7 Conclusion

  • The proposed framework uses hierarchical questions to improve the interpretability of QA-based text embeddings.The conclusion describes the framework as an interpretable text embedding method.Source: §7 · p. 8
  • Experiments across multiple tasks show an improved Pareto front for the trade-off between task performance and cognitive load.The conclusion reports the trade-off improvement without claiming direct task-performance gains.Source: §7 · p. 8
  • Aligned questions frequently exhibit entailment, and shallower questions can be more effective when only a limited number of questions are available.Source: §7 · p. 8

Limitations

The limitations concern sampled qualitative analysis, the method’s performance–cognitive-load objective, and the absence of multilingual evaluation; the accompanying appendices document prompts, filtering, training, and cluster sizes.

Limitations

  • Qualitative analysis is limited to sampled questions; the method targets the performance–cognitive-load Pareto front rather than direct task-performance gains, and multilingual effectiveness remains unevaluated.The authors call for broader human evaluation and future study of multilingual settings.Source: Limitations · p. 9

A Prompts

  • The prompt appendix identifies the templates used in experiments and names gpt-4o-mini for LLM-based processing.Source: A Prompts · p. 11

A.1 Prompt: QA-based Text Embedding

  • The QA-embedding prompt supplies an input text and yes/no questions, then requests ordered answers used as labels for text–question pairs.Source: §A.1 · p. 11

A.2 Prompt: Question-to-Declarative Conversion

  • The question-to-declarative prompt converts one yes/no question into a declarative sentence and requests only that sentence as output.Figure 9 is the prompt template.Source: §A.2 · p. 11, Figure 9 · p. 12

A.3 Prompt: Contrastive Question Generation

  • Contrastive question generation uses positive and negative article sets to prompt 10 concise yes/no questions distinguishing the sets.The prompt discourages “and” or “or” unless necessary; Figure 10 shows the template.Source: §A.3 · p. 12, Figure 10 · p. 12

B Details of Filtering

C Details of Training QA Models

  • The QA model uses a 1024-dimensional input, 1024-to-8 and 8-to-1 linear layers, ReLU, and a sigmoid output for the probability of a yes answer.Training uses batch size 20, 10 epochs, and learning rate 1e-3.Source: C Details of Training QA Models · p. 12

D Analysis of Clusters

E Evaluation Data

The evaluation appendix lists datasets for three tasks and examines question length, concreteness, entailment probabilities, and performance versus cognitive load.

E Evaluation Data

F.1 Length of Questions

F.2 Concreteness of Questions

F.3 Probability of Entailment

  • Figures 14 and 15 show entailment-probability distributions for deeper-to-shallower and shallower-to-deeper question pairs, respectively.Source: §F.3 · p. 14, Figure 14 · p. 14

G Full Results of Performance vs. Cognitive Load

H Task Performance by Dataset

The section presents dataset-level task performance and identifies the comparison methods and threshold setting.

I Full Results of Analysis of Appropriate Granularity of Questions

The figures report performance versus cognitive load across three tasks, including comparisons when question counts are matched across hierarchy levels by random sampling.

Loading 2611.06402v1…