---
title: 'Ethics2Vec: Vectorizing Ethical Judgments'
url: https://www.emergentmind.com/topics/ethics2vec
type: topic
---

# Ethics2Vec: Vectorizing Ethical Judgments

Searching arXiv for recent 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” [2402.11777] [2508.07673] [2605.28707] [2312.05990] [2410.12700] [2509.24065]. 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 |
|---|---|---|
| [2402.11777] | ETHICS Utilitarianism scenarios | PCA coordinates from pretrained embeddings |
| [2508.07673] | Binary agents and control laws | Vectors of local trade-off derivatives |
| [2605.28707] | Moral cases | Normative simplex, semantic supervector, fused embedding |
| [2312.05990] | Moral appeals in text | Learned semantic axis per moral foundation |
| [2410.12700] | Value principle for T2I generation | Plug-and-play value encoder |
| [2509.24065] | 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 Language Model Embeddings" [2402.11777], the underlying task is the ETHICS Utilitarianism dataset of labeled pairs
\[
(S_i,T_i,y_i), \quad i=1,\dots,N,
\]
where \(S_i\) and \(T_i\) are two natural-language scenarios and \(y_i=1\) if “\(S_i\) is more pleasant than \(T_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 \(\Delta_i=f(S_i)-f(T_i)\), which is then classified directly.

The construction begins with a pretrained embedding function \(f(\cdot)\). For a training set of \(M\) examples, the data matrix
\[
E \in \mathbb R^{M\times d}
\]
is formed from zero-meaned and unit-variance normalized feature vectors. The empirical covariance is
\[
C=\frac{1}{M}E^\top E,
\]
followed by eigendecomposition or SVD,
\[
Cw_k=\lambda_k w_k,\qquad \lambda_1\ge\lambda_2\ge\cdots\ge\lambda_d\ge 0.
\]
The top-\(k\) eigenvectors are collected into
\[
W=[w_1,\dots,w_k]\in\mathbb R^{d\times k},
\]
and a new embedding \(e\) is mapped to the Ethics2Vec coordinate
\[
p=W^\top e\in\mathbb R^k.
\]

Empirically, the first principal component \(w_1\) captures a “utilitarian” direction, with score
\[
s=e\cdot w_1.
\]
The sign and magnitude of \(s\) correlate with human judgements of pleasantness. A one-dimensional classifier thresholds \(s\), often with \(\tau\approx 0\) 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 \(73.9\%\) accuracy, closely matching the \(74.6\%\) of BERT-large finetuned on the entire ETHICS dataset. For text-embedding-ada-002 with \(d=1536\), the reported ETHICS utilitarian test accuracies are \(73.9\%\) at \(k=1\), \(79.8\%\) at \(k=10\), \(80.4\%\) at \(k=50\), and \(81.8\%\) at \(k=300\). The paper further reports that performance is nondecreasing with increased model size within a family when using sufficiently many principal components, such as \(k=300\), 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" [2508.07673] defines Ethics2Vec as a way to reverse-engineer, from observational data, a small real-valued vector \(E\in\mathbb R^d\) 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 \(s(x)\) and applies a threshold \(\tau^\*\) to produce \(\hat y(x)=1\) if \(s(x)\ge \tau^\*\), else \(0\). The loss matrix has \(L_{FP}>0\) for false positives and \(L_{FN}>0\) for false negatives, and the average loss as a function of threshold is approximated by
\[
L(\tau)\approx L_{FP}\cdot FPR(\tau)\cdot P_N + L_{FN}\cdot FNR(\tau)\cdot P_P.
\]
Optimality at \(\tau^\*\) yields
\[
\frac{d\,TPR/d\,\tau}{d\,FPR/d\,\tau}\Big|_{\tau^\*}
=
\left(\frac{L_{FP}}{L_{FN}}\right)\left(\frac{P_N}{P_P}\right).
\]
The 2-dimensional embedding is then
\[
E=[\alpha,\beta], \qquad
\alpha:=\frac{d\,TPR}{d\,\tau}\Big|_{\tau^\*},\;
\beta:=\frac{d\,FPR}{d\,\tau}\Big|_{\tau^\*},
\]
from which
\[
L_{FP}/L_{FN}=(\alpha/\beta)\cdot(P_P/P_N)
\]
may be recovered.

In the continuous-control formulation, discrete time \(t=1,\dots,T\) is assumed, with observation \(x(t)\), control output \(u(t)=K(x(t))\), and \(R\) human-relevant risk events \(E_i\). Risk functions
\[
r_i(x,u)=\Pr[E_i \text{ occurs }|x,u]
\]
are defined, with human cost
\[
L=\sum_{t,i} w_i\cdot r_i(x(t),u(t)).
\]
First-order optimality gives
\[
\sum_{i=1}^R w_i\cdot \frac{\partial r_i(x(t),u)}{\partial u}\Big|_{u=K(x(t))}=0,
\]
and the time-local embedding is
\[
E(t)=\left[\frac{\partial r_1}{\partial u},\dots,\frac{\partial r_R}{\partial u}\right]_{u=K(x(t))},
\]
with a time-averaged version
\[
E=\frac{1}{T}\sum_{t=1}^T E(t)\in\mathbb R^R.
\]

Once agents are mapped to points \(E_i\in\mathbb R^d\), alignment to a human-preference vector \(H\in\mathbb R^d\) 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 \(L_{FP}/L_{FN}\) in \(\{0.10,\dots,0.50,2.00,\dots,5.00\}\), evaluated on a test set of \(10\,000\) 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\dots T=4\,h\) and positions \(0\dots 250\,km\), 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" [2605.28707] 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
\[
\alpha,\beta,\gamma
\]
for consequentialism, virtue ethics, and deontology, respectively, and every case \(m\) lies in the probability simplex
\[
\Delta^2=\{(\alpha,\beta,\gamma)\in\mathbb R^3\mid \alpha+\beta+\gamma=1,\;\alpha,\beta,\gamma\ge 0\}.
\]
The basis vectors are \(e_C=(1,0,0)\), \(e_V=(0,1,0)\), and \(e_D=(0,0,1)\). Fifteen fine-grained subtheories are organized beneath these three corners: five consequentialist subtheories, five deontological subtheories, and five virtue-ethics subtheories.

The prior \((\alpha,\beta,\gamma)\) 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 \(M\), the pairwise ratio \(T_1/T_2\) between the top two scores, and entropy
\[
En=-\sum_{t\in\{\alpha,\beta,\gamma\}} t\log t.
\]
These are collected into a normative-feature vector \(N\in\mathbb R^7\). In parallel, a semantic-contextual stream builds a “Triple-BERT” semantic supervector
\[
SV=[E_1;E_2;E_3]\in\mathbb R^{1920},
\]
where \(E_1=\) all-MiniLM-L6-v2 with \(384D\), \(E_2=\) all-distilRoBERTa-v1 with \(768D\), and \(E_3=\) multi-qa-mpnet-base-dot-v1 with \(768D\). Contextual features include consequence severity, consequence duration, consequence utility, moral intention, principles upheld, and principles violated, concatenated as
\[
C=[C_{Sev},C_{Dur},C_{Ut},MI,P_{up},P_{vi}].
\]
Fusion is by straight concatenation,
\[
F=[N;SV;C]\in\mathbb R^{7+1920+d_C}.
\]

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 \(88.89\%\) and macro-\(F_1\) is \(88.78\%\). The ablation study reports \(0.8889\) for Full Normative + Semantic + Context, \(0.8556\) for Semantic + Context only, \(0.8111\) for Normative + Semantic only, and \(0.7778\) for Embeddings only. Removing any one of the three semantic heads degrades performance by approximately \(1\)–\(2\) 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 \((\alpha,\beta,\gamma)\). 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" [2312.05990] presents a related but lexically grounded Ethics2Vec methodology for measuring moral content in text. The construction starts with a validated dictionary \(V=\{w_1,\dots,w_N\}\), here the extended Moral Foundations Dictionary eMFD with roughly \(3{,}270\) words, pretrained word embeddings \(\mathbf w_i\in\mathbb R^d\) with \(d=300\) from Word2Vec, and observed relevance scores \(s_i\in[-1,1]\) derived from eMFD crowdsourced probability times valence. The goal is to learn a unit-length vector
\[
\mathbf m\in\mathbb R^d,\qquad \|\mathbf m\|_2=1,
\]
representing the semantic axis of one moral foundation.

For each seed word, analytical relevance is the projection
\[
\hat s_i=\mathbf w_i\cdot \mathbf m.
\]
The learning problem is the constrained nonlinear optimization
\[
\min_{\mathbf m\in\mathbb R^d}\sum_{i=1}^N(\mathbf w_i\cdot\mathbf m-s_i)^2
\quad\text{subject to}\quad
\|\mathbf m\|_2=1.
\]
Preprocessing normalizes the word embeddings, and the implementation uses Ipopt via JuMP in Julia, with initialization from the normalized average of \(\{s_i\mathbf w_i\}\), default Ipopt settings with tolerance approximately \(10^{-6}\), no additional regularization, and convergence within approximately \(120\,s\) on a standard desktop for \(d=300\) and \(N\approx 3{,}270\).

Once \(\mathbf m\) is learned, a text \(T\) with token embeddings \(\mathbf u_j\) is scored by three interpretable metrics. Strength is
\[
S(T)=\frac{1}{n}\sum_{j=1}^n |\cos\theta_j|,
\]
Valence is
\[
V(T)=\frac{1}{n}\sum_{j=1}^n \cos\theta_j,
\]
and Ambivalence is
\[
A(T)=\frac{1}{n}\sum_{j=1}^n (\cos\theta_j-V(T))^2.
\]
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 \(2.3\,M\) unique English tweets after preprocessing. For validation, the study used stratified sampling of \(2{,}000\) tweets per foundation and crowdsourced pairwise comparisons via the All-Our-Ideas platform to obtain latent “Strength” scores from \(0\) to \(100\). Comparative evaluation employed Rank-Biased Overlap. For Care/Harm at depth \(200\) and weight \(0.80\), the vec-tionary ranking achieved \(R_{\mathrm{Vec},\mathrm{C.S.}}=0.16\) versus \(R_{\mathrm{eMFD},\mathrm{C.S.}}=0.12\), corresponding to a percentage performance increase of approximately \(34.7\%\). 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 \(202\,k\) points over eMFD alone, and all likelihood-ratio tests were highly significant with \(p<.001\).

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" [2410.12700] 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 \(v\) is tokenized and mapped to
\[
E^v(v)\in\mathbb R^{T\times D},
\]
and at every denoising step the UNet cross-attention receives the concatenated context
\[
[E^v(v);E^x(x)]\in\mathbb R^{(T+L)\times D}.
\]
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 \(y_w\) and a dispreferred image \(y_l\) against a reference no-value loss. The synthetic preference dataset contains approximately \(86{,}000\) tuples \((x,v,y_w,y_l)\), derived from \(1{,}432\) training prompts, \(159{,}040\) images, and five value principles covering gender, race, nudity, bloody, and horror. Hyperparameters include batch \(=8\), \(\beta=1000\), \(\alpha=500\), \(\gamma_1=1.0\), \(\gamma_2=0.5\), and \(15{,}000\) total steps. Convergence plateaus at approximately \(6{,}000\) steps for bias reduction and \(3{,}000\) for toxicity, with computational cost of approximately \(3.6\,h\) on one A100. Reported results include the lowest \(D_2\) on gender at \(23.8\), tied best on race at \(28.2\), toxicity Avg. \(R\) approximately \(12\)–\(1.0\) across nudity, bloody, and horror versus SD’s \(91\)–\(77\), 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)" [2509.24065], which proposes a blueprint rather than a completed benchmark system. It defines a high-dimensional moral problem space
\[
M\subseteq \mathbb R^k
\]
and an ethical-evaluation function
\[
\epsilon:S\times I\times A\to M
\]
mapping perceptual state \(S\), social-institutional context \(I\), and candidate action \(A\) into moral space. Human judgment is modeled as a compressed, biased projection
\[
\tilde M=WM^\star,\qquad n\ll k,
\]
and, in a layered realism-relativism variant,
\[
\tilde M=WM^\star + B(M^\star,I).
\]
The technical toolkit includes sparse autoencoders with
\[
\mathcal L_{\rm SAE}
=
\mathbb E\big[\|h-D(E(h))\|_2^2\big]+\lambda\|E(h)\|_1,
\]
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 \(0.85\) for accepted invariants, downstream accuracy above \(90\%\), mediation effects \(\Delta_j>0.5\) bits, less than \(10\%\) OOD degradation, and human name-agreement above \(80\%\).

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.

Source: https://www.emergentmind.com/topics/ethics2vec