Papers
Topics
Authors
Recent
Search
2000 character limit reached

Ethics2Vec: Vectorizing Ethical Judgments

Updated 8 July 2026
  • Ethics2Vec is a family of methods that create low-dimensional vector representations of ethical content from pretrained language-model embeddings.
  • It encompasses varied techniques—from PCA-based extraction to risk derivative analysis and lexicon-guided axis learning—each capturing distinct facets of moral reasoning.
  • These approaches enable practical applications such as AI alignment with human values, auditing ethical biases, and enhancing interpretability in decision-making systems.

Searching arXiv for papers on Ethics2Vec and closely related formulations. Ethics2Vec is a label used in several recent research programs for vector representations of ethical content, human wellbeing, normative theory, and implicit value trade-offs. In one line of work, it denotes a low-dimensional representation extracted from pretrained language-model embeddings for the ETHICS Utilitarianism task; in others, it denotes an embedding of a binary decision agent or control law, a normative-ethics simplex and fused normative-semantic representation for moral pluralism, a moral-foundations “vec-tionary” axis learned from validated dictionaries, a plug-and-play value encoder for text-to-image diffusion, or a proposed moral embedding carved out of a broader “moral problem space” (Freire et al., 2024, Bontempi, 11 Aug 2025, Aijaz et al., 27 May 2026, Duan et al., 2023, Wang et al., 2024, Waldner, 28 Sep 2025). Taken together, these works suggest a family of methods that treat ethics as a representational object that can be projected, compared, audited, and, in some settings, aligned to human preferences.

1. Scope and conceptual variants

The literature uses the term “Ethics2Vec” for several technically distinct constructions. Some formulations begin with pretrained text embeddings and derive latent “utility” directions by PCA. Others reverse-engineer an agent’s implicit loss weights from ROC derivatives or risk derivatives. Still others fuse normative priors, semantic embeddings, and contextual features into a classifier over ethical theories, or build foundation-specific semantic axes from validated dictionaries and word embeddings. A multimodal extension prepends a learned value embedding to the cross-attention context of a frozen diffusion model, and a more speculative alignment agenda treats ethics as an explicit subspace inside a high-dimensional “moral problem space.”

Work Core object Representation
(Freire et al., 2024) ETHICS Utilitarianism scenarios PCA coordinates from pretrained embeddings
(Bontempi, 11 Aug 2025) Binary agents and control laws Vectors of local trade-off derivatives
(Aijaz et al., 27 May 2026) Moral cases Normative simplex, semantic supervector, fused embedding
(Duan et al., 2023) Moral appeals in text Learned semantic axis per moral foundation
(Wang et al., 2024) Value principle for T2I generation Plug-and-play value encoder
(Waldner, 28 Sep 2025) Moral evaluation substrate Moral head in a “moral problem space”

A common implication is that Ethics2Vec is not a single standardized algorithm. Rather, the term names a recurring representational ambition: to place ethical judgments, principles, or trade-offs into a vector space where projection, distance, clustering, or intervention become possible.

2. Latent human wellbeing in language-model embeddings

In "Uncovering Latent Human Wellbeing in LLM Embeddings" (Freire et al., 2024), the underlying task is the ETHICS Utilitarianism dataset of labeled pairs

(Si,Ti,yi),i=1,,N,(S_i,T_i,y_i), \quad i=1,\dots,N,

where SiS_i and TiT_i are two natural-language scenarios and yi=1y_i=1 if “SiS_i is more pleasant than TiT_i,” else $0$. Two evaluation modes are defined. In single mode, each scenario is embedded independently and the projected scores are compared. In paired mode, the representation is the feature difference Δi=f(Si)f(Ti)\Delta_i=f(S_i)-f(T_i), which is then classified directly.

The construction begins with a pretrained embedding function f()f(\cdot). For a training set of MM examples, the data matrix

SiS_i0

is formed from zero-meaned and unit-variance normalized feature vectors. The empirical covariance is

SiS_i1

followed by eigendecomposition or SVD,

SiS_i2

The top-SiS_i3 eigenvectors are collected into

SiS_i4

and a new embedding SiS_i5 is mapped to the Ethics2Vec coordinate

SiS_i6

Empirically, the first principal component SiS_i7 captures a “utilitarian” direction, with score

SiS_i8

The sign and magnitude of SiS_i9 correlate with human judgements of pleasantness. A one-dimensional classifier thresholds TiT_i0, often with TiT_i1 after centering, and in practice logistic regression is fit on the 1-D scores to learn direction and threshold simultaneously.

The central empirical result is that, without any prompt engineering or finetuning, the leading principal component from OpenAI’s text-embedding-ada-002 achieves TiT_i2 accuracy, closely matching the TiT_i3 of BERT-large finetuned on the entire ETHICS dataset. For text-embedding-ada-002 with TiT_i4, the reported ETHICS utilitarian test accuracies are TiT_i5 at TiT_i6, TiT_i7 at TiT_i8, TiT_i9 at yi=1y_i=10, and yi=1y_i=11 at yi=1y_i=12. The paper further reports that performance is nondecreasing with increased model size within a family when using sufficiently many principal components, such as yi=1y_i=13, and that paired mode yields slightly higher average accuracy than single mode, though the effect is modest.

These results are significant because they suggest that pretraining alone conveys some understanding about human wellbeing. At the same time, the paper is explicit that the utilitarianism subset addresses only pleasure/pain judgments, that ETHICS is US-centric, and that extending this construction to justice, duty, or virtues would require new sub-datasets and possibly higher-order PCA, nonlinear probes, contrastive directions such as CCS, or supervised dimensionality reduction such as LDA.

3. Reverse-engineering value trade-offs in decision agents and control laws

"Ethics2vec: aligning automatic agents and human preferences" (Bontempi, 11 Aug 2025) defines Ethics2Vec as a way to reverse-engineer, from observational data, a small real-valued vector yi=1y_i=14 that captures relative loss-weights encoded in an agent’s decision rule or control law. The motivating problem is alignment: humans interacting with a classifier or controller do not directly observe the internal weighting of false positives versus false negatives, or lateness versus accident risk, even though these weights express an implicit “ethical stance.”

In the binary decision setting, the agent computes a score yi=1y_i=15 and applies a threshold yi=1y_i=16 to produce yi=1y_i=17 if yi=1y_i=18, else yi=1y_i=19. The loss matrix has SiS_i0 for false positives and SiS_i1 for false negatives, and the average loss as a function of threshold is approximated by

SiS_i2

Optimality at SiS_i3 yields

SiS_i4

The 2-dimensional embedding is then

SiS_i5

from which

SiS_i6

may be recovered.

In the continuous-control formulation, discrete time SiS_i7 is assumed, with observation SiS_i8, control output SiS_i9, and TiT_i0 human-relevant risk events TiT_i1. Risk functions

TiT_i2

are defined, with human cost

TiT_i3

First-order optimality gives

TiT_i4

and the time-local embedding is

TiT_i5

with a time-averaged version

TiT_i6

Once agents are mapped to points TiT_i7, alignment to a human-preference vector TiT_i8 may be measured by Euclidean distance, cosine similarity, or Mahalanobis distance. The paper gives two illustrative experiments. In the binary case, twenty binary classifiers were constructed with different ground-truth loss ratios TiT_i9 in $0$0, evaluated on a test set of $0$1 points, and a parametric binormal ROC fit showed almost perfect recovery of the true ratios. In the continuous-control example, ten stylized speed-control laws were defined over $0$2 and positions $0$3, with two assumed risk functions: accident risk increasing sigmoidal in speed and lateness risk decreasing in speed. The resulting 2-vector embeddings separated “aggressive” from conservative controllers.

This formulation is narrower in its assumptions than the PCA-based wellbeing probe. It requires that agents be at least locally optimizing a weighted sum of risk criteria, and the paper highlights limitations including estimation noise, misspecified risk functions, and the fact that a single vector under fixed operating conditions may be inadequate for context-sensitive agents.

4. Normative simplex and fused embeddings for ethical pluralism

"Beyond Binary Moral Judgment: Modeling Ethical Pluralism in AI" (Aijaz et al., 27 May 2026) shifts the emphasis from scalar or binary judgments to a distribution over normative ethical theories. It introduces a normative ethics simplex in which the three broad theories are represented by masses

$0$4

for consequentialism, virtue ethics, and deontology, respectively, and every case $0$5 lies in the probability simplex

$0$6

The basis vectors are $0$7, $0$8, and $0$9. Fifteen fine-grained subtheories are organized beneath these three corners: five consequentialist subtheories, five deontological subtheories, and five virtue-ethics subtheories.

The prior Δi=f(Si)f(Ti)\Delta_i=f(S_i)-f(T_i)0 for a case is produced by an LLM, specifically DeepSeek-V3, prompted with expert guidance; the three real scores are then renormalized to sum to one. From the same scores, the architecture computes the margin Δi=f(Si)f(Ti)\Delta_i=f(S_i)-f(T_i)1, the pairwise ratio Δi=f(Si)f(Ti)\Delta_i=f(S_i)-f(T_i)2 between the top two scores, and entropy

Δi=f(Si)f(Ti)\Delta_i=f(S_i)-f(T_i)3

These are collected into a normative-feature vector Δi=f(Si)f(Ti)\Delta_i=f(S_i)-f(T_i)4. In parallel, a semantic-contextual stream builds a “Triple-BERT” semantic supervector

Δi=f(Si)f(Ti)\Delta_i=f(S_i)-f(T_i)5

where Δi=f(Si)f(Ti)\Delta_i=f(S_i)-f(T_i)6 all-MiniLM-L6-v2 with Δi=f(Si)f(Ti)\Delta_i=f(S_i)-f(T_i)7, Δi=f(Si)f(Ti)\Delta_i=f(S_i)-f(T_i)8 all-distilRoBERTa-v1 with Δi=f(Si)f(Ti)\Delta_i=f(S_i)-f(T_i)9, and f()f(\cdot)0 multi-qa-mpnet-base-dot-v1 with f()f(\cdot)1. Contextual features include consequence severity, consequence duration, consequence utility, moral intention, principles upheld, and principles violated, concatenated as

f()f(\cdot)2

Fusion is by straight concatenation,

f()f(\cdot)3

The final classifier is a three-stage stack with Random Forest, XGBoost, and Linear SVM as base learners, and a second XGBoost as meta-learner over their probability or decision outputs. On a benchmark of 450 cases across 15 fine-grained subtheories, the reported exact-match accuracy is f()f(\cdot)4 and macro-f()f(\cdot)5 is f()f(\cdot)6. The ablation study reports f()f(\cdot)7 for Full Normative + Semantic + Context, f()f(\cdot)8 for Semantic + Context only, f()f(\cdot)9 for Normative + Semantic only, and MM0 for Embeddings only. Removing any one of the three semantic heads degrades performance by approximately MM1–MM2 percentage points.

The paper’s central argumentative move is that ethical pluralism is better modeled as a probabilistic normative distribution than as a single label or scalar. The fused embeddings are used not only for prediction but also for UMAP visualization, uncertainty estimation through the entropy of the 15-way output distribution, and 3D simplex plots of MM3. This directly addresses a recurring criticism of binary moral-judgment systems: they provide little explanation and omit contextual and theoretical information relevant to accountability.

5. Moral-foundations vec-tionaries and text measurement

"Constructing Vec-tionaries to Extract Message Features from Texts: A Case Study of Moral Appeals" (Duan et al., 2023) presents a related but lexically grounded Ethics2Vec methodology for measuring moral content in text. The construction starts with a validated dictionary MM4, here the extended Moral Foundations Dictionary eMFD with roughly MM5 words, pretrained word embeddings MM6 with MM7 from Word2Vec, and observed relevance scores MM8 derived from eMFD crowdsourced probability times valence. The goal is to learn a unit-length vector

MM9

representing the semantic axis of one moral foundation.

For each seed word, analytical relevance is the projection

SiS_i00

The learning problem is the constrained nonlinear optimization

SiS_i01

Preprocessing normalizes the word embeddings, and the implementation uses Ipopt via JuMP in Julia, with initialization from the normalized average of SiS_i02, default Ipopt settings with tolerance approximately SiS_i03, no additional regularization, and convergence within approximately SiS_i04 on a standard desktop for SiS_i05 and SiS_i06.

Once SiS_i07 is learned, a text SiS_i08 with token embeddings SiS_i09 is scored by three interpretable metrics. Strength is

SiS_i10

Valence is

SiS_i11

and Ambivalence is

SiS_i12

These quantify, respectively, overall moral signal magnitude, virtue-versus-vice direction, and variance in moral cues.

The case study uses COVID-19 tweets collected from June 15 to July 12, 2020, yielding an initial pool of approximately SiS_i13 unique English tweets after preprocessing. For validation, the study used stratified sampling of SiS_i14 tweets per foundation and crowdsourced pairwise comparisons via the All-Our-Ideas platform to obtain latent “Strength” scores from SiS_i15 to SiS_i16. Comparative evaluation employed Rank-Biased Overlap. For Care/Harm at depth SiS_i17 and weight SiS_i18, the vec-tionary ranking achieved SiS_i19 versus SiS_i20, corresponding to a percentage performance increase of approximately SiS_i21. Across foundations, the vec-tionary outperformed eMFD on Care/Harm, Authority/Subversion, and Loyalty/Betrayal, matched on Fairness/Cheating, and trended higher on Sanctity/Degradation. In downstream prediction, a Zero-Inflated Negative Binomial regression of retweet counts showed that adding Vec-tionary Strength decreased AIC by approximately SiS_i22 points over eMFD alone, and all likelihood-ratio tests were highly significant with SiS_i23.

This approach differs from PCA-based Ethics2Vec in that the axis is not discovered from scenario-level principal components but optimized from a validated lexical seed set. Its emphasis is measurement, interpretability, and transfer to short texts, rather than agent alignment or direct normative classification.

6. Multimodal alignment, moral substrates, and open issues

"Embedding an Ethical Mind: Aligning Text-to-Image Synthesis via Lightweight Value Optimization" (Wang et al., 2024) extends the Ethics2Vec idea into generative modeling. LiVO re-uses the CLIP text encoder from Stable Diffusion v1.5 as a “value encoder,” with the same number of layers, hidden size, and attention heads as the SD text encoder. A natural-language value principle SiS_i24 is tokenized and mapped to

SiS_i25

and at every denoising step the UNet cross-attention receives the concatenated context

SiS_i26

Only the value encoder is trained; the UNet, original text encoder, VAE, and scheduler remain frozen. Training uses a diffusion-tailored preference-optimization loss built from the denoising MSE, with two margin terms comparing a preferred image SiS_i27 and a dispreferred image SiS_i28 against a reference no-value loss. The synthetic preference dataset contains approximately SiS_i29 tuples SiS_i30, derived from SiS_i31 training prompts, SiS_i32 images, and five value principles covering gender, race, nudity, bloody, and horror. Hyperparameters include batch SiS_i33, SiS_i34, SiS_i35, SiS_i36, SiS_i37, and SiS_i38 total steps. Convergence plateaus at approximately SiS_i39 steps for bias reduction and SiS_i40 for toxicity, with computational cost of approximately SiS_i41 on one A100. Reported results include the lowest SiS_i42 on gender at SiS_i43, tied best on race at SiS_i44, toxicity Avg. SiS_i45 approximately SiS_i46–SiS_i47 across nudity, bloody, and horror versus SD’s SiS_i48–SiS_i49, and only a small quality drop. The ablations indicate that using the prompt plus principle in text without the value encoder fails to debias, that removing the margin collapses quality, and that full U-Net tuning does not outperform LiVO.

A different extension appears in "Open Opportunities in AI Safety, Alignment, and Ethics (AI SAE)" (Waldner, 28 Sep 2025), which proposes a blueprint rather than a completed benchmark system. It defines a high-dimensional moral problem space

SiS_i50

and an ethical-evaluation function

SiS_i51

mapping perceptual state SiS_i52, social-institutional context SiS_i53, and candidate action SiS_i54 into moral space. Human judgment is modeled as a compressed, biased projection

SiS_i55

and, in a layered realism-relativism variant,

SiS_i56

The technical toolkit includes sparse autoencoders with

SiS_i57

causal mediation analysis by interventions on sparse dimensions, cross-cultural corpora spanning Stoicism, Confucianism, Ubuntu, Indigenous ethics, and modern virtue ethics, progressive unfreezing, contrastive losses, and distinct design objectives associated with realism, relativism, constructivism, and virtue ethics. Proposed evaluation criteria include mean pairwise cosine similarity above SiS_i58 for accepted invariants, downstream accuracy above SiS_i59, mediation effects SiS_i60 bits, less than SiS_i61 OOD degradation, and human name-agreement above SiS_i62.

These multimodal and substrate-level proposals also sharpen the main controversies around Ethics2Vec. Several papers explicitly note that ethical values may be incommensurable, that scalar or binary judgment is often inadequate, that derivative estimates and risk models can be noisy or misspecified, that the utilitarianism subset of ETHICS covers only pleasure/pain judgments, that value coverage may be narrow, and that heuristic retrieval or static embeddings may fail in context-sensitive settings. The literature therefore suggests two simultaneous trajectories: one toward operational alignment tools that embed explicit values into decision systems, and another toward richer representational frameworks in which ethical pluralism, cultural distortion, uncertainty, and institutional context become first-class objects rather than afterthoughts.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Ethics2Vec.