大型语言模型(LLMs)通过对比学习进行适应在通用表示学习中表现出色,但在垂直领域如化学和法律中表现不佳,主要原因是缺乏领域特定的知识。本文识别了一个核心瓶颈:现有的「LLM+CL」范式侧重于语义对齐,但无法进行知识获取,导致在专业术语上失败。为弥合这一差距,我们提出了Learn Before Represent(LBR),一种新的两阶段框架。LBR首先通过信息瓶颈约束的生成学习注入领域知识,保留LLM的因果注意力以最大化知识获取同时压缩语义。然后在压缩的表示上进行生成-精细对比学习以实现对齐。这种方法保持了架构一致性并解决了生成和对比学习之间的目标冲突。在医疗、化学和代码检索任务中的广泛实验表明,LBR显著优于强大的基线。我们的工作为在垂直领域构建准确且稳健的表示建立了一个新范式。
英文摘要:
Large Language Models (LLMs) adapted via contrastive learning excel in general representation learning but struggle in vertical domains like chemistry and law, primarily due to a lack of domain-specific knowledge. This work identifies a core bottleneck: the prevailing ``LLM+CL'' paradigm focuses on semantic alignment but cannot perform knowledge acquisition, leading to failures on specialized terminology. To bridge this gap, we propose Learn Before Represent (LBR), a novel two-stage framework. LBR first injects domain knowledge via an Information Bottleneck-Constrained Generative Learning stage, preserving the LLM's causal attention to maximize knowledge acquisition while compressing semantics. It then performs Generative-Refined Contrastive Learning on the compressed representations for alignment. This approach maintains architectural consistency and resolves the objective conflict between generative and contrastive learning. Extensive experiments on medical, chemistry, and code retrieval tasks show that LBR significantly outperforms strong baselines. Our work establishes a new paradigm for building accurate and robust representations in vertical domains.
ChemCLIP: Bridging Organic and Inorganic Anticancer Compounds Through Contrastive Learning
Li Ka Shing Faculty of Medicine, The University of Hong Kong(香港大学李嘉诚医学院);Department of Diagnostic Radiology, Li Ka Shing Faculty of Medicine, The University of Hong Kong(香港大学李嘉诚医学院诊断放射学系);Department of Chemistry, The University of Hong Kong(香港大学化学系)
CLIBD: Bridging Vision and Genomics for Biodiversity Monitoring at Scale
Simon Fraser University(西蒙弗雷泽大学);Aalborg University(奥胡斯大学);Vector Institute(向量研究所);University of Guelph(圭尔夫大学);Alberta Machine Intelligence Institute (Amii)(阿尔伯塔人工智能研究所)
BAHSD: Bridging the Long-tail Gap via Adaptive Distillation in Black-box Sequential Recommendation
Institute of Information Engineering, Chinese Academy of Sciences, Beijing, China(中国科学院信息工程研究所,北京,中国);School of Cyber Security, University of Chinese Academy of Sciences, Beijing, China(中国科学院大学网络安全学院,北京,中国);Beijing Institute for General Artificial Intelligence, Beijing, China(北京一般人工智能研究院,北京,中国)
Pathology-Aware Multi-View Contrastive Learning for Patient-Independent ECG Reconstruction
Department of Computer Science and Engineering, Indian Institute of Technology Roorkee(计算机科学与工程系,印度理工学院Roorkee);Department of Biosciences and Bioengineering, Indian Institute of Technology Roorkee(生物科学与生物工程系,印度理工学院Roorkee)
HARMONY: Bridging the Personalization-Generalization Gap by Mitigating Representation Skew in Heterogeneous Split Federated Learning
Department of ECE and INMC, Seoul National University, Seoul, South Korea(首尔国立大学电子与信息科学系及网络信息中心,首尔,韩国);Graduate School of Data Science, Seoul National University, Seoul, South Korea(首尔国立大学数据科学研究生院,首尔,韩国);Department of Computer Science, University of Colorado Boulder, CO, USA(科罗拉多大学博尔德分校计算机科学系,科罗拉多州,美国)
Prior-Fitted and Frozen Scorers for Multimodal Contrastive Learning
Berlin Institute of Health(柏林卫生研究所);Charité - Universitätsmedizin Berlin(柏林夏里特医学院);Freie Universität Berlin(柏林自由大学);Intelligent Medicine Institute(智能医学研究所);Fudan University(复旦大学)