Contents
  1. Representations and the distinctions they preserve
  2. Direction, magnitude and comparison scores
  3. Reconstruction and prediction objectives
  4. Training relationships and valid negatives
  5. Contrastive learning and relative discrimination
  6. Coordinate compatibility and local neighborhoods
  7. Geometric failure modes and projection limits
  8. Evidence of task fit
  9. Decisive semantic distinctions and failure diagnosis
  10. Information retained beyond the intended task
  11. Selection and the embedding contract
  12. Check understanding
  13. Open questions
  14. Selected talks
  15. References
  16. Talk library
← All topics

Embeddings and Representation Learning

An embedding represents an input as numbers that another computation can use. Its value depends on which distinctions survive and which comparisons expose them. Representation learning connects training objectives to that structure; engineering evidence determines whether the resulting vectors support the intended task.

Representations and the distinctions they preserve

An embedding is a vector representation of an input. An encoder is the function producing it. Representation learning fits that function so information becomes useful to a subsequent comparison or predictor. Information can remain recoverable without being accessible through the particular score an application uses.

Refund approved, refund granted and refund denied share a topic. Only the first two express the same settled outcome. Association, interchangeable meaning and agreement therefore define different matching tasks. The distinction resembles cup–coffee association versus cup–mug similarity: choosing the relationship changes what a useful representation should expose.

Distinct objects along the encoding path

Token identity persists while new representations appear.

1 / 3 · Lookup

An ID selects its vector.

Lookup selects parameters. Contextualization uses surrounding input; pooling combines states into a sentence vector.
Read the diagram as text
  • Token occurrence.
  • Vocabulary ID.
  • Lookup vector.
  • Surrounding input.
  • Occurrence's contextual state.
  • Other token states.
  • Pooling.
  • Sentence vector.
  • Token occurrenceVocabulary ID: identifies.
  • Vocabulary IDLookup vector: selects.
  • Lookup vectorOccurrence's contextual state: transformed.
  • Surrounding inputOccurrence's contextual state: conditions.
  • Surrounding inputOther token states: encoded.
  • Occurrence's contextual statePooling: input.
  • Other token statesPooling: inputs.
  • PoolingSentence vector: produces.
  1. Lookup. An ID selects its vector. Active: Token occurrence, Vocabulary ID, Lookup vector. New: Token occurrence, Vocabulary ID, Lookup vector.
  2. Contextualization. Context adds distinct states. Active: Token occurrence, Vocabulary ID, Lookup vector, Surrounding input, Occurrence's contextual state, Other token states. New: Surrounding input, Occurrence's contextual state, Other token states.
  3. Aggregation. Pooling adds a new aggregate. Active: Token occurrence, Vocabulary ID, Lookup vector, Surrounding input, Occurrence's contextual state, Other token states, Pooling, Sentence vector. New: Pooling, Sentence vector.
  • Distributed informationA distributed representation expresses properties through combinations of coordinates; individual coordinates need not name human concepts.
  • Dimension is not compressionAn overcomplete representation has more coordinates than its input. Regularization, rather than width alone, can constrain what it learns.
  • Retrieval as one useRetrieval selects relevant items from a collection. Comparing query and document vectors supplies one selection signal; Search and Retrieval owns the surrounding system.

A token ID identifies a vocabulary entry. Embedding lookup selects that entry's row from a learned matrix. The ID is an address, not a semantic measurement; nearby integer IDs need not describe related tokens. Ordinary inference reads these learned values rather than fitting them again.

A contextual representation depends on surrounding input, so occurrences of the same token can acquire different states. These states differ from the fixed lookup vector. Transformers and Attention explains the interactions that produce them.

  • PoolingPooling combines token states into one vector. Mean pooling averages each coordinate across included states. Pooling alone does not establish useful similarity geometry; evaluate the pooled vectors for the intended task.
  • Input truncationText removed before encoding cannot influence its vector. Input-length limits and output-vector width constrain different things.

Direction, magnitude and comparison scores

A vector has coordinates. Its L2 norm measures length; the dot product sums coordinate products. Cosine compares directions; Euclidean distance measures separation. Larger dot products or cosines rank higher, while smaller distances rank closer.

For dd-coordinate vectors x,yx,y: xy=i=1dxiyi,x2=i=1dxi2x^\top y=\sum_{i=1}^{d}x_i y_i,\qquad \|x\|_2=\sqrt{\sum_{i=1}^{d}x_i^2} cos(x,y)=xyx2y2,D(x,y)=i=1d(xiyi)2\cos(x,y)=\frac{x^\top y}{\|x\|_2\|y\|_2},\qquad D(x,y)=\sqrt{\sum_{i=1}^{d}(x_i-y_i)^2} Cosine requires both vectors to be nonzero.

Magnitude changes the winner

Example

Dot product favors a; cosine favors b.

Original

Compare a's length with b's alignment to q.

Scroll sideways if the figure extends beyond the screen.

-0.250.43751.1251.81252.5-0.250.43751.1251.81252.5Coordinate 1 (dimensionless)Coordinate 2 (dimensionless)qabq=ba
  • 1. q
  • 2. a
  • 3. b
Read coordinates and regions as data

X: -0.252.5 dimensionless; Y: -0.252.5 dimensionless, increasing up. Equal scale on both axes.

q (polyline)

(0, 0); (1, 0)

a (polyline)

(0, 0); (2, 2)

b (points)

(1, 0)

q=b: (1.08, 0.15)

a: (2.1, 2.1)

Unit-normalized

Compare directions after both candidates have unit length.

Scroll sideways if the figure extends beyond the screen.

-0.250.43751.1251.81252.5-0.250.43751.1251.81252.5Coordinate 1 (dimensionless)Coordinate 2 (dimensionless)qabq=ba
  • 1. q
  • 2. a
  • 3. b
Read coordinates and regions as data

X: -0.252.5 dimensionless; Y: -0.252.5 dimensionless, increasing up. Equal scale on both axes.

q (polyline)

(0, 0); (1, 0)

a (polyline)

(0, 0); (0.70711, 0.70711)

b (points)

(1, 0)

q=b: (1.08, 0.15)

a: (0.8, 0.82)

For q=(1,0), a=(2,2), b=(1,0), dot products are 2 and 1; cosines are 1/√2 and 1. Normalization removes length. q and b coincide.
L2 normalization sets u=x/x2u=x/\|x\|_2, v=y/y2v=y/\|y\|_2. Then: uv=cos(x,y),uv22=22uvu^\top v=\cos(x,y),\qquad \|u-v\|_2^2=2-2u^\top v Unit-vector dot product, cosine and increasing closeness give equivalent rankings.
  • Magnitude is a modeling choiceNormalization removes length information. Whether that removes nuisance variation or useful signal depends on the learned objective; prediction quality alone does not validate the resulting cosine geometry.
  • Zero vectorsReject zero-vector cosine comparisons rather than assigning a semantic score.
  • Similarity is not necessarily a metricA mathematical metric satisfies the triangle inequality. For directions 0°, 45°, 90°, one-minus-cosine violates it: 1>221>2-\sqrt{2}.
  • Symmetric arithmetic, asymmetric rolesA query seeks supporting information; a passage supplies it. Symmetry of a dot product does not make those roles interchangeable. Separately trained question and passage encoders can express this distinction.

A high cosine is not a relevance probability or a portable cutoff. E5-base-v2's authors report scores commonly around 0.7–1.0, attributing this range to its training temperature. A threshold must be checked against labeled decisions for the actual model, task and population.

Reconstruction and prediction objectives

A loss specifies what training rewards; Supervision, baselines, and loss supplies that prerequisite. For representations, the crucial consequence is which distinctions the objective needs—and which it can ignore.

ObjectiveTraining signalFavored structurePotential omission
PCA reconstructionSquared reconstruction error with restricted dimensionDirections carrying leading varianceLow-variance distinctions important to another task
Autoencoder reconstructionCompare decoded output with inputInformation recoverable through the decoderDistinctions weakly penalized by the reconstruction loss
Context predictionCBOW predicts a word from context; skip-gram predicts context from a wordPatterns of linguistic co-occurrenceRelations not required by context prediction
Supervised predictionRecorded target labelsFeatures useful to the final predictorWithin-label differences unnecessary for prediction

Reconstruction through a restriction

The code must support what the reconstruction loss rewards.

The encoder produces a restricted code. The decoder reconstructs the input; loss compares reconstruction with the original target.
Read the diagram as text
  • Input x.
  • Encoder f.
  • Restricted code h.
  • Decoder g.
  • Reconstruction.
  • Reconstruction loss.
  • Input xEncoder f: input.
  • Encoder fRestricted code h: encodes.
  • Restricted code hDecoder g: code.
  • Decoder gReconstruction: decodes.
  • ReconstructionReconstruction loss: prediction.
  • Input xReconstruction loss: target.

Principal component analysis, or PCA, keeps perpendicular directions capturing leading variation. With squared reconstruction error, this provides a restricted linear representation. Suppose one feature varies greatly with background brightness while a small independent feature determines the label. Retaining only the largest-variance direction can discard the label signal. Feature scaling changes which variation dominates.

An autoencoder learns an encoder and reconstruction decoder. A small code or regularization forces prioritization. Without suitable restrictions, copying or memorizing inputs can satisfy reconstruction without producing transferable features.

  • Distributional learningThe distributional hypothesis connects similar linguistic contexts with related meanings. Word2vec's prediction directions turn observed neighboring words into targets, rather than assigning semantic coordinates manually.
  • Related does not mean agreeingAntonyms can occupy similar contexts. Explicit synonym and antonym supervision can reward a distinction that distributional training alone does not reliably expose.
  • Prediction is not geometric validationIn studied linear factorization models, different factors can preserve predictions while changing cosine scores. A successful predictor therefore does not automatically validate a chosen similarity readout.

Representational structure also matters outside text. Image autoencoders can retain a coarse spatial grid for a generative network, reducing its input size while sacrificing detail. This is a different design goal from producing one vector whose cosine captures sentence equivalence.

Training relationships and valid negatives

A positive pair contains examples training should associate. A negative pair contains examples it should distinguish. The intended relationship determines those assignments.

An augmentation transforms an input. Invariance means treating that change as irrelevant to the target. A paraphrase may preserve a refund outcome; inserting not may change it. Likewise, mirroring an image can preserve a scene category but change a character. A transformation is valid only relative to the task.

Task choice changes pair labels

Example

A denial shares the topic but changes the outcome.

These are training assignments, not observed distances. Granted is positive under both tasks; denied changes label with the task.
Read the diagram as text
  • Refund approved.
  • Topic matching.
  • Outcome matching.
  • Refund granted.
  • Refund denied.
  • Refund approvedTopic matching: If topic matters.
  • Refund approvedOutcome matching: If outcome matters.
  • Topic matchingRefund granted: Positive.
  • Topic matchingRefund denied: Positive.
  • Outcome matchingRefund granted: Positive.
  • Outcome matchingRefund denied: Negative.
  • Hard negativeA high-scoring alternative that genuinely fails the intended relationship; difficulty alone does not make its label correct.
  • False negativeAn associated example incorrectly treated as a negative. Training then pushes apart examples the application should connect. Sampling arbitrary examples can create this contradiction.
  • Semantic duplicatesDifferent strings can express the same relationship. Removing exact duplicates prevents some conflicts, but does not remove every false negative.
  • CoverageFrequently sampled alternatives shape what the learner must distinguish. Missing populations and mislabeled relationships cannot be repaired merely by optimizing the supplied pairs more aggressively.

Question–answer relevance is not paraphrase equivalence: an answer supplies information rather than restating the question. Matching conventions must reflect that distinction. Label meaning and sampling coverage explain how the underlying supervision is established.

Contrastive learning and relative discrimination

Contrastive learning learns representations by favoring associated examples over competing alternatives.

Triplet loss uses anchor aa, positive pp, negative nn, distance dd and margin m>0m>0: L=max(d(a,p)d(a,n)+m,0)L=\max(d(a,p)-d(a,n)+m,0) Zero loss requires the positive to be closer by at least mm. This is a training target, not a guaranteed learned property.
For candidate scores sks_k, temperature τ>0\tau>0, and positive index jj, excluding the anchor: pk=esk/τrCesr/τ,L=logpjp_k=\frac{e^{s_k/\tau}}{\sum_{r\in C}e^{s_r/\tau}},\qquad L=-\log p_j Lsk=pk1[k=j]τ\frac{\partial L}{\partial s_k}=\frac{p_k-\mathbf{1}[k=j]}{\tau} CC is the candidate set; the indicator is one only for the positive.
Example at temperature 1; derivatives indicate score pressure.
CandidateScoreWeightDerivative
Positiveln 20.4−0.6
Confusing negativeln 20.4+0.4
Easier negative00.2+0.2

Descending the gradient favors the positive and suppresses negatives, especially confusing ones. Lower temperature sharpens weights; these are relative discrimination probabilities, not calibrated relevance.

In-batch negatives reuse other pairs' positives as alternatives. Changing batch composition changes the discrimination problem, even for an unchanged positive pair.

  • Features versus loss vectorsSimCLR applies a projection head to encoder features for training, then discards that head downstream. Its compared vectors and retained features are distinct representations.
  • Identical outputsWith identical nonzero vectors, SimCLR assigns equal weights and loss log(2N1)\log(2N-1) for NN image pairs. No positive is distinguished; optimization success remains unguaranteed.
  • Learning without negativesAgreement alone permits constant outputs. VICReg combines paired-view agreement with coordinate variance and covariance constraints: examples should vary, and coordinates should avoid repeating the same information. These constraints offer another approach to preventing collapse.

Coordinate compatibility and local neighborhoods

A shared rotation changes coordinates without changing cosine. For an orthogonal matrix QQ, QQ=IQ^\top Q=I, so (Qx)(Qy)=xy(Qx)^\top(Qy)=x^\top y; lengths and Euclidean separations also remain unchanged. Arbitrary affine mappings lack this guarantee. Coordinate meanings and compatibility between independently trained spaces require evidence, even when dimensions match.

Dual encoders use separate functions for the two sides of a comparison. Joint training can make their outputs compatible: Dense Passage Retrieval trains question and passage encoders against relevant and negative passages. Different functions can share a scoring space; equal-sized arrays alone do not establish one.

New candidates change the nearest neighbor

Example

The query stays fixed; membership changes.

Initial collection

Follow the dashed link from q to A.

Scroll sideways if the figure extends beyond the screen.

-10.251.52.754-10.251.52.754Coordinate 1 (dimensionless)Coordinate 2 (dimensionless)qABNearest linkqAB
  • 1. q
  • 2. A
  • 3. B
  • 4. Nearest link
Read coordinates and regions as data

X: -14 dimensionless; Y: -14 dimensionless, increasing up. Equal scale on both axes.

q (points)

(0, 0)

A (points)

(2, 0)

B (points)

(0, 3)

Nearest link (polyline)

(0, 0); (2, 0)

q: (-0.15, -0.25)

A: (2.15, 0.2)

B: (0.15, 3.2)

C added

Follow the replacement link from q to C.

Scroll sideways if the figure extends beyond the screen.

-10.251.52.754-10.251.52.754Coordinate 1 (dimensionless)Coordinate 2 (dimensionless)qABCNearest linkqABC: new
  • 1. q
  • 2. A
  • 3. B
  • 4. C
  • 5. Nearest link
Read coordinates and regions as data

X: -14 dimensionless; Y: -14 dimensionless, increasing up. Equal scale on both axes.

q (points)

(0, 0)

A (points)

(2, 0)

B (points)

(0, 3)

C (points)

(0.5, 0)

Nearest link (polyline)

(0, 0); (0.5, 0)

q: (-0.15, -0.25)

A: (2.15, 0.2)

B: (0.15, 3.2)

C: new: (0.6, 0.35)

Euclidean distance, k=1. Initially A wins at distance 2. Adding C at distance 0.5 replaces A; q, A and B have not moved. No relevance labels are assigned.
  • Role conventionsAn encoder may require different query and passage prefixes. These conventions are part of the trained comparison, not optional presentation text.
  • Across modalitiesCLIP learns image–text compatibility by favoring matched pairs over mismatches. Shared comparisons come from paired training, not from images and text naturally having identical coordinates. Broader alignment belongs to Multimodal Models and Applications.

A nearest-neighbor set contains the closest candidates under a specified distance and collection. A k-neighbor query fixes the count; a radius query fixes a boundary. Density and sampling affect membership. Ties at the cutoff also require a policy, since input ordering can decide them.

The nearest available item can still be irrelevant. If a collection contains only bird articles and none answers a fish query, returning its nearest five items supplies no answer. Local similarity also does not establish semantic equivalence through a chain of neighbors.

  • Clusters need an interpretationGeometric groups do not supply authoritative semantic labels. Structure learning explains this distinction.
  • Separate index errorsAn approximate search can miss exact neighbors even when the representation is useful. Search and Retrieval covers index behavior; semantic fit and approximation accuracy are separate tests.

Geometric failure modes and projection limits

Unhelpful geometry has several distinct causes. Nonzero vectors can still be identical; varying coordinates can still duplicate information. A two-dimensional scatterplot cannot establish the high-dimensional diagnosis.

PhenomenonMeaningDiagnosticInterpretation limit
Constant-output collapseDifferent inputs receive the same vectorAcross-example coordinate varianceNonzero variance does not establish useful distinctions
Coordinate redundancyCoordinates repeat information, as in (t, t)Covariance between coordinatesVariation alone does not establish independent information
AnisotropyDirections are unevenly distributedRandom-pair cosine and dominant directionsHigh background cosine changes the interpretation of individual scores
HubnessSome items repeatedly appear in neighbor setsEach item's k-neighbor occurrence countFrequent appearance and usefulness are different properties
Distance concentrationDistance spread is small relative to distance magnitudeRelative spread under a specified distanceDimension alone does not establish concentration or hubness

Record the sampled population and scoring rule with these diagnostics. Hubness studies show that its occurrence depends on the distribution and distance, including counterexamples under cosine. Vector-norm distributions add context, but no particular norm pattern by itself establishes a semantic defect.

Centering subtracts the population mean. Removing dominant directions then suppresses selected high-variance components; ordinary PCA compression instead retains leading components. All-but-the-Top tested the former on particular word representations. Neither transformation is a universal repair: altered geometry must improve the intended task, and the number of removed directions is application-dependent.

  • t-SNEThis neighborhood-oriented dimensionality-reduction method creates a low-dimensional display. Its parameters and optimization can change apparent islands, cluster sizes and inter-cluster distances; density adaptation can make differently spread groups look similarly sized.
  • UMAPThis neighborhood-oriented projection can distort density and introduce false tears. Neighborhood settings change local emphasis, while minimum-distance settings affect packing. Cleaner visible gaps do not establish genuine separation in the original space.
  • Original-space confirmationUse a plot to propose a pattern, then check neighbors and separation using the original vectors and intended score. Agreement across attractive displays is still weaker than task evidence.

Evidence of task fit

A readout is the computation consuming a representation. Training a classifier, comparing pairs and selecting neighbors test different readouts.

A frozen encoder keeps its parameters unchanged. A linear probe trains only a linear predictor on its outputs. Held-out success supports accessibility to that restricted predictor. Failure does not establish that the information is absent, and success does not show that cosine exposes it or that the original model uses it.

Shared vectors, different evidence

Each readout supports its own conclusion.

Frozen vectors feed three alternative evaluations. Success on one branch does not validate the others.
Read the diagram as text
  • Frozen vectors.
  • Linear predictor.
  • Pair-score rule.
  • Neighbor task.
  • Linear accessibility.
  • Pair discrimination.
  • Task usefulness.
  • Frozen vectorsLinear predictor: train readout.
  • Frozen vectorsPair-score rule: score pairs.
  • Frozen vectorsNeighbor task: rank collection.
  • Linear predictorLinear accessibility: held-out labels.
  • Pair-score rulePair discrimination: labeled pairs.
  • Neighbor taskTask usefulness: task outcomes.
  • False matchA pair accepted despite failing the required relationship.
  • Missed matchA valid pair rejected. Raising a fixed similarity cutoff reduces acceptances, potentially trading fewer false matches for more misses.
  • Independent assessmentFit the probe on training examples, choose settings separately, and evaluate on held-out cases. Generalization explains why training accuracy cannot establish transfer.

MTEB, the Massive Text Embedding Benchmark, spans multiple tasks and languages. Its original results show task-dependent rankings, so a strong semantic-similarity result cannot substitute for retrieval evidence.

Generated evaluation queries can be misleadingly easy when they mirror source wording. In a reported chatbot study, generated and logged queries were compared for both score proximity and preservation of model ordering. That checks whether generated data supports the same selection decision; it does not make every synthetic query set representative.

  • Controlled comparisonCompare candidates on the same cases and task labels, documenting preprocessing differences. Keep representative real queries as a reference. Controlled offline comparisons covers the broader design.
  • Useful baselinesA lexical matcher is a meaningful retrieval comparator because it preserves matching terms directly. A learned vector method must justify its additional behavior against the actual task, not merely another encoder.

Decisive semantic distinctions and failure diagnosis

Minimal pairs isolate controlled edits. For outcome, amount and record matching, use Refund R104 for $25 approved on June 5 as a constructed baseline; the following labels specify requirements, not measured encoder behavior.

EditRequired distinctionTest
approved → grantedSame settled outcomeParaphrase preservation
approved → not approvedDifferent outcomeNegation sensitivity
$25 → $250Different amountExact numeric agreement
June 5 → June 15Different dateStructured date comparison
R104 → R140Different recordExact identifier comparison
approved → may be approvedUnresolved outcomeUncertainty-aware labels

Negation-focused adaptation improved tested negation and antonym sensitivity, while many other edits—including number replacement—remained difficult. Some broader tasks improved and others declined. Repairing one distinction therefore does not establish general semantic fidelity.

  • Inspect what reached the encoderConfirm that decisive text survived preprocessing and input truncation. More output coordinates cannot recover text that never entered the model.
  • Inspect aggregationCompare token-level evidence with the pooled representation; aggregation and task training require separate checks.
  • Inspect supervisionAudit positive and negative assignments. Contradictory supervision may punish the very matches the application needs, especially among semantically duplicated examples.
  • Inspect population fitGeneric similarity can obscure distinctions within a niche corpus. Test the domain and language actually used, including close competing entities. Distribution shift explains why earlier coverage may not transfer.
  • Inspect the readoutIf a held-out probe distinguishes outcomes but cosine does not, the evidence implicates the tested similarity readout, not necessarily information absence. A cutoff cannot independently recover a distinction that its scores fail to separate.

Bias also needs a defined consuming task. A study of ELMo tested gender-swapped sentences and a coreference system, which decides which mentions refer to the same entity. Performance differed when occupation stereotypes agreed or conflicted with pronouns. This connects representational associations to task behavior without claiming that every encoder or demographic setting behaves identically.

A missing time filter or unextracted document field can resemble a model failure. When correctness requires exact amounts, identifiers or dates, retain and compare those fields explicitly rather than asking broad similarity to certify them. Segment-level investigation helps distinguish missing infrastructure from an encoder limitation.

Information retained beyond the intended task

Attribute inference predicts sensitive properties from a representation. In studied text encoders, separate attackers recovered demographic labels from encoded examples, including after the original adversary performed near chance. One unsuccessful attacker therefore did not establish removal. Minimization and identification risk addresses the resulting data decisions.

Embedding inversion attempts source reconstruction. Vec2Text demonstrated recovery under access to embeddings and text–embedding pairs from the relevant encoder, including names in clinical-note experiments. Recovery depends on access, training and input conditions. Unreadable vectors are not automatically anonymous; derived-data handling includes these artifacts.

One representation permits multiple readouts

Task usefulness does not establish information minimization.

With vector access and suitable training, separate predictors can target intended labels, sensitive attributes or source reconstruction. Success depends on the access and training conditions.
Read the diagram as text
  • Stored representation.
  • Intended task predictor.
  • Sensitive-attribute predictor.
  • Reconstruction decoder.
  • Stored representationIntended task predictor: vector input.
  • Stored representationSensitive-attribute predictor: attacker vector access.
  • Stored representationReconstruction decoder: attacker vector access.
  • Recoverability is readout-dependentA custom decoder with a trained adapter recovered some names, topic and structure from another model's embeddings. This demonstrates a possible readout, not lossless decoding from arbitrary embedding APIs.
  • Closeness is not factual preservationNearby perturbations in a text-decoding prototype retained semantic material while changing a book title and identity. A useful neighborhood can coexist with lost exact details.

Selection and the embedding contract

An embedding contract specifies the encoder and conventions that make a comparison meaningful. It binds produced vectors to their intended scoring space; matching shapes establish only structural compatibility.

Contract elementRecord explicitly
Encoder identityExact model revision and compatible query/candidate functions
InputRepresented unit, language/domain, role prompt, input limit and truncation
AggregationToken states versus sentence output, pooling and included positions
OutputNormalization, dimension and numerical precision
ComparisonScoring convention and compatible candidate-vector generation

E5-base-v2 provides a concrete example: English input, 768-dimensional output, a 512-token limit, role prefixes, average pooling over unmasked states and normalization in its documented example. Those details describe that model's interface; they are not universal embedding defaults.

Matryoshka Representation Learning explicitly trains selected vector prefixes with their own task losses. Shorter prefixes are consequently trained representations, unlike arbitrary coordinate deletion. Reducing stored width can lower downstream storage and comparison work, but need not proportionally reduce encoder computation. Measure retained task quality at each supported width.

  • Changed encoder or role conventionRecompute affected vectors or establish validated compatibility before mixing generations. A query-only change can reuse candidate vectors only when that compatibility is demonstrated.
  • Changed precision or output widthRecheck the deployed readout on the same task cases. An API option establishes availability, not acceptable accuracy. Numerical representation belongs to Quantization.
  • Changed domain conditioningCorpus-conditioned encoders can use surrounding documents to emphasize local distinctions, as in a reported Visa/Mastercard example. Their additional context mechanism requires its own task comparison; broader gains cannot be assumed.
  • Practical acceptanceMeasure actual encoding latency, stored vector size and comparison cost alongside task quality. Smaller outputs and faster encoding are separate benefits to verify.
  • System boundaryKeep compatible query and candidate artifacts together. Index replacement and serving operations belong to Search and Retrieval; representation compatibility remains a prerequisite.

Open questions

  1. Relation-specific supervision must preserve desired paraphrases while separating opposition. Shared contexts make these goals difficult to disentangle. Progress would demonstrate improved antonym discrimination on held-out pairs without degrading the application's valid similarity relationships.

  2. Cross-model alignment could reduce recomputation, but fitting a mapping does not establish preserved rankings or decisions. A useful result would retain held-out neighborhood membership and task thresholds across relevant populations, rather than merely minimizing coordinate reconstruction error.

  3. Corpus-conditioned representations may expose niche distinctions, but neighboring-document selection adds another dependency. Progress would show stable gains on unseen entities and changing corpus composition, with explicit costs and comparison against improved training data.

  4. Geometric postprocessing needs criteria for distinguishing nuisance directions from useful signal. A more uniform space can still lose task information. Progress would predict which transformations help a specified readout and confirm those gains independently across meaningful task slices.

Follow the curated reading path through the speakers and demonstrations behind this entry.

Explore more talks

The rest of the library, beyond the curated path. Cited talks support this entry; reviewed transcripts were processed in full. Metadata candidates have not been reviewed as sources or verified as topic members.

4 matching talks

TalkSpeakerEventYear
Daniel HanAI Engineer World's Fair 20242024
Eugene YanAI Engineer World's Fair 20252025
Anton TroynikovAI Engineer Summit 20232023
Kevin HouAI Engineer World's Fair 20242024

References

Coverage and source review
Processed transcripts
10 processed in full · 6 in the curated path
Automated source review
Passed
Metadata candidates
0 unreviewed; not verified topic membership
Corpus version
1bd8e407b26a07b33815594e1b2db5f41827119a2b3cb6fbf240f9fc571fc767

Automated review checks source support; it is not publication approval.

A synthesis of selected conference talks and technical references. Citations link to the source material; they do not imply that every talk on this subject is included.

  1. Deep Learning, Chapter 2: Linear Algebra

    Sections 2.2, 2.5–2.6; ranking example, distance identity, rotation preservation, and counterexample are algebraic deductions.

  2. scikit-learn: Nearest Neighbors

    Overview and section 1.6.1; definition and published fixture, without index implementation details.

  3. Deep Learning, Chapter 15: Representation Learning

    Chapter introduction and section 15.4; representation purpose, supervised feature learning, and distributed representation vocabulary.

  4. SimLex-999: Evaluating Semantic Models With (Genuine) Similarity Estimation

    Introduction, dataset design, and reported evaluation conclusions; vocabulary for similarity versus relatedness.

  5. Deep Learning, Chapter 14: Autoencoders

    Introduction and sections 14.1–14.2; complements the supplied PCA note with reconstruction criteria and capacity conditions.

  6. Sentence Transformers: semantic search

    Symmetric versus Asymmetric Semantic Search; Manual Implementation; Speed Optimization; Elasticsearch.

  7. How LLMs work for Web Devs: GPT in 600 lines of Vanilla JS

    The demonstrated GPT-2 implementation obtains a token embedding by selecting the corresponding row of the learned model_wte matrix.

  8. How Contextual Are Contextualized Word Representations? Comparing the Geometry of BERT, ELMo, and GPT-2 Embeddings

    Sections 3.1–3.4 and 4.1; contextual units, anisotropy, and diagnostic baselines.

  9. Sentence-BERT: Sentence Embeddings Using Siamese BERT-Networks

    Section 3, triplet equation, section 4.1 and Table 1.

  10. E5-base-v2 Model Card

    Usage example, FAQ and Limitations; inspected upstream model conventions.

  11. Sentence Transformers: SentenceTransformer API

    Constructor revision parameter and encode documentation; reproducible input/output conventions.

  12. Is Cosine-Similarity of Embeddings Really About Similarity?

    Sections 2.1–2.3; analytical results for the specified regularized linear models.

  13. Dense Passage Retrieval for Open-Domain Question Answering

    Primary paper version 3, sections 1 and 3; dual encoders, dot-product scoring, offline indexing, and negatives.

  14. scikit-learn: Principal component analysis

    Section 2.5.1, especially Exact PCA and probabilistic interpretation. Introduces dimensionality reduction through variance preservation.

  15. Efficient Estimation of Word Representations in Vector Space

    Sections 3.1–3.2 and 4; historical predictive representation objectives.

  16. Word Embedding-based Antonym Detection Using Thesauri and Distributional Information

    Introduction and sections 2.1–2.2; objective mismatch and relation-specific supervision.

  17. Building Generative Image & Video Models at Scale

    Learned autoencoder latents reduce memory requirements while preserving grid structure useful to the generative network.

  18. Sentence Transformers: Losses

    MultipleNegativesRankingLoss and MegaBatchMarginLoss; pair meanings, in-batch alternatives, temperature, duplicates, and hard-negative vocabulary.

  19. Foundations of Computer Vision: Training for Robustness and Generality

    Data augmentation discussion and equations defining invariance, equivariance, and paired image/label cropping.

  20. Debiased Contrastive Learning

    Introduction, equation 1 and Figures 1–2; why negative sampling can contradict the desired relationship.

  21. A Simple Framework for Contrastive Learning of Visual Representations

    Sections 2.1, 2.3 and 3.1; equal-score loss and temperature interpretation follow from equation 1.

  22. VICReg: Variance-Invariance-Covariance Regularization for Self-Supervised Learning

    Section 4.1, equations 1–6; collapse vocabulary and variance/covariance diagnostics.

  23. Learning Transferable Visual Models From Natural Language Supervision

    Original paper, contrastive pretraining method, zero-shot transfer, and limitations. Introduces shared embeddings and language-conditioned recognition.

  24. Retrieval Augmented Generation in the Wild

    Nearest-neighbor retrieval returns candidates even when the corpus cannot answer the query; rank alone does not establish relevance.

  25. Efficient and Robust Approximate Nearest Neighbor Search Using Hierarchical Navigable Small World Graphs

    Malkov and Yashunin; graph construction and search algorithms, including ef candidate-list control.

  26. How to Use t-SNE Effectively

    Original interactive investigations, sections 1–6; dimensionality-reduction vocabulary and visualization limitations.

  27. Hubs in Space: Popular Nearest Neighbors in High-Dimensional Data

    Sections 3.1 and 4.1–4.2; definitions, diagnostics, and distribution-dependent behavior.

  28. All-but-the-Top: Simple and Effective Postprocessing for Word Representations

    Introduction and section 2; centering, dominant-direction removal, and task-based assessment.

  29. UMAP: Using UMAP for Clustering

    Opening caveats and UMAP-enhanced clustering section.

  30. MTEB: Massive Text Embedding Benchmark

    Section 3.2 and section 4.2; original benchmark protocols and task-transfer findings.

  31. Understanding Intermediate Layers Using Linear Classifier Probes

    Sections III-A–III-D; the final interpretation follows from restricting the measuring classifier to a linear readout.

  32. How to look at your data; what to look for, how to measure

    Synthetic queries can overstate retrieval quality when they are too specific to the source document or unrealistically clean.

  33. How to look at your data; what to look for, how to measure

    Check both score proximity and preservation of model ordering between synthetic queries and logged user queries.

  34. This Is Not Correct! Negation-aware Evaluation of Language Generation Systems

    Sections 4.1 and 5.1–5.2, Table 2 and Figures 3–4.

  35. Stuffing Context is not Memory, Updating Weights is

    The speaker reports that contextual embeddings improve domain-specific distinctions by conditioning each document's representation on surrounding documents.

  36. Gender Bias in Contextualized Word Embeddings

    Sections 3.2–3.3 and 4; contextual representations, controlled edits, and task-level bias evidence.

  37. How to look at your data; what to look for, how to measure

    Segment-specific failures can identify missing filters or data extraction steps rather than a need to improve the model itself.

  38. Adversarial Removal of Demographic Attributes from Text Data

    Sections 2–5; attribute inference as prediction from representations, complementary to the supplied inversion note.

  39. Text Embeddings Reveal (Almost) As Much As Text

    EMNLP 2023 paper; reconstruction method, tested encoders and clinical-note experiment.

  40. The Hidden Life of Embeddings

    A trained linear adapter let the custom decoder recover approximate text, including some proper nouns and structure, from an OpenAI embedding without source text at decoding time.

  41. The Hidden Life of Embeddings

    Sampling near an embedding produced semantic variation but corrupted identifying details such as a book title and author identity.

  42. Two-tower retrieval, approximation and compatible deployment artifacts

    Model definition; Building an index; Evaluating the approximation; Exporting the model; Tuning ScaNN. Artifact replacement and rollback requirements are deductions from the documented construction.

  43. Matryoshka Representation Learning

    Section 3; nested-prefix training mechanism and representation-size tradeoff.

  44. Attention Is All You Need

    Sections 3.1, 3.2.3, 3.4 'Embeddings and Softmax', 3.5 'Positional Encoding', and 5.3 'Optimizer'.

  45. How LLMs work for Web Devs: GPT in 600 lines of Vanilla JS

    Attention lets context influence token representations, while the demonstrated decoder attention matrix prevents influence from future positions.

  46. How Transformers Finally Ate Vision

    Frozen pretrained features can be evaluated with a learned linear projection, isolating how much useful information the representation already contains.

  47. How LLMs work for Web Devs: GPT in 600 lines of Vanilla JS

    In the co-occurrence example, cosine similarity preserves similarity of relative context patterns despite differences in word frequency.

  48. Retrieval Augmented Generation in the Wild

    Models trained with similar data and the same objective may learn representations that can be aligned with an affine transform.