mlsanityData to 14 Oct 2026

RAGs to Riches: RAG-like Few-shot Learning for Large Language Model Role-playing

arXiv 2509.12168 ↗First posted 15 Sep 2025cs.CL cs.AIcited by 1

Not on the map. Why?

Abstract (arXiv)

Role-playing Large language models (LLMs) are increasingly deployed in high-stakes domains such as healthcare, education, and governance, where failures can directly impact user trust and well-being. A cost effective paradigm for LLM role-playing is few-shot learning, but existing approaches often cause models to break character in unexpected and potentially harmful ways, especially when interacting with hostile users. Inspired by Retrieval-Augmented Generation (RAG), we reformulate LLM role-playing into a text retrieval problem and propose a new prompting framework called RAGs-to-Riches, which leverages curated reference demonstrations to condition LLM responses. We evaluate our framework with LLM-as-a-judge preference voting and introduce two novel token-level ROUGE metrics: Intersection over Output (IOO) to quantity how much an LLM improvises and Intersection over References (IOR) to measure few-shot demonstrations utilization rate during the evaluation tasks. When simulating interactions with a hostile user, our prompting strategy incorporates in its responses during inference an average of 35% more tokens from the reference demonstrations. As a result, across 453 role-playing interactions, our models are consistently judged as being more authentic, and remain in-character more often than zero-shot and in-context Learning (ICL) methods. Our method presents a scalable strategy for building robust, human-aligned LLM role-playing frameworks.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 19 of its 42 references that are in the map. First posted on arXiv 15 Sep 2025.

Builds on

19 of 42 references.

References · 19

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2024The Llama 3 Herd of Modelscited by 14,715
  3. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  4. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
  5. 2023Generative Agents: Interactive Simulacra of Human Behaviorcited by 3,568
  6. 2016Matching Networks for One Shot Learningcited by 2,255
  7. 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,434
  8. 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 938
  9. 2023Just Ask for Calibration: Strategies for Eliciting Calibrated Confidence Scores from Language Models Fine-Tuned with Human Feedbackcited by 812
  10. 2023A Survey on Large Language Model (LLM) Security and Privacy: The Good, the Bad, and the Uglycited by 387
  11. 2023Character-LLM: A Trainable Agent for Role-Playingcited by 339
  12. 2023RoleLLM: Benchmarking, Eliciting, and Enhancing Role-Playing Abilities of Large Language Modelscited by 175
7 more
  1. 2024Large Language Models are Superpositions of All Characters: Attaining Arbitrary Role-play via Self-Alignmentcited by 104
  2. 2024A New Era in LLM Security: Exploring Security Concerns in Real-World LLM-based Systemscited by 77
  3. 2024Bag of Tricks: Benchmarking of Jailbreak Attacks on LLMscited by 51
  4. 2024When to Trust LLMs: Aligning Confidence with Response Qualitycited by 43
  5. 2024Numerical Pruning for Efficient Autoregressive Modelscited by 25
  6. 2024Pruning Foundation Models for High Accuracy without Retrainingcited by 20
  7. 2022Crowd Score: A Method for the Evaluation of Jokes using Large Language Model AI Voters as Judgescited by 12

Built on by

Cited by year

Citing papers per year: 2025: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2023Better Zero-Shot Reasoning with Role-Play Prompting
  2. 2026Cognitive Enhancement: Rethinking the Necessity of Role-Playing for Large Language Models
  3. 2025RoleMRC: A Fine-Grained Composite Benchmark for Role-Playing and Instruction-Following
  4. 2025Test-Time-Matching: Decouple Personality, Memory, and Linguistic Style in LLM-based Role-Playing Language Agent
  5. 2024Emotional RAG: Enhancing Role-Playing Agents through Emotional Retrieval
  6. 2025Improving LLM Reasoning through Interpretable Role-Playing Steering
  7. 2024Role-Play Paradox in Large Language Models: Reasoning Performance Gains and Ethical Dilemmas
  8. 2025Reasoning Does Not Necessarily Improve Role-Playing Ability