Conditional Representation Learning for Customized Tasks

Honglin Liu, Chao Sun, Peng Hu, Yunfan Li, Xi Peng
10/6/2025
cs.CV

Official code: XLearning-SCU/2025-NeurIPS-CRL (47 stars, last commit 2025-10-11).

Abstract

Conventional representation learning methods learn a universal representation that primarily captures dominant semantics, which may not always align with customized downstream tasks. For instance, in animal habitat analysis, researchers prioritize scene-related features, whereas universal embeddings emphasize categorical semantics, leading to suboptimal results. As a solution, existing approaches resort to supervised fine-tuning, which however incurs high computational and annotation costs. In this paper, we propose Conditional Representation Learning (CRL), aiming to extract representations tailored to arbitrary user-specified criteria. Specifically, we reveal that the semantics of a space are determined by its basis, thereby enabling a set of descriptive words to approximate the basis for a customized feature space. Building upon this insight, given a user-specified criterion, CRL first employs a large language model (LLM) to generate descriptive texts to construct the semantic basis, then projects the image representation into this conditional feature space leveraging a vision-language model (VLM). The conditional representation better captures semantics for the specific criterion, which could be utilized for multiple customized tasks. Extensive experiments on classification and retrieval tasks demonstrate the superiority and generality of the proposed CRL. The code is available at https://github.com/XLearning-SCU/2025-NeurIPS-CRL.

View on arXivView PDF

Code Implementations(1)

Code for the paper "Conditional Representation Learning for Customized Tasks" (NeurIPS 2025 Spotlight)

473PythonSep 23, 20251 years ago

Cite this paper

@article{liu2025conditional,
  title  = {Conditional Representation Learning for Customized Tasks},
  author = {Honglin Liu and Chao Sun and Peng Hu and Yunfan Li and Xi Peng},
  year   = {2025},
  eprint = {2510.04564},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2510.04564v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2510.04564.svg)](https://codeofpaper.com/paper/2510.04564)

Discussion