DINOv3 vs DINOv2: features, licenses and retrieval
Compare DINOv2 and DINOv3, distinguish dense features from pooled API vectors, and test same-space image retrieval with offline Python.
DINOv3 extends DINOv2's self-supervised visual representation approach with larger-scale training and Gram anchoring, which targets degradation of dense features during long training. DINOv2 remains useful when you need its established feature space, existing downstream models or Apache-2.0 licensing. DINOv3 is worth evaluating for a new dense-vision pipeline if its custom license fits your use case.
Neither choice is a drop-in upgrade for a retrieval index. Vectors from different checkpoints inhabit different learned coordinate systems, even when their lengths match. Re-embed your reference images when changing encoders, then evaluate retrieval separately within each model's space.
There is also an interface distinction: upstream DINO backbones expose spatial features, but OpenRobotics' /v1/embed adapter returns one pooled, normalized vector per image. It does not return a patch grid, segmentation mask or depth map. This guide checks that implementation as of December 1, 2026 and includes an offline synthetic retrieval fixture, not a live model benchmark.
DINOv2 versus DINOv3 at a glance
| Question | DINOv2 | DINOv3 |
|---|---|---|
| Core release | 2023 | 2025 |
| Main web-image training set | LVD-142M | LVD-1689M |
| Large teacher described upstream | ViT-g, about 1.1B parameters | ViT-7B, about 6.7B parameters |
| ViT patch size | 14 pixels | 16 pixels |
| Distilled models | Includes Small, Base and Large | Includes Small, Small+, Base, Large, Huge+ and ConvNeXt variants |
| Distinguishing training change | Strong combined image- and patch-level self-supervision | Gram anchoring and scaling, plus post-training adaptations |
| Core release license | Apache-2.0 | Custom DINOv3 License |
These are family-level facts, not a statement that a hosted endpoint runs the largest teacher. The configured OpenRobotics entries use Large checkpoints for both families. Nor does a published benchmark establish which model will retrieve your robot's parts, tools or scene states best. That requires a dataset and relevance definition matching your application.
What DINOv2 learns
The DINOv2 paper describes general-purpose visual features learned without manual labels. Image-level and patch-level objectives encourage useful representations at different scales. Data curation, training stabilization and distillation help turn one large pretrained model into smaller backbones that work with simple downstream heads.
An encoder maps an image into numerical features. A global feature summarizes the image; patch features retain a grid of local descriptors. A classifier can learn a mapping from those features to labels. A dense head can map local features to segmentation or depth predictions. Those heads, their training labels and their evaluation protocols are separate from the backbone itself.
The official DINOv2 repository publishes backbones with and without register tokens. Registers are additional tokens, not extra image patches. When reproducing a dense-feature pipeline, select the exact checkpoint and token extraction method expected by the downstream code. Mixing register and non-register variants is another way to silently change the representation.
In robotics, visual features can supply an input to a policy rather than a final action. The OpenVLA guide explains an example of combining vision representations with a language-conditioned action model. The existence of a strong visual encoder does not mean its pooled vector directly contains joint commands or calibrated geometry. Physical AI explained shows where vision encoders sit relative to perception models and VLAs.
What DINOv3 changes
The DINOv3 technical report identifies a tension in long self-supervised training: global representations can improve while dense feature maps deteriorate. Scaling the model alone does not necessarily preserve the spatial structure that correspondence, segmentation and other dense tasks need.
Gram anchoring constrains relationships among patch features. If patch descriptors form a matrix F with shape [N, D], a Gram matrix contains pairwise patch similarities and has shape [N, N]. The training mechanism anchors that relational structure to a teacher reference, helping preserve useful dense organization while the representation continues learning. This is a training objective, not a postprocessing switch for API users.
DINOv3 also provides distilled models and adaptations for resolution and domains. The official repository lists web-image and satellite-image checkpoints as separate choices. A satellite checkpoint is not simply the same web checkpoint with a larger input image. Match the training domain and extraction pipeline to the actual problem.
The report's dense-feature improvements motivate testing DINOv3, but they do not promise a universal gain from pooled retrieval. A scene-level vector may emphasize background or overall layout while a part-matching task needs a small local region. If the task requires locating an object, evaluate a dense interface or a dedicated localization model, such as the promptable segmenter in our SAM 2 guide, instead of expecting a global vector to expose coordinates.
Dense feature shapes are not pooled vector shapes
For a conceptual ViT input of 224×224 pixels with no additional resizing, a 14-pixel patch size yields a 16×16 grid, or 256 spatial tokens. A 16-pixel patch size yields a 14×14 grid, or 196 spatial tokens. The dense feature shape is [N, D] per image, excluding class and register tokens. Actual preprocessing can resize or crop the image first, so derive the grid from the processed dimensions rather than the uploaded file dimensions.
Pooling reduces the spatial representation to a single vector of shape [D]. That reduction discards the explicit patch-to-image coordinate mapping. You cannot reshape a 1024-dimensional pooled vector into the original patch grid and recover dense correspondence. Its entries are feature coordinates, not pixel intensities or measured distances.
For dense matching, track the resize and crop transforms so a patch location can be mapped back into the original camera image. For robot geometry, camera calibration and depth or other geometric information remain separate requirements. Cosine similarity between visual descriptors is dimensionless; it does not measure meters, gripper clearance or pose error.
What OpenRobotics actually returns
The repository's model configuration maps meta/dinov2 to facebook/dinov2-large and meta/dinov3 to facebook/dinov3-vitl16-pretrain-lvd1689m. Both specify dim: 1024 and the pooler output of the shared Hugging Face image-embedding adapter. The adapter preprocesses the image with the checkpoint's processor, reads pooler_output, L2-normalizes the resulting vector and rounds coordinates to six decimal places.
The gateway returns embedding and dim, with response metadata including the backend. It checks the returned vector length against the catalog's configured width. The embed API reference documents the envelope. For these DINO models, send one base64 JPEG or PNG through image; they do not accept a temporal frames list. The gateway's image limit is 4 MiB of base64 characters, not the decoded file size.
An illustrative request body is shown below for its field names only. The image placeholder is not a valid image and this article does not execute the request:
{
"model": "meta/dinov3",
"image": "<base64 JPEG or PNG>"
}
Where stand-ins are permitted and no worker candidate is configured, the embedding integration can return a deterministic vector with backend: "simulated". An enabled cold pool instead returns 503 while capacity starts; a disabled HTTP pool also returns 503 when production forbids fallback. Stand-in output is useful for plumbing tests, not semantic retrieval evaluation. A unit-length vector and the expected dimension do not prove real inference occurred. Preserve the backend in your experiment records and exclude simulated results from quality claims. This source review does not establish current service availability or serving hardware.
Same-space retrieval: an executable offline fixture
For nonzero vectors, cosine similarity is the dot product divided by the product of their lengths. Normalizing each vector makes cosine equal to a dot product. Re-normalizing received rounded coordinates avoids relying on an exactly unit norm after serialization.
The example below is a synthetic fixture with no live inference. Its two spaces are named fixture-v2 and fixture-v3; they are not actual DINO outputs and the four dimensions do not represent the API's 1024 dimensions. Each query is compared only with its own space's gallery. The deliberate cross-space check ensures that equal dimensions cannot accidentally authorize a mixed-model comparison.
Save as dino_retrieval_fixture.py and run python3 dino_retrieval_fixture.py:
import math
def unit(vector):
if not vector or not all(math.isfinite(x) for x in vector):
raise ValueError("invalid vector")
norm = math.sqrt(sum(x * x for x in vector))
if norm == 0:
raise ValueError("zero vector")
return [x / norm for x in vector]
def retrieve(query, gallery):
q = unit(query["vector"])
scores = []
for item in gallery:
if item["space"] != query["space"]:
raise ValueError("feature-space mismatch")
v = unit(item["vector"])
if len(q) != len(v):
raise ValueError("dimension mismatch")
score = sum(a * b for a, b in zip(q, v))
scores.append((item["id"], score))
return sorted(scores, key=lambda row: (-row[1], row[0]))
def record(space, name, vector):
return {"space": space, "id": name, "vector": vector}
fixtures = {
"fixture-v2": ([1, 0, 0, 0], [0.8, 0.6, 0, 0]),
"fixture-v3": ([0, 1, 0, 0], [0.6, 0.8, 0, 0]),
}
for space, (query_vector, relevant_vector) in fixtures.items():
query = record(space, "query", query_vector)
gallery = [record(space, "relevant", relevant_vector),
record(space, "distractor", [0, 0, 1, 0])]
ranking = retrieve(query, gallery)
assert ranking[0][0] == "relevant"
assert math.isclose(ranking[0][1], 0.8)
print(f"{space}: top={ranking[0][0]}, cosine={ranking[0][1]:.3f}")
try:
retrieve(record("fixture-v2", "query", [1, 0, 0, 0]),
[record("fixture-v3", "wrong-space", [1, 0, 0, 0])])
except ValueError as error:
print(error)
else:
raise AssertionError("mixed feature spaces accepted")
Expected output:
fixture-v2: top=relevant, cosine=0.800
fixture-v3: top=relevant, cosine=0.800
feature-space mismatch
The matching scores are constructed, not measured. This test proves normalization, ranking and space isolation for the fixture; it says nothing about which encoder is better. In a real evaluation, a space identifier should include the checkpoint revision, preprocessing version, pooling rule and normalization convention, not only the short model name.
How to compare the models fairly
Build the same labeled query and gallery split for both models, then embed both sides independently with each encoder. Define relevance before looking at results: same object instance, same part category and same robot scene state are different retrieval tasks. Use recall at a chosen rank, inspect false positives, and report the denominator rather than showing only successful examples.
Prevent leakage from near-duplicate video frames. If adjacent frames from the same episode appear in both query and gallery sets, retrieval can look strong without generalizing to a new episode. Split by episode, object instance or collection session according to the intended deployment. Retain image capture timestamps in UTC and episode identifiers in your local manifest; /embed receives image content, not a temporal alignment guarantee.
Measure processing time only in the environment you actually test, separating preprocessing, network, queuing and model execution when possible. Parameter counts alone do not determine end-to-end latency. This article intentionally supplies no hosted latency, memory requirement or hardware recommendation because the offline fixture measures none of those things.
When migrating an index, build a separate collection and re-embed the gallery. Validate it against the same held-out queries before switching readers. Do not keep old DINOv2 vectors in a DINOv3 collection simply because both configured outputs contain 1024 numbers. Existing classifiers, policy heads and similarity thresholds also require reevaluation or retraining.
Licenses and practical selection
Core DINOv2 backbones use Apache-2.0; the repository can contain separately licensed additions, so inspect the exact artifact rather than applying that label to everything under the project name. DINOv3 uses the DINOv3 License, which grants rights subject to conditions including redistribution terms, research acknowledgment and use restrictions. It is not interchangeable with Apache-2.0. Review the current agreement for your intended deployment; this comparison is not legal advice.
Prefer DINOv2 when reproducing a system trained in its feature space or when its license is a deciding requirement. Test DINOv3 when starting a new pipeline where dense-feature quality matters and the license is acceptable. For pooled image retrieval, let your held-out results decide. The model catalog helps identify model entries, but catalog presence is not an experiment or an availability measurement.
Failure cases and debugging
If every image looks similar, first verify the backend and input bytes. Reusing one encoded image, embedding a background-heavy crop or comparing simulated outputs can invalidate an experiment before model choice matters. Record preprocessing and inspect a few decoded inputs locally without logging sensitive image content into shared telemetry.
If shapes fail, check the checkpoint, vector width and output type. A dense token tensor is not a pooled vector. If ranking changes unexpectedly, inspect mixed revisions, normalization, crop changes and duplicate IDs. Reject zero-length, zero-norm and nonfinite vectors rather than allowing invalid scores to enter your index.
If a global vector misses a tiny object, reconsider the task representation. Crop-aware retrieval or a dense-feature pipeline may address the actual information loss. Changing the backbone alone cannot restore explicit spatial information discarded by the endpoint.
FAQ
What is DINOv2?
DINOv2 is Meta's self-supervised vision encoder, released in 2023 and trained on the LVD-142M web-image set without manual labels. It learns image-level and patch-level features at once, and its backbones (Small, Base, Large and the ViT-g teacher) are released under Apache-2.0. The DINOv2 paper is arXiv 2304.07193.
DINOv2 vs DINOv3: what changed?
DINOv3 (2025) scales training to LVD-1689M and a ViT-7B teacher, switches to 16-pixel patches, and adds Gram anchoring, which constrains relationships among patch features so dense feature maps don't degrade during long training. It ships under a custom DINOv3 License rather than Apache-2.0.
Is DINOv3 always better than DINOv2?
No. Published results motivate evaluation, but your domain, output representation, downstream training and licensing constraints determine the choice. A dense benchmark win is not automatically a pooled retrieval win.
Can I use /embed to get DINO patch features?
Not through this adapter's current response. It returns one pooled normalized vector. Upstream research code can expose dense features, but that is a different interface and deployment path.
Are DINO vectors text embeddings?
The configured endpoints are image encoders. Do not compare their outputs to arbitrary language-model vectors. Text-to-image retrieval needs a compatible alignment mechanism and shared embedding space.
Does a cosine score of 0.8 mean 80% confidence?
No. It is a geometric similarity score. Any decision threshold needs validation against relevant positive and negative examples; it is not a calibrated probability of identity or task success.
Try DINOv2 in one API call
VLAs, world models, vision encoders and perception models behind one key and one request format. No GPUs to manage, priced per call.