claudeers.
// Automation & Workflows

Titans---Learning-to-Memorize-at-Test-Time

Multi-agent demo platform for Titans (arXiv:2501.00663) — neural networks that learn to memorize at test time. 7 AI agents, native desktop UI.

Slowing down
89/100
last commit 2 months ago
last release 2 months ago
releases 1
open issues 0
// star history5 this week

Install with your AI

Paste into Claude Code, Cursor, or any agent — it reads the repo and wires the tool into your project.

Install and set up Titans---Learning-to-Memorize-at-Test-Time (release-binary project) into my current project.
Found on https://claudeers.com/titans-learning-to-memorize-at-test-time
Repo: https://github.com/ai-in-pm/Titans---Learning-to-Memorize-at-Test-Time
Homepage/docs: —
Detected install method: release-binary → inspect the README
Category: automation. Platforms: cli, api, desktop.
Read the repo's README for exact setup and env vars, then install it and wire it into my project.

Claudeers Health Verdict:
slowing; community-verified: false. Confirm the source before running anything.
// or install directly (release-binary)

Grab the latest release asset from GitHub.

# download a build from https://github.com/ai-in-pm/Titans---Learning-to-Memorize-at-Test-Time/releases
// or clone
git clone https://github.com/ai-in-pm/Titans---Learning-to-Memorize-at-Test-Time

// compatibility

Platformscli, api, desktop
Operating systems
AI compatibilityclaude
LicenseMIT
Pricingopen-source
LanguagePython

🧠 Titans: Learning to Memorize at Test Time

An interactive multi-agent demonstration platform for the landmark Titans architecture — the first neural network to learn how to memorize at test time.

Titans Demonstration Platform

✨ What Makes This Special

The Titans paper introduces a groundbreaking memory architecture that learns what to remember during inference — no more fixed context windows. This repository brings those ideas to life with:

  • 7 specialized AI agents, each embodying a different perspective on the Titans architecture
  • Native desktop UI with real-time telemetry, interactive charts, and live visualization
  • Side-by-side agent collaboration — watch how GPT-4, Claude, Mistral, Groq, Gemini, Cohere, and Emergence reason about the same memory problem
  • Zero-friction setup — runs with a single command, even if only one API key is configured

🚀 Quick Start

# 1. Clone the repo
git clone https://github.com/ai-in-pm/Titans---Learning-to-Memorize-at-Test-Time.git
cd Titans---Learning-to-Memorize-at-Test-Time

# 2. Install dependencies
pip install -r requirements.txt

# 3. Configure API keys
cp .env.sample .env
# Edit .env and add your API keys (only the providers you want to use)

# 4. Launch
python main.py

Windows users: Run titans.bat (handles path setup automatically) or launch titans.exe for a bundled, dependency-free experience.


🤖 The Seven Agents

Each agent explores a distinct component of the Titans architecture through a different LLM lens:

#AgentProviderTitans Role
1Neural Memory ModuleOpenAI (GPT-4)Core long-term memory model
2Memory as ContextAnthropic (Claude)Attention-based context memory
3Memory as GateMistralGating mechanism for memory flow
4Memory as LayerGroqPer-layer memory integration
5Experimental ValidationGoogle GeminiBenchmarking & ablation analysis
6InnovationsCohereNovel extensions & improvements
7AnalysisEmergenceCross-agent synthesis & insights

🖥️ Desktop Features

The native Tkinter interface provides a rich interactive environment:

  • Agent selector panel — choose which agents participate in each run
  • Live demonstration console — real-time streamed output from each agent
  • Runtime telemetry — per-agent timing and token usage metrics displayed live
  • Numeric-series chart — automatically extracted from agent output, with play/scrub interaction
  • Collaborative insights view — synthesized cross-agent analysis panel
  • Adjustable split-pane layout with remembered position across sessions

🔑 API Key Configuration

Copy .env.sample to .env and add the keys for any providers you want to use:

OPENAI_API_KEY=sk-...
ANTHROPIC_API_KEY=sk-ant-...
MISTRAL_API_KEY=...
GROQ_API_KEY=...
GOOGLE_API_KEY=...
COHERE_API_KEY=...
EMERGENCE_API_KEY=...

You do not need all keys — the platform works with any subset and shows a graceful status for unavailable agents.


🧪 The Science: Titans Architecture

The Titans paper proposes three distinct ways to integrate a neural long-term memory module into transformer models:

  1. Memory as Context (MAC) — memory tokens are prepended to the attention context window, giving the model access to a persistent external memory
  2. Memory as Gate (MAG) — memory output multiplicatively gates the attention output, controlling information flow
  3. Memory as Layer (MAL) — the memory module is inserted as a standalone layer within the network stack

The key innovation is test-time learning of what to memorize: the memory module updates its parameters during inference based on a surprise metric, allowing the model to adaptively retain information that contradicts its current knowledge — without any additional training.


📁 Project Structure

Titans---Learning-to-Memorize-at-Test-Time/
├── main.py              # Desktop application entry point
├── titans.bat           # Windows launcher (handles path setup automatically)
├── titans.exe           # Pre-built Windows executable (no Python required)
├── requirements.txt     # Python dependencies
├── .env.sample          # API key template
├── agents/              # Provider-specific agent implementations
│   ├── openai_agent.py
│   ├── anthropic_agent.py
│   ├── mistral_agent.py
│   ├── groq_agent.py
│   ├── gemini_agent.py
│   ├── cohere_agent.py
│   └── emergence_agent.py
├── static/              # UI assets
└── Titans Paper.pdf     # The original research paper (arXiv:2501.00663)

🛠️ Troubleshooting

ProblemSolution
App closes immediately on launchRun via titans.bat to read the terminal error output
python main.py fails with path errorcd into the project folder first
google.generativeai deprecation warningsNon-fatal — the app still works correctly
An agent shows "unavailable"That provider's API key is missing or invalid in .env

📖 Citation

If this project helps your research or learning, please cite the original paper:

@article{behrouz2025titans,
  title     = {Titans: Learning to Memorize at Test Time},
  author    = {Ali Behrouz and Peilin Zhong and Vahab Mirrokni},
  journal   = {arXiv preprint arXiv:2501.00663},
  year      = {2025},
  url       = {https://arxiv.org/abs/2501.00663}
}

🤝 Contributing

Contributions are warmly welcome! Here's how to get involved:

  • 🐛 Report bugs by opening an Issue
  • 💡 Request features via Issues or Discussions
  • 🔧 Submit a Pull Request with bug fixes, new agents, or UI improvements
  • Star this repo if you find it useful — it helps others discover the project!

📜 License

Distributed under the MIT License. See LICENSE for full details.


Made with ❤️ by ai-in-pm · Inspired by the Titans paper

Found this useful? Please give it a ⭐ — it really helps!

// faq

What is Titans---Learning-to-Memorize-at-Test-Time?

Multi-agent demo platform for Titans (arXiv:2501.00663) — neural networks that learn to memorize at test time. 7 AI agents, native desktop UI.. It is open-source on GitHub.

Is Titans---Learning-to-Memorize-at-Test-Time free to use?

Titans---Learning-to-Memorize-at-Test-Time is open-source under the MIT license, so it is free to use.

What category does Titans---Learning-to-Memorize-at-Test-Time belong to?

Titans---Learning-to-Memorize-at-Test-Time is listed under automation in the Claudeers registry of Claude-compatible tools.

3 views
334 stars
unclaimed
updated about 2 months ago

// embed badge

Titans---Learning-to-Memorize-at-Test-Time on Claudeers
[![Claudeers](https://claudeers.com/api/badge/titans-learning-to-memorize-at-test-time.svg)](https://claudeers.com/titans-learning-to-memorize-at-test-time)

// retro hit counter

Titans---Learning-to-Memorize-at-Test-Time hit counter
[![Hits](https://claudeers.com/api/counter/titans-learning-to-memorize-at-test-time.svg)](https://claudeers.com/titans-learning-to-memorize-at-test-time)

// reviews

// guestbook

0/500

// related in Automation & Workflows

🔓

The agent that grows with you

// automationNousResearch/Python230,654MIT[ claude ]
🔓

The API to search, scrape, and interact with the web at scale. 🔥

// automationfirecrawl/TypeScript167,815AGPL-3.0[ claude ]
🔓

🌐 Make websites accessible for AI agents. Automate tasks online with ease.

// automationbrowser-use/Python110,149MIT[ claude ]
🔓

An open-source long-horizon SuperAgent harness that researches, codes, and creates. With the help of sandboxes, memories, tools, skill, subagents and message…

// automationbytedance/Python80,016MIT[ claude ]
→ see how Titans---Learning-to-Memorize-at-Test-Time connects across the ecosystem