← Latest papers
💬 NLP

CURP: Codebook-based Continuous User Representation for Personalized Generation with LLMs

The paper proposes CURP, a novel framework that utilizes a bidirectional user encoder and a discrete prototype codebook to achieve efficient, scalable, and interpretable personalized generation with Large Language Models using only a small number of trainable parameters.

Original authors: Liang Wang, Xinyi Mou, Xiaoyou Liu, Xuanjing Huang, Zhongyu Wei

Published 2026-02-03
📖 4 min read☕ Coffee break read

Original authors: Liang Wang, Xinyi Mou, Xiaoyou Liu, Xuanjing Huang, Zhongyu Wei

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to teach a very smart, but very generic, robot how to talk like a specific person. You want the robot to sound like you—your jokes, your opinions, your style—without having to rebuild the robot's entire brain every time you talk to it.

This paper introduces a new method called CURP to solve this problem. Here is how it works, explained through simple analogies:

The Problem: Two Bad Options

Currently, there are two main ways to make a robot sound like a specific person, and both have big flaws:

  1. The "Read the Diary" Method (Prompting): You give the robot a huge stack of the person's old texts, tweets, and emails every time you ask a question.
    • The Flaw: It's like trying to find a needle in a haystack. The robot gets confused by all the extra noise, and it's slow and expensive to read that much text every single time.
  2. The "Clone the Brain" Method (Training): You take a separate copy of the robot's brain and retrain it specifically for that one person.
    • The Flaw: This is incredibly expensive. If you have a million users, you need a million different robot brains. It's like hiring a new chef for every single customer in a restaurant.

The Solution: The "Lego Personality Kit" (CURP)

The authors propose a middle ground called CURP. Instead of reading the whole diary or cloning the brain, they use a Codebook.

Think of the Codebook as a giant box of Lego bricks, where each brick represents a specific personality trait or behavior pattern (e.g., "Loves Sports," "Is Very Polite," "Uses Slang," "Is a Teenager").

Here is how the system works in three steps:

1. The Decoder (The Translator)

First, the system looks at a user's history (their past tweets or chats). Instead of keeping the raw text, it uses a special translator to figure out which "Lego bricks" best describe that person.

  • Example: It might decide this user is made of: #Teenager + #Funny + #LovesBurgers.
  • It doesn't store the text; it just stores the codes for these bricks.

2. The Codebook (The Shared Library)

All users share the same box of Lego bricks. This is the "Codebook."

  • Because everyone uses the same set of bricks, the system can learn what "Funny" or "Polite" looks like by looking at everyone's data at once. This makes it very efficient.
  • The system learns to mix and match these bricks to create a unique "personality profile" for each user.

3. The Generator (The Artist)

When the robot needs to answer a question, it doesn't read the user's diary. Instead, it looks at the user's specific mix of Lego bricks (e.g., "Oh, this user is #Teenager + #Funny") and uses that to guide its answer.

  • It's like an artist who knows exactly which colors to mix to paint a specific portrait, without needing to see the original photo again.

Why is this a big deal?

  • It's Tiny and Fast: The system only needs to remember about 20 million "adjustable knobs" (parameters) to handle all users. That is tiny compared to the size of the main robot brain. It's like having a small remote control that can change the personality of a massive TV.
  • It's Private: Because the system only sends the "Lego codes" (like #Teenager) instead of the actual text messages, it's much harder for hackers to steal private information. It's like sending a shopping list of ingredients rather than the actual food.
  • It's Flexible: You can swap out the robot's brain (the "Decoder") for a different one, and the Lego kit still works. The personality codes are universal.

The Results

The researchers tested this on four different tasks: answering questions, writing news headlines, rewriting tweets, and writing product reviews.

  • The Outcome: CURP beat almost all other methods. It was more accurate than the "Read the Diary" method and just as good as the "Clone the Brain" method, but it was much cheaper and faster to run.
  • The "Aha!" Moment: They found that even if they gave the robot fewer past messages to look at, CURP still worked well. This means it really understands the essence of the person, not just the specific words they used.

In Summary

CURP is like giving a robot a universal personality kit. Instead of memorizing every word a person has ever said, the robot learns to recognize the person's "vibe" using a set of pre-defined, shared building blocks. This makes personalization fast, cheap, and private, without sacrificing quality.

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 →