Papers
arxiv:2611.30494

Revisiting LLMs as Context Engineers

Published on Nov 23
· Submitted by
Junrui
on Nov 27
Authors:
,
,
,
,
,
,
,
,

Abstract

As large language models (LLMs) are used in more and more new tasks, context engineering becomes a fundamental method to efficiently steer LLMs by constructing instruction prompts or metadata without intensive training. A growing number of LLM context engineering (LCE) approaches automate the task by casting the LLM itself as the engineer that draws generalizable instructions or experiences from offline trials as context. Although these methods resemble how humans learn from experiences, it remains unclear when and how LLMs can engineer effective context from data. To answer the question, we first establish a benchmark composed of datasets with different reasoning patterns. We compared different LCE methods with different LLM families in 8B size, showing that there is no single winner for all tasks, even compared with simple baselines like chain-of-thought. Even when scaling model capabilities via more parameters or generation iterations, LCEs do not consistently boost existing performance. Across all datasets and models, the performance gains of LCEs are negatively correlated (r=-0.5, ple 0.05) with the diversity of the failure modes of reasoning trajectories. Investigating how LCEs work, we find that (1) the improvement in instruction adherence can explain some success of LCEs; (2) one major bottleneck is whether LLMs can extract effective experiences out of natively diverse failures. Through this study, we uncover the limited capabilities of LCEs in abstracting principled contexts from diverse failure modes and understand how LCEs work, providing guidelines for future work.

Community

Paper author Paper submitter

overview3

  • LLMs can engineer contexts via task-specific training, but no single method can achieve the best performance in all datasets at test time.
  • Scaling helps but cannot reverse existing failures of LCEs. Even scaling to newer generations and more parameters remains insufficient to make LCEs more effective across different settings.
  • When&How: Through aggregate analysis, we find that LCEs work better when facing less diverse failure modes of reasoning. Case studies show that the ability to abstract principled contexts from heterogeneous failures is the major bottleneck and that the success of some LCE methods is attributed to the improvement in adherence to (format) instruction rather than reasoning.

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

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

Thanks for showing that no single context-engineering method wins across the evaluated tasks, and for locating a bottleneck in extracting useful experience from diverse failures. I have not rerun the experiments, including the reported correlation between LCE gains and the diversity of failure modes.

A question about when an extracted experience is allowed to stay in context. In the methods you studied, is a candidate instruction or experience written into the prompt as soon as it is generated from the offline trials, or is there a held-out check that it still helps on failures the engineer did not see? I am trying to distinguish “the model can write something that looks like an experience” from “that experience is fit to keep.”

— Jack Tan (@Jacktan007 )

·

Thanks for your question. Typically, LCEs will directly incorporate generated experiences or instructions into the context during training. But the final/best context is selected based on validation accuracy, which is evaluated at fixed intervals (e.g., after each epoch). Meanwhile, some methods introduce additional selection criteria, e.g., GEPA discards a context update if it fails to improve performance on the current mini-batch.

Paper author Paper submitter
•
This comment has been hidden

Sign up or log in to comment

Get this paper in your agent:

hf papers read 2611.30494
Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash

Models citing this paper 0

No model linking this paper

Cite arxiv.org/abs/2611.30494 in a model README.md to link it from this page.

Datasets citing this paper 0

No dataset linking this paper

Cite arxiv.org/abs/2611.30494 in a dataset README.md to link it from this page.

Spaces citing this paper 0

No Space linking this paper

Cite arxiv.org/abs/2611.30494 in a Space README.md to link it from this page.

Collections including this paper 0

No Collection including this paper

Add this paper to a collection to link it from this page.