Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Together AI 4 min read Research mediumAdept

Plan, divide, and conquer: How weak models excel at long context tasks

Weaker LLMs such as Llama-3-70B and Qwen-72B can match or beat GPT-4o single-shot on long-context tasks by using a planner-worker-manager "Divide & Conquer" framework (ICLR 2026). The framework separates three noise sources: model noise, which grows superlinearly with input length; task noise from cross-chunk dependence; and aggregator noise. Planner-rewritten prompts reduce aggregator noise, for example asking each worker for the two smallest numbers rather than the second smallest. The approach is cheaper and parallelizable, and testing about 5 random samples is enough to tune chunk size, but it breaks down on tasks with strong long-range dependencies, where single-shot reading still wins.

Assumes: LLM context windowsprompt engineering basics

Related posts

  • Accelerate RL rollouts by up to 50% with distribution-aware speculative decoding

    Together AI hardMaster

    Distribution-aware speculative decoding (DAS) speeds up the rollout phase of LLM RL post-training, which can consume ~70% of training time due to long-tail straggler generations, while keeping outputs identical to standard decoding. It combines a training-free suffix tree drafter built from a sliding window of recent rollouts with length-aware scheduling. The drafter adapts to the evolving policy by inserting newly verified tokens back into the tree. The scheduler interleaves long requests across GPUs and gives long requests aggressive speculation budgets from the start, medium requests moderate budgets, and short ones none. Reported results are over 50% rollout time reduction on math RL with DeepSeek-R1-Distill-Qwen-7B and ~25% on code RL with Qwen3-8B, with matching reward curves across 8k–16k sequence lengths and batch sizes of 16–32.

  • How Long Prompts Block Other Requests - Optimizing LLM Performance

    Hugging Face hardMaster

    Under vLLM's default chunked-prefill scheduling, a single long prompt blocks the prefill queue, and any prefill running alongside decodes slows token generation for requests already in progress. The queue-blocking problem is largely solved by vLLM's newer parallel partial prefills, which batch several requests' prefills while capping how many long prompts run concurrently, cutting time-to-first-token for short requests. The decode slowdown is more fundamental. TNG compares three mitigations from running 24 H100s: deprioritizing long prompts, routing them to a separate server, and disaggregated prefill. Disaggregated prefill isolates decodes best but needs a second full deployment, leaves GPUs unevenly utilized, and is still experimental in vLLM.

  • Introducing HELMET: Holistically Evaluating Long-context Language Models

    Hugging Face hardMaster

    HELMET is a long-context language model benchmark covering diverse real tasks (RAG, generation with citations, re-ranking, ICL, long QA, summarization, synthetic recall) with controllable input lengths from 8K to 128K tokens and model-based metrics that agree with human judgments better than ROUGE. Across 59 models, simple synthetic tests like needle-in-a-haystack correlate poorly with downstream performance, task categories correlate weakly with each other, and open models trail closed ones on complex tasks like citation. Even GPT-4o and Gemini degrade sharply with length on re-ranking. The authors recommend Recall and RAG for fast iteration and show how to run the suite via transformers, TGI, Inference Endpoints, vLLM or provider APIs.

  • Building Long-Running Agents with ScaleDown and Deep Agents

    LangChain mediumAdept

    The langchain-scaledown integration offloads context-management decisions in long-running agents (summarizing history, compressing tool results, extracting fields, classifying state) from frontier LLMs to ScaleDown's small, task-specific constrained decoding models, which ScaleDown reports are far faster and cheaper on these narrow tasks. It ships middleware for LangChain and Deep Agents. Summarization replaces history past a trigger fraction. Tool compression adds a compression_query argument that cut a docs page by about 90%. Extraction copies exact values from user messages into agent state. A custom Classify-based circuit breaker can stop looping or drifting runs. ScaleDown calls can also route through the LangSmith LLM Gateway for tracing and spend limits, while open-ended generation stays on a general-purpose model.

  • GLM-5.2: Built for Long-Horizon Tasks

    Hugging Face hardMaster

    GLM-5.2 is Z.ai's MIT-licensed flagship model for long-horizon coding-agent work, with a 1M-token context and selectable thinking effort levels. It scores 81.0 on Terminal-Bench 2.1 and lands near Claude Opus 4.8 on FrontierSWE. Architecturally, IndexShare reuses one sparse-attention indexer across every four DSA layers, cutting per-token FLOPs 2.9× at 1M context. An improved MTP draft layer, using shared indices and KV, rejection sampling and an end-to-end TV loss, raises speculative-decoding acceptance length by 20%. Post-training switches from group-wise optimization to critic-based PPO, which handles compacted sub-traces, and uses slime for agentic RL plus a two-stage rule-and-LLM-judge guard that blocks reward-hacking tool calls online without aborting rollouts.

The quest for software engineering knowledge.

Look:
Layout: