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

by ai-in-pmVerified

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

334
Stars
64
Forks
Python
Language
8/23/2026
Added
View on GitHubDownload ZIP

⚠️ Third-Party Software Notice

This skill is third-party open-source software developed and hosted independently on GitHub. SkillTip is an informational directory and does not control or maintain the underlying repository. Any security checks displayed are automated and limited in scope. Review the source code before installing.

Read the Terms of Service

Installation

Add to your Claude Code skills directory:

# Add to your Claude Code skills
git clone https://github.com/ai-in-pm/Titans---Learning-to-Memorize-at-Test-Time

Getting Started

Guides for using skills like Titans---Learning-to-Memorize-at-Test-Time.

Security Report

Verified

Last scanned: —

{
  "status": "PASSED",
  "issues": []
}

README.md

🧠 Titans: Learning to Memorize at Test Time

Stars Forks License: MIT Python arXiv

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!

Frequently Asked Questions

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

Titans---Learning-to-Memorize-at-Test-Time is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by ai-in-pm. 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 has 334 GitHub stars.

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

Yes. Titans---Learning-to-Memorize-at-Test-Time passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install Titans---Learning-to-Memorize-at-Test-Time?

Clone the repository with "git clone https://github.com/ai-in-pm/Titans---Learning-to-Memorize-at-Test-Time" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is Titans---Learning-to-Memorize-at-Test-Time written in?

Titans---Learning-to-Memorize-at-Test-Time is primarily written in Python. It is open-source under ai-in-pm on GitHub, so you can review or fork the full source.

Are there alternatives to Titans---Learning-to-Memorize-at-Test-Time?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh Titans---Learning-to-Memorize-at-Test-Time against similar tools.

Comments (0)

No comments yet. Be the first to share your thoughts!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI Agentsai-agentsanthropicclaude-code
View details
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI Agentsai-agentsbrainstorming
View details

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI Agentsai-agentsanthropicclaude-code
View details

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI Agentsclaude-codeai-tools
View details

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI Agents
View details

Developers Also Liked

Based on votes and bookmarks from developers who liked this skill

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI Agentsai-agentsanthropicclaude-code
View details
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI Agentsai-agentsbrainstorming
View details

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP Serversapisai-tools
View details

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI Agentsai-agentsanthropicclaude-code
View details

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI Agentsclaude-codeai-tools
View details