paper-with-me

Papers

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, Ao Luo, Li Yao, Cunjian Chen, Julian McAuley, Hanqian Wu

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 crafting instructions, failing to yield significant insights due to limitations in diversity and scalability. In this work, we propose a programmatic instruction template generator capable of producing over 39B unique template combinations by filling randomly sampled positional synonyms into weighted sampled meta templates, enabling us to comprehensively examine the MLM's performance across diverse instruction templates. Our experiments across eight common MLMs on five benchmark datasets reveal that MLMs have high template sensitivities with at most 29% performance gaps between different templates. We further augment the instruction tuning dataset of LLaVA-1.5 with our template generator and perform instruction tuning on LLaVA-1.5-7B and LLaVA-1.5-13B. Models tuned on our augmented dataset achieve the best overall performance when compared with the same scale MLMs tuned on at most 75 times the scale of our augmented dataset, highlighting the importance of instruction templates in MLM training. The code is available at https://github.com/shijian2001/TemplateMatters .

📄 PDF Abstract BibTeX arXiv:2412.08307

Code (1)

shijian2001/templatematters 공식 구현 pytorch

Tasks

Language Model EvaluationLanguage ModelingLanguage Modelling

Similar Papers 제목 키워드 기반

Toward the Evaluation of Large Language Models Considering Score Variance across Instruction Templates

2024-08-22 · Yusuke Sakai, Adam Nohejl, Jiangnan Hang, Hidetaka Kamigaito 외

The natural language understanding (NLU) performance of large language models (LLMs) has been evaluated across various tasks and datasets. The existing evaluation methods, however, do not take into account the variance i…

Natural Language Understanding

Automating Agent Hijacking via Structural Template Injection

2026-02-18 · Xinhao Deng, Jiaqing Wu, Miao Chen, Yue Xiao 외 arxiv

Agent hijacking, highlighted by OWASP as a critical threat to the Large Language Model (LLM) ecosystem, enables adversaries to manipulate execution by injecting malicious instructions into retrieved content. Most existin…

ChatBug: A Common Vulnerability of Aligned LLMs Induced by Chat Templates

2024-06-17 · Fengqing Jiang, Zhangchen Xu, Luyao Niu, Bill Yuchen Lin 외

Large language models (LLMs) are expected to follow instructions from users and engage in conversations. Techniques to enhance LLMs' instruction-following capabilities typically fine-tune them using data structured accor…

Instruction FollowingSafety Alignment

GIRT-Model: Automated Generation of Issue Report Templates

2024-02-04 · Nafiseh Nikeghbal, Amir Hossein Kargaran, Abbas Heydarnoori

Platforms such as GitHub and GitLab introduce Issue Report Templates (IRTs) to enable more effective issue management and better alignment with developer expectations. However, these templates are not widely adopted in m…

Language Modelling

Nameless Tokenization: A Lossless Tokenizer-Level Defense Against Control-Token Forgery in Open-Weight LLMs

2026-09-15 · Kisu Yang, Yoonna Jang, Heuiseok Lim arxiv

Open-weight language models publish the strings their chat templates use to mark turns, roles and tool results, which the tokenizer maps back to the reserved identifiers the model obeys. Anyone who controls text in a pro…