Back to directory

λ-RLM

A framework for long-context LLM reasoning that replaces free-form recursive code generation with a typed functional runtime grounded in lambda calculus, using the model only on small, bounded subproblems.

λ-RLM

λ-RLM is a framework for long-context reasoning that replaces free-form recursive code generation with a typed functional runtime grounded in lambda calculus. Instead of letting a model write arbitrary recursive control logic at execution time, it runs a small library of pre-verified combinators and calls the model only on bounded leaf subproblems.

A long reasoning problem is broken into smaller pieces with operators such as split, map, filter, reduce, concat and cross; only the bounded leaf subproblems are solved with the LLM, and intermediate results are combined with these fixed symbolic operators, turning recursion into a structured functional program with explicit control flow rather than an open-ended agentic loop.

Across weak, medium and strong model families, it wins 29 of 36 model-task comparisons against standard recursive language models, improves average accuracy by up to 21.9 points, and runs up to 4.1 times faster, with formal guarantees including termination, closed-form cost bounds and controlled accuracy scaling with recursion depth.

More in Agent frameworks

See all 902
  • Recurse

    recurse.run

    A serverless harness that lets a coding agent design, test, and deploy its own specialist sub-agents as tools, MCP servers, or bots, defined by a schema-validated manifest.

  • ProofForge

    shulgin.is-a.dev

    An AI-agent pipeline that decomposes a mathematics problem, proves each piece, and formalizes the result in Lean 4 and Mathlib until the Lean kernel accepts it, with six of its proofs already merged into Google DeepMind's formal-conjectures repository.

  • local-coder

    github.com

    Builds a local coding-agent team on top of Ollama and OpenCode by detecting the machine's hardware, recommending models for seven specialist roles, and testing whether each assigned model can actually use tools, edit a repository and pass verification.