# Is real-time multi-agent RL with Transformers possible in UE5?

**URL:** <https://forums.unrealengine.com/t/is-real-time-multi-agent-rl-with-transformers-possible-in-ue5/2539266>\
**Category:** AI\
**Tags:** Reinforcement-Learning, unreal-engine, Learning-Agents, question\
**Created:** [June 3, 2025, 4:04pm UTC](https://forums.unrealengine.com/t/is-real-time-multi-agent-rl-with-transformers-possible-in-ue5/2539266 "2025-06-03T16:04:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SHAY2407](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SHAY2407](https://forums.unrealengine.com/u/SHAY2407)\
**Post date:** [June 3, 2025, 4:04pm UTC](https://forums.unrealengine.com/t/is-real-time-multi-agent-rl-with-transformers-possible-in-ue5/2539266/1 "2025-06-03T16:04:44Z")

</div>

I’m primarily an AI/ML student with limited UE5 experience, so I’m honestly not sure how much of this is even technically feasible in a game engine context.

I’m exploring a combat arena concept with 50+ AI agents learning tactics in real-time using reinforcement learning and custom Transformer networks (spatial attention for battlefield awareness, action sequence prediction for opponent modeling, team communication for coordination). This is more of a theoretical exploration than a definite implementation plan.

Can UE5’s Learning Agents plugin realistically handle this scale with real-time learning during matches, or would I need extensive custom C++ plugins for PyTorch/TensorFlow integration? As someone coming from the AI side, I’m not sure what’s reasonable to expect from game engine performance.

Has anyone attempted similar multi-agent RL systems in UE5, or should I be looking at other platforms entirely?
