paper-with-me

홈 › Papers

Fine-Tuning and Prompt Optimization: Two Great Steps that Work Better Together

2024-07-15 · Dilara Soylu, Christopher Potts, Omar Khattab

Natural Language Processing (NLP) systems are increasingly taking the form of sophisticated modular pipelines, e.g., Retrieval Augmented Generation (RAG), where each module may involve a distinct Language Model (LM) and an associated prompt template. These compound systems often lack intermediate labels or gradient flow to optimize each module, making their end-to-end optimization challenging. Here we seek strategies to optimize both the module-level LM weights and the associated prompt templates of such systems to maximize a downstream task metric. We propose for the first time combining the weight and prompt optimization strategies to optimize a modular LM pipeline by alternating between the two to get the same LM to teach itself. In experiments with multi-hop QA, mathematical reasoning, and feature-based classification using mistral-7b, llama-2-7b, and llama-3-8b, these BetterTogether strategies optimizing the weights and prompts of a pipeline together outperform directly optimizing weights alone and prompts alone by up to 60% and 6%, respectively, on average across LMs and tasks. BetterTogether optimizer is released in DSPy at http://dspy.ai

📄 PDF Abstract BibTeX arXiv:2407.10930

Code (0)

등록된 구현이 없습니다.

Tasks

Arithmetic ReasoningLanguage ModelingLanguage ModellingMathematical ReasoningRAGRetrieval-augmented Generation

Similar Papers 제목 키워드 기반

Step-wise Distribution Alignment Guided Style Prompt Tuning for Source-free Cross-domain Few-shot Learning

2024-11-15 · Huali Xu, Yongxiang Liu, Li Liu, Shuaifeng Zhi 외

Existing cross-domain few-shot learning (CDFSL) methods, which develop source-domain training strategies to enhance model transferability, face challenges with large-scale pre-trained models (LMs) due to inaccessible sou…

Cross-Domain Few-Shotcross-domain few-shot learningFew-Shot Learning

UMB@PerAnsSumm 2025: Enhancing Perspective-Aware Summarization with Prompt Optimization and Supervised Fine-Tuning

2025-03-14 · Kristin Qi, Youxiang Zhu, Xiaohui Liang

We present our approach to the PerAnsSumm Shared Task, which involves perspective span identification and perspective-aware summarization in community question-answering (CQA) threads. For span identification, we adopt e…

Community Question AnsweringEnsemble LearningQuestion Answering

Fight Fire with Fire: Defending Against Malicious RL Fine-Tuning via Reward Neutralization

2025-05-07 · Wenjun Cao

Reinforcement learning (RL) fine-tuning transforms large language models while creating a vulnerability we experimentally verify: Our experiment shows that malicious RL fine-tuning dismantles safety guardrails with remar…

Reinforcement Learning (RL)

MolCPT: Molecule Continuous Prompt Tuning to Generalize Molecular Representation Learning

2022-12-20 · Cameron Diao, Kaixiong Zhou, Zirui Liu, Xiao Huang 외

Molecular representation learning is crucial for the problem of molecular property prediction, where graph neural networks (GNNs) serve as an effective solution due to their structure modeling capabilities. Since labeled…

Molecular Property Predictionmolecular representationProperty PredictionRepresentation Learning+1

Dual-Phase Accelerated Prompt Optimization

2024-06-19 · Muchen Yang, Moxin Li, Yongle Li, Zijun Chen 외

Gradient-free prompt optimization methods have made significant strides in enhancing the performance of closed-source Large Language Models (LLMs) across a wide range of tasks. However, existing approaches make light of …

Sentence