Editor’s introduction
The study evaluates human-AI collaborative sessions in coding contexts, using a data-driven method called Principal Trait Analysis to extract recurring interaction patterns. It compares how different users engage with AI agents in both student tutoring and developer workflows, identifying traits such as question framing and feedback style that correlate with task outcomes. However, the study notes that whether these traits represent true skills remains uncertain, as the results lack clear evidence of generalizability across different domains or over time.
Introduction
LLM coding assistants are increasingly used in software development and integrated into computer science education, yet it is still unclear what distinguishes effective from ineffective use in either setting. The same model, given to two software developers, can produce vastly different code depending on how each developer interacts with the model, and the productivity gains from coding assistants vary substantially across developers. Likewise, two students can have vastly different usage patterns which result in different learning experiences and subsequent outcomes. Uncovering these usage patterns and relating them to outcomes would give i) developers guidelines on how to collaborate with coding agents and ii) instructors guidelines on how to teach “AI use skills” to computer science students.
However, uncovering these patterns and establishing universal guidelines is difficult, since the space of relevant behavioral traits is large and rapidly changing as LLM capabilities improve. As a result, prescriptive guidelines derived by hand from a snapshot of interactions quickly become stale and may not generalize across settings. To keep pace with the rapid changes in this field, more automatic and data-driven analyses should be explored, so that new traits can be re-derived as human-AI collaboration evolves into new settings and scenarios.
Prior approaches to establishing such guidelines have largely been deductive. Top-down work imports frameworks from learning theory, human-AI collaboration, or software engineering practice and applies them as fixed rubrics. Such rubrics are interpretable and theoretically grounded, but they are fixed at design time and can be brittle when tools and settings change, especially as AI becomes more capable at a rapid pace; measuring the competencies or skills they define is itself an open problem. Bottom-up work instead analyzes interaction logs directly, through qualitative coding workflows or dialogue-act taxonomies applied to tutoring dialogue and to student-AI conversations, with more recent efforts mining such logs with LLMs in an open-ended fashion. These analyses stay close to observed behavior, but their annotation schemes are labor-intensive to build and maintain, and the resulting behavioral categories are only sometimes tied to measurable outcomes. Therefore, they cannot be reliably characterized as skills either: in educational research literature on knowledge components, a skill is expected to improve with practice along a learning curve and generalize across tasks. In this line of work, candidate skill decompositions are validated by how well they fit learning curves.
Contributions
In this work, we propose a data-driven algorithm to derive informative traits in human-AI collaborative coding sessions and use this approach to analyze two real-world conversation datasets. Our approach, Principal Trait Analysis (PTA), is a principal component analysis (PCA)-inspired pipeline that extracts behavior observations from raw conversations, derives interpretable trait dimensions by clustering, scores each human collaborator on every trait, and selects the most distinguishing traits. We extract these traits through a series of unsupervised stages, via LLM-based prompting and text-embedding-based clustering steps, to uncover traits that explain common collaborator behavior patterns. This process intuitively mirrors how PCA derives principal component vectors that explain the most amount of variance in datasets. We then perform an outcome-aligned evaluation that measures whether the derived traits explain and predict downstream outcomes. We conduct experiments on two datasets: a student-AI tutor dialogue corpus (StudyChat) and a professional coder-AI coding agent interaction session trace corpus (SWE-Chat), showing both shared and setting-specific structure in effective LLM use. We find that our approach yield traits that are often significant in explaining outcomes. However, we caution that these traits may not fit the definition of skills, due to limited generalizability across collaborative settings.
Topic Modeling and Clustering with LLMs
LLMs have been widely applied to derive interpretable structure from text corpora, and have been evaluated directly against classical topic models such as LDA. Prompt-based topic modeling pipelines generate and refine natural-language topic labels, and goal-conditioned variants discover structure relevant to a stated analysis purpose. Closer to our derivation stages, other work uses LLM feedback to guide the clustering itself, both in resolving ambiguous assignments and in choosing an appropriate granularity, or generates labels inductively from the data before hierarchically clustering them into higher-level themes. Related work also proposes methods of visualizing these derived structures in dashboards for monitoring and manual analysis of text corpora. Large scale chat datasets, in particular, have been a growing area of research interest, as LLM-collaborative workflows are being used across a wider variety of tasks and large-scale datasets of LLM conversations are made available. Therefore similar analysis pipelines are now being applied to mine insights from chat datasets. PTA’s trait-derivation stages build on this machinery, using LLMs to derive observations from chat datasets, conditioned on the collaborative context and optionally a theory lens.
Outcome Prediction with LLM Judged Features
A growing body of work uses LLM-scored features as inputs to downstream predictive tasks, building on prior work that used embedding-based approaches to predict outcomes in critical domains such as counseling outcomes. Examples include queries answered by an LLM over clinical notes to predict diagnoses, patient reports to predict intervention outcome, business reviews to predict ratings, and binary questionnaire items to predict fMRI response. Specific to conversation corpora, prior work has used LLM-derived features to score and predict user satisfaction. However, while LLM-based feature extraction and scoring is convenient, it is unclear which features are more informative than others without directly regressing on task outcome. In our work, we explore a methodology that extracts traits as downstream predictive features, scores conversations based on these traits, and determines the most informative traits prior to outcome regression. This methodology enables an unsupervised extraction of principal traits through a process which is independent of outcome variable in derivation, but is still informative in explaining variance in downstream outcomes.
Tutoring Dialogues and LLMs in Education
The relationship between conversation behavior and learning outcomes has a long history in education research. Prior work correlated manually coded dialogue acts with learning gains in tutoring dialogues, modeled help-seeking behavior in intelligent tutoring systems, and discovered latent dialogue modes over annotated act sequences. More recently, LLMs have been explored for capabilities in education tasks such as automated scoring and content generation. In this line of work, related studies have scored dialogues on predefined psychological constructs such as persistence and mined student–AI chat logs for knowledge gaps.
In a parallel thread, educators are now interested in teaching effective usage of AI tools, resulting in a growing number of “AI literacy” frameworks which establish effective principles for AI usage with learning and professional objectives. Many of these frameworks are grounded in pre-existing learning and tutoring frameworks such as self-regulated learning and the Interactive, Constructive, Active, and Passive (ICAP) framework for cognitive engagement. However, since communication styles between AI and human tutors are distinct, new frameworks are being developed to characterize these styles and related competencies. Assessing these competencies is itself an open problem: recent work finds substantial misalignment between self-reported and objective-based measures of AI literacy. However, much of this work relies on manual coding and inspection of conversation data which does not scale readily, especially given the rapid development of LLM systems.
Methodology
PTA’s first two stages, extraction and clustering, have some resemblance of computing principal component vectors. Since collaborator-AI interaction data is textual, we cannot initialize with random vectors in, e.g., power iterations, to find the leading principal component of a matrix. Instead, we begin by creating a large pool of observations proposed via LLM prompting, which we narrow down into a more representative pool via clustering. The third stage, trait scoring, is analogous to derivation of the per-sample loadings for each principal component in PCA. We use LLM-as-a-judge to rate how much each collaborator-AI interaction session exhibits the qualities described in each trait. The final stage, trait selection, resembles selecting the principal components which explain the most variance in the data. Since orthogonality between textual data is undefined, we greedily select traits that i) explains the most variance in scores across collaborators while ii) have low correlation with already selected traits in scoring and are also textually diverse.
Datasets
The first dataset we analyze is StudyChat, a collection of conversations between students and an LLM tutor in a university programming-based artificial intelligence course. We analyze 1,540 tutoring sessions authored by 171 students across two semesters. Students complete seven programming assignments and three examinations over a semester. We investigate student’s examination performance as the outcome variable. The two semesters involve different students, assignments, and exams, so we analyze outcomes on each semester separately but derive principal traits from the entire dataset.
The second dataset we analyze is SWE-Chat, a collection of conversations between professional developers and AI-powered coding agents working on real software repositories. We analyze 2,774 sessions that come from developers with at least two sessions. We investigate the per-session success signal as the outcome variable. In SWE-Chat, each session addresses a distinct software task rather than a shared assignment across all students in StudyChat, which we account for in our evaluation metrics.
Extraction Lenses
We extract observations under a set of lenses, each of which frames the extraction prompt around a body of domain-specific theory. For StudyChat, we use four lenses drawn from education research: self-regulated learning combined with the ICAP engagement framework, the 4D AI-fluency competencies, question sophistication, and academic help-seeking. We adapt the third lens from the technical dimension of the AI Literacy Heptagon, treating the precision and depth of a student’s questions as a conversational proxy for that dimension. For SWE-Chat, we use four lenses drawn from software-engineering practice: specification quality, verification and oversight, agency and control, and craftsmanship and process discipline. We frame the first, second, and fourth around knowledge areas of the Software Engineering Body of Knowledge, covering requirements, testing, and construction and quality respectively. We frame the third around a taxonomy of human-AI collaboration in software engineering and a study of how professional developers supervise coding agents rather than delegate to them wholesale. We provide the full prompts for every lens in Appendix C.
Language Models
For observation extraction and trait scoring we use the GPT5.5 to produce observations, cluster names, and de-duplication, and deploy a self-hosted Qwen3-4B model for scoring. For text-embeddings we use ModernBERT to form mini-clusters from the observations and MPNet to embed trait definitions during de-duplication and selection.
Baselines
We compare PTA derived traits against two feature sets that are defined for StudyChat. Dialogue acts uses the counts of the 8 broad dialogue-act categories per turn, provided in the dataset which we derived from manual coding and observations of the sessions. Bloom’s taxonomy uses the 6 levels of the revised Bloom’s taxonomy as an alternative set of traits. We prompt our scoring model to measure the degree to which each of the levels of the schema was present in the dataset through the same scoring prompt structure as the candidate traits and use the scores as regression features. See Appendix B for further details. To the best of our knowledge, we could not find an established taxonomy of predictive dialogue traits similar to what the learning sciences provide for software engineering task outcomes. We therefore evaluate SWE-Chat against the prior-outcome regression alone.
Significant Traits
In interpreting the descriptions for the StudyChat-derived traits, we observe that behaviors that encourage conceptual understanding are positively correlated with exam outcomes, whereas goal-directed and task-delegating behaviors are negatively correlated with outcomes. Specifically, we see that conceptual_understanding_orientation and question_context_elaboration are traits positively correlated with exam outcomes and indicate deep conceptual engagement. However, task_context_specificity is negatively correlated with outcomes, which appears to contradict the results on other traits. One possible explanation is that certain types of help-seeking behaviors are negatively correlated with outcomes, and these questioning behaviors may be confounded by student ability. Notably, these unsupervised findings corroborate with human-made observations on the StudyChats dataset that conceptual questioning dialogue acts were positively correlated with outcomes. The remaining significant traits are all negatively correlated with outcomes and may suggest a pattern of task-delegation behaviors, where the student asks the LLM to complete a portion of the assignment. This result suggests that these traits emerge when students are not engaging with learning outcomes, which is aligned with prior work analyzing this dataset.
In interpreting the descriptions for the SWE-chat-derived traits, we observe that behaviors where developers provide a clear role for the LLM are positively correlated with outcomes, whereas evidence-based workflows are negatively correlated with outcomes. Traits where the user gives specific, scoped tasks to the agent result in positive outcomes such as workflow_control_ delegation, found significant in both pools, and workflow_structure_incrementality. However, when the developer provides loosely-defined roles and instead gives constraint-based guidelines or relies on the coding agent’s interpretation of evidence, the collaboration often results in negative outcomes, such as delegation_specificity and evidence_driven_quality_oversight.
All together, interpretation of these traits suggest reasonable patterns, but sometimes contradictory results. One possible explanation for these contradictions is that the semantic clustering in the candidate trait derivation process is overly aggressive: some observations which contain similar words but unique behavioral traits, are combined erroneously. This process results in traits that correspond to a large set of underlying skills, increasing explanatory power at the cost of interpretability. Overall, while these traits may provide reasonable directions for further analysis into behavioral patterns, they do not, by themselves, appear to be grounded enough to be interpreted as a definitive skill taxonomy in human-AI collaboration.
Conclusions
In this paper, we introduced Principal Trait Analysis, a data-driven, principal component analysis-inspired approach that derives interpretable, traits of LLM usage directly from human-AI interaction session trace datasets. We evaluated our approach on human-AI collborative conversations in a software development setting, demonstrating our approach in both a learning and professional context. Our approach recovers traits that explain outcomes beyond prior achievement heuristics and seem readily interpretable. However, our analysis reveals that the traits are inconsistent with the qualities required to interpret these traits as human-AI collaboration skills.
Our work outlines avenues for future research into the derived traits and overall methodology. A possible next step for future work would be to test this methodology across a larger educational dataset, beyond classroom-scale, and not isolated to computer science. Moreover, additional validation of the derived traits via human evaluation could expose more details of the quality and deeper implications behind these derived traits. These investigations may reveal gaps in our current methodology. Finally, this work focuses on datasets where the LLM is not given any pedagogical intervention or alignment, but a natural question would be to see whether traits derived from collaborator behavior with a pedagogically aligned LLM are noticeably different.


