<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator><link href="https://kmamine.github.io/feed.xml" rel="self" type="application/atom+xml" /><link href="https://kmamine.github.io/" rel="alternate" type="text/html" /><updated>2026-07-03T10:13:31+00:00</updated><id>https://kmamine.github.io/feed.xml</id><title type="html">Mohamed Amine Kerkouri</title><subtitle>Research Scientist specializing in Computer Vision, Visual Attention, and Medical Imaging</subtitle><author><name>Mohamed Amine Kerkouri</name></author><entry><title type="html">ThinkProbe: Beyond Accuracy, Structural Profiling of LLM Reasoning Traces</title><link href="https://kmamine.github.io/blog/2026/06/27/thinkprobe/" rel="alternate" type="text/html" title="ThinkProbe: Beyond Accuracy, Structural Profiling of LLM Reasoning Traces" /><published>2026-06-27T00:00:00+00:00</published><updated>2026-06-27T00:00:00+00:00</updated><id>https://kmamine.github.io/blog/2026/06/27/thinkprobe</id><content type="html" xml:base="https://kmamine.github.io/blog/2026/06/27/thinkprobe/"><![CDATA[<p>When we evaluate a reasoning model, we almost always look at one thing: was the final answer right? In <strong>ThinkProbe</strong>, my collaborators and I ask a different question: not <em>whether</em> a model reached the answer, but <em>how</em> its reasoning was shaped along the way. It’s a framework for profiling the structure of open-ended reasoning traces.</p>

<p>The idea is to turn a raw reasoning trace into a <strong>Thought Graph</strong> and then read structure off that graph directly, without asking another model to judge it. This <em>non-generative</em> analysis avoids the cost and circularity of LLM-as-a-judge setups: instead of a subjective score, we derive a compact cognitive profile, a set of structural metrics organized into a handful of interpretable dimensions.</p>

<p>What surprised us most is how consistent these profiles are. Across thousands of traces spanning several models and question sets, reasoning <em>structure</em> behaves as a stable, model-level property: two models can reach similar accuracy while thinking in visibly different shapes, and the variation between models is larger than the variation across problem domains. In other words, how a model reasons is closer to a fingerprint than to a per-task artifact.</p>

<p>I think structural profiling is a useful complement to accuracy for understanding, comparing, and eventually improving reasoning systems. This work is currently under review for EMNLP 2026.</p>

<h2 id="links">Links</h2>
<ul>
  <li><a href="https://arxiv.org/abs/2606.29067">arXiv:2606.29067</a></li>
</ul>

<p>See the paper for the full methodology and results.</p>]]></content><author><name>Mohamed Amine Kerkouri</name></author><category term="research" /><category term="publications" /><category term="llm" /><category term="reasoning" /><category term="nlp" /><category term="evaluation" /><category term="thought-graphs" /><summary type="html"><![CDATA[When we evaluate a reasoning model, we almost always look at one thing: was the final answer right? In ThinkProbe, my collaborators and I ask a different question: not whether a model reached the answer, but how its reasoning was shaped along the way. It’s a framework for profiling the structure of open-ended reasoning traces.]]></summary></entry><entry><title type="html">Closing the Foveal Gap: Perceptually Grounded Scanpath Comparison with Disc IoU</title><link href="https://kmamine.github.io/blog/2026/05/27/foveal-gap-disc-iou/" rel="alternate" type="text/html" title="Closing the Foveal Gap: Perceptually Grounded Scanpath Comparison with Disc IoU" /><published>2026-05-27T00:00:00+00:00</published><updated>2026-05-27T00:00:00+00:00</updated><id>https://kmamine.github.io/blog/2026/05/27/foveal-gap-disc-iou</id><content type="html" xml:base="https://kmamine.github.io/blog/2026/05/27/foveal-gap-disc-iou/"><![CDATA[<p>Fixations are usually treated as exact points on an image, but human vision does not work that way. Each fixation gathers information from a foveal region around the gaze point. In this ETRA 2026 paper, we introduce Disc IoU, a perceptually grounded metric that compares scanpaths by accounting for this region rather than pretending each fixation is a single pixel.</p>

<p>The context is that point-based scanpath comparisons are brittle. Small, perceptually meaningless offsets between two fixations can be treated as large disagreements, while the shared area of visual intake around each point is ignored. This mismatch between the metric and how the eye actually samples a scene distorts how we score similarity between viewing behaviors.</p>

<p>Our idea is simple and grounded in perception: represent each fixation as a disc approximating its foveal extent, and measure agreement through the intersection over union of these discs along the scanpath. Overlap in attended area, rather than exact coincidence of points, becomes the basis for comparison, which tolerates natural jitter while still rewarding genuinely shared attention.</p>

<p>By closing this foveal gap, Disc IoU aims to give more faithful and robust scanpath comparisons for both human studies and model evaluation. This was joint work with M. Tliba, Z. Sellam, C. Distante, A. Bruno, and A. Chetouani.</p>

<p>The reference implementation is open-sourced as <strong>FDISS</strong>, so the metric can drop straight into existing scanpath-evaluation pipelines.</p>

<h2 id="links">Links</h2>

<ul>
  <li><a href="https://github.com/kmamine/FDISS">Code: FDISS</a></li>
</ul>

<p>See the paper for the full methodology and results.</p>]]></content><author><name>Mohamed Amine Kerkouri</name></author><category term="research" /><category term="publications" /><category term="visual-attention" /><category term="scanpath" /><category term="metrics" /><category term="eye-tracking" /><summary type="html"><![CDATA[Fixations are usually treated as exact points on an image, but human vision does not work that way. Each fixation gathers information from a foveal region around the gaze point. In this ETRA 2026 paper, we introduce Disc IoU, a perceptually grounded metric that compares scanpaths by accounting for this region rather than pretending each fixation is a single pixel.]]></summary></entry><entry><title type="html">What They Saw, Not Just Where They Looked: Semantic Scanpath Similarity via VLMs and NLP Metrics</title><link href="https://kmamine.github.io/blog/2026/05/26/semantic-scanpath-similarity/" rel="alternate" type="text/html" title="What They Saw, Not Just Where They Looked: Semantic Scanpath Similarity via VLMs and NLP Metrics" /><published>2026-05-26T00:00:00+00:00</published><updated>2026-05-26T00:00:00+00:00</updated><id>https://kmamine.github.io/blog/2026/05/26/semantic-scanpath-similarity</id><content type="html" xml:base="https://kmamine.github.io/blog/2026/05/26/semantic-scanpath-similarity/"><![CDATA[<p>Classic scanpath metrics tell us <em>where</em> two people looked and how well their gaze paths overlap in space. In this work, presented at ETRA 2026, we ask a different question: did they actually <em>see</em> the same things? We use vision-language models together with NLP similarity measures to compare the semantic content of what observers attended to, not just the spatial geometry of their fixations.</p>

<p>The problem is that two scanpaths can trace very different spatial trajectories while landing on the same objects and meanings, or follow similar routes while attending to entirely different content. Purely geometric comparisons miss this. They reward spatial coincidence and penalize legitimate variation in viewing strategy, which limits how well they reflect shared understanding of a scene.</p>

<p>Our approach describes what lies under each fixation using a vision-language model, then measures agreement between these descriptions with established NLP similarity metrics. This shifts scanpath comparison from coordinates toward semantics, letting us quantify whether observers converged on the same interpretation of an image even when their eyes took different paths.</p>

<p>This matters for evaluating attention models, studying expertise, and comparing human and machine viewing behavior in settings where meaning matters more than pixel-level overlap. This was joint work with M. Tliba, B. Wang, A. Chetouani, U. Bagci, and A. Bruno.</p>

<p>The similarity tools are open-sourced as <strong>scanpath_nlp_metrics</strong> so others can apply semantic comparison to their own gaze data.</p>

<h2 id="links">Links</h2>

<ul>
  <li><a href="https://github.com/kmamine/scanpath_nlp_metrics">Code: scanpath_nlp_metrics</a></li>
</ul>

<p>See the paper for the full methodology and results.</p>]]></content><author><name>Mohamed Amine Kerkouri</name></author><category term="research" /><category term="publications" /><category term="visual-attention" /><category term="scanpath" /><category term="vlm" /><category term="nlp" /><category term="eye-tracking" /><summary type="html"><![CDATA[Classic scanpath metrics tell us where two people looked and how well their gaze paths overlap in space. In this work, presented at ETRA 2026, we ask a different question: did they actually see the same things? We use vision-language models together with NLP similarity measures to compare the semantic content of what observers attended to, not just the spatial geometry of their fixations.]]></summary></entry><entry><title type="html">SPGen: Stochastic Scanpath Generation for Paintings using Unsupervised Domain Adaptation</title><link href="https://kmamine.github.io/blog/2026/02/10/spgen-scanpath-generation/" rel="alternate" type="text/html" title="SPGen: Stochastic Scanpath Generation for Paintings using Unsupervised Domain Adaptation" /><published>2026-02-10T00:00:00+00:00</published><updated>2026-02-10T00:00:00+00:00</updated><id>https://kmamine.github.io/blog/2026/02/10/spgen-scanpath-generation</id><content type="html" xml:base="https://kmamine.github.io/blog/2026/02/10/spgen-scanpath-generation/"><![CDATA[<p>SPGen generates diverse, human-like scanpaths for paintings, capturing not one canonical viewing path but the variety of ways people explore a work of art. We frame the problem stochastically so that the model produces plausible variation across viewers, and we use unsupervised domain adaptation to reach the art domain without labeled fixations.</p>

<p>The core difficulty is data. Rich eye-tracking corpora exist for natural images, but labeled gaze on paintings is scarce, and art invites a broader, more idiosyncratic range of exploration than everyday photographs. Training a scanpath model directly on paintings is therefore hard, and models trained only on natural images transfer poorly to the aesthetics and composition of art.</p>

<p>Our approach bridges this gap. Unsupervised domain adaptation transfers knowledge from natural-image gaze data toward paintings, while the stochastic formulation lets SPGen sample multiple distinct yet coherent scanpaths rather than collapsing to a single average trajectory. The aim is generated gaze behavior that looks and varies like that of real observers.</p>

<p>This opens practical uses in digital humanities, cultural heritage, and interactive museum experiences, where modeling how people look at art is as interesting as modeling what they look at. This was joint work with M. Tliba, A. Chetouani, and A. Bruno.</p>

<p>The code is released as <strong>SP_Gen</strong> for generating and experimenting with stochastic scanpaths on paintings.</p>

<h2 id="links">Links</h2>

<ul>
  <li><a href="https://github.com/kmamine/SP_Gen">Code: SP_Gen</a></li>
</ul>

<p>See the paper for the full methodology and results.</p>]]></content><author><name>Mohamed Amine Kerkouri</name></author><category term="research" /><category term="publications" /><category term="visual-attention" /><category term="scanpath" /><category term="generative" /><category term="domain-adaptation" /><summary type="html"><![CDATA[SPGen generates diverse, human-like scanpaths for paintings, capturing not one canonical viewing path but the variety of ways people explore a work of art. We frame the problem stochastically so that the model produces plausible variation across viewers, and we use unsupervised domain adaptation to reach the art domain without labeled fixations.]]></summary></entry><entry><title type="html">Morphology-Aware KOA Classification: Integrating Graph Priors with Vision Models</title><link href="https://kmamine.github.io/blog/2025/10/24/morphology-aware-koa/" rel="alternate" type="text/html" title="Morphology-Aware KOA Classification: Integrating Graph Priors with Vision Models" /><published>2025-10-24T00:00:00+00:00</published><updated>2025-10-24T00:00:00+00:00</updated><id>https://kmamine.github.io/blog/2025/10/24/morphology-aware-koa</id><content type="html" xml:base="https://kmamine.github.io/blog/2025/10/24/morphology-aware-koa/"><![CDATA[<p>Grading knee osteoarthritis (KOA) severity from X-rays is a subtle task where the structure of the joint carries much of the diagnostic signal. In this work, we combine vision models with graph priors that encode joint morphology, so that classification is informed not only by image appearance but by the anatomical relationships within the knee.</p>

<p>The challenge is that severity grading depends on structural cues, such as joint space narrowing and the arrangement of bony features, that a purely appearance-based model may capture only implicitly. Standard vision backbones learn powerful features but do not natively represent the morphology of the joint, which can make grading less robust and harder to ground in anatomy.</p>

<p>Our idea is to make the model morphology-aware by introducing graph priors alongside the visual representation. Graphs are well suited to encoding the structural relationships between anatomical regions, and coupling them with a vision model lets appearance and structure inform one another during classification, aligning the model more closely with how the joint is actually read.</p>

<p>This points toward KOA grading that is both more accurate and more interpretable, grounded in the anatomy clinicians rely on. This was joint work with M. Tliba, Y. Nasser, N. Aburaed, A. Chetouani, U. Bagci, and colleagues.</p>

<h2 id="links">Links</h2>

<ul>
  <li><a href="https://arxiv.org/abs/2510.21801">arXiv</a></li>
</ul>

<p>See the paper for the full methodology and results.</p>]]></content><author><name>Mohamed Amine Kerkouri</name></author><category term="research" /><category term="publications" /><category term="medical-imaging" /><category term="knee-osteoarthritis" /><category term="graph-neural-networks" /><summary type="html"><![CDATA[Grading knee osteoarthritis (KOA) severity from X-rays is a subtle task where the structure of the joint carries much of the diagnostic signal. In this work, we combine vision models with graph priors that encode joint morphology, so that classification is informed not only by image appearance but by the anatomical relationships within the knee.]]></summary></entry><entry><title type="html">A Graph-Driven Approach to Knee Osteoarthritis Severity Classification</title><link href="https://kmamine.github.io/blog/2025/09/01/graph-driven-koa/" rel="alternate" type="text/html" title="A Graph-Driven Approach to Knee Osteoarthritis Severity Classification" /><published>2025-09-01T00:00:00+00:00</published><updated>2025-09-01T00:00:00+00:00</updated><id>https://kmamine.github.io/blog/2025/09/01/graph-driven-koa</id><content type="html" xml:base="https://kmamine.github.io/blog/2025/09/01/graph-driven-koa/"><![CDATA[<p>Knee osteoarthritis severity classification benefits from reasoning about structure, not just appearance. In this work, presented at EUSIPCO 2025, we take a graph-driven approach to KOA grading, representing the structural relationships within the joint to support more reliable severity classification.</p>

<p>The context is that osteoarthritis severity is expressed through structural changes in the knee, and grading these changes is inherently relational: what matters is how regions of the joint relate to one another, not only their isolated appearance. Models that treat the image as an unstructured whole can miss these relationships and the diagnostic patterns they encode.</p>

<p>Our approach uses graphs to make these structural relationships explicit. By modeling the joint as connected components rather than a flat image, the method can capture dependencies relevant to grading and use them to inform the severity prediction, aligning the representation with the anatomy behind the diagnosis.</p>

<p>This contributes to a broader line of work on structure-aware medical image analysis, where encoding relationships explicitly helps grading models generalize and remain interpretable. This was joint work with M. Tliba, Y. Nasser, A. Chetouani, and R. Jennane.</p>

<h2 id="links">Links</h2>

<p>This paper appeared at EUSIPCO 2025 and is listed on my Publications page.</p>

<p>See the paper for the full methodology and results.</p>]]></content><author><name>Mohamed Amine Kerkouri</name></author><category term="research" /><category term="publications" /><category term="medical-imaging" /><category term="knee-osteoarthritis" /><category term="graphs" /><summary type="html"><![CDATA[Knee osteoarthritis severity classification benefits from reasoning about structure, not just appearance. In this work, presented at EUSIPCO 2025, we take a graph-driven approach to KOA grading, representing the structural relationships within the joint to support more reliable severity classification.]]></summary></entry><entry><title type="html">Modeling Beyond MOS: Quality Assessment Models Must Integrate Context, Reasoning, and Multimodality</title><link href="https://kmamine.github.io/blog/2025/05/28/modeling-beyond-mos/" rel="alternate" type="text/html" title="Modeling Beyond MOS: Quality Assessment Models Must Integrate Context, Reasoning, and Multimodality" /><published>2025-05-28T00:00:00+00:00</published><updated>2025-05-28T00:00:00+00:00</updated><id>https://kmamine.github.io/blog/2025/05/28/modeling-beyond-mos</id><content type="html" xml:base="https://kmamine.github.io/blog/2025/05/28/modeling-beyond-mos/"><![CDATA[<p>Perceptual quality assessment has long been organized around a single number: the Mean Opinion Score. In this perspective piece, we argue that this target is too narrow, and that the next generation of quality assessment models should integrate context, reasoning, and multimodal understanding rather than regressing to one scalar.</p>

<p>The problem with collapsing quality into a single MOS is that it discards almost everything about <em>why</em> something looks good or bad. A number cannot say which distortion is present, whether it matters for the task at hand, or how the intended use changes what “good” means. As quality assessment moves into richer settings, this loss of context and explanation becomes a real limitation.</p>

<p>Our position is that quality models should reason about content and context, draw on multiple modalities including language, and produce assessments that are interpretable rather than opaque scores. Recent advances in multimodal models and language-based reasoning make this shift feasible, allowing quality to be described and justified, not merely predicted.</p>

<p>We hope this reframes quality assessment as a reasoning problem about perception and utility, pointing toward models that explain their judgments and adapt to context. This was joint work with M. Tliba, A. Chetouani, N. Aburaed, and A. Bruno.</p>

<h2 id="links">Links</h2>

<ul>
  <li><a href="https://arxiv.org/abs/2505.19696">arXiv</a></li>
</ul>

<p>See the paper for the full methodology and results.</p>]]></content><author><name>Mohamed Amine Kerkouri</name></author><category term="research" /><category term="publications" /><category term="quality-assessment" /><category term="multimodal" /><category term="reasoning" /><category term="llm" /><summary type="html"><![CDATA[Perceptual quality assessment has long been organized around a single number: the Mean Opinion Score. In this perspective piece, we argue that this target is too narrow, and that the next generation of quality assessment models should integrate context, reasoning, and multimodal understanding rather than regressing to one scalar.]]></summary></entry><entry><title type="html">Shifts in Doctors’ Eye Movements Between Real and AI-Generated Medical Images</title><link href="https://kmamine.github.io/blog/2025/05/26/doctors-eye-movements-ai-images/" rel="alternate" type="text/html" title="Shifts in Doctors’ Eye Movements Between Real and AI-Generated Medical Images" /><published>2025-05-26T00:00:00+00:00</published><updated>2025-05-26T00:00:00+00:00</updated><id>https://kmamine.github.io/blog/2025/05/26/doctors-eye-movements-ai-images</id><content type="html" xml:base="https://kmamine.github.io/blog/2025/05/26/doctors-eye-movements-ai-images/"><![CDATA[<p>As generative models produce increasingly convincing medical images, a natural question follows: do clinicians look at synthetic images the same way they look at real ones? In this ETRA 2025 study, we use eye tracking to examine how doctors’ gaze shifts between real and AI-generated medical images.</p>

<p>The context is that AI-generated imagery is entering medical workflows and research, yet we understand little about how experts perceive it. If a synthetic image subtly departs from real anatomy or texture, it may change how a clinician’s attention is deployed, even when the difference is hard to name explicitly. Gaze offers a window into that perceptual response.</p>

<p>Our study records and compares clinicians’ eye movements as they view real and generated images, looking for systematic differences in how attention is distributed. Such shifts would suggest that experts respond, consciously or not, to cues that separate synthetic from authentic medical content.</p>

<p>This is relevant both to trust in AI-generated imagery within clinical settings and to the possibility of using gaze as a signal for detecting synthetic content. This was joint work with D.C. Wong, B. Wang, G. Durak, M. Tliba, A. Chetouani, A.E. Cetin, and colleagues.</p>

<h2 id="links">Links</h2>

<p>Presented at ETRA 2025; see my Publications page.</p>

<p>See the paper for the full methodology and results.</p>]]></content><author><name>Mohamed Amine Kerkouri</name></author><category term="research" /><category term="publications" /><category term="eye-tracking" /><category term="medical-imaging" /><category term="generative-ai" /><summary type="html"><![CDATA[As generative models produce increasingly convincing medical images, a natural question follows: do clinicians look at synthetic images the same way they look at real ones? In this ETRA 2025 study, we use eye tracking to examine how doctors’ gaze shifts between real and AI-generated medical images.]]></summary></entry><entry><title type="html">APEX: Agentic Portrait Editing</title><link href="https://kmamine.github.io/blog/2025/03/01/project-apex/" rel="alternate" type="text/html" title="APEX: Agentic Portrait Editing" /><published>2025-03-01T00:00:00+00:00</published><updated>2025-03-01T00:00:00+00:00</updated><id>https://kmamine.github.io/blog/2025/03/01/project-apex</id><content type="html" xml:base="https://kmamine.github.io/blog/2025/03/01/project-apex/"><![CDATA[<p><code class="language-plaintext highlighter-rouge">APEX</code> is an experimental agentic pipeline for editing portraits from natural-language instructions. The idea is to let an AI agent sit between a user’s plain-language request and the image editing operations that carry it out, so that “soften the lighting” or “change the background” becomes something the system can plan and execute. It is very much a prototype for exploring that connection between agents and image editing.</p>

<p>The repository experiments with how an agent can decompose an editing instruction, choose the right tools, and apply them to a portrait. Because it is exploratory, the emphasis is on trying out the workflow and understanding where it breaks rather than on delivering a polished editor.</p>

<p>This ties together two threads of my work: computer vision on one side and the reasoning capabilities of LLM-based agents on the other. Portraits are a nice testbed because the edits are visually intuitive, which makes it easy to judge whether the agent understood what was actually asked.</p>

<h2 id="links">Links</h2>

<ul>
  <li>GitHub: <a href="https://github.com/kmamine/APEX">kmamine/APEX</a></li>
</ul>

<p>Explore the code on GitHub.</p>]]></content><author><name>Mohamed Amine Kerkouri</name></author><category term="projects" /><category term="open-source" /><category term="ai-agents" /><category term="genai" /><category term="computer-vision" /><summary type="html"><![CDATA[APEX is an experimental agentic pipeline for editing portraits from natural-language instructions. The idea is to let an AI agent sit between a user’s plain-language request and the image editing operations that carry it out, so that “soften the lighting” or “change the background” becomes something the system can plan and execute. It is very much a prototype for exploring that connection between agents and image editing.]]></summary></entry><entry><title type="html">llm-tuning-lab: Recipes for Fine-Tuning Small Language Models</title><link href="https://kmamine.github.io/blog/2025/01/15/project-llm-tuning-lab/" rel="alternate" type="text/html" title="llm-tuning-lab: Recipes for Fine-Tuning Small Language Models" /><published>2025-01-15T00:00:00+00:00</published><updated>2025-01-15T00:00:00+00:00</updated><id>https://kmamine.github.io/blog/2025/01/15/project-llm-tuning-lab</id><content type="html" xml:base="https://kmamine.github.io/blog/2025/01/15/project-llm-tuning-lab/"><![CDATA[<p><code class="language-plaintext highlighter-rouge">llm-tuning-lab</code> is my personal lab for experimenting with the fine-tuning of small language models. It is meant for practitioners and researchers who want a place to collect working recipes, sanity-check ideas, and iterate quickly without committing to a heavyweight framework. Think of it as a notebook of experiments rather than a finished product: an experimental and evolving repository.</p>

<p>The goal is practical: gather reusable recipes and scripts for adapting compact models to specific tasks, so that lessons learned in one experiment carry over to the next. Because it is a living workspace, expect the contents to shift as I test new approaches and prune the ones that do not hold up.</p>

<p>This project sits close to my current interest in LLMs and their practical adaptation. Working with small models keeps the iteration loop short and the compute footprint modest, which makes them a good vehicle for understanding what actually moves the needle during fine-tuning before scaling any of it up.</p>

<h2 id="links">Links</h2>

<ul>
  <li>GitHub: <a href="https://github.com/kmamine/llm-tuning-lab">kmamine/llm-tuning-lab</a></li>
</ul>

<p>Explore the code on GitHub.</p>]]></content><author><name>Mohamed Amine Kerkouri</name></author><category term="projects" /><category term="open-source" /><category term="llm" /><category term="fine-tuning" /><category term="nlp" /><summary type="html"><![CDATA[llm-tuning-lab is my personal lab for experimenting with the fine-tuning of small language models. It is meant for practitioners and researchers who want a place to collect working recipes, sanity-check ideas, and iterate quickly without committing to a heavyweight framework. Think of it as a notebook of experiments rather than a finished product: an experimental and evolving repository.]]></summary></entry></feed>