Persona Engineering: A Field Guide to AI Synthetic Personas — Ishan Anand, InsightSciences.ai

AI Engineer · 21 min · 225 sentences · from YouTube's caption track

Each timecode opens YouTube at the start of that sentence. Line anchors (#s42) are the cue ids in the WebVTT, and every line carries its start and end seconds. All transcripts has every talk, and the whole corpus as one file.

  1. 00:01[music]
  2. 00:13Hello, I'm Ishan and welcome to can AI predict people like we predict the weather.
  3. 00:20A field guide to the nascent field of synthetic personas.
  4. 00:24Now, I'm sure most of you in this room at some point or another have prompted a large language model with a role prompt.
  5. 00:32You are a fill in the blank and then the task.
  6. 00:37Believe it or not, that core principle of steering a model's outputs as if it were a particular person or persona has turned into an entire category that companies are using
  7. 00:48to test product concepts and messaging against synthetic respondents.
  8. 00:53And it has moved from a novelty to market momentum, as you can see from both these headlines as well as the increase in funding for the last few years.
  9. 01:03And the running analogy I want to leave you with is that synthetic personas are like weather forecasting.
  10. 01:10Like weather forecasting, they were unlocked thanks to an increase in compute and data.
  11. 01:16And like weather forecasting, they operate within a particular regime and going past that sometimes can go outside of where they're accurate.
  12. 01:25So, for example, you can only predict the weather a certain number of days in advance.
  13. 01:31Similarly with synthetic personas, there's only so far you can go before you'll run into issues.
  14. 01:36And understanding those issues are as important as understanding their promise and their potential.
  15. 01:43So, I'm Ishan Nand.
  16. 01:45I'm the chief AI officer at Insight Sciences.
  17. 01:49We construct LLM synthetic personas for market research and market insights teams.
  18. 01:55And the reason for this talk is that most of the coverage in the space is very shallow, doesn't go into the technical details.
  19. 02:02It's either outright hype or outright dismissal.
  20. 02:06And it's really hard to separate the noise from what's real.
  21. 02:11So what I want to cover is that messy middle of the technical details.
  22. 02:14And you don't have to take my word for it, even though I'm a vendor in the space, because everything I'm going to talk about today is going to be based on published research.
  23. 02:24So we're going to cover why now for synthetic personas, how they fail, some techniques to inspire you, and then some metrics to judge whether your synthetic persona is accurate or not.
  24. 02:35Speaking of weather forecasting, another parallel is just like in the 1950s and '60s, we got computers that promised us, correctly, a future of accurate weather forecasts.
  25. 02:48We were also promised, believe it or not, people forecasts.
  26. 02:52This company, Simulmatics, were extensively covered by Jill Lepore, promised that they could simulate and predict the electorate using raw statistics and the computational power at the time.
  27. 03:04Fortunately, that turned out not to be the case.
  28. 03:07So you should approach claims like this with some humility.
  29. 03:10But we have something they did not have then.
  30. 03:13And that unlock is, again, more computational power, but also better modeling thanks to LLMs.
  31. 03:20And LLMs unlock a new kind of simulation.
  32. 03:23For the longest time, to simulate something meant to mathematize it in formulas or equations.
  33. 03:30But certain things, how we feel, how we act, what choices we make, aren't always succumbing to the equations.
  34. 03:38What LLMs offer us is a new medium, a new atomic unit of language itself that we can model against.
  35. 03:45Now granted, they are based on math under the hood, but it gives us this intermediary layer that we can construct and simulate against that we couldn't before.
  36. 03:54And the process can work.
  37. 03:57I want to share with you one of the most well-known demonstrations of this in the field.
  38. 04:03What they did is they took about a thousand humans.
  39. 04:06They put them through about two and a half hours of extensive interviews about their background and their views and their attitudes.
  40. 04:14And they put those people through a battery of personality tests and surveys.
  41. 04:19Then they took those transcripts and they passed it to an AI agent and they had the AI agent take the same set of surveys and personality tests.
  42. 04:30What they found was as the agents were basically about 83% aligned and predictive to the corresponding humans they were modeled against.
  43. 04:39Now one caveat is that number is normalized against the uncertainty and noise of the humans themselves.
  44. 04:45It's a theme we're going to come back to at the end of this talk.
  45. 04:49But don't get too excited because synthetic personas are different from regular experiments and they're liable to confuse and fool you if you don't know how they fail.
  46. 04:59So I'm going to cover three important failure modes that you need to know about when dealing with synthetic personas.
  47. 05:05To understand the first one, I want to consider this prompt these researchers gave.
  48. 05:10It's a very un It's a very ambiguous and very unsophisticated prompt.
  49. 05:15It basically says you're a customer, I'm going to show you a product, I'm going to tell you the category, I'm going to give you its price.
  50. 05:21Those are going to be the variables in the template and then I'm going to ask you to say whether you're going to purchase or not purchase.
  51. 05:27Willingness to pay, willingness to purchase is basically the test.
  52. 05:32What the researchers did is they recruited a panel of humans and put them through the same test and then they put the synthetic personas through the same test.
  53. 05:39What they found is very interesting.
  54. 05:41So the humans are here in red.
  55. 05:43They do exactly what you would expect from basic economic theory.
  56. 05:46As the purchase price increases, we see that the purchase probability goes down, slopes downward.
  57. 05:53But the LLMs did something different.
  58. 05:56They had this inverted U-shaped curve.
  59. 05:58And particularly problematic is this area right here, where as the price is increasing, the purchase probability is going up.
  60. 06:06That seems really bizarre.
  61. 06:09Through a series of additional experiments, what they discovered was that the LLM was using the price as a proxy for other properties about the product that the humans were considering were fixed.
  62. 06:20Things like the expiration date based on the price, what the price of competing products were also as the price changed.
  63. 06:28And those correlations, those latent confounders that weren't clear and immediate, were actually confusing the result.
  64. 06:36And the way to think about this is when an LLM is missing context, it has to potentially infer or invent confounders.
  65. 06:44Right?
  66. 06:45When we do a human experiment, if I put it like a gold watch on a table, I ask a human to walk in and estimate the price of it, everything about the environment is fairly fixed.
  67. 06:54The human and their decisions are the random variable.
  68. 06:57In a synthetic experiment, if you don't set it up properly, other parts of it actually become part of the random variable itself.
  69. 07:04I like to say if it's a poorly grounded persona, it's a little like the LLM is playing improv with you.
  70. 07:10It's like gold watch on a table?
  71. 07:12Oh, well, we must be in a jewelry store, right?
  72. 07:14It has to infer what's likely.
  73. 07:16And maybe this is a rich person, so they're more likely to purchase.
  74. 07:19And so the lesson is, we need to richly ground our personas in the personality, the context, and bizarrely, even the study's own construction.
  75. 07:29In a human subject experiment, you want to hide the study construction from the participant.
  76. 07:34But in the case of an LLM, they have no universe other than what's in the prompt, and you have to use the prompt to paint the world to prevent
  77. 07:40any type of confounders.
  78. 07:43Another failure mode is prompt sensitivity.
  79. 07:46So, here's a researcher that took a question, they give the same question, same choices, they just swapped the order of the choices.
  80. 07:53Yes was the first one in the first question, yes was the second option in the the second question.
  81. 07:58What they found was that the model had an extremely strong order bias.
  82. 08:03Basically, when they took the two results and they averaged them together, it washed out into noise, into 50/50.
  83. 08:09Now, humans do have a first order bias, but not to this extent.
  84. 08:13And so, the lesson here is that we need to durability test our personas to understand how they will change under reorderings, under rewordings, and even adversarial challenges to their opinions.
  85. 08:27The third and final area that I want to highlight is that LLMs are trained on what people say, and they're not trained on what people do.
  86. 08:35So, as a consequence, predicting stated attitudes tend to be easier than predicting actions or behaviors.
  87. 08:42Both because they're clear and likely to be in the text, but also because they are natively text themselves.
  88. 08:49So, this chart is from a bunch of researchers that used an LLM to try and predict known social science experiments.
  89. 08:56The original point of this chart is to show that the LLMs are about as good as the experts.
  90. 09:00LLM is in black in a circle, the experts are in blue, and you can see they're both doing about equally well in making the prediction.
  91. 09:07But, the point I want to draw you to is that there are two categories of experiments here.
  92. 09:11The top are surveys, those are natively language and text-based, and those reflect attitudes.
  93. 09:17And on the whole, the models tend to do better there.
  94. 09:21The bottom half is field experiments.
  95. 09:23Those are behaviors, and those are things that need to be transcribed into actions.
  96. 09:26They're less likely to be in the training data, and correspondingly, the LLM doesn't do as well.
  97. 09:31So, the lesson we often tell our clients is consider questions that triangulate to behavior from attitudes.
  98. 09:38As a hypothetical example, if you want to know about gym attendance, you might be better off, well, you can ask about both, but asking about attitudes towards working out rather than asking about attendance and see if that's a suitable proxy.
  99. 09:51Okay.
  100. 09:52Now, let's talk about three example techniques to kind of inspire your own synthetic personas.
  101. 09:59So, the first one is just prompting the model.
  102. 10:02Uh this right here is from the Argyle paper, which is really one of the seminal papers in this field.
  103. 10:09In fact, it's so early that the model they used was a text completion model.
  104. 10:14That's why this prompt isn't in the form of a chat.
  105. 10:16It's a statement of I am.
  106. 10:19So, they gave it a prompt that said, and for example, the middle column is basically where the context is.
  107. 10:24I am a strong liberal.
  108. 10:25I support progressive values, etc., etc. And at the end it says, "In 2016, I voted for."
  109. 10:30And they basically let the model sample its completions and it says, uh Hillary Clinton, Bernie Sanders, Hillary Clinton, and so forth.
  110. 10:38And you can see what happens with the conservative case on the top.
  111. 10:41Since this time, obviously, there've been a lot more prompting techniques.
  112. 10:47And a lot more models.
  113. 10:49And I can't tell you which prompting technique and which model is going to work best for your use case.
  114. 10:55What you are going to have to do is figure it out empirically by validating against some known human ground truth data.
  115. 11:02You'll have to do what these guys did.
  116. 11:03So, for example, here in this research, they're trying to figure out how well they can construct personas to represent voting patterns.
  117. 11:10What they found was they compared here on the left is reality and on the right is their four different types of persona constructions.
  118. 11:18And they didn't realize it at the time, but their persona construction was actually amplifying bias within the model as they got more and more detailed.
  119. 11:26And they found it was actually throwing it further and further astray from reality.
  120. 11:29So, you probably have a bunch of different ideas.
  121. 11:31The answer is you're going to have to test it and validate it against ground truth.
  122. 11:37The other natural thing you might expect is well, hey, we can fine-tune it, especially if it's missing data that isn't there, especially for example, if it's behaviors or something that wouldn't be in the training text.
  123. 11:46And this is a great paper to be inspired by for this.
  124. 11:49This is the Subpop paper.
  125. 11:51Basically, they construct a prompt template, which is the demographic information, then the survey question they want to ask, and then they compare the known human data distribution to the distribution that comes out of the model,
  126. 12:03and they do fine-tuning until the model and the human data align.
  127. 12:09Now, here's the interesting thing.
  128. 12:11When they did this, as you'd expect, the results that were from the populations they gave to the model, that's the ones in blue, improved.
  129. 12:20But very interestingly, the ones in white also improved by almost the same degree.
  130. 12:24Alignment improved even for the unseen groups.
  131. 12:28That seems almost magical.
  132. 12:30And some subsequent research has hinted that what might be really happening here is that the model itself has a latent understanding of these groups.
  133. 12:40It just didn't know how to express it in the format of surveys.
  134. 12:43And if you think about it, LLMs aren't used to doing surveys as a task.
  135. 12:48And so they aren't going to be as good as fitting it, especially to a prompt format they may not have seen on the first go-around.
  136. 12:54But fine-tuning actually is helping it learn the task or how to express itself.
  137. 12:59So, a lesson you can kind of take away is that your persona that you're looking for is in there.
  138. 13:03We just need to figure out the way to summon it or elicit it.
  139. 13:08And that lesson actually takes us to the third technique, which I want to highlight to show how sophisticated your techniques can get if you're just using so-called prompting alone,
  140. 13:18but using careful calibration and thinking.
  141. 13:21So, in this one, this team did something very clever.
  142. 13:24They set up a system prompt that was demographics.
  143. 13:27They showed a product concept.
  144. 13:29And then they asked how likely would you be to purchase this product?
  145. 13:33And they gave it the same scale from one to five, five being most likely, one being the least likely to purchase, like you'd expect, kind of your basic naive prompting pattern.
  146. 13:42And then they said, "Well, you know, hearkening back to that paper, although I don't know if they were inspired by it, they said, 'Well, large language models aren't used to doing surface,
  147. 13:51but they are more used to expressing themselves in text.'
  148. 13:54So, they said as instead of giving us a one to five rating, give us a set of text.
  149. 13:59So, the example here is, 'I'm somewhat interested.
  150. 14:01If it works well and isn't too expensive, I might give it a try.'
  151. 14:05And then to map that text to the one through five willingness to pay, they had humans write out corresponding text for what they would expect.
  152. 14:14So, if it's a one, "Hell no, I'll never buy that."
  153. 14:17Five, "Absolutely, I'll buy 20."
  154. 14:19Right?
  155. 14:20They had them write out examples of each one of the different options, and then they measured the semantic similarity between the text that came out of the model and those human examples.
  156. 14:30And that gave them a vector over which they can basically measure a probability distribution of where this text that came out of the model lands.
  157. 14:38So, what I like about this is it's actually a distribution.
  158. 14:40Kind of feels like, you know, human.
  159. 14:42Some days I might say four, some might Some days I might say five in this graph, but rarely would I say one, two, or three in this example.
  160. 14:48And what they were able to show is that they were not able to only reconstruct accurate values for willingness to pay.
  161. 14:55They were able to capture the distribution.
  162. 14:57Because one of the important failure modes we haven't talked about is that LLMs, even when they get the persona averages right, they very often lose the details.
  163. 15:06The variations get muddled together in the middle.
  164. 15:09This chart at the bottom, basically that horizontal axis is a measure of the entire shape similarity.
  165. 15:16And one means perfectly identical, and zero means not.
  166. 15:19And what you can see is the naive way, in the purple or I guess pink uh doesn't do as well as the yellow which is up near the top of the range.
  167. 15:28So that means it really did a good job not only understanding what the ultimate choice was but how well that choice varied.
  168. 15:35Okay.
  169. 15:36Let's talk about how to measure alignment from a synthetic persona.
  170. 15:41One of the things that our traditional market research clients are sometimes surprised by and disappointed is that you cannot use statistical synthetic personas to boost statistical significance.
  171. 15:53You can take an underrepresented population and get more values out of it but you can't say it's statistically significant.
  172. 15:59And to understand this it helps to go back to that weather analogy.
  173. 16:02If I want to know how much it rains today in San Francisco and I used to live here so I know it rains a lot, I'd stick a weather gauge.
  174. 16:09If I want to know with more certainty, I'd stick a thousand weather gauges and those would increase the accuracy of my estimate.
  175. 16:16But if I want to know if it's going to rain tomorrow, if I take a forecast and I rerun it a thousand times without changing the input, that doesn't change my certainty of that forecast.
  176. 16:26It improves my estimate of what the model is telling me but it doesn't make the forecast itself more accurate.
  177. 16:32And that's what happens when you basically are rerunning a synthetic persona with no changes to input.
  178. 16:36So the lesson is more synthetic samples aren't actually going to improve your statistical significance for the most part.
  179. 16:43So what you need to do is you need to do what you do with weather forecast.
  180. 16:46You'd basically check against what actually happened or in our case what humans actually said.
  181. 16:52And that's where we're going to basically be measuring distributions of data.
  182. 16:55Unlike classic e-vals where there's clearly a right and wrong and you can score how many were right and how many wrong, now we need to measure the data as a comparison of distributions.
  183. 17:04And there are many ways for distributions to get wrong.
  184. 17:07They could be completely wildly off.
  185. 17:08They can as we mentioned get the average right but the shape of the distribution wrong.
  186. 17:12And so you're going to need multiple metrics to capture how well your model is reflecting different personas.
  187. 17:19Um I recommend using a correlation type metric along with one of these shape type metrics which capture what the underlying shape of the distribution is.
  188. 17:28The other thing you need to do is estimate the fundamental noise in your ground truth data.
  189. 17:33That experiment I talked about in the beginning where they got 83% accuracy, the key smart thing they did is they took those humans and they brought them back 2 weeks later
  190. 17:43and they redid the battery of surveys and personality tests and they found that the humans on average were only 80% consistent to themselves.
  191. 17:51So that sets a noise floor as how accurate our models could ever get because the humans themselves are fundamentally noisy.
  192. 17:58And so the 83% is actually normalized against that.
  193. 18:03If you can do this and bring your humans back, that's great.
  194. 18:06Very often you can't.
  195. 18:08So the way you can kind of artificially do this is take your ground truth human data, break it into two chunks, and then pretend one is synthetic and one is human,
  196. 18:16and then measure the correlation and repeat that hundreds and thousands of times and average it, and that'll set kind of a noise floor that your ground truth data where half of it's synthetic, half of it real, could be the level of accuracy you could hope to get.
  197. 18:29So hopefully by now you have an appreciation for why I think weather forecasts are the best lens to understand synthetic personas.
  198. 18:38They are not people, they are forecasts, and we should treat them accordingly.
  199. 18:41Both systems are bounded, both systems will be improving over time, and they're most trustworthy when they're validated against reality.
  200. 18:51Um Now synthetic personas are very often cast in the market against human research.
  201. 18:59And I think that's unfortunate because they're actually complementary to each other.
  202. 19:02Let me give you two reasons why.
  203. 19:03One is that we're entering an era where humans are no longer the sole economic actor.
  204. 19:10Every action your human customer is taking in terms of awareness, consideration, or a purchase decision to buy is being increasingly mediated by AI agents.
  205. 19:20So, a human-only study is actually not the gold truth.
  206. 19:24What we really need to understand is what does the human plus agent ecosystem look like?
  207. 19:31And then finally, the alternative to a synthetic persona is not human research.
  208. 19:36In most cases, it's no research or it's somebody's opinion.
  209. 19:39What really happens is you've done a survey of humans and you get a question and if it's in the survey, you can just answer it.
  210. 19:45That's very simple to do.
  211. 19:46But what typically happens is it's 2 months later and you're like, we need to answer this question which we didn't ask.
  212. 19:52Well, then somebody needs to be like, "Uh I think it would be this by extrapolation."
  213. 19:57Uh expert plus a synthetic persona is going to give you a better result to that.
  214. 20:01So, what we like to tell customers is synthetic extends your human data to more phases of your development process.
  215. 20:08It can go more places your existing research can't.
  216. 20:11One of the most exciting directions is to actually run simulations.
  217. 20:15We didn't get time for this, but it's called generative agent-based modeling where we can take each of these personas and simulate with the dynamics and how they'll interface interface and interact with each other.
  218. 20:25And ultimately, what this will let you do is turn your human data into a living queryable asset.
  219. 20:33If you're interested in doing that with your data, feel free to reach out to us.
  220. 20:36We help market research and insights teams generate and use synthetic personas in AI.
  221. 20:42You can find us on the web at insights sciences.ai and my contact information is on the slide.
  222. 20:48I hope you have a good conference.
  223. 20:49Thank you.
  224. 20:51[applause]
  225. 21:06[music]