<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/prompt-structure-affects-llm-performance-by-up-to-40-challenging-fixed-templates--tgry2perm" -->

---
title: Prompt structure affects LLM performance by up to 40%,...
description: Prompt optimization plays a crucial role in the performance of Large Language Models (LLMs). This study examines how different prompt templates, such as plain...
canonical: https://daily.dev/posts/prompt-structure-affects-llm-performance-by-up-to-40-challenging-fixed-templates--tgry2perm
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Prompt structure affects LLM performance by up to 40%, challenging fixed templates. | daily.dev
og:description: Prompt optimization plays a crucial role in the performance of Large Language Models (LLMs). This study examines how different prompt templates, such as plain...
og:url: https://daily.dev/posts/prompt-structure-affects-llm-performance-by-up-to-40-challenging-fixed-templates--tgry2perm
og:image: https://api.daily.dev/og/posts/tgry2pERm.png
og:image:alt: Prompt structure affects LLM performance by up to 40%, challenging fixed templates.
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Prompt structure affects LLM performance by up to 40%, challenging fixed templates.

**[Build With GenAI](https://daily.dev/sources/buildwithgenai)** · [@chienvu62](https://daily.dev/chienvu62) · 2 upvotes · 0 comments

## Summary

Prompt optimization plays a crucial role in the performance of Large Language Models (LLMs). This study examines how different prompt templates, such as plain text, Markdown, JSON, and YAML, affect the performance of models like GPT-3.5-turbo and GPT-4 across tasks like natural language reasoning, code generation, and translation. Results indicate that GPT-3.5-turbo's performance in code translation can vary by up to 40% depending on the template used, whereas GPT-4 shows more robustness to these variations.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://arxiv.org/abs/2411.10541>

---

Tags: [#ai](https://daily.dev/tags/ai), [#machine-learning](https://daily.dev/tags/machine-learning), [#llm](https://daily.dev/tags/llm), [#gpt](https://daily.dev/tags/gpt), [#prompt-engineering](https://daily.dev/tags/prompt-engineering)

[View this post on daily.dev](https://daily.dev/posts/prompt-structure-affects-llm-performance-by-up-to-40-challenging-fixed-templates--tgry2perm)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/prompt-structure-affects-llm-performance-by-up-to-40-challenging-fixed-templates--tgry2perm","headline":"Prompt structure affects LLM performance by up to 40%, challenging fixed templates.","text":"Shared: [2411.10541] Does Prompt Formatting Have Any Impact on LLM Performance?","url":"https://daily.dev/posts/prompt-structure-affects-llm-performance-by-up-to-40-challenging-fixed-templates--tgry2perm","datePublished":"2024-12-06T22:29:42.979Z","dateModified":"2024-12-06T22:31:39.212Z","author":{"@type":"Person","name":"Chien Vu","url":"https://daily.dev/chienvu62","image":"https://lh3.googleusercontent.com/a/ACg8ocJnxXeduN9blBMay28NH-zcHaagBsmK1-9fY7M4ff4_eUiE-miT=s96-c","description":"Machine learning researcher | Ph.D","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":30625}},"image":"https://media.daily.dev/image/upload/s--1KxV4ohY--/f_auto/v1722860400/public/Placeholder%2007","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"sharedContent":{"@type":"WebPage","url":"https://api.daily.dev/r/vyNuS0b9K"},"isPartOf":{"@type":"WebPage","url":"https://daily.dev/squads/buildwithgenai","name":"Build With GenAI"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Build With GenAI","item":"https://daily.dev/squads/buildwithgenai"},{"@type":"ListItem","position":3,"name":"Prompt structure affects LLM performance by up to 40%, challenging fixed templates."}]}
```

