Manuscript Offprint

arXiv:2611.00999

ISBC: Interpretable Sparse Binary Coding of Pretrained Text Embeddings

Stefano Maria Iacus, Haodong Qi

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Pretrained text embeddings encode semantic structure in high-dimensional continuous spaces whose coordinates are difficult to interpret. We introduce Interpretable Sparse Binary Coding (ISBC), which learns a small set of binary dimensions from frozen embeddings without taxonomy labels or downstream outcomes. A trainable encoder and affine decoder combine reconstruction with controls on activity, factor utilization, dependence, and activation uncertainty. Individual bits and their conjunctions select overlapping document groups; complete activation profiles provide finer contexts for conditional comparisons. We evaluate these representations across corpora, backbones, and code configurations through reconstruction, geometry, predictive probes, and document inspection. Empirical cases identify both distinctions within existing categories and shared content across their boundaries. In a mixed-domain corpus, the most frequent profiles predominantly identify source collections, while selected within-source comparisons reveal sentiment and migration contrasts. Selected associations persist in additional documents encoded without refitting. In an engagement application, bits alone improve prediction of log-transformed outcomes over a constant reference, while their combinations identify within-event content contrasts associated with engagement. The results support using binary coordinates and their combinations for empirical interpretation, with complete profiles providing a fine, partly initialization-dependent description rather than a unique discrete taxonomy.

1 Introduction

Pretrained text embeddings support semantic comparison and prediction, but empirical text analysis also requires descriptions of document content. Researchers may wish to compare texts sharing selected attributes, examine variation within an existing category, or relate content to an external outcome. The individual coordinates of a high-dimensional embedding rarely provide such descriptions directly. A small set of binary dimensions offers an explicit way to select and compare document groups, provided that the content associated with those dimensions can be interpreted empirically.

We study this possibility with Interpretable Sparse Binary Coding (ISBC), which learns a sparse binary representation of frozen pretrained embeddings. The approach separates the linguistic representation supplied by a pretrained model from the estimation of binary coordinates for the study corpus. The embedding backbone remains frozen during ISBC training. A trainable encoder maps embeddings to binary activations, and an affine decoder reconstructs the original vectors. The learning objective controls activity, factor balance, dependence, and activation uncertainty alongside reconstruction. Neither observed taxonomies nor downstream outcomes enter representation learning.

Individual bits and their conjunctions select overlapping document subsets, while complete activation configurations, which we call profiles, partition the corpus. Comparing profiles that differ in one bit examines that coordinate within a fixed context; conjunctions leave the remaining coordinates unrestricted. These comparisons can reveal distinctions within existing categories and shared content across their boundaries, with interpretation grounded in document inspection. Profiles provide fine descriptions that can vary across initializations, rather than a unique discrete taxonomy.

We distinguish two questions: which properties of the embeddings survive compression, and how the resulting binary coordinates can be interpreted. For the first, we assess reconstruction, global and local geometry, and label prediction, while code entropy describes the diversity of observed profiles. Principal component analysis provides a continuous reconstruction reference at equal dimension (Eckart and Young, 1936). For the second, we inspect documents selected by bits and their combinations, using existing annotations as external descriptions. We examine how these properties depend on code width, activity, and the pretrained backbone. The cross-corpus analysis of Qwen-based codes finds stronger complete-profile agreement with some entity, event, and topic annotations than with affective or evaluative annotations (Section 7). The coordinates have no prescribed semantic content: their interpretation depends on the frozen embedding space, the fitted corpus, and the learned compression. An engagement application combines prediction from bits alone with exploratory comparisons of the content selected by bit combinations in low- and high-engagement groups (Section 9).

Most predictive evaluations are transductive: representation learning uses the full unlabeled corpus, while labels or outcomes are held out for predictive evaluation. A separate analysis applies a frozen encoder to additional documents excluded from representation fitting, showing that selected content associations persist within the same source collections.

We compare ISBC with iterative quantization (ITQ; Gong and Lazebnik, 2011), BinarySentEmb (Shen et al., 2019), and HypotheSAEs (Movva et al., 2025), examining reconstruction, code usage, and predictive utility under different binary activity constraints. We also compare profiles and conjunctions with embedding clusters (Section 4.4); their non-equivalence is assessed separately from the semantic interpretation of the selected documents.

The contribution is a compact, label-free representation designed for empirical analysis through binary coordinates and their combinations. Section 3 presents ISBC and its learning objective. Sections 4–6 examine the resulting document groups, quantify compression costs, and compare representations across embedding backbones and alternative encoders. Section 7 examines correspondence with existing annotations, while Section 8 shows how selected content associations persist in additional documents encoded without refitting. Section 9 evaluates the bits as predictors of external outcomes and connects their use to document interpretation.

References (54)