Beyond In-Context Learning: Aligning Long-form Generation of Large Language Models via Task-Inherent Attribute Guidelines
Abstract
LongGuide enhances pre-trained LLMs in long-form generation tasks by providing metric and output constraint guidelines, improving model performance in zero- and few-shot settings.
In-context learning (ICL) is an important yet not fully understood ability of pre-trained large language models (LLMs). It can greatly enhance task performance using a few examples, termed demonstrations, without fine-tuning. Although effective in question answering, ICL often underperforms in long-form generation tasks such as summarization. Under appropriately realistic assumptions, we empirically and theoretically show that ICL demonstrations alone are insufficient to teach LLMs the task language and format distributions for generation. We argue for explicit exposure to the task distributions and hypothesize that defining them by prompting enhances model performance. To this end, we present LongGuide, which efficiently generates two parallel streams of guidelines capturing task language and format properties: (i) Metric Guidelines (MGs) that instruct models to optimize self-evaluated metrics; and (ii) Output Constraint Guidelines (OCGs) that constrain generation at both token and sentence levels. LongGuide automatically selects the best combination of guidelines, improving both strong open- and closed-source LLMs by over 5% in both zero- and few-shot settings. We show that LongGuide is generalizable, learnable by weak models to enhance strong ones, and integrates synergistically with automatic prompt optimizers.
Community
Discussion for our paper is here!
This is an automated message from the Librarian Bot. I found the following papers similar to this paper.
The following papers were recommended by the Semantic Scholar API
- $\textit{New News}$: System-2 Fine-tuning for Robust Integration of New Knowledge (2025)
- QA-prompting: Improving Summarization with Large Language Models using Question-Answering (2025)
- Enhancing Contrastive Demonstration Selection with Semantic Diversity for Robust In-Context Machine Translation (2025)
- MMLongBench: Benchmarking Long-Context Vision-Language Models Effectively and Thoroughly (2025)
- Improving In-Context Learning with Reasoning Distillation (2025)
- Embedding-to-Prefix: Parameter-Efficient Personalization for Pre-Trained Large Language Models (2025)
- EL4NER: Ensemble Learning for Named Entity Recognition via Multiple Small-Parameter Large Language Models (2025)
Please give a thumbs up to this comment if you found it helpful!
If you want recommendations for any Paper on Hugging Face checkout this Space
You can directly ask Librarian Bot for paper recommendations by tagging it in a comment:
@librarian-bot
recommend
Models citing this paper 0
No model linking this paper
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper
Collections including this paper 0
No Collection including this paper