paper-with-me

Papers

Enhancing Learned Knowledge in LoRA Adapters Through Efficient Contrastive Decoding on Ascend NPUs

2025-05-20 · Morgan Lindsay Heisler, Linzi Xing, Ge Shi, Hanieh Sadri, Gursimran Singh, Weiwei Zhang, Tao Ye, Ying Xiong, Yong Zhang, Zhenan Fan

Huawei Cloud users leverage LoRA (Low-Rank Adaptation) as an efficient and scalable method to fine-tune and customize large language models (LLMs) for application-specific needs. However, tasks that require complex reasoning or deep contextual understanding are often hindered by biases or interference from the base model when using typical decoding methods like greedy or beam search. These biases can lead to generic or task-agnostic responses from the base model instead of leveraging the LoRA-specific adaptations. In this paper, we introduce Contrastive LoRA Decoding (CoLD), a novel decoding framework designed to maximize the use of task-specific knowledge in LoRA-adapted models, resulting in better downstream performance. CoLD uses contrastive decoding by scoring candidate tokens based on the divergence between the probability distributions of a LoRA-adapted expert model and the corresponding base model. This approach prioritizes tokens that better align with the LoRA's learned representations, enhancing performance for specialized tasks. While effective, a naive implementation of CoLD is computationally expensive because each decoding step requires evaluating multiple token candidates across both models. To address this, we developed an optimized kernel for Huawei's Ascend NPU. CoLD achieves up to a 5.54% increase in task accuracy while reducing end-to-end latency by 28% compared to greedy decoding. This work provides practical and efficient decoding strategies for fine-tuned LLMs in resource-constrained environments and has broad implications for applied data science in both cloud and on-premises settings.

📄 PDF Abstract BibTeX arXiv:2505.14620

Code (0)

등록된 구현이 없습니다.

Methods 이 논문이 사용한 방법론

BASE 설명 없음
ALIGN In the ALIGN method, visual and language representations are jointly trained from noisy image alt-text data. The image and text encoders are learned via contrastive loss…

Similar Papers 제목 키워드 기반

CL-LoRA: Continual Low-Rank Adaptation for Rehearsal-Free Class-Incremental Learning

2025-05-30 · CVPR 2025 1 · Jiangpeng He, Zhihao Duan, Fengqing Zhu

Class-Incremental Learning (CIL) aims to learn new classes sequentially while retaining the knowledge of previously learned classes. Recently, pre-trained models (PTMs) combined with parameter-efficient fine-tuning (PEFT…

class-incremental learningClass Incremental LearningContinual LearningIncremental Learning+2

Random Initialization of Gated Sparse Adapters

2025-11-03 · Vi Retault, Yohaï-Eliel Berreby arxiv

When fine-tuning language models on new tasks, catastrophic forgetting -- performance degradation on previously-learned tasks -- is a ubiquitous problem. While Parameter-Efficient Fine-Tuning (PEFT) methods like LoRA add…

parameter-efficient fine-tuning

MoLoRA: Composable Specialization via Per-Token Adapter Routing

2026-03-16 · Shrey Shah, Justin Wagle arxiv

Multi-adapter serving systems route entire sequences to a single adapter, forcing a choice when requests span multiple domains. This assumption fails in two important settings: (1) multimodal generation, where text and i…

multimodal generation

What Causes Knowledge Loss in Multilingual Language Models?

2025-04-29 · Maria Khelli, Samuel Cahyawijaya, Ayu Purwarianti, Genta Indra Winata

Cross-lingual transfer in natural language processing (NLP) models enhances multilingual performance by leveraging shared linguistic knowledge. However, traditional methods that process all data simultaneously often fail…

Cross-Lingual Transfer

Linked Adapters: Linking Past and Future to Present for Effective Continual Learning

2024-12-14 · Dupati Srikar Chandra, P. K. Srijith, Dana Rezazadegan, Chris McCarthy

Continual learning allows the system to learn and adapt to new tasks while retaining the knowledge acquired from previous tasks. However, deep learning models suffer from catastrophic forgetting of knowledge learned from…

Continual Learningimage-classificationImage ClassificationTransfer Learning