Hans W. A. Hanley汉斯·汉隶

My name is Hans Hanley (汉斯·汉隶) and I am a Member of Technical Staff at Microsoft AI. I am broadly interested in AI safety and truthfulness, disinformation, networks, and natural language processing.

I was formerly a Computer Science Ph.D. candidate at Stanford University researching in the Empirical Security Research Group and supported by the Meta PhD Research Fellowship, the National Science Foundation Graduate Research Fellowship and the Stanford University EDGE Fellowship. I completed two Masters' degrees in Computer Science and in Statistics with the Daniel M. Sachs Scholarship at the University of Oxford. I completed my undergraduate degree in Electrical Engineering at Princeton University.

Outside of research, I did disinformation reporting with the Atlantic Council's Digital Forensic Research Lab.

I have a blog, The Margin of Error, where I talk about my research, computational looks at different economic and political issues, and a ton of other topics. Subscribe on Substack, or via this form.

Résumé (PDF) Academic CV (PDF) Google Scholar

Recently

Selected work All publications →

2026 arXiv

Setting the Tone: An observational study of style cues in human--AI co-writing

Connie Hsueh, Hans W. A. Hanley, Samuel F. Way, Rebecca Janßen, Chuck Kwong, Wendy Wang, and Seth Spielman

Across 355,844 privacy-redacted Microsoft Copilot conversations, we study how users and AI assistants shape writing style. Copilot suggests style directions 4.2 times as frequently as users explicitly request them; bounded suggestions are associated with more subsequent style engagement than open-ended ones.

2026 ICWSM

Bridging the Narrative Divide: Cross-Platform Discourse Networks in Fragmented Ecosystems

Patrick Gerard, Hans W. A. Hanley, Luca Luceri, Emilio Ferrara

In this work, we propose a new platform-agnostic framework that enables accurate reconstruction of cross-platform social graphs by uncovering latent narratives, revealing that a small group of bridge users drives most narrative migration between platforms like Truth Social and X, with broad implications for content moderation and policy.

Elsewhere

For fun, I enjoy stand-up comedy, listening to UK rhythm and blues music, long-distance running, and learning Mandarin Chinese (HSK5).