A General Framework for Producing Interpretable Semantic Text Embeddings

Yiqun Sun, Qiang Huang, Yixuan Tang, Anthony K. H. Tung, Jun Yu
10/4/2024
cs.CLcs.AIcs.LG

No official code found. Best implementation: dukesun99/CQG-MBQA (11 stars, last commit 2025-04-07).

Abstract

Semantic text embedding is essential to many tasks in Natural Language Processing (NLP). While black-box models are capable of generating high-quality embeddings, their lack of interpretability limits their use in tasks that demand transparency. Recent approaches have improved interpretability by leveraging domain-expert-crafted or LLM-generated questions, but these methods rely heavily on expert input or well-prompt design, which restricts their generalizability and ability to generate discriminative questions across a wide range of tasks. To address these challenges, we introduce \algo{CQG-MBQA} (Contrastive Question Generation - Multi-task Binary Question Answering), a general framework for producing interpretable semantic text embeddings across diverse tasks. Our framework systematically generates highly discriminative, low cognitive load yes/no questions through the \algo{CQG} method and answers them efficiently with the \algo{MBQA} model, resulting in interpretable embeddings in a cost-effective manner. We validate the effectiveness and interpretability of \algo{CQG-MBQA} through extensive experiments and ablation studies, demonstrating that it delivers embedding quality comparable to many advanced black-box models while maintaining inherently interpretability. Additionally, \algo{CQG-MBQA} outperforms other interpretable text embedding methods across various downstream tasks.

View on arXivView PDF

Code Implementations(1)

dukesun99/CQG-MBQACommunity100%
111Shell, PythonSep 30, 20241 years ago

Similar Papers

Cite this paper

@article{sun2024general,
  title  = {A General Framework for Producing Interpretable Semantic Text Embeddings},
  author = {Yiqun Sun and Qiang Huang and Yixuan Tang and Anthony K. H. Tung and Jun Yu},
  year   = {2024},
  eprint = {2410.03435},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.03435v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.03435.svg)](https://codeofpaper.com/paper/2410.03435)

Discussion