🐦 Twitter Post Details

Viewing enriched Twitter post

@dair_ai

// The Efficiency Frontier in LLMs // (bookmark this one) How much are you overpaying for context you do not need? It turns out that context costs dominate production LLM bills, and the right strategy depends on how often you reuse preprocessing. Modeling that explicitly lets you pick the cheapest point that still hits your target quality. This work treats context-strategy selection as a deployment-aware optimization problem instead of a fixed choice, using amortized cost modeling across performance, token cost, and preprocessing reuse. It achieves roughly 25% token savings at equal F1 (around 0.78), and amortized memory compression delivers more than 50% lower token cost versus full-context in high-performance settings. Tested on 5,000 HotpotQA instances. Paper: https://t.co/UQGJb49Pi5 Learn to build effective AI agents in our academy: https://t.co/LRnpZN7L4c

Media 1

📊 Media Metadata

{
  "media": [
    {
      "type": "photo",
      "url": "https://crmoxkoizveukayfjuyo.supabase.co/storage/v1/object/public/media/posts/2058948732658626789/media_0.png",
      "filename": "media_0.png"
    }
  ],
  "processed_at": "2026-06-16T11:17:59.840335",
  "pipeline_version": "2.0"
}

🔧 Raw API Response

{
  "type": "tweet",
  "id": "2058948732658626789",
  "url": "https://x.com/dair_ai/status/2058948732658626789",
  "twitterUrl": "https://twitter.com/dair_ai/status/2058948732658626789",
  "text": "// The Efficiency Frontier in LLMs //\n\n(bookmark this one)\n\nHow much are you overpaying for context you do not need?\n\nIt turns out that context costs dominate production LLM bills, and the right strategy depends on how often you reuse preprocessing. Modeling that explicitly lets you pick the cheapest point that still hits your target quality.\n\nThis work treats context-strategy selection as a deployment-aware optimization problem instead of a fixed choice, using amortized cost modeling across performance, token cost, and preprocessing reuse.\n\nIt achieves roughly 25% token savings at equal F1 (around 0.78), and amortized memory compression delivers more than 50% lower token cost versus full-context in high-performance settings. Tested on 5,000 HotpotQA instances.\n\nPaper: https://t.co/UQGJb49Pi5\n\nLearn to build effective AI agents in our academy: https://t.co/LRnpZN7L4c",
  "source": "Twitter for iPhone",
  "retweetCount": 18,
  "replyCount": 20,
  "likeCount": 86,
  "quoteCount": 4,
  "viewCount": 7160,
  "createdAt": "Mon May 25 16:30:05 +0000 2026",
  "lang": "en",
  "bookmarkCount": 85,
  "isReply": false,
  "inReplyToId": null,
  "conversationId": "2058948732658626789",
  "displayTextRange": [
    0,
    279
  ],
  "inReplyToUserId": null,
  "inReplyToUsername": null,
  "author": {
    "type": "user",
    "userName": "dair_ai",
    "url": "https://x.com/dair_ai",
    "twitterUrl": "https://twitter.com/dair_ai",
    "id": "889050642903293953",
    "name": "DAIR.AI",
    "isVerified": false,
    "isBlueVerified": true,
    "verifiedType": null,
    "profilePicture": "https://pbs.twimg.com/profile_images/1643277398522187778/31dedbLo_normal.jpg",
    "coverPicture": "https://pbs.twimg.com/profile_banners/889050642903293953/1773242460",
    "description": "Democratizing AI research, education, and technologies. Learn about AI Agents for FREE at https://t.co/HHXg8rryu4",
    "location": "",
    "followers": 126150,
    "following": 1,
    "status": "",
    "canDm": true,
    "canMediaTag": true,
    "createdAt": "Sun Jul 23 09:12:45 +0000 2017",
    "entities": {
      "description": {
        "urls": [
          {
            "display_url": "academy.dair.ai/courses/elemen…",
            "expanded_url": "https://academy.dair.ai/courses/elements-of-ai-agents",
            "indices": [
              90,
              113
            ],
            "url": "https://t.co/HHXg8rryu4"
          }
        ]
      },
      "url": {
        "urls": [
          {
            "display_url": "dair.ai",
            "expanded_url": "https://www.dair.ai/",
            "indices": [
              0,
              23
            ],
            "url": "https://t.co/lkqPZtMU5s"
          }
        ]
      }
    },
    "fastFollowersCount": 0,
    "favouritesCount": 4593,
    "hasCustomTimelines": true,
    "isTranslator": false,
    "mediaCount": 245,
    "statusesCount": 3316,
    "withheldInCountries": [],
    "affiliatesHighlightedLabel": {},
    "possiblySensitive": false,
    "pinnedTweetIds": [
      "2066548421670941068"
    ],
    "profile_bio": {},
    "isAutomated": false,
    "automatedBy": null
  },
  "extendedEntities": {
    "media": [
      {
        "display_url": "pic.x.com/qcgQEe7wHw",
        "expanded_url": "https://x.com/dair_ai/status/2058948732658626789/photo/1",
        "ext_media_availability": {
          "status": "Available"
        },
        "features": {
          "large": {
            "faces": []
          },
          "medium": {
            "faces": []
          },
          "orig": {
            "faces": []
          },
          "small": {
            "faces": []
          }
        },
        "id_str": "2058948728866975748",
        "indices": [
          280,
          303
        ],
        "media_key": "3_2058948728866975748",
        "media_results": {
          "result": {
            "media_key": "3_2058948728866975748"
          }
        },
        "media_url_https": "https://pbs.twimg.com/media/HJLa9crbsAQ2rwF.png",
        "original_info": {
          "focus_rects": [
            {
              "h": 852,
              "w": 1522,
              "x": 0,
              "y": 0
            },
            {
              "h": 1522,
              "w": 1522,
              "x": 0,
              "y": 0
            },
            {
              "h": 1735,
              "w": 1522,
              "x": 0,
              "y": 0
            },
            {
              "h": 1876,
              "w": 938,
              "x": 0,
              "y": 0
            },
            {
              "h": 1876,
              "w": 1522,
              "x": 0,
              "y": 0
            }
          ],
          "height": 1876,
          "width": 1522
        },
        "sizes": {
          "large": {
            "h": 1876,
            "resize": "fit",
            "w": 1522
          },
          "medium": {
            "h": 1200,
            "resize": "fit",
            "w": 974
          },
          "small": {
            "h": 680,
            "resize": "fit",
            "w": 552
          },
          "thumb": {
            "h": 150,
            "resize": "crop",
            "w": 150
          }
        },
        "type": "photo",
        "url": "https://t.co/qcgQEe7wHw"
      }
    ]
  },
  "card": null,
  "place": {},
  "entities": {
    "hashtags": [],
    "symbols": [],
    "urls": [
      {
        "display_url": "arxiv.org/abs/2605.23071",
        "expanded_url": "https://arxiv.org/abs/2605.23071",
        "indices": [
          780,
          803
        ],
        "url": "https://t.co/UQGJb49Pi5"
      },
      {
        "display_url": "academy.dair.ai",
        "expanded_url": "https://academy.dair.ai/",
        "indices": [
          856,
          879
        ],
        "url": "https://t.co/LRnpZN7L4c"
      }
    ],
    "user_mentions": []
  },
  "quoted_tweet": null,
  "retweeted_tweet": null,
  "article": null
}