paper-with-me

Papers

Instruction Position Matters in Sequence Generation with Large Language Models

2023-08-23 · Yijin Liu, Xianfeng Zeng, Fandong Meng, Jie zhou

Large language models (LLMs) are capable of performing conditional sequence generation tasks, such as translation or summarization, through instruction fine-tuning. The fine-tuning data is generally sequentially concatenated from a specific task instruction, an input sentence, and the corresponding response. Considering the locality modeled by the self-attention mechanism of LLMs, these models face the risk of instruction forgetting when generating responses for long input sentences. To mitigate this issue, we propose enhancing the instruction-following capability of LLMs by shifting the position of task instructions after the input sentences. Theoretical analysis suggests that our straightforward method can alter the model's learning focus, thereby emphasizing the training of instruction-following capabilities. Concurrently, experimental results demonstrate that our approach consistently outperforms traditional settings across various model scales (1B / 7B / 13B) and different sequence generation tasks (translation and summarization), without any additional data or annotation costs. Notably, our method significantly improves the zero-shot performance on conditional sequence generation, e.g., up to 9.7 BLEU points on WMT zero-shot translation tasks.

📄 PDF Abstract BibTeX arXiv:2308.12097

Code (1)

adaxry/post-instruction 공식 구현 pytorch

Tasks

Instruction FollowingPositionSentenceTranslation

Similar Papers 제목 키워드 기반

Order Matters in Retrosynthesis: Structure-aware Generation via Reaction-Center-Guided Discrete Flow Matching

2026-02-13 · Chenguang Wang, Zihan Zhou, Lei Bai, Tianshu Yu arxiv

Template-free retrosynthesis methods treat the task as black-box sequence generation, limiting learning efficiency, while semi-template approaches rely on rigid reaction libraries that constrain generalization. We addres…

Template Matters: Understanding the Role of Instruction Templates in Multimodal Language Model Evaluation and Training

2024-12-11 · Shijian Wang, Linxin Song, Jieyu Zhang, Ryotaro Shimizu 외

Current multimodal language models (MLMs) evaluation and training approaches overlook the influence of instruction format, presenting an elephant-in-the-room problem. Previous research deals with this problem by manually…

Language Model EvaluationLanguage ModelingLanguage Modelling

Order Matters: Investigate the Position Bias in Multi-constraint Instruction Following

2025-02-24 · Jie Zeng, Qianyu He, Qingyu Ren, Jiaqing Liang 외

Real-world instructions with multiple constraints pose a significant challenge to existing large language models (LLMs). An observation is that the LLMs exhibit dramatic performance fluctuation when disturbing the order …

Instruction FollowingPosition

PhotoFramer: Multi-modal Image Composition Instruction

2025-11-30 · Zhiyuan You, Ke Wang, He Zhang, Xin Cai 외 arxiv

Composition matters during the photo-taking process, yet many casual users struggle to frame well-composed images. To provide composition guidance, we introduce PhotoFramer, a multi-modal composition instruction framewor…

FineMoGen: Fine-Grained Spatio-Temporal Motion Generation and Editing

2023-12-22 · NeurIPS 2023 11 · Mingyuan Zhang, Huirong Li, Zhongang Cai, Jiawei Ren 외

Text-driven motion generation has achieved substantial progress with the emergence of diffusion models. However, existing methods still struggle to generate complex motion sequences that correspond to fine-grained descri…

Mixture-of-ExpertsMotion GenerationMotion Synthesis