The $\mathbf{Y}$-Combinator for LLMs: Solving Long-Context Rot with $\lambda$-Calculus
Amartya Roy, Rasul Tutunov, Xiaotong Ji, Matthieu Zimmer, Haitham Bou-Ammar

TL;DR
This paper introduces $eta$-RLM, a typed functional framework for long-context reasoning in LLMs, replacing open-ended code generation with structured control flow, leading to formal guarantees and improved empirical performance.
Contribution
It proposes $eta$-RLM, a novel typed $eta$-calculus-based framework that enhances the reliability, efficiency, and verifiability of recursive reasoning in language models.
Findings
Outperforms standard RLM in 29 of 36 tasks
Increases average accuracy by up to +21.9 points
Reduces latency by up to 4.1x
Abstract
LLMs are increasingly used as general-purpose reasoners, but long inputs remain bottlenecked by a fixed context window. Recursive Language Models (RLMs) address this by externalising the prompt and recursively solving subproblems. Yet existing RLMs depend on an open-ended read-eval-print loop (REPL) in which the model generates arbitrary control code, making execution difficult to verify, predict, and analyse. We introduce -RLM, a framework for long-context reasoning that replaces free-form recursive code generation with a typed functional runtime grounded in -calculus. It executes a compact library of pre-verified combinators and uses neural inference only on bounded leaf subproblems, turning recursive reasoning into a structured functional program with explicit control flow. We show that -RLM admits formal guarantees absent from standard RLMs, including…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsNatural Language Processing Techniques · Topic Modeling · Model-Driven Software Engineering Techniques
