paper-with-me

Papers

Customizing Language Model Responses with Contrastive In-Context Learning

2024-01-30 · Xiang Gao, Kamalika Das

Large language models (LLMs) are becoming increasingly important for machine learning applications. However, it can be challenging to align LLMs with our intent, particularly when we want to generate content that is preferable over others or when we want the LLM to respond in a certain style or tone that is hard to describe. To address this challenge, we propose an approach that uses contrastive examples to better describe our intent. This involves providing positive examples that illustrate the true intent, along with negative examples that show what characteristics we want LLMs to avoid. The negative examples can be retrieved from labeled data, written by a human, or generated by the LLM itself. Before generating an answer, we ask the model to analyze the examples to teach itself what to avoid. This reasoning step provides the model with the appropriate articulation of the user's need and guides it towards generting a better answer. We tested our approach on both synthesized and real-world datasets, including StackExchange and Reddit, and found that it significantly improves performance compared to standard few-shot prompting

📄 PDF Abstract BibTeX arXiv:2401.17390

Code (0)

등록된 구현이 없습니다.

Tasks

In-Context LearningLanguage ModelingLanguage Modelling

Methods 이 논문이 사용한 방법론

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 제목 키워드 기반

Trustful LLMs: Customizing and Grounding Text Generation with Knowledge Bases and Dual Decoders

2024-11-12 · Xiaofeng Zhu, Jaya Krishna Mandivarapu

Although people are impressed by the content generation skills of large language models, the use of LLMs, such as ChatGPT, is limited by the domain grounding of the content. The correctness and groundedness of the genera…

DecoderHallucinationRAGRetrieval-augmented Generation+1

SI-FACT: Mitigating Knowledge Conflict via Self-Improving Faithfulness-Aware Contrastive Tuning

2025-09-12 · Shengqiang Fu arxiv

Large Language Models often generate unfaithful responses in knowledge intensive tasks due to knowledge conflict,that is,a preference for relying on internal parametric knowledge rather than the provided context.To addre…

Contrastive Learning

Adaptive Contrastive Decoding in Retrieval-Augmented Generation for Handling Noisy Contexts

2024-08-02 · Youna Kim, Hyuhng Joon Kim, Cheonbok Park, Choonghyun Park 외

When using large language models (LLMs) in knowledge-intensive tasks, such as open-domain question answering, external context can bridge the gap between external knowledge and the LLMs' parametric knowledge. Recent rese…

Open-Domain Question AnsweringQuestion AnsweringRetrievalRetrieval-augmented Generation

Exploring How Multiple Levels of GPT-Generated Programming Hints Support or Disappoint Novices

2024-04-02 · Ruiwei Xiao, Xinying Hou, John Stamper

Recent studies have integrated large language models (LLMs) into diverse educational contexts, including providing adaptive programming hints, a type of feedback focuses on helping students move forward during problem-so…

Unsupervised Large Language Model Alignment for Information Retrieval via Contrastive Feedback

2023-09-29 · Qian Dong, Yiding Liu, Qingyao Ai, Zhijing Wu 외

Large language models (LLMs) have demonstrated remarkable capabilities across various research domains, including the field of Information Retrieval (IR). However, the responses generated by off-the-shelf LLMs tend to be…

Data AugmentationInformation RetrievalLanguage ModelingLanguage Modelling+3