Papers › Perception Encoder: The best visual embeddings are not at the output of the network

Perception Encoder: The best visual embeddings are not at the output of the network

17 Apr 2025arXiv:2504.13181archive 2025-07-28

Daniel Bolya, Po-Yao Huang, Peize Sun, Jang Hyun Cho, Andrea Madotto, Chen Wei, Tengyu Ma, Jiale Zhi, Jathushan Rajasegaran, Hanoona Rasheed, Junke Wang, Marco Monteiro, Hu Xu, Shiyu Dong, Nikhila Ravi, Daniel Li, Piotr Dollár, Christoph Feichtenhofer

We introduce Perception Encoder (PE), a state-of-the-art encoder for image and video understanding trained via simple vision-language learning. Traditionally, vision encoders have relied on a variety of pretraining objectives, each tailored to specific downstream tasks such as classification, captioning, or localization. Surprisingly, after scaling our carefully tuned image pretraining recipe and refining with our robust video data engine, we find that contrastive vision-language training alone can produce strong, general embeddings for all of these downstream tasks. There is only one caveat: these embeddings are hidden within the intermediate layers of the network. To draw them out, we introduce two alignment methods, language alignment for multimodal language modeling, and spatial alignment for dense prediction. Together with the core contrastive checkpoint, our PE family of models achieves state-of-the-art performance on a wide variety of tasks, including zero-shot image and video classification and retrieval; document, image, and video Q&A; and spatial tasks such as detection, depth estimation, and tracking. To foster further research, we are releasing our models, code, and a novel dataset of synthetically and human-annotated videos.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2504.13181")

Code

Syntology Ran 12 of 18 code samples harvested from 1 repository linked to this paper; 6 have no recorded run. Of those that ran: 1 ran · violated contract; 3 ran · our draft was wrong; 2 ran · fixture could not drive it; 6 ran with no contract checked.

By repository: community (archive-listed): 18 samples from 1 repository, 12 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

facebookresearch/perception_models mentioned on GitHubpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

18 samples harvested; 12 ran; 0 honoured the contract we drafted; 6 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · violated contract
3ran · our draft was wrong
2ran · fixture could not drive it
6ran
6unverified

Licence: 0 of the 18 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from facebookresearch/perception_models. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

dice_loss facebookresearch/perception_models/apps/detection/DETA_pe/models/segmentation.py community (archive-listed) ran · violated contract fingerprinted Apache-2.0 (permissive) · ac8fe530cdad4d8c · report
drop_path facebookresearch/perception_models/apps/detection/DETA_pe/models/swin.py community (archive-listed) ran · fixture could not drive it Apache-2.0 (permissive) · 87577b3ff9d32712 · report
get_fed_loss_inds facebookresearch/perception_models/apps/detection/DETA_pe/models/utils_fed_loss.py community (archive-listed) ran Apache-2.0 (permissive) · bb583e07209fe58b · report
get_rel_pos facebookresearch/perception_models/apps/detection/DETA_pe/models/utils_d2.py community (archive-listed) ran Apache-2.0 (permissive) · edb9869f131321d2 · report
nonzero_tuple facebookresearch/perception_models/apps/detection/DETA_pe/models/assigner.py community (archive-listed) ran fingerprinted Apache-2.0 (permissive) · d28e238107e0aa1b · report
rotate_half facebookresearch/perception_models/apps/detection/DETA_pe/models/pev1.py community (archive-listed) ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 58823d9435a8751b · report
sigmoid_focal_loss facebookresearch/perception_models/apps/detection/DETA_pe/models/segmentation.py community (archive-listed) ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 5c0711aada67957e · report
subsample_labels facebookresearch/perception_models/apps/detection/DETA_pe/models/assigner.py community (archive-listed) ran Apache-2.0 (permissive) · 19a04bf3d341cedb · report
window_partition facebookresearch/perception_models/apps/detection/DETA_pe/models/swin.py community (archive-listed) ran · fixture could not drive it fingerprinted Apache-2.0 (permissive) · f9fd6241d935f07b · report
window_partition facebookresearch/perception_models/apps/detection/DETA_pe/models/utils_d2.py community (archive-listed) ran fingerprinted Apache-2.0 (permissive) · 750facb8c52e8864 · report
window_reverse facebookresearch/perception_models/apps/detection/DETA_pe/models/swin.py community (archive-listed) ran · our draft was wrong Apache-2.0 (permissive) · fb32094c6dbece71 · report
window_unpartition facebookresearch/perception_models/apps/detection/DETA_pe/models/utils_d2.py community (archive-listed) ran Apache-2.0 (permissive) · 535942f820542fb9 · report
batched_soft_nms facebookresearch/perception_models/apps/detection/DETA_pe/models/utils_softnms.py community (archive-listed) unverified Apache-2.0 (permissive) · 1cf6c2f532b241f1 · report
broadcat facebookresearch/perception_models/apps/detection/DETA_pe/models/pev1.py community (archive-listed) unverified Apache-2.0 (permissive) · 00e3006fbfc5835f · report
get_abs_pos facebookresearch/perception_models/apps/detection/DETA_pe/models/pev1.py community (archive-listed) unverified Apache-2.0 (permissive) · f733619c7c9a0a40 · report
load_class_freq facebookresearch/perception_models/apps/detection/DETA_pe/models/utils_fed_loss.py community (archive-listed) unverified Apache-2.0 (permissive) · 0547030fc587fd16 · report
sample_topk_per_gt facebookresearch/perception_models/apps/detection/DETA_pe/models/assigner.py community (archive-listed) unverified Apache-2.0 (permissive) · 626753a2de4f5009 · report
soft_nms facebookresearch/perception_models/apps/detection/DETA_pe/models/utils_softnms.py community (archive-listed) unverified Apache-2.0 (permissive) · 8b89ea91621de82b · report

Tasks

Depth EstimationLanguage ModelingLanguage ModellingObject DetectionVideo ClassificationVideo Understanding

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Object Detection COCO minival PE_spatial (DETA) Params (M) 1900 #1 of 220 Archive leaderboard report
Object Detection COCO minival PE_spatial (DETA) box AP 66.0 #1 of 220 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections