potentialpaper

LongContextRouter: Context-Aware Model Routing for Long-Horizon LLM Agents

Keep the title, authors and abstract in paper.json

potentialpaper · 2026-11-23 19:36 UTC · 2fb1c203fc0d ·

.potentialpaper/metadata.json modified

+++ b/.potentialpaper/metadata.json
@@ -1,19 +1,5 @@
{
- "layout": 5,
- "identifiers": [
- {
- "scheme": "openreview",
- "value": "0GdLxaSjtZ"
- }
- ],
- "title": "LongContextRouter: Context-Aware Model Routing for Long-Horizon LLM Agents",
- "authors": [],
- "abstract": "Choosing a model for an LLM agent requires a delicate balance between task success and execution cost. However, standard routing methods are often myopic: they rely predominantly on the initial request, missing critical requirements buried in long-horizon task documents, prior messages, and execution records. We introduce LongContextRouter, a context-aware task-level router designed to capture this extended context through overlapping-window encoding and causal Transformer aggregation. This hierarchical representation interacts with learned candidate-model embeddings to predict task success, trained via pointwise and multi-positive listwise losses. A decoupled cost head allows model selection to dynamically reflect different cost preferences without requiring the success predictor to be retrained. Evaluated across four benchmarks and five candidate models—and leveraging historical execution text during training on SWE-bench Pro—LongContextRouter achieves 76.44% sample-average task success. This outperforms the strongest fixed-model baseline by 4.19 percentage points while simultaneously reducing recorded model-execution costs by 32.0%.",
- "year": 2027,
- "venue": "ICLR 2027 (under review)",
- "source": "openreview",
- "license": {
- "metadata": "CC0-1.0",
- "abstract": "CC0-1.0"
- }
+ "layout": 6,
+ "kind": "paper",
+ "key": "f9c1e490-bd0a-4f92-8d3d-a3e520ed7c4f"
}

paper.json added

+++ b/paper.json
@@ -0,0 +1,9 @@
+{
+ "title": "LongContextRouter: Context-Aware Model Routing for Long-Horizon LLM Agents",
+ "authors": [],
+ "abstract": "Choosing a model for an LLM agent requires a delicate balance between task success and execution cost. However, standard routing methods are often myopic: they rely predominantly on the initial request, missing critical requirements buried in long-horizon task documents, prior messages, and execution records. We introduce LongContextRouter, a context-aware task-level router designed to capture this extended context through overlapping-window encoding and causal Transformer aggregation. This hierarchical representation interacts with learned candidate-model embeddings to predict task success, trained via pointwise and multi-positive listwise losses. A decoupled cost head allows model selection to dynamically reflect different cost preferences without requiring the success predictor to be retrained. Evaluated across four benchmarks and five candidate models—and leveraging historical execution text during training on SWE-bench Pro—LongContextRouter achieves 76.44% sample-average task success. This outperforms the strongest fixed-model baseline by 4.19 percentage points while simultaneously reducing recorded model-execution costs by 32.0%.",
+ "license": {
+ "metadata": "CC0-1.0",
+ "abstract": "CC0-1.0"
+ }
+}