What Product Embeddings Treat as Similar: Word Order, Input Modality, and Gendered Catalog Wording in E-commerce

Abstract

Embedding models help determine which products appear together in search and recommendation systems. We examine three related hypotheses about that behavior. Hypothesis 1 tests whether moving an existing gendered term within a product title produces larger representation and neighborhood changes in a causal text model than in a bidirectional embedding model or an order-independent lexical baseline. The supplied figure contains 404 titles per model. Its rounded hover data reproduce a larger median scaled shift for the tested Qwen3 configuration than for EmbeddingGemma, with zero shift for TF-IDF. The underlying run configuration has not yet been recovered. Hypothesis 2 tests whether title-wording groups also appear in image neighborhoods. In 72 Amazon Berkeley Objects products, image-only CLIP has 56.1% same-wording neighbors against a 46.6% within-type chance baseline, averaging product types equally. Hypothesis 3 uses a separate sample of 450 Amazon UK products across 30 categories to compare MiniLM text and CLIP ViT-B/32 image neighborhoods. Text has 65.9% category purity versus 41.8% for images, with 22.0% mean Jaccard overlap between their neighbor sets. An interactive product explorer connects the aggregate measures to inspectable products and neighbors. These are descriptive findings about the tested configurations and cohorts. They do not establish a causal architecture effect, harmful bias, a usability benefit, or a benefit to shoppers.

1. Motivation and related work

A catalog team choosing an embedding model needs to know what its neighbors mean. Two products can be close because they share a function, a brand, a visual style, or wording that may be incidental to the shopper’s intent. A useful audit makes these alternatives visible before treating vector similarity as relevance.

We ask three connected questions. First, does relocating a gendered word alter a title’s representation differently across lexical, bidirectional, and causal text models? Second, do title-wording groups also appear in image neighborhoods? Third, do text and image models organize the same products differently? Study A is a controlled text edit. Study B contains two observational analyses with separate cohorts, candidate pools, model lineups, and measures.

Hypothesis 1 — Architecture and word order: Moving a gendered term from the beginning to the end of a product title will produce larger embedding shifts and greater nearest-neighbor turnover in the tested Qwen3 causal configuration than in EmbeddingGemma-300M, while TF-IDF will remain unchanged because it ignores word order.

Hypothesis 2 — Wording groups in image neighborhoods: Products with the same men’s or women’s title-wording label will appear together in CLIP image neighborhoods more often than expected by chance.

Hypothesis 3 — Text and image neighborhoods: Text and image models will produce different nearest-neighbor groups for the same products. We expect text neighborhoods to have higher catalog-category purity because titles explicitly describe product types and features.

ABO (Collins et al., 2022) provides catalog listings and images for Hypothesis 2. The supplied Amazon UK notebook provides the separate sample for Hypothesis 3. The Qwen3 Embedding paper and EmbeddingGemma model card provide model-family context, rather than evidence for our particular runs. Model cards linked in the reproducibility guide document the other checkpoints.

Our presentation draws on Activation Atlas: connect a representation-level observation to examples a reader can inspect. How to Use t-SNE Effectively motivates explicit figure-reading guidance. The ABO explorer uses within-type SVD; Hypothesis 3’s chart plots measured category purity rather than a projection of embedding coordinates; Study A’s projection method is unverified. In both cases, a plotted gap is not itself an original-space effect size.

2. Study A — Title word order

Hypothesis and evidence boundary

In the exploratory assignment, we tested whether moving a gendered word from the beginning to the end of a product title affected three representations differently: TF-IDF, EmbeddingGemma-300M, and Qwen3-0.6B. We expected Qwen3 to be more sensitive to word position, while TF-IDF should remain unchanged because it ignores word order.

We measured the change in each title’s representation and the proportion of its top-10 neighbors that changed after the word was moved. Larger values indicate greater sensitivity to the edit. However, because the models also differ in training, tokenization, pooling, and scale, the results cannot be attributed only to causal versus bidirectional architecture.

Interactive word-order graph

Drag to rotate, scroll to zoom, and hover over a point to inspect its product title. Use the category menu to filter the three model panels. Projected line lengths are not the measured shifts in the original embedding space.

Figure A1. Supplied interactive word-order visualization. Requires WebGL and the Plotly CDN; the results table below remains available without them. Open the interactive graph full size.
ModelMedian scaled shiftMean top-10 change
TF-IDF0.0000%
EmbeddingGemma-300M0.0128%
Qwen3-0.6B0.03915%

Interpretation

Qwen3 showed a larger median shift and more neighborhood change than EmbeddingGemma, while TF-IDF did not change. These results support the hypothesis for the tested configurations, but they do not establish that architecture alone caused the difference or that the observed sensitivity represents harmful bias.

3. Study B — Image and multimodal neighborhoods

Study B examines what changes when product similarity is based on images rather than titles. It includes two related analyses using different product samples. Their results and measures are reported separately below.

Hypothesis 2: Wording groups in image neighborhoods

We hypothesize that products with the same men’s or women’s title-wording label will appear together in CLIP’s image neighborhoods more often than expected by chance. Because CLIP receives only image pixels, this lets us examine whether the title-derived groups are also associated with visual product characteristics.

Data and measure

This analysis includes 72 Amazon Berkeley Objects products balanced by wording group within four product types. For each product, we find its ten closest CLIP image embeddings within the same product type, excluding the product itself. We then calculate the percentage of those neighbors that share its title-wording label.

Product typeSame-wording neighborsExpected by chance
Accessories46.7%45.5%
Boots62.9%47.8%
Sandals47.5%45.5%
Shoes67.5%47.8%
Equal-weight average56.1%46.6%

Chance is below 50% because the selected product is excluded from its own neighborhood. For example, an accessory has only five products with the same label among its eleven possible neighbors.

Interpretation

CLIP’s same-wording neighbor rate is 56.1%, compared with a 46.6% chance baseline. The association varies substantially by product type: it is strongest for boots and shoes but close to chance for accessories and sandals.

Because CLIP receives only image pixels, the result suggests that some title-derived groups are also associated with visual product characteristics. It does not show that gendered wording causes those visual differences. Product style, color, subtype, brand, photography, and other factors may contribute to the observed pattern.

Hypothesis 3: Text and image neighborhoods

Text and image embedding models will produce different nearest-neighbor groups for the same products. We expect text neighborhoods to have higher catalog-category purity because product titles explicitly describe product types and features.

Separate data and measures

The supplied W209 notebook compares MiniLM text embeddings (sentence-transformers/all-MiniLM-L6-v2) and CLIP ViT-B/32 image embeddings (openai/clip-vit-base-patch32) for the same 450 Amazon UK products across 30 categories: 15 products per category, seed 42. All 450 sampled images were usable. This is a separate sample from Hypothesis 2’s 72 ABO products and uses a different CLIP checkpoint.

For each product, we find its 10 nearest neighbors by cosine similarity across the full matched sample, excluding itself. Category purity is the percentage of neighbors with the same catalog category. Neighbor overlap is the Jaccard similarity between text and image neighbor sets: the number shared divided by the number in their union. Each measure is averaged within category, then equally across categories.

Category-level text versus image purity. Most categories fall below the equal-purity diagonal. The macro average is 65.9% text purity and 41.8% image purity; color indicates Jaccard overlap.
Figure B2. Saved W209 notebook chart: each dot is a catalog category. Points below the diagonal have higher text purity; color encodes neighbor Jaccard overlap. The diamond marks the equal-weight category average. Axes show measured purity, not projected embedding distances.

Results

Three bars summarize text category purity at 65.9%, image category purity at 41.8%, and text/image neighbor Jaccard overlap at 22.0%.
Figure B3. Saved notebook summary. Purity and Jaccard overlap have different denominators; the overlap bar is not a category purity score.

Text neighborhoods had 65.9% category purity, compared with 41.8% for images: a 24.1 percentage-point difference. The mean neighbor-set Jaccard overlap was 22.0%. This supports the predicted difference for this sample and these models. The 22.0% is intersection divided by union, not the percentage of ten neighbors shared and not a measure of ranking agreement.

These are saved notebook results, rounded in the console output, rather than a new model run. The product manifest, original vectors, per-category result CSVs, and pinned model revisions are not embedded in the supplied notebook. The charts and reported summary can be inspected, but the exact cohort cannot be independently reconstructed from this file alone. Download the source notebook or the saved evidence summary.

Combined interpretation

Both analyses show that image representations provide a different view of product similarity. Hypothesis 2 finds that visual neighborhoods can reflect some title-derived group patterns. Hypothesis 3 shows that text and image models often select different neighbors for the same products. The percentages cannot be compared directly across analyses: wording-label association within a product type differs from catalog-category purity across a full sample.

These findings do not establish why the patterns occur. Catalog labels, product style, color, subtype, photography, and model training may all contribute. Category labels are noisy proxies for function; higher purity does not by itself establish better recommendations. Text and image modality also change together with model family, so Hypothesis 3 does not isolate a causal modality effect.

4. Interactive evaluation tool

Design goal

The working product explorer is designed to help users understand how different representations organize the same products. It combines model-level metrics with product-level inspection so that an aggregate result can be traced back to examples. Users can select a product type, follow the same product across model panels, inspect its within-type nearest neighbors, and compare same-wording association with the chance baseline.

The primary user tasks are:

  1. Track the same product across representations.
  2. Inspect which products each model considers similar.
  3. Compare local neighborhood patterns with aggregate measures.
  4. Distinguish title-based associations from image-only associations.

5. Discussion and limitations

Both studies ask what a representation preserves, not whether its rankings help a shopper. Study A lacks a complete reproducibility package. Study B’s ABO analysis is small, automatically labeled, and observational. Product type is a coarse control; brand, finer subtype, style, size variants, color, pose, people, embedded text, photography, and near-duplicates can explain association. Exact pixel deduplication cannot exclude all related photography.

The proposal’s 5,000-item subset and SigLIP remain planning context. Hypothesis 3 instead uses the supplied notebook’s 450-product Amazon UK sample with MiniLM and CLIP ViT-B/32. Its category purity and neighbor Jaccard measures are distinct from Hypothesis 2’s ABO wording-group measure. The Playground uses a separate 1,600-product catalog and is not a validation cohort for either study. We make no claims about unfair exposure, protected identities, causal effects on imagery, purchase suitability, or production ranking quality.

6. Product evaluation implications

Study A shows that models can respond differently to word order. Study B shows that similarity patterns can vary by representation and product type. Together, they identify what a product team should test before selecting a model.

Study findingProduct concernNext evaluation
Sensitivity to word positionEquivalent wording may change results.Compare rankings across wording variations.
Different model neighborhoodsModel choice changes which products appear similar.Review neighbor and ranking changes.
Variation by product typeOverall scores may hide weak catalog segments.Report results by product type.
Association in image embeddingsVisual attributes may contribute to the pattern.Review images and metadata for confounding factors.

These findings guide further evaluation; they do not support a launch decision. Model selection should also consider relevance, consistency, latency, cost, and human-reviewed failures.

7. References

  1. Collins et al. (2022). ABO: Dataset and Benchmarks for Real-World 3D Object Understanding. CVPR. Dataset provenance for Study B.
  2. Zhang et al. (2025). Qwen3 Embedding: Advancing Text Embedding and Reranking Through Foundation Models.
  3. Google DeepMind. EmbeddingGemma model card. Model-family context for both studies; Study A’s exact run revision is unavailable. Study B’s revision is recorded in the model inventory.
  4. Wattenberg, Viégas, and Johnson (2016). How to Use t-SNE Effectively. Figure-interpretation reference; Study B uses SVD.
  5. Carter et al. (2019). Exploring Neural Networks with Activation Atlases. Editorial reference, not our analysis method.
  6. Motoki, Pinho Neto, and Rangel (2025). Assessing political bias and value misalignment in generative artificial intelligence. Journal of Economic Behavior & Organization, 234, 106904. A structural reference for separating tests and interpretation; its political-alignment question differs from this study.
  7. Exact EmbeddingGemma, Qwen3 and CLIP checkpoint cards and revisions.
  8. Supplied W209 notebook: Amazon UK matched-product analysis using MiniLM and CLIP ViT-B/32. Saved charts and rounded results support Hypothesis 3; provenance is recorded in the evidence summary.

8. Reproducibility

No DOI or final release tag has been assigned. The reproducibility guide documents setup, saved model details, and the extraction of Hypothesis 3’s notebook charts and rounded summary without rerunning its models.

9. License and data use

CC BY-NC (Attribution-NonCommercial): You may share and adapt this paper with appropriate attribution, but only for noncommercial purposes. Read the CC BY-NC 4.0 license. See also UC’s guide to choosing a Creative Commons license.

Code, model outputs, and source datasets may have different usage terms. Before public release, the team will document the applicable software license, dataset terms, model licenses, and required citations.