Search arXiv⌕ Search

arXiv subjects

Giusy Annunziata

Publications and source records attributed to Giusy Annunziata.

4 recordsLinked to original sources

Search-Based Context Engineering for AI Agents: Optimizing Token Usage and Task Performance

LLM-based agents rely on tools to retrieve the information needed to solve complex tasks. However, every retrieved token enlarges the context, increasing cost and energy consumption. Context engineering addresses this trade-off, yet its design space is too large to explore manually, and existing search-based approaches optimize only isolated aspects of an agent rather than its entire context. To fill this gap, we approach context engineering as a multi-objective search problem and use NSGA-II with accuracy and token usage as objectives to simultaneously optimize an agent's system prompt, its tool-call budget, and the parameters controlling how much content its tools return. We evaluate our approach with two open-weight LLMs on fact verification and question-answering benchmarks against the baseline configuration. On fact verification, NSGA-II finds configurations that reduce token usage by 8%-27% without any significant loss in accuracy. On question answering, token usage is reduced by up to 23%, and in most cases NSGA-II again finds configurations that reduce token usage without sacrificing accuracy. These results show that search-based optimization is an effective approach to design agents that are both accurate and efficient.

cs.NE↗

When AI Joins the Team! A Model of How AI Adoption Relates To Social Patterns in Software Engineering Teams

Context: The growing adoption of AI-assisted development tools is changing how software teams collaborate, share knowledge, and coordinate, yet its consequences for team social dynamics remain largely unexplored. Gap: It is unclear whether AI adoption is associated with an increase or reduction in community smells,socio-technical anti-patterns reflecting coordination and communication breakdowns,and through which mechanisms. Method: Grounded in Transactive Memory Systems (TMS) theory, we validate instruments for HumanAI and HumanHuman interaction along two TMS dimensions, Specialization and Coordination, and test five PLS-SEM models on survey data from 152 software professionals using AI tools. Community smell constructs were derived from the literature and validated through expert surveys and factor analysis. Results: AI adoption relates to community smells not in a single way, but through mechanisms depending on the work. In specialization work, AI is associated with higher knowledge-sharing peer interaction, which is in turn associated with fewer smells. In coordination work, AI is directly associated with higher communication quality, complementing rather than replacing human interaction. Contributions: We provide an empirically validated, TMS-grounded model showing that the AIcommunity-smell relationship is contingent on the type of collaboration, with a reusable instrument and evidence-based implications for research and practice.

cs.SE↗

SafeTune: Search-based Harmfulness Minimisation for Large Language Models

The widespread adoption of Large Language Models (LLMs) raises concerns about the potential harmfulness of their responses. In this paper, we first investigate the harmfulness of responses from four general-purpose LLMs. Next, we propose SafeTune, a multi-objective search-based approach to mitigate harmfulness while increasing response relevance through hyperparameter tuning and system prompt engineering. Our initial evaluation shows that SafeTune significantly reduces the rate of harmful responses generated by Qwen3.5 0.8B and increases prompt-response relevance (both with a large effect size). Among the parameters we explore, we also find that encouraging greater repetition in responses is most impactful in reducing harmfulness while increasing relevance.

cs.SE↗

How Do Communities of ML-Enabled Systems Smell? A Cross-Sectional Study on the Prevalence of Community Smells

Effective software development relies on managing both collaboration and technology, but sociotechnical challenges can harm team dynamics and increase technical debt. Although teams working on ML enabled systems are interdisciplinary, research has largely focused on technical issues, leaving their socio-technical dynamics underexplored. This study aims to address this gap by examining the prevalence, evolution, and interrelations of community smells, in open-source ML projects. We conducted an empirical study on 188 repositories from the NICHE dataset using the CADOCS tool to identify and analyze community smells. Our analysis focused on their prevalence, interrelations, and temporal variations. We found that certain smells, such as Prima Donna Effects and Sharing Villainy, are more prevalent and fluctuate over time compared to others like Radio Silence or Organizational Skirmish. These insights might provide valuable support for ML project managers in addressing socio-technical issues and improving team coordination.

cs.SE↗