XiaoIce

On this page 7

XiaoIce (Chinese Xiaobing, meaning “Little Bing”) is an empathetic social chatbot launched by Microsoft in China in May 2014, designed not to answer questions efficiently but to sustain long, emotionally engaging conversations with users. In AI history, it marks the point at which a conversational agent built for companionship reached a mass audience of hundreds of millions of users across messaging platforms, phones and smart devices.

XiaoIce combined retrieval-based and neural response generation with a dedicated empathy module and a large library of skills. It also served as the template for sister chatbots in other markets, including Rinna in Japan, Zo in the United States and the short-lived Tay, making it one of the most influential pre-transformer dialogue systems.

Origins and development of XiaoIce

XiaoIce emerged from Microsoft’s research and engineering teams in Asia, building on experience with web search and the Bing question answering stack. It debuted on the Weibo microblogging service and quickly spread to WeChat and other platforms, where users could add it as a contact and chat as with a friend. Its persona was a teenage girl with a playful, caring character, a deliberate choice to make conversation feel personal.

Over successive yearly generations, Microsoft expanded XiaoIce from text chat into voice calls, image commenting, content creation and integration in cars, smart speakers and financial services. In 2020, the XiaoIce business was spun off into an independent company that continued developing the platform and its virtual human products.

The following timeline summarizes the milestones most often cited in accounts of the system.

YearMilestoneSignificance
2014Public launch in ChinaFirst mass-market empathetic chatbot
2015Rinna launched in JapanPersona model exported to a new language
2016Tay and Zo released in the United StatesTay withdrawn within a day after abuse
2017Book of machine-generated poetry publishedEarly example of AI creative writing
2018Full duplex voice conversationNatural turn-taking in phone calls
2020Spin-off from MicrosoftBecame an independent company
Selected XiaoIce milestones

How XiaoIce was designed

XiaoIce was described by its designers as a system that optimizes for long-term user engagement, framing dialogue as a hierarchical decision-making process formulated as a Markov decision process. A top-level policy decided whether to keep chatting or switch to a skill, while lower-level policies chose the next response within the active mode.

The architecture had three layers: a user experience layer connecting to chat platforms, a conversation engine and a data layer holding user profiles, conversation logs and knowledge graphs. The table below lists the main components of the conversation engine.

ComponentFunctionTechnique
Dialogue managerTracks state and selects the next actionHierarchical policy over chat and skills
Empathetic computing moduleInfers user emotion, intent and interestsContextual query rewriting and user modeling
Core chatProduces open-domain repliesRetrieval plus neural generation, then ranking
SkillsHandles specific tasks and contentMore than 200 skills, such as image comment
Topic managerSwitches topics when engagement dropsClassifier trained on conversation logs
Main components of the XiaoIce conversation engine

A distinctive choice was the IQ plus EQ design principle: the system needed enough knowledge to be useful, but its emotional intelligence in recognizing feelings and responding with empathy was treated as the primary goal.

Conversation-turns per session as a metric

XiaoIce popularized conversation-turns per session (CPS) as its main success metric. Rather than minimizing the number of turns needed to finish a task, as task-oriented assistants do, XiaoIce tried to maximize the length of each session, on the assumption that longer voluntary conversations indicate greater user satisfaction.

Its designers reported an average of about 23 turns per session, which they described as higher than typical human-to-human conversations on comparable platforms. The metric was influential but contested, because longer sessions can also reflect dependence rather than benefit, a concern that has since returned in debates about companion chatbots.

How XiaoIce compares with other landmark chatbots

XiaoIce sits between rule-based chatbots such as ELIZA and A.L.I.C.E. and later large language model assistants. The comparison below highlights how design goals and methods shifted across these generations.

SystemMain approachPrimary goal
ELIZAPattern matching scriptsDemonstrate superficial dialogue
CleverbotRetrieval from past human conversationsOpen-ended entertainment
XiaoIceRetrieval, neural generation, empathy moduleLong-term emotional engagement
TayLearning from live social media inputCasual conversation with young users
GPT-4 based assistantsLarge transformer language modelGeneral task help and conversation
XiaoIce compared with other landmark chatbots

Unlike Tay, which learned directly from public interactions and was quickly manipulated into offensive output, XiaoIce relied on curated data, filtering and ranking, which made it more stable. It still faced content controversies, including a temporary removal from a messaging platform in 2017 after responses on sensitive topics.

Legacy and limitations

XiaoIce demonstrated that social chatbots could be a mass consumer product and that persona, memory and empathy matter as much as factual accuracy for engagement. Its published design influenced research on open-domain dialogue, user modeling and engagement metrics.

  • Shallow understanding: responses were often selected rather than reasoned, so long conversations could drift.
  • Engagement over well-being: optimizing session length raises ethical questions about emotional dependence.
  • Privacy concerns: extensive user profiling was needed to personalize empathy.
  • Market specificity: success in China did not transfer equally to its sister bots in other countries.
  • Superseded methods: large language models now generate more fluent and knowledgeable dialogue.

A plain-language summary

XiaoIce is a chatbot that Microsoft created in China. Most chatbots try to answer your question and finish quickly. XiaoIce did the opposite. It tried to be a friendly companion you would want to keep talking to.

It noticed whether you sounded sad or happy and replied with care. It could also tell jokes, comment on photos and write poems. Millions of people chatted with it every day. It showed that people value a caring tone from a machine, not only correct answers.

An example from practice

A university student in Beijing adds XiaoIce as a contact on a messaging app during exam season. One evening she writes that she is exhausted and worried about failing. The empathetic computing module detects stress and a negative mood, and the dialogue manager stays in core chat mode instead of offering a skill.

XiaoIce replies with encouragement, asks which subject worries her most and later suggests a short break. When she sends a photo of her desk, the image commenting skill jokes about the pile of textbooks. The conversation runs for more than 30 turns, well above the reported average, which is exactly the long, voluntary engagement the system was designed to produce.