Dataset Viewer
Auto-converted to Parquet Duplicate
comparison_id
large_string
1078001420844451-1
1078001420844451-2
1078001420844451-3
1083082166962705-1
1083082166962705-2
1126645119216336-1
1126645119216336-2
1126645119216336-3
1215916836558865-1
1215916836558865-2
1217618916671619-1
1217618916671619-2
1364844064638640-1
1364844064638640-2
1402548030752489-1
1402548030752489-2
1402548030752489-3
1402548030752489-4
1406954090477002-1
1406954090477002-2
1703419400527323-1
1703419400527323-2
1740836826513211-1
1740836826513211-2
2031450124055152-1
2031450124055152-2
2438572009825294-1
2438572009825294-2
2438572009825294-3
2438572009825294-4
2473112483022422-1
2473112483022422-2
2473112483022422-3
29569917849289001-1
29569917849289001-2
29569917849289001-3
528978890289131-1
528978890289131-2
581305001008869-1
581305001008869-2
581305001008869-3
581305001008869-4
610248492039022-1
610248492039022-2
647692594750167-1
647692594750167-2
647692594750167-3
647692594750167-4
657891823536624-1
657891823536624-2
701475895876792-1
701475895876792-2
701475895876792-3
706152361853411-1
706152361853411-2
706152361853411-3
706152361853411-4
713626331232284-1
713626331232284-2
713626331232284-3
713626331232284-4
951271777205109-1
951271777205109-2
951271777205109-3
9733267686752748-1
9733267686752748-2
9733267686752748-3
975623907703125-1
975623907703125-2
975623907703125-3
975623907703125-4
992948159671113-1
992948159671113-2
992948159671113-3
992948159671113-4
1207270614374118-1
1207270614374118-2
1248602913352738-1
1248602913352738-2
1248602913352738-3
1295368984862805-1
1295368984862805-2
1357217918852208-1
1357217918852208-2
1365476134661892-1
1365476134661892-2
1392796381620846-1
1392796381620846-2
1392796381620846-3
1392796381620846-4
1451927916176196-1
1451927916176196-2
1658474321439842-1
1658474321439842-2
1658474321439842-3
1706699726610813-1
1706699726610813-2
1733882107561473-1
1733882107561473-2
1733882107561473-3
End of preview. Expand in Data Studio

Community Alignment β€” multilingual-e5-large embeddings

Frozen intfloat/multilingual-e5-large embeddings of every candidate response in the Community Alignment dataset (v1.1), computed for a CS329H (Stanford) course project on active personalization of reward models.

This repository contains no text from the dataset. It holds one 1024-dimensional vector per (prompt, response) candidate, the identifiers needed to join them back to the source dataset, and token counts.

Source and license

  • Source dataset: facebook/community-alignment-dataset, revision 97343c7f6399fcbea430ed0f37c1768281a78d56 (v1.1), by Zhang et al. (2026), released under CC BY 4.0.
  • This derived dataset is released under the same license, CC BY 4.0.
  • Changes made: the conversations were reshaped into one comparison per answered turn, and each candidate response was encoded with a frozen sentence encoder. Texts, annotator identifiers, demographics and choices are not redistributed.
  • Encoder: intfloat/multilingual-e5-large, revision 3d7cfbdacd47fdda877c5cd8a79fbcc4f2a574f3, MIT license (Wang et al., 2024).

If you use these embeddings, please cite the source dataset:

@inproceedings{zhang2026cultivating,
  title     = {Cultivating Pluralism In Algorithmic Monoculture: The Community Alignment Dataset},
  author    = {Lily H Zhang and Smitha Milli and Karen Long Jusko and Jonathan Smith and Brandon Amos and Wassim Bouaziz and Manon Revel and Jack Kussman and Yasha Sheynin and Lisa Titus and Bhaktipriya Radharapu and Jane Yu and Vidya Sarma and Kristopher Rose and Maximilian Nickel},
  booktitle = {The Fourteenth International Conference on Learning Representations},
  year      = {2026},
  url       = {https://openreview.net/forum?id=4NtoAVqfhA}
}

and the encoder:

@article{wang2024multilingual,
  title   = {Multilingual E5 Text Embeddings: A Technical Report},
  author  = {Wang, Liang and Yang, Nan and Huang, Xiaolong and Yang, Linjun and Majumder, Rangan and Wei, Furu},
  journal = {arXiv preprint arXiv:2402.05672},
  year    = {2024}
}

Files

All files are under ca-97343c7f-v1/e5-3d7cfbda-v1/ (data revision and processing version / encoder revision and embedding version).

file content
embeddings.npy float16 array of shape (233319, 4, 1024): comparison Γ— candidate (response_a..d) Γ— dimension. L2-normalized. NaN where the candidate response is empty (893 candidates).
index.parquet comparison_id of each row of embeddings.npy, in the same order.
token_counts.parquet one row per non-empty candidate: comparison_id, cand (0–3), n_tokens (untruncated, special tokens included), n_prompt_tokens. A candidate was truncated when n_tokens > 512.
meta.json model, revisions, text format, pooling, library versions, run time.

comparison_id is "<conversation_id>-<turn>", with turn from 1 to 4. Candidate j of a comparison is the response in column <turn>_turn_response_{a,b,c,d}[j] of the source CSV.

How the embeddings were computed

  • Unit: one comparison per answered turn (a turn whose preferred response is recorded): 233,319 comparisons, 932,383 non-empty candidates, all five languages.
  • Input text: "query: " + prompt + " " + response, where prompt is the user message of that turn only (earlier turns are not included). query: is the prefix the model card recommends for embeddings used as features. Fields are joined by a space, as in E5's evaluation code for multi-field inputs; the XLM-R tokenizer drops newlines.
  • Truncation: 512 tokens, cut on the right (end of the response). Share of truncated candidates: en 2.2%, it 2.0%, hi 4.2%, fr 4.5%, pt 5.9%.
  • Pooling: mean over the attention mask (special tokens included), then L2 normalization, both in float32; model run in float16 on an NVIDIA RTX A5000. On a random sample, cosine similarity with a float32, unbatched reference is β‰₯ 0.99998.

Loading

import numpy as np
import pandas as pd
from huggingface_hub import snapshot_download

d = snapshot_download("edouard-rabasse/community-alignment-e5-embeddings", repo_type="dataset")
sub = f"{d}/ca-97343c7f-v1/e5-3d7cfbda-v1"
E = np.load(f"{sub}/embeddings.npy", mmap_mode="r")          # (233319, 4, 1024) float16
ids = pd.read_parquet(f"{sub}/index.parquet")["comparison_id"]
mask = ~np.isnan(E[:, :, 0])                                   # candidates that exist

Notes

  • Within a comparison the four candidates are close in embedding space (mean pairwise cosine β‰ˆ 0.96 on a sample), partly because they share the prompt. For choice models, centering the four embeddings within each comparison does not change a softmax over candidates and improves conditioning.
  • Requests for data removal or reports of personal information in the underlying data should go to the source dataset's maintainers (see its card). We will remove the corresponding embeddings on request.
Downloads last month
131

Paper for edouard-rabasse/community-alignment-e5-embeddings