

ユーザーモデリングのためのアクティブ・インファレンス
Data Skeptic
要約
Data Skeptic のHCI特集で、LMUミュンヘンのMarkus Klar氏が、マウスのポイント&クリック操作をアクティブ・インファレンス(能動的推論)でモデル化した研究を語る。自由エネルギーの最小化により、知覚遅延やノイズの下で人間らしい「素早い移動→修正」の動きが再現される。目標は超人的な性能ではなく人間らしさの再現で、シミュレートしたユーザーでUI設計の評価を代替する未来像も示された。
この回のポイント
- ●Klar氏は、人間とコンピュータの相互作用の計算モデルを研究しており、制御理論、強化学習、そして近年はアクティブ・インファレンスを用いていると述べている。
- ●アクティブ・インファレンスは「驚き」を最小化して行動を選ぶ枠組みで、計算できない驚きの上界である変分自由エネルギーを最小化して信念を更新し、期待自由エネルギーで行動計画を選ぶ。
- ●期待自由エネルギーは、望む観測を得る実利的価値と、不確実性を減らす認識的価値(情報獲得)の二つから成り、探索と活用のトレードオフに相当する。
- ●1次元のポイント課題では、約100ミリ秒の知覚遅延とノイズを入れるだけで、高速に目標へ向かい、減速して位置を確かめ、サブムーブメントで修正してクリックするという人間的な挙動が現れた。
- ●強化学習のエージェントは訓練しすぎて超人的になりがちだが、アクティブ・インファレンスでは各時刻の不確実性を観察でき、どこでユーザーが混乱するかの推定に役立つと説明している。
- ●課題として計算効率の悪さがあり、今後は階層型モデルが有望だという見方を示した。
章立て
in silico とゲスト紹介
医薬品の例を引きつつ、ユーザー挙動のシミュレーションというテーマを導入する。ゲストのMarkus Klar氏と研究の経歴が紹介される。
インタラクションの計算モデルと3Dポインティング
2Dと3Dのモデルの違い、MuJoCoによる上肢の生体力学シミュレーション、レーザーポインタやバブルカーソルなどの手法を議論する。
シミュレーションによる設計支援の展望
報酬関数による意図の与え方と、高次認知モデルの限界を説明する。UIパラメータをシミュレートユーザーが最適化する構想も語られる。
アクティブ・インファレンスの仕組み
驚きの最小化、変分自由エネルギー、期待自由エネルギー、実利的価値と認識的価値をコーヒーマシンの例で解説する。
1次元ポインティング課題の結果
知覚遅延とノイズを持つエージェントが、高速移動と修正のフェーズを経てクリックする様子を説明する。
人間らしさと逐次計画
目標は超人的性能ではなく人間の再現であること、プランニングホライズンとロールアウトによる行動選択を述べる。
新規性・限界・今後
連続空間のアクティブ・インファレンスの新しさ、計算効率の課題、階層型モデルへの展望を語る。
AI Twinプロジェクト
個人の経験を蓄える欧州のAI Twinプロジェクトと、プライバシーなどの課題が紹介される。
解説記事
今回の Data Skeptic は HCI(ヒューマン・コンピュータ・インタラクション)特集の一回で、LMUミュンヘンのポスドク研究者 Markus Klar 氏が、論文「An Active Inference Model of Mouse Point-and-Click Behavior」をもとに、人間の操作をシミュレートするモデルについて語った。
「in silico」でユーザーを試す
番組は、実際の人間ではなくシミュレーション上で重要な検証を行う「in silico」の考え方から始まる。医薬品では治験の代替はまだ難しいが、ソフトウェアを公開する前にユーザーの反応を試す機械があれば便利だろう、と司会は述べている。
Klar 氏は数学出身で、マウスのポインティングの単純な数理モデルから出発し、生体力学モデルによる空中での操作へと研究を広げてきた。従来の多くのモデルが移動時間や性能指標といった集計的な量を扱うのに対し、同氏は「どのように動きを実行するか」に注目していると説明する。
生体力学モデルと設計支援の構想
3Dの場面では、物理シミュレータ MuJoCo 上の上腕・肩の詳細なモデルを使う。指先にマーカーをつけた想定のものや、VRコントローラを持ち質量が加わるものもある。シミュレートしたユーザーなら関節角度、速度、筋活動といった情報が追加の処理なしで得られる点も利点として挙げられた。
Klar 氏が描く将来像は、デザイナーがボタンを押すだけで、シミュレートユーザーが多数の設定を並行して試し、数時間後に推奨設定を返すというものだ。その推奨を実際のユーザーで確かめる流れになる。ただし現状では、実用に足るモデルは多くないとも率直に認めている。人間の運動制御や神経科学、義肢などの医療応用と問題意識を共有しており、生体力学・認知・知覚を統合した汎用の人間モデルが近いうちに作れるかもしれないという見方も示した。
アクティブ・インファレンスとは何か
アクティブ・インファレンスは、生物が「驚き」を最小化するように行動するという考え方に基づく枠組みである。驚きそのものは、あらゆる観測の確率が必要で計算できない。そこでその上界である自由エネルギーを最小化する。
手続きは二段階だ。まず観測を得て信念を更新する推論の部分では、変分自由エネルギーを最小化する。観測をよく説明しつつ、信念を変えすぎない(複雑さを抑える)という二つの要請のバランスをとる。次に行動の部分では、世界モデルで行動計画の結果を予測し、期待自由エネルギーで評価する。
期待自由エネルギーは二つの価値から成る。一つは望む観測を得る実利的価値で、コーヒーマシンにカップを置いてボタンを押す例が使われた。もう一つは不確実性を減らす認識的価値で、マシンが変な音を出したとき水タンクを確認する行為がその例である。両者は探索と活用のトレードオフに近い関係にあるという。
1次元ポインティングの実験
論文のタスクは、直線上でカーソルに力を加えて左右に動かし、現れた目標の内側でクリックするというごく単純なものだ。エージェントはカーソルと目標の位置への信念を持ち、約100ミリ秒の知覚遅延とノイズのもとで、内部モデルによって現在位置を予測する。目標内でのクリックを好み、外すと鳴る音を嫌うという選好が設定されている。
結果として、エージェントは目標が現れるまで中央で待ち、素早く移動する。その結果カーソル位置の不確実性が増すと、減速して位置を確かめ、小さな補正動作を重ねてからクリックした。これは人間のポインティングで知られる、探索と修正の二相に対応する挙動で、少ない仮定から人間らしい振る舞いが出た点を Klar 氏は面白いと述べている。
超人的でなく「人間らしい」ことが目的
強化学習で作ったエージェントは、特定のタスクで訓練を重ねるため、人間より速く正確になりがちだったという。Klar 氏の狙いは最適な軌道との比較ではなく、人間の動きと不確実性の源を理解することにある。アクティブ・インファレンスなら各時刻の不確実性を追えるので、複雑なVR課題に拡張すれば、インターフェースのどこでユーザーが混乱するかを推定できるかもしれないと語る。
行動選択は、10ステップ程度の計画ホライズンでロールアウトを行い、期待自由エネルギーが最小の計画の最初の行動を実行する、という逐次的な方式だ。遠い未来ほど予測の不確実性が大きくなるため、後の行動が自然に割り引かれる点も説明された。
課題と今後、AI Twin
同氏は、離散モデルが中心だった分野で、連続の状態・行動空間を扱った点がこの研究の特徴だと説明する。一方、現状の手法は計算効率が悪い。今後は、筋制御を担う低レベルのエージェントと、目的地を決める高レベルのエージェントを組み合わせる階層型モデルが有望で、賭けるならそちらだと述べた。
最後に、同氏が参加する欧州プロジェクト AI Twin が紹介された。個人の経験や判断を蓄積する自分の「分身」のAIを作り、意思決定の助言や記憶の補助、人間関係の支援などに使う構想で、プライバシーが大きな課題になるとしている。
まとめ
この回は、ユーザー調査をシミュレーションで補う構想を、アクティブ・インファレンスという具体的な手法で語った。注目点は、最適性ではなく人間らしさを目標にし、モデル内部の不確実性をUIの問題発見に使おうとする発想である。実用化はまだ先だが、UI設計やVRインタラクションの評価に携わる日本のエンジニアや研究者にとって、シミュレートユーザーによる設計評価の方向性を知る手がかりになる。
文字起こし(英語・自動生成)
Welcome to another installment of Data Skeptic Human-Computer Interaction. Now there's a term you should know if you don't know it already. It's called in silico. Or I guess translated, does that mean in silicon? The idea is can you do something, some critical operation in a simulation rather than doing it on actual people? I first encountered this idea in medicine where, yeah, in a perfect world, we could test all the medications and pharmaceuticals in a computer and then just instantly know, hey, they're good or they're not good for a human, rather than running an actual clinical trial. Unfortunately, that's still a little bit sci-fi, at least as it stands in 2026. But what's not sci-fi, as we'll get into today, is the idea that we could test typical user response behavior in similar patterns. If there was a machine I could use to test software before I release it to see how my users would respond,
I would use that machine quite a bit. Our guest today is Marcus Klar, postdoctoral researcher in the Media Informatics Group at LMU Munich. We're going to eventually zoom in on this technique of active inference and how that became a good solution for their work, all the while discussing the paper, An Active Inference Model of Mouse Point-and-Click Behavior. So let's get into that discussion right now. I am Markus Klaar, and I'm currently a postdoctoral researcher at LMU Munich, and I'm part of the media informatics group there. And in my academic career, I have been focusing on building computational models of humans during the interaction with computers, using control theoretic methods as well as reinforcement learning, and most recently, active instruments. Currently, I'm part of the European Project AI Twin, where we aim to build better personal AI models that can assist you in your everyday life.
What got you aimed in this academic direction? So, I have a mathematical background in my bachelor's and master's. I studied math, and then there was an opportunity to switch over to computer science to do my PhD, and the professor there was focusing on computational models of interaction. So he was specifically looking for math students or math majors to get into his group. And well, then we started building very simple mathematical models of pointing with a mouse and then continued on with biomechanical models of mid-air interaction. And I think that's basically where we found out that there's a lot to do there. And I continued on with that work in my first postdoc in Glasgow, where we then looked at active inference as a novel framework of describing human behavior in general and tried to apply that to a continuous control task like pointing with mouse.
So we're obviously going to spend a lot of time talking about pointing today, I'm sure. Yeah. But to speak a little bit broadly to begin with, when you consider computational models of interaction, what is the scope? What else might be in it besides pointing? I think classic. there's a lot of behavioral models that you could look at. Most of the classic models of interaction, they look at more like the overall quantitative data, something like movement time or maybe performance indices. And we've always been focused more on the actual performing of the interaction itself. So not just questioning when or what, but also questioning how we actually perform these movements to interact with a device. Well, I've been looking a lot at classic pointing motions, but you could go further with novel visual reality, augmented reality setups,
where you have like full body motion detection and stuff like that, and include this into these types of models as well. So would you say you're mostly focused in 2D pointing or 3D pointing? Well, for me, as a mathematician, it's probably not that big of a difference, just as a dimension. But of course, if you look at the models that we use, they are very different. So the 2D models are very, very simple models, and we can use them to understand how a method works better than starting with a complex 3D model. And well, If you want to use biomechanical models, then of course we have to go 3D in some way. Whether or not this 3D models, then again, using a 2D device or like a 2D cursor is another question. But for the method itself, I think I'm starting with 2D usually, but like to go to 3D as soon as possible. So in the biomechanical setting, am I correct in thinking it's really like finger pointing
or do you envision me having like a wand and I'm pointing in that way? As ever you like. So basically what we've been using is a biomechanical simulation that runs in a physics simulation. It's called Mujoko. And the model itself is a state-of-the-art model of the upper arm and shoulder specifically because that is one of the most complex parts of these pointing movements. And most of our models, they were just like finger pointing, basically modeling a motion capturing system. So you have like a marker on your fingertip. But we also had some models more recently that held a VR controller in their hand. So then you have the added mass of that controller that changes the physics of the environment for that agent. But yeah, you can think about basically giving that model anything into their hands. When I step up to an interface device such as the keyboard in front of me,
The alphabet I know is right in it, and it's implicit what to do with it. I don't know that there's universally accepted rules for pointing. I guess pointing implies like a vector shooting out of my finger or whatever, but gestures are things people kind of invent in a language. Or do you find that there is something kind of emergent and natural in the way people point? Well, I think probably both. So we have like the classic natural pointing, which is really pointing at something with your fingertip, which you also do, or with your hand, maybe, which you also do in the wild, in real life, when you just point to different things to let other people know what you mean and what you're talking about or where to go. And I think most of these movements were adopted by, well, VR designers to also get these kind of pointing motions into a computer system where you, instead of like using a mouse or a device, you would just point at the, for example, menu element that you want to select.
The classic way to do that is having like a kind of laser pointer. But there's also adoptions like that, like very classic one is the bubble cursor where you don't have to point exactly at the target, but you have like kind of bubble around the end of that laser pointer and it selects a button that is close to that bubble. But there's been like plenty of other ways to build these cursors. So what we've been looking at is especially some different pointing options. So you have like a 3D cursor that you move around with your arm. So it just follows the movement of your arm. And then you can add like translations to that cursor. You can make it faster, slower. So these more experimental and for us easy to tune so that we can actually look at different parameters for these interaction techniques and see how the different parameters change how our model behaves or points in a way. So for your work, do you need to bring people into a laboratory and wire them up and collect data?
Or can some of this be done in silico? That's what we've done a lot with the 3D pointing and mid-air pointings because we really wanted to capture the motions of these users. So they have a special suit and it's a bit like in movies when they do like motion capturing. It's basically the same technique. And then you put all of that through a pipeline to get joint movements, joint angles, joint velocities. It's something that you really want to look at in the end. And that is also part of the motivation to build these models is that hopefully you don't need to do that with a lot of humans anymore in your lab because you can use the simulated users to replace some of these studies. And with the simulated user, on these biomechanical models, you get all these informations for free out of the system. So you don't have to run an initial pipeline, but you can look directly at things like joint angles, velocities, or muscle activations inside of that biomechanical model. Now with the simpler mouse pointing stuff, we can also do like online studies.
We will just look at the way that people control their curses, which of course is a lot easier to perform. So that biomechanical model, feel free to disagree with me if you don't like the characterization, but it sounds like it's low level, like you're modeling the muscles and angles and things like that. So you probably have a great grasp on the skeleton and its degrees of freedom and whatnot, but that's low level and that it doesn't encompass like intention of a user. How do you figure that into your research questions? I think we started with that because, well, I think human cognition is way harder to grasp than the low biomechanics There a lot of very good understanding of how muscles work of how the body moves when it gets the right signals And that why in the beginning we focused a lot on these low-level questions. But combined with that is also always the intent in a way that talking about reinforcement learning, because that's the main method that we use for these
biomechanical models, you have to define a reward function that tells the agent, which is controlling the biomechanical model, basically which actions are good actions and with actions that could be like choosing muscle activations. And by defining this reward function, you kind of give the agent an intent. Let's say it gets a positive reward when the cursor is closer to the target and it gets maybe a negative reward when it uses a lot of muscle activations to do so, because that is something that humans usually want to reduce in their movements. But something that we've not looked at a lot is basically the high level intent or cognition of humans. The closest that we've got there, I think, or I got there in my line of research, is with the latest active inference paper, where we can also at least model some parts of the thought process in a way that we can look at the uncertainty of a user in a certain situation.
It's basically how certain they, for example, where exactly the cursor is. And depending on that, different actions might be preferable. But yeah, not that kind of high level cognitive task where, well, for example, asking, okay, which menu option do I want to select or something like that? So So this is not something that I've shocked at. Well, in terms of the research questions you can ask, could you talk a little bit about where you see them going or maybe how they'll influence interfaces in the future? I think at least my goal was always to enable this second loop iteration around designing an interface. So let's say you have an idea for a new VR interface and it has like a bunch of parameters that you can set, like the ones that I mentioned before, like the translation vector for your cursor or something like that. Then you want to test that new interface and you want to figure out what are the best settings for my interface.
Maybe even specify parameters for a certain user or a certain user group. And then the common way to do that is you run a pilot study, maybe with yourself, define a bunch of settings, and then you run a user study and then ask the users, well, how did that feel like? Was it better than like option A or option B? And my vision is that we can basically skip running these user studies and ask our simulated users to do this study for us, which also allows us to run a lot of different settings in parallel because at least in the future, these simulations will be very quick. They are already getting very fast. And then the designer who designed that interface basically only has to click a button, basically optimize my interface now, and then it will get a result maybe like a few hours later. And the designer can then use basically the recommendation of the simulated user and try that with real users to see if it actually produces good results.
So a wise person once said, all models are wrong, but some are useful. With that in mind, how do you feel about the current state of your modeling approach? Yeah, I think that is definitely true. I would even say that most of them are not useful. Well, we need to go through this phase of having not so useful models, or at least in practical sense, not useful. For us, they are already useful because we understand, or we're starting to understand better how these type of interactions work, how humans interact with a computer or this kind of complex system. and I think we're getting there. There's always like this last step of really making it work in a practical sense so that a designer actually gets that button. But there's a lot of movement in that area right now because somehow the field of HCI was as much focused on these computational models before
and now that they kind of come up, we meet with a lot of different other research areas like human motor control and neuroscience. And they all face similar problems in the end. So there's also a lot of the biomechanical stuff, of course, also driven by medical applications like prothesis and stuff like that. So there's a whole group of other researchers that have been doing a lot of work in that area. And we might come up with a universal model of a human that combines biomechanics with cognitive models and something like perceptual models that we can use for a lot of different application areas. And I think we are not there yet, but there's been a lot of progress in the last couple of years. And I feel like we might be able to kind of build this general model soon. When it comes to the mouse, I feel like I have pretty high precision with it. I guess like the X to close an ad keeps getting smaller and smaller.
Sometimes I have to really work it in there to click that. But in general, I feel the X and Y point that gets read by the machine is the one I intended. Whereas finger pointing feels like it'd be a lot noisier to me. Can you share some observations of the data? That's actually a good question. Maybe because you're not used to pointing precisely with your finger, I guess. Well, this is just an assumption. I can't pull out data that confirms that. Well, it's true. I'm not a big VR user for sure. At least not yet, maybe. Yeah. But even if you were, you probably would have more experience with the mouse, especially in pointing at like small crosses to close an ad. We don't do that in real life. Usually if we point to something, we point roughly in the direction. So I think there's the underlying question of training, which is something that is also, I think, a big question in building computational models of humans. We also have to include the learning process because not every user will be equally good at using a mouse or using VR, like mid-air pointing technique.
But while we use the technique more often, we get used to it, and then we're probably going to improve in our interaction as well. Well, we've touched on the active inference component of this, maybe at the high level. I'm hoping we could zoom in there. Could you share some details with the listener maybe about the methodology itself? What kind of mathematics are involved? Active inference is a quite novel framework to explaining, well, the behavior of living beings quite generally. And it's based on the idea that you choose actions to minimize your surprise about the world. every time you're surprised that means that something happened that you couldn't predict correctly and if you could predict everything correctly then you wouldn't be afraid of dangers to your life in general or you could always find food or something like that so and the idea of minimizing surprise is a very general one the problem of surprise is that you you can't compute
it and like mathematically because it includes stuff like the probability of all possible observations that you could ever make, which is something that we usually don't have at hand. So in active inference, we use an upper bound to surprise that is called the free energy. That comes from the thermodynamic notion of free energy. But basically, if we manage to minimize free energy, we are then also minimizing our surprise. In active inference, it has basically two parts. We have the inference bit, so we make an observation and we update our current belief about how the world is. That bit is, I was thinking about one of the first minis that you did in the podcast actually back in 2014. It's about Bayesian updating and that's actually what we do. We can't do it directly with like Bayes' rule since we can't calculate or we don't have the probability of all possible observations. like I said before. But we do something similar that is minimizing the variational free energy.
And variational free energy is basically a combination of how well does our belief, the updated belief, describe the observations that we make. So that is the thing that we want to optimize. But then we also don't want to change our beliefs too much. So the complexity needs to stay low as well. These are like two opposing values that we try to minimize. We can do that like mathematically in a multi-set process and then we get our so-called posterior belief, which is saying I observe something and then I use this observation to update my belief about the world. And then the second bit is the active part where we try to find actions that, as I said, minimize our surprise. And, well, in the active inference community, the classic way to do that is calculate something called expected free energy. So you use your model of the world to predict the outcome of a given plan of actions.
And you value that by two things. One is the easier thing is the pragmatic value. This is basically you value making observations that you want to make My classic example that I had that I actually experienced last week in our common room is I want to have a coffee So I want to observe that there coffee in my cup And one action that I know produces that is like putting the cup under the coffee machine and pressing the right button. Because I have a model of the world that tells me that if I do that, then I will see that there's coffee in my cup. So this is an action that has high pragmatic value. Now, if we would only do that, it's a bit like the exploration exploitation trade-off that you probably have heard of. So that is the exploitation part of that if you want to compare it to classic AI tools or methods. And the other bit in extra influence is the information gain or information seeking part or epistemic value, meaning that you also want to perform actions that help you learn
about the world, help you reduce your uncertainty about the state of the world. So the example goes further. So actually, this is what really happened. So a colleague of mine pressed the button and then instead of coffee in his cup, he got like a weird spurting sound and vapor. And that was something that surprised them. So we again have the notion of surprise since they didn't know what that means in the first place. For me, it was clear that means probably there's no water in the water tank because I have already experienced that and updated my belief about my world model to include this outcome. So the information-seeking bit of that would be to look at the water tank and basically confirm that there is indeed no water in it. So there's these two parts of action or of the expected free energy that are also often opposing each other because, well, usually if you explore, then you usually can't do the thing that gives you a high pragmatic value.
so in extra inference we minimize this expected free energy and then we end up with like a plan that we can then pursue that is optimal in that sense and well I think we probably need to come closer to the actual example in the paper to then talk about how that relates to the HCI problem of pointing well let's go there can you share the example a very simple example there is you have a 1D pointing task so as simple as it gets it's not even 2D it's only 1D so you are on a line and you can move the cursor left or right by applying force to the cursor and then there are targets that either appear on the right or on the left side and they can have different widths and well the task is to move from the center to the target and then click inside the target So it's a very, very simple task. And of course, that is just a way to understand how these type of motions could be modeled with active inference.
So we started with a very simple, simple version. And the active inference agent has a belief about the state of the world, which is the position of the cursor and the position of the target. and then it also has a model of the world meaning that as you and I learn how to move a mouse and as you said you are quite good in moving a mouse to an X and click on it the X-FIN Translation that we used also has a model about that system with some uncertainty involved but it can predict what would potentially happen if I apply a force in either direction Now, to make things a bit more realistic here, we also added a perceptual delay in that system. So apart from noise that you also have, so you can't exactly see the cursor, you also have like a 100 millisecond delay. So every time you move,
the thing that you observe is actually already old data. So you have to use your internal model to predict, and that's also what we are doing, humans to predict where the cursor will be at the current time that I am. So you have to work with this kind of old belief that you update with the old observations you make. And the agent then performs actions by minimizing the expected free energy. So the combination of the pragmatic value and the epistemic value. And the pragmatic value in this case is governed by the preference of the agent. That is to observe that you click inside the target. So that is like the main preference that the agent has. It has another preference that is to not miss the target. So think about it. There's maybe like some kind of sound, beeping sound when you miss the target in this task. And the agent can hear that and it doesn't like that sound.
And to make it a bit easier for the agent to get to the target, we also included a slight preference of being close to the target center, which is usually the classic thing that you use in reinforcement learning and so on. But we only included that to basically make the learning a bit quicker in that sense or to find plans that actually lead to the target a bit quicker. And what you can see then when you run that task with the agent, that also I should mention that it doesn't know where the target is first. So it has to observe the target once it appears and then updates its belief about where the target is based on that observation. So it starts off like humans waiting in the center until the target appears. And then it starts quickly moving toward the target. But through the quick movement and the perceptual delay that we have and the noise in the system, the uncertainty of the agent about the system dynamics, we get an increased uncertainty about the cursor position.
And it's the same thing that we have. So if you move your mouse cursor very fast, then you have that brief moment where you don't really know exactly where your cursor is right now. So what you do is you slow down when you think you're close to the target. to update your belief about the cursor position and to get certain again about where your cursor is before you then click on the target. So that is what we observed. It's this very simple active inference agent that it does exactly that. It's going fast at the target, which is usually called the search phase. And then you have this kind of correction phase and multiple sub-movements that lead you slowly to the actual target before the agent clicks. Yeah, and I think it was quite cool to see that based on these very few assumptions that active inference makes. Basically, this one formula of free energy, you minimize that combination with sexual delay, but that already leads to this very human-like behavior.
Is there any sort of optimal you can measure against? And like an agent that really has the world model locked in and like someone who practiced a video game really well, they can just move that 1D mouse and poop there. Yeah, is there a ceiling, I guess? And if so, how close do your agents get to it? Well, that's an interesting question because the ceiling that we aim for is actually the human. So because we don't want to build models that are superhuman, but we want to explain the human movement itself and the human behavior. Yeah, of course, we could easily use like an optimal control method with the same task and the same model, and it will probably perform a lot better or like click a lot faster and more precise. But that is not our intent with modeling it with ex-inference. Instead, we want to actually understand where the uncertainty in this movement comes from in a human user. So, for example, we had that problem a lot with the reinforcement models that we built, the reinforcement agent that we built.
They tend to perform superhuman because they train a lot on a very specific task. And we probably don't include all the factors of noise and delays that a real human has. So the agents tend to be a lot better than we want them to be. And the cool thing with active inference is that you can, other than classic reinforcement learning, you can look at the uncertainty of the agent at every time step. So through the whole task procedure, you can always see, okay, how uncertain is my agent right now about the cursor position, about the target position, or maybe about the noise levels itself. And if we manage to maybe go away from this very simple 1D model, but think about it, we apply that to a biomechanical model and in a very complex VR task, then we can see all these uncertainties live. We can then try to infer which parts of the interface maybe confuse users, what time in the interaction problem exists.
and I think that is what we are aiming for and not to compare our models to like a perfect interaction trajectory. Yeah, the more human-like it is, it sounds like the more useful it would be. Yeah, exactly. In your setting then, whether it's the 1D mouse or something more complex, there is a state. I mean, you can describe that state with certain variables and then your agent, maybe it's evolving on its own, but your agent can also take actions that are going to change the state. does that agent then need to do any sequential planning? Yes So that is exactly what happening in the calculation of the expected free energy So the most simple way to look at it the simplest way to look at it is you have a distribution of possible actions or an action preference that you could also set So basically, let's say the agent wants to expend as little energy as possible. So then the preference would be centered around zero action. but of course you still want to get to the target and click.
So there's some incentive still to choose actions that actually move you. And you sample from that distribution for every time step in your, usually we select a planning horizon, so let's say 10 time steps. And then you do rollouts, so that's a very classic thing that's also been used in reinforcement learning or the machine learning methods. So you use your internal model of the world to predict what is happening when I follow that plan. And a plan is a sequence of actions in that sense. And with that prediction, you can then calculate the free energy in every time step. And the sum of these will give you the expected free energy for that plan. Say, how good is it if I follow this plan of actions? and in the practical way of selecting a plan, you just choose one that has the lowest expected free energy and then you can perform like the first action of that sequence.
Then you go one step, you get a new observation from the system and you use that again to update your belief. So of course that is a simplification from the real world because the real world is continuous time. But I think that is something that at some point, say like every model is wrong, we need to make these kind of simplifications at some point. And if you choose the time step to be small enough, then you're at least quite close to a continuous time problem. So that is where we also use this kind of sequential planning and predictions. What is quite interesting, maybe I can mention that here, is that since the agent uses its internal model, or in XF instance it's usually called the generative, model and it is uncertain or it should be uncertain about how the world works, then every time you predict further into the future, the prediction will get automatically more uncertain. It's like you trying to predict what happens in the next five seconds versus predicting
what happens in the next hour. So there's a lot more things that can go off your predictions in an hour of time. and this automatically discounts actions that are performed later in your plan. And this is a very classic thing in control theory that you kind of discount things that happen later. You're interested to have basically a better state earlier in time automatically through that. Well, one of the novel aspects about your paper, at least to the best of my knowledge, there isn't a lot of active inference-based user modeling in HCI. This is somewhat of a new idea to the community. Why was now the right time? Had just no one been clever enough, or were we lacking the computer hardware? What makes it a good this moment for it to be becoming popular? So the XFINFERENCE community is focusing a lot on discrete models. So there's a lot of work on discrete decision models
where you have like a bunch of, let's say, 10 actions that you can use and you have maybe 20 states that you can be in. These numbers can be a lot higher, but just to get an idea. And what we've built is a continuous active inference agent. So it's working with a continuous position of a mouse cursor that can be something between zero and one, basically. and as well as a continuous action space. So you can put a force to your mouse that is somewhere between minus one and one. So there's like infinite amount of possible actions. And the reason for doing that now, I think, is that these continuous active influence models are starting to get more and more practical or actually being used. And on the same side, these computational models of interaction and the actual physical motion of interaction are becoming more and more relevant.
So I think combining them was just something that the team in Glasgow actually came up with is the next reasonable step. and trying to figure out how we can use sector-film strength models in HCI, well, explain maybe more things than we could do before with classic reinforcement learning or control theoretic models. So I understand you made one, I don't know if you'd call it a criticism, but one point about reinforcement learning will all kind of tend towards the superhuman approach if it's available to it, and that's not what you want in your use case. AIF models fit better. Do you have any thoughts about another methodology being even a next step after that? Or is it AIF all the way down? One thing that we also saw when we come to limitations of that approach, maybe, is that it's computationally very inefficient. It's the way that we are doing it right now. There are a lot of ideas to improve that with continuous active inference models.
What I think is going to happen in active inference as well as in classic reinforcement learning, we already seen that there are a bit more hierarchical models so that you don't have one big model that explains everything, but you have a hierarchy of a smaller model. For example, with muscle control, you can have a small agent that the goal of that agent is only to move part of the muscle group in a way that the arm moves to a certain location. And then you will have a higher level agent that actually has an idea of where the arm should go and then only tells the lower level agent move there basically and in a very like in a higher level sense. and that we use a hierarchy of different agents to be able to reproduce the low-level movements, but also reproduce the higher-level cognition part of human interaction or human movement in general.
And I think that's where active inference is going towards, but I've also seen it in classic reinforcement learning. there's a lot of hierarchical models already being played around. But if I would need to put money on one of those horses, it would be something like that. Well, I know it maybe doesn't directly relate to what we've been talking about today, but you'd mentioned at the beginning you're involved in this AI twin project. Could you share a few details for listeners? Yeah, sure. So it's a European project that has just started. And the idea is to kind of build a personalized AI model of your own experiences. So think about a little companion that you carry around with you the whole day. And that gathers information, a lot of data about your whole life and your actions and decisions that you can then query in different matters. For example, you can ask it for guidance if you want to make a decision.
And that guidance will be not just asking JetGPT for ideas, but it will be like a, that's why it's called twin, like a twin of yourself, like helping you in this decision. Of course, it can also be used as a classic memory device, but also in social context. it could help you like build social connections to people around you because it knows you and it knows what you would like to do or where you would like to meet something like that. And the project itself is basically looking into all the different challenges connected to that. One of the big things is going to be privacy, of course. So if you collect all that data, what are you doing with that? How do you make sure that it stays inside your personal model and how to ensure that the experiences that AI Twin remembers are also the experiences that you valued most in that moment of time, for example.
It's a very exciting project, and I'm looking forward to a lot of interesting collaborations. And, of course, trying to include my own work and background in user modeling in the project as well. So there's still a lot of different ideas to explore. Marcus, where can listeners follow you online? Yeah, so best on LinkedIn. So you can probably find me if you just look up my name and LMU Munich. I also have a webpage with the links to everything that hopefully will be linked in the description and I think that are the best places to look there's also my GitHub account linked if you want to play around with active inference agents or continuous inference agents that do pointing you can do that there as well very cool, I have links to all the above in the show notes for listeners to follow up and thank you so much for taking the time to come on and share your work thank you very much, Kyle, it was a pleasure Thank you.
番組の概要欄(原文)
Markus Klar joins us to explore how active inference can model human-computer interactions and how simulated users could shape the future of interface design.
出典・この記事について
- 番組
- Data Skeptic(Kyle Polich)
- 元の回
- Active Inference for User Modeling
- 配信日
- 要約作成日
- 公式サイト
- dataskeptic.com
この要約・解説記事は、元の音声を文字起こしした内容をもとに AI(Claude)が日本語で作成したものです。 固有名詞や数値に誤りを含む場合があるため、正確な内容は元の音声でご確認ください。制作方法について




