ORACLE: Orchestrate NPC Daily Activities using Contrastive Learning with Transformer-CVAE

The paper introduces ORACLE, a novel generative model that combines Transformers, Conditional Variational Autoencoders, and contrastive learning to synthesize realistic and diverse daily activity plans for Non-player characters (NPCs) by addressing data imbalance and scarcity challenges in smart home datasets.

Seong-Eun Hong, JuYeong Hwang, RyunHa Lee, HyeongYeop Kang

Published 2026-03-26
📖 5 min read🧠 Deep dive

Imagine you are walking through a video game world. You see a character sitting on a bench, then suddenly they teleport to a kitchen, then instantly to a park, then back to the bench. It feels weird, right? That's because most computer characters (NPCs) don't actually "live" a life; they just follow a broken script.

This paper introduces ORACLE, a new AI system designed to fix this. Think of ORACLE as a super-smart life coach for video game characters. Its job is to write a believable 24-hour schedule for an NPC, just like a real human would have one.

Here is how it works, broken down into simple concepts:

1. The Problem: The "Broken Record" Effect

Old ways of making NPC schedules are like a broken record player. They either:

  • Follow strict rules: "If it's 8 AM, eat breakfast. If it's 9 AM, go to work." This is boring and predictable.
  • Guess randomly: They might try to eat breakfast at 3 AM or sleep for 14 hours straight.
  • Get stuck: They can't handle long days (24 hours) well because their memory is short.

2. The Solution: ORACLE's "Three-Layer Cake"

The researchers built ORACLE using three special ingredients to bake a perfect daily schedule:

🍰 Layer 1: The Transformer (The "Super-Memory")

Imagine trying to remember what you did 10 hours ago while planning your next move. Old AI models get confused and forget.

  • The Analogy: ORACLE uses a Transformer, which is like a librarian with a photographic memory. It can look at the entire 24-hour day at once, not just the last few minutes. It understands that if you just woke up, you probably need to brush your teeth before you cook breakfast. It connects the dots across the whole day.

🍰 Layer 2: The CVAE (The "Creative Director")

If you ask a robot to "plan a day," it might give you the exact same plan every time because it's trying to be safe.

  • The Analogy: ORACLE uses a CVAE (Conditional Variational Autoencoder). Think of this as a Creative Director who adds a little bit of "chaos" or "flavor" to the plan.
    • Sometimes the NPC is tired and naps.
    • Sometimes they are energetic and go for a run.
    • The system knows the rules of a day (you can't sleep for 20 hours), but it allows for variety within those rules. It makes every NPC feel like a unique person, not a clone.

🍰 Layer 3: Contrastive Learning (The "Strict Editor")

This is the secret sauce. Sometimes the AI might generate a weird plan, like "Eat dinner, then immediately sleep, then wake up and eat breakfast again."

  • The Analogy: ORACLE has a Strict Editor (using Contrastive Learning).
    • The AI generates a plan.
    • The Editor looks at it and says, "Wait, that doesn't make sense. Humans don't do that."
    • The Editor then shows the AI a "Good Example" (a real human schedule) and a "Bad Example" (the weird one).
    • The AI learns to push the "Bad" plans away and pull the "Good" plans closer. Over time, it learns to spot the difference between a realistic day and a crazy one.

3. The Training Data: The "Smart Home" Library

To learn how humans actually live, ORACLE didn't just guess. It studied a massive library of data called CASAS.

  • The Analogy: Imagine a smart house where sensors track exactly what real people do all day—when they wake up, how long they cook, when they take a shower. ORACLE read thousands of these "diaries" to learn the rhythm of human life.
  • The Challenge: The data was messy. Some people didn't label their activities, and some activities happened way more often than others (like sleeping vs. exercising). ORACLE had to clean this data up, grouping similar things together (like "cooking breakfast" and "cooking dinner" both becoming just "Cooking").

4. What Did They Find?

The researchers tested ORACLE against other AI models and even asked real humans to judge the schedules.

  • The Result: ORACLE won.
  • Why? The schedules it made were more diverse (less repetitive), more realistic (followed human logic), and more flexible (it could fill in the blanks if you told it, "This character must be at work at 9 AM," and it would figure out the rest of the day around that).

The Big Picture

Why does this matter?

  • For Gamers: It means video game worlds will feel alive. NPCs will have their own lives, making the world feel less like a stage and more like a real place.
  • For Real Life: This technology could help design better smart homes, plan cities, or even create digital twins for elderly care, predicting what a person might need before they ask.

In short: ORACLE is an AI that learned to stop acting like a robot and start acting like a human, by reading thousands of real diaries, using a super-memory to plan ahead, and having a strict editor to keep the plans sensible.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →