Papers › FLAIR: VLM with Fine-grained Language-informed Image Representations

FLAIR: VLM with Fine-grained Language-informed Image Representations

4 Dec 2024CVPR 2025 1arXiv:2412.03561archive 2025-07-28

Rui Xiao, Sanghwan Kim, Mariana-Iuliana Georgescu, Zeynep Akata, Stephan Alaniz

CLIP has shown impressive results in aligning images and texts at scale. However, its ability to capture detailed visual features remains limited because CLIP matches images and texts at a global level. To address this issue, we propose FLAIR, Fine-grained Language-informed Image Representations, an approach that utilizes long and detailed image descriptions to learn localized image embeddings. By sampling diverse sub-captions that describe fine-grained details about an image, we train our vision-language model to produce not only global embeddings but also text-specific image representations. Our model introduces text-conditioned attention pooling on top of local image tokens to produce fine-grained image representations that excel at retrieving detailed image content. We achieve state-of-the-art performance on both, existing multimodal retrieval benchmarks, as well as, our newly introduced fine-grained retrieval task which evaluates vision-language models' ability to retrieve partial image content. Furthermore, our experiments demonstrate the effectiveness of FLAIR trained on 30M image-text pairs in capturing fine-grained visual information, including zero-shot semantic segmentation, outperforming models trained on billions of pairs. Code is available at https://github.com/ExplainableML/flair .

PaperPDFConference PDFCodeCode 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="2412.03561")

Code

Syntology Ran 3 of 20 code samples harvested from 2 repositories linked to this paper; 17 have no recorded run. Of those that ran: 1 ran · violated contract; 2 ran · our draft was wrong.

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

explainableml/flair officialmentioned in papermentioned on GitHubpytorch report
ExplainableML/cosmos mentioned on GitHubpytorch 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

20 samples harvested; 3 ran; 0 honoured the contract we drafted; 17 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
2ran · our draft was wrong
17unverified

Licence: 20 of the 20 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 2 repositories linked to this paper, official or community; each sample names its own and says which. “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.

convert_to_custom_text_state_dict explainableml/flair/src/flair/model.py official repository ran · violated contract no licence file found · pointer only · f19962ebb134b3d7 · report
get_cast_dtype explainableml/flair/src/flair/model.py official repository ran · our draft was wrong no licence file found · pointer only · dcd422d66b0581d8 · report
get_input_dtype explainableml/flair/src/flair/model.py official repository ran · our draft was wrong no licence file found · pointer only · b476c8cfbf0f1f47 · report
center_square_crop_box explainableml/flair/src/visualization.py official repository unverified no licence file found · pointer only · 7c9f37f7273100f9 · report
download_weights_from_hf explainableml/flair/src/flair/factory.py official repository unverified no licence file found · pointer only · 7ce5eede4639706f · report
draw_numbers explainableml/flair/src/flair/data.py official repository unverified no licence file found · pointer only · 7e7ffff6d9c929a3 · report
gather_features explainableml/flair/src/flair/loss.py official repository unverified no licence file found · pointer only · ddcbd45e940484ee · report
get_default_params explainableml/flair/src/flair/params.py official repository unverified no licence file found · pointer only · 575ba28efe232215 · report
get_model_config explainableml/flair/src/flair/factory.py official repository unverified no licence file found · pointer only · 5c7cf820e99443ff · report
make_red_rgba_from_alpha explainableml/flair/src/visualization.py official repository unverified no licence file found · pointer only · 33cecaac74cf6257 · report
neighbour_exchange explainableml/flair/src/flair/loss.py official repository unverified no licence file found · pointer only · e332856e3c2fc814 · report
neighbour_exchange_bidir explainableml/flair/src/flair/loss.py official repository unverified no licence file found · pointer only · 5b1fd364afcf3c05 · report
parse_args explainableml/flair/src/flair/params.py official repository unverified no licence file found · pointer only · 6932ab58022e237c · report
process_tar explainableml/flair/preprocess/presplit_captions.py official repository unverified no licence file found · pointer only · 25977d0641f6f647 · report
random_sample_from_list explainableml/flair/src/flair/data.py official repository unverified no licence file found · pointer only · dae4304ab834bc31 · report
split_caption explainableml/flair/src/flair/data.py official repository unverified no licence file found · pointer only · 7e3625da2fe10689 · report
split_caption explainableml/flair/preprocess/presplit_captions.py official repository unverified no licence file found · pointer only · 23590b0021929371 · report
text_global_pool explainableml/flair/src/flair/transformer.py official repository unverified no licence file found · pointer only · 61548bf76b531c76 · report
upsample_heatmap_to_size explainableml/flair/src/visualization.py official repository unverified no licence file found · pointer only · 5aa6110f46cd2158 · report
trigger_visualization_hook ExplainableML/cosmos/src/seg_eval.py community (archive-listed) unverified no licence file found · pointer only · e22c0b4748cddefb · report

Tasks

Language ModelingLanguage ModellingRetrievalSemantic SegmentationZero-Shot Semantic Segmentation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

AttentionAttention PoolingCLIPSoftmax

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