Urgent.News

the world's headlines, one feed

Editions

Culture

Can a Cheap Model Beat a Frontier Model? Rebuilding Recursive Language Models with Codex

Large language models have enormous context windows now. That does not mean they use all of that context reliably. As prompts grow, models can miss details, lose track of relationships, or produce plausible summaries instead of doing the exhaustive work a question requires. The Recursive Language Models (RLM) paper proposes a different interface: keep the large context outside the model, expose…

In the realm of artificial intelligence, large language models have expanded their context windows, but this does not guarantee their reliability in utilizing all the provided context. Recursive Language Models (RLM) introduce a novel approach by externally managing large context as variables within a persistent programming environment. This allows the model to analyze, segment, and recursively query smaller portions of the data.

To test this new method, the authors conducted an experiment using an OOLONG trec_coarse validation example. The input consisted of a 308,367-character context containing 3,182 general-knowledge questions, each belonging to one of six answer types. The task was to infer these labels and identify the least-common category.

The experiment compared a direct gpt-5.6-sol Codex call with an RLM where the root and all leaf calls were limited to gpt-5.4-mini. The direct frontier call answered one question correctly, while the mini-only RLM answered numeric value correctly, matching the gold answer. Although the RLM took significantly longer to process (6,120.3 seconds) compared to the direct model call (40.1 seconds), it ultimately achieved the desired result.

The RLM root inspected the context structure, classified chunks, retried malformed responses, reduced chunk sizes, and reclassified all 3,182 questions using structured JSON outputs. This detailed process mirrors the kind of work that a direct model call often approximates but an RLM can force itself to perform, leading to more nuanced results.

Upon comparing the mini model's inferred counts against the validated labels, it was found that the model made substantial row-level classification errors. However, it still identified the correct minimum category due to a significant margin between the numeric value category and the next-smallest category. This discrepancy highlights the importance of auditing intermediate judgments, even when the final answer is correct.

The experiment demonstrates that an RLM can potentially match or outperform a direct frontier-model call on suitable long-context tasks. Some practical applications include semantic aggregation, multi-document research, repository-scale understanding, and cross-record and pairwise reasoning. These tasks can be highly complex and require strict budgets and deterministic post-processing, making RLMs a promising solution for handling such challenges.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — it may contain errors, so check the original before relying on it.

Read the original at dev.to →

More in Culture