Saturday, May 17, 2025
News PouroverAI
Visit PourOver.AI
No Result
View All Result
  • Home
  • AI Tech
  • Business
  • Blockchain
  • Data Science & ML
  • Cloud & Programming
  • Automation
  • Front-Tech
  • Marketing
  • Home
  • AI Tech
  • Business
  • Blockchain
  • Data Science & ML
  • Cloud & Programming
  • Automation
  • Front-Tech
  • Marketing
News PouroverAI
No Result
View All Result

This AI Paper Proposes LongAlign: A Recipe of the Instruction Data, Training, and Evaluation for Long Context Alignment

February 14, 2024
in AI Technology
Reading Time: 4 mins read
0 0
A A
0
Share on FacebookShare on Twitter


The study diverges from previous approaches by concentrating on aligning long context, specifically by fine-tuning language models to interpret lengthy user prompts. Challenges include the absence of extensive datasets for supervised fine-tuning, difficulties in handling varied length distributions efficiently across multiple GPUs, and the necessity for robust benchmarks to assess the models’ capabilities with real-world queries. The aim is to enhance LLMs’ ability to handle extended contexts by fine-tuning them based on similar input sequence lengths.

Researchers from Tsinghua University and Zhipu.AI have developed LongAlign, a comprehensive approach for aligning LLMs to handle long contexts effectively. They construct a diverse, long instruction-following dataset using Self-Instruct, covering tasks from various sources. To address training inefficiencies due to varied length distributions, they employ packing and sorted batching strategies and a loss weighting method to balance contributions. They also introduce LongBench-Chat, an evaluation benchmark comprising open-ended questions of 10k-100k length.

Long-context scaling seeks to extend the context length of existing LLMs for handling long-context tasks. Methods fall into two categories: those requiring fine-tuning on longer sequences and those that don’t. Non-fine-tuning methods use sliding window attention or token compression techniques but don’t match fine-tuned performance. Fine-tuned approaches involve extending position encoding and continual retraining. Aligning the model with instruction-following data, termed supervised fine-tuning, is crucial for effective interaction in chat interfaces. Challenges include data, training, and evaluation methods. While some work provides long instruction data, it needs more thorough analysis.

The LongAlign recipe offers a comprehensive approach for effectively handling long contexts in LLMs. It involves constructing a diverse long instruction-following dataset using Self-Instruct, adopting efficient training strategies like packing and sorted batching, and introducing the LongBench-Chat benchmark for evaluation. LongAlign addresses challenges by introducing a loss weighting method during packing training, which balances loss contributions across different sequences. Findings show that packing and sorted batching enhance training efficiency twofold while maintaining good performance, and loss weighting significantly improves performance on long instruction tasks during packing training.

Experiments demonstrate that LongAlign improves LLM performance on long-context tasks by up to 30% without compromising proficiency on shorter tasks. Additionally, they find that data quantity and diversity significantly impact performance, while long instruction data enhances long-context task performance without affecting short-context handling. The training strategies accelerate training without compromising performance, with the loss weighting technique further improving long-context performance by 10%. LongAlign achieves improved performance on long instruction tasks through the packing and sorted batching strategies, which double the training efficiency while maintaining good performance.

In conclusion, the study aims to optimize long context alignment, focusing on data, training methods, and evaluation. LongAlign uses Self-Instruct to create diverse long instruction data and fine-tune models efficiently through packing, loss weighting, or sorted batching. The LongBench-Chat benchmark assesses instruction-following ability in practical long-context scenarios. Controlled experiments highlight the significance of data quantity, diversity, and appropriate training methods for achieving optimal performance. LongAlign outperforms existing methods by up to 30% in long context tasks while maintaining proficiency in short tasks. The open sourcing of LongAlign models, code, and data promotes further research and exploration in this field.

Check out the Paper and Github. All credit for this research goes to the researchers of this project. Also, don’t forget to follow us on Twitter and Google News. Join our 36k+ ML SubReddit, 41k+ Facebook Community, Discord Channel, and LinkedIn Group.

Sana Hassan, a consulting intern at Marktechpost and dual-degree student at IIT Madras, is passionate about applying technology and AI to address real-world challenges. With a keen interest in solving practical problems, he brings a fresh perspective to the intersection of AI and real-life solutions.

🚀 LLMWare Launches SLIMs: Small Specialized Function-Calling Models for Multi-Step Automation [Check out all the models]



Source link

Tags: AlignmentContextdataEvaluationInstructionLongLongAlignPaperProposesrecipetraining
Previous Post

Milan mega naval exercise seeks to provide platform to work together on common maritime challenges: Vice Admiral Sobti

Next Post

Meet Hawkeye: A Unified Deep Learning-based Fine-Grained Image Recognition Toolbox Built on PyTorch

Related Posts

How insurance companies can use synthetic data to fight bias
AI Technology

How insurance companies can use synthetic data to fight bias

June 10, 2024
From Low-Level to High-Level Tasks: Scaling Fine-Tuning with the ANDROIDCONTROL Dataset
AI Technology

From Low-Level to High-Level Tasks: Scaling Fine-Tuning with the ANDROIDCONTROL Dataset

June 10, 2024
Decoding Decoder-Only Transformers: Insights from Google DeepMind’s Paper
AI Technology

Decoding Decoder-Only Transformers: Insights from Google DeepMind’s Paper

June 9, 2024
How Game Theory Can Make AI More Reliable
AI Technology

How Game Theory Can Make AI More Reliable

June 9, 2024
Buffer of Thoughts (BoT): A Novel Thought-Augmented Reasoning AI Approach for Enhancing Accuracy, Efficiency, and Robustness of LLMs
AI Technology

Buffer of Thoughts (BoT): A Novel Thought-Augmented Reasoning AI Approach for Enhancing Accuracy, Efficiency, and Robustness of LLMs

June 9, 2024
Deciphering Doubt: Navigating Uncertainty in LLM Responses
AI Technology

Deciphering Doubt: Navigating Uncertainty in LLM Responses

June 9, 2024
Next Post
Meet Hawkeye: A Unified Deep Learning-based Fine-Grained Image Recognition Toolbox Built on PyTorch

Meet Hawkeye: A Unified Deep Learning-based Fine-Grained Image Recognition Toolbox Built on PyTorch

Learning the importance of training data under concept drift – Google Research Blog

Learning the importance of training data under concept drift – Google Research Blog

Building a 3D Card Flip Animation with CSS Houdini — SitePoint

Building a 3D Card Flip Animation with CSS Houdini — SitePoint

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

  • Trending
  • Comments
  • Latest
Is C.AI Down? Here Is What To Do Now

Is C.AI Down? Here Is What To Do Now

January 10, 2024
Porfo: Revolutionizing the Crypto Wallet Landscape

Porfo: Revolutionizing the Crypto Wallet Landscape

October 9, 2023
23 Plagiarism Facts and Statistics to Analyze Latest Trends

23 Plagiarism Facts and Statistics to Analyze Latest Trends

June 4, 2024
A Complete Guide to BERT with Code | by Bradney Smith | May, 2024

A Complete Guide to BERT with Code | by Bradney Smith | May, 2024

May 19, 2024
Part 1: ABAP RESTful Application Programming Model (RAP) – Introduction

Part 1: ABAP RESTful Application Programming Model (RAP) – Introduction

November 20, 2023
Saginaw HMI Enclosures and Suspension Arm Systems from AutomationDirect – Library.Automationdirect.com

Saginaw HMI Enclosures and Suspension Arm Systems from AutomationDirect – Library.Automationdirect.com

December 6, 2023
Can You Guess What Percentage Of Their Wealth The Rich Keep In Cash?

Can You Guess What Percentage Of Their Wealth The Rich Keep In Cash?

June 10, 2024
AI Compared: Which Assistant Is the Best?

AI Compared: Which Assistant Is the Best?

June 10, 2024
How insurance companies can use synthetic data to fight bias

How insurance companies can use synthetic data to fight bias

June 10, 2024
5 SLA metrics you should be monitoring

5 SLA metrics you should be monitoring

June 10, 2024
From Low-Level to High-Level Tasks: Scaling Fine-Tuning with the ANDROIDCONTROL Dataset

From Low-Level to High-Level Tasks: Scaling Fine-Tuning with the ANDROIDCONTROL Dataset

June 10, 2024
UGRO Capital: Targeting to hit milestone of Rs 20,000 cr loan book in 8-10 quarters: Shachindra Nath

UGRO Capital: Targeting to hit milestone of Rs 20,000 cr loan book in 8-10 quarters: Shachindra Nath

June 10, 2024
Facebook Twitter LinkedIn Pinterest RSS
News PouroverAI

The latest news and updates about the AI Technology and Latest Tech Updates around the world... PouroverAI keeps you in the loop.

CATEGORIES

  • AI Technology
  • Automation
  • Blockchain
  • Business
  • Cloud & Programming
  • Data Science & ML
  • Digital Marketing
  • Front-Tech
  • Uncategorized

SITEMAP

  • Disclaimer
  • Privacy Policy
  • DMCA
  • Cookie Privacy Policy
  • Terms and Conditions
  • Contact us

Copyright © 2023 PouroverAI News.
PouroverAI News

No Result
View All Result
  • Home
  • AI Tech
  • Business
  • Blockchain
  • Data Science & ML
  • Cloud & Programming
  • Automation
  • Front-Tech
  • Marketing

Copyright © 2023 PouroverAI News.
PouroverAI News

Welcome Back!

Login to your account below

Forgotten Password? Sign Up

Create New Account!

Fill the forms bellow to register

All fields are required. Log In

Retrieve your password

Please enter your username or email address to reset your password.

Log In