ACTOR turns 143 novels into 17,560 next-action tests for role-play agents
The hard part of literary role-play is not sounding like the character but choosing, among several actions that all fit the scene, the one this character would actually take; ACTOR turns that into a trainable and auditable data problem built on character-centric behaviour trajectories and story-time ordering.
On this page
A team holding 143 novels and a fine-tuned role-play model has to decide whether a character would draw a sword in the next scene, but the model's answer may track her way of talking rather than what she would actually do. The usual advice is to check the dialogue: if the reply sounds like her, the agent is working. That check misses two things. A person is also what she does when she says nothing — the door she closes, the blade she puts away. And a story is rarely told in the order it happens; a flashback hands the reader the ending first, while the character lives it forwards. This paper turns both problems into data: 143 novels, behaviour records ordered by story time, 3 counterfactual alternatives per real action, and a four-way question that asks which action the character actually took [1].
Role-play agents learn the voice but not the choices
Most people assume a role-play agent is working when its replies sound like the character. That test is easy to pass. Copy the cadence, reuse two signature phrases, and a reader who knows the novel will nod along [1]. The paper starts elsewhere: a character is also defined by non-dialogue behaviour, and by the order in which those behaviours accumulate.
ACTOR treats a contextual utterance or a distinctive non-dialogue action as a behaviour. Deliberate silence and avoidance count; routine actions that reveal no personal trait and involve no active choice are filtered out. The framework also separates two timelines that earlier work tends to merge, namely the order in which the text discloses events and the order in which they actually happen to the character. Novels use flashbacks constantly, so a model trained on reading order can learn a cause that is really an artefact of the telling.
Behaviour as a Thought-Action-Observation record, ordered by story time
The first stage is not training but construction. Each behaviour becomes a Thought–Action–Observation record: the mental state and rationale before the act, the utterance or physical action itself, and the reactions and environmental changes the character can afterwards perceive. Long novels do not fit a context window, so extraction falls back from a full plot to a single scene to character-level context, and where that fallback lands changes the behaviour density a lot.
| Stage | What it does | Output |
|---|---|---|
| T-A-O extraction | Splits scenes into Thought, Action and Observation; falls back from full plot to scene to character context | Atomic behaviour records |
| Key-behaviour validation | Keeps a behaviour only if the character had real alternatives and the choice changed persistent state or future options | Behaviours flagged as key |
| Temporal alignment | Detects flashback-induced ordering anomalies and applies only reorderings backed by textual evidence | Trajectory ordered by story time |
| Profile updates | Runs an update check after each key behaviour and saves a new version only on sustained change | Multi-version profiles |
Candidates for key behaviour are generated first, then checked against later scenes that show long-term impact, and finally passed through an independent evidence check; only supported candidates survive, which keeps single-pass annotation noise out of the trajectory.
Three plausible wrong actions for every real action
A real action alone trains and tests nothing. Ask only for a continuation and a fluent paragraph that fits the mood will pass, leaving you unable to tell understanding from atmosphere. So every real behaviour is paired with three counterfactual actions that are plausible in the situation yet inconsistent with the target character. Both conditions matter: plausibility removes obviously wrong options, and persona inconsistency guarantees that picking correctly requires knowledge of the person.
Counterfactuals are generated alongside extraction and refined once trajectories and profiles exist, so they match the length and structural form of the real action without altering it. Titles and character names are then anonymised and withheld during training and evaluation, which blocks recall from pretraining and makes cross-work testing meaningful [1].
RPO: DPO plus a likelihood term on the real action
Training is framed as conditional preference learning. The context has four parts: a dynamic profile of the current character state, long-term memory of validated key behaviours, short-term memory of recent scene interactions, and situational context covering background, temporal cues and participants. All four are sampled strictly from story content preceding the target action, so the model sees only what the character could know at that moment.
The pair uses the genuine behaviour as the chosen item and, among the three counterfactuals, the one closest in length as the rejected item, which limits confounding from output length. Direct Preference Optimization alone optimises the relative margin and never explicitly raises the likelihood of the real action, so a model can rank correctly while generating worse. RPO adds a token-level negative log-likelihood term on the source behaviour. β is 0.1 for every model; α is 1.0 for the Qwen-2.5 runs and 0.25 for Llama-3.1-8B [1].
17,560 four-way questions carved out of 143 novels
Evaluation is a four-way next-behaviour selection task: given the profile, behavioural memories and the current scene, pick the most likely next action from one real behaviour and three counterfactuals. Selection accuracy is the headline metric, reported for temporal and cross-work subsets and for key versus non-key behaviours.
| Split | Source | Instances |
|---|---|---|
| Training | 115 works, first 80% of each character trajectory | not stated in the abstract |
| Temporal evaluation | Same 115 works, last 20% | 11,770 |
| Cross-work evaluation | 28 works held out entirely | 5,790 |
| Total evaluation | — | 17,560 |
Six pretrained models are baselines: Qwen-2.5-Instruct 7B and 14B, Llama-3.1-Instruct 8B, Qwen-3-32B, CoSER-8B and HER-32B. Three ACTOR models are trained with RPO on Qwen-2.5-7B, Qwen-2.5-14B and Llama-3.1-8B. Open-ended interaction is scored with the CoSER framework on plot consistency, human-likeness, character fidelity and plot quality.
When this method does not apply
The paper reports substantially improved accuracy across the 17,560 instances for models trained on ACTOR's preference pairs, though the abstract gives no per-model numbers. The method fails when the conditions below are violated.
- Coverage is 143 literary works with all titles and names anonymised, and the cross-work subset is only 28 books, so the generalisation claim rests on that scale.
- The key-behaviour filter drops two classes on purpose: actions with no real alternative, and small actions that change no state yet reveal personality — often the most memorable part of a novel.
- Temporal repair is applied only where textual evidence supports it; with unreliable narrators, parallel storylines or deliberately blurred chronology the reconstructed story time can still be wrong, and no failure rate is reported.
- Four-way selection is a closed question with one right answer, while role-play is open generation; selection accuracy does not transfer directly to dialogue quality, even with the CoSER supplement.
- Counterfactuals are model-generated, so length matching reduces but does not remove systematic stylistic differences from real actions.
- The pipeline is out of scope for works where character boundaries are undefined or the persona is deliberately contradictory.
