TL;DR
This paper presents Codified Profiles, a structured approach to character logic in role-playing AI, enhancing persistence, updatability, and controllability over traditional prompt-based methods, validated through a new benchmark.
Contribution
The paper introduces Codified Profiles, a novel method for representing character logic as executable functions, improving consistency and controllability in role-playing AI.
Findings
Improved character persistence and consistency.
Enhanced behavioral diversity and controllability.
Effective role-playing with smaller models like 1B parameters.
Abstract
This paper introduces Codified Profiles for role-playing, a novel approach that represents character logic as structured, executable functions for behavioral decision-making. Each profile defines a set of functions parse_by_scene(scene) that outputs a list of logic-grounded assertions triggered_statements, using both explicit control structures (e.g., if-then-else) and condition checks like check_condition(scene, question), where each question is a semantically meaningful prompt about the scene (e.g., "Is the character in danger?") discriminated by the role-playing LLM as true, false, or unknown. This explicit representation offers three key advantages over traditional prompt-based profiles, which append character descriptions directly into text prompts: (1) Persistence, by enforcing complete and consistent execution of character logic, rather than relying on the model's implicit…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
MethodsSparse Evolutionary Training
