Problem Solving Through Human-AI Preference-Based Cooperation

Subhabrata Dutta, Timo Kaufmann, Goran Glavaš, Ivan Habernal, Kristian Kersting, Frauke Kreuter, Mira Mezini, Iryna Gurevych, Eyke Hüllermeier, Hinrich Schuetze

This position paper from researchers at TU Darmstadt, LMU Munich, and other institutions challenges the current "automation-first" narrative of Generative AI. Instead of viewing AI as an autonomous agent that will soon replace human experts, the authors propose a paradigm shift toward Human-AI Co-Construction ($HAI-Co^2$). This framework treats the human and AI as equal partners, iteratively building both the solution and the objective itself through a structured, hierarchical search process.

TL;DR

The paper argues that current LLMs fail at complex expert tasks because they lack persistent state and fail to adapt to evolving human preferences. To solve this, the authors introduce $HAI-Co^2$, a framework that formalizes problem-solving as a collaborative, hierarchical search where both the artifact (e.g., code) and the success criteria are co-constructed by human and machine.

What Problem Does This Paper Address?

While LLMs are impressive at short-form generation, they struggle with "expert-domain" problems—tasks like software engineering, scientific research, or complex planning that require intricate adherence to constraints and long-term consistency.

The authors identify three critical failures in current state-of-the-art models (like GPT-4 Turbo):

  1. Preference Neglect: Models often ignore explicit user instructions in complex prompts.
  2. Unreliable Refinement: Modifying one part of a complex artifact often leads the AI to break another part because it lacks a persistent, structured representation of the solution.
  3. Passive Interaction: Current AI treats human edits as just "more context" rather than a signal of implicit preference to be learned and applied elsewhere.
Figure 1: Examples of GPT-4 Turbo failing to follow preferences and breaking code during refinement.

Methods

The $HAI-Co^2$ framework moves away from "one-shot" prompting toward a search-based paradigm across a hierarchy of abstraction levels.

  • Hierarchical Construction Space: Instead of generating a final product immediately, the process moves through levels of abstraction. For software, this might be: Natural Language Specification $\rightarrow$ UML Diagrams $\rightarrow$ Python Code.
  • Objective Co-Construction: Borrowing from Multi-Criteria Decision Aiding (MCDA), the authors posit that the "goal" is rarely fixed. As the human sees drafts, their preferences evolve. $HAI-Co^2$ uses a Preference Decoder to extract rules from human feedback and edits, updating a latent utility function.
  • Preference-Based Search: The AI doesn't just "generate"; it searches the construction space. In their prototype, they use a tournament-based search where candidate solutions at the UML level are compared against the decoded preference model to find the best path forward.
Figure 3: The $HAI-Co^2$ workflow for building a double pendulum simulation, showing the interaction between specification, UML, and code modules.

Datasets

The paper does not rely on a new large-scale training dataset. Instead, it validates the framework through:

  • Expert Case Studies: A running example of generating a modular Python codebase for a double pendulum simulation.
  • Human Evaluation: A study involving 14 doctoral students in NLP. These experts compared co-construction "episodes" generated by $HAI-Co^2$ versus a vanilla GPT-4 Turbo baseline.

Key Insights and Ideas

  • Equality through Complementarity: The human understands context and high-level requirements; the AI accesses vast information and manages low-level tool execution (like compilers). They are "equal partners" with different skill sets.
  • Search vs. Generation: By framing problem-solving as a search in a structured space (see Figure 2 in the paper), the process becomes more systematic and less prone to the "drift" seen in long chat threads.
  • Learning from Edits: A core tenet is that when a human manually changes a line of code, the AI should treat that as a "gold" preference signal to update its internal model of what the user wants.
Figure 2: Formalization of the construction space $\mathcal{X}$ with hierarchical levels and neighborhood structures.

Key Results

In the human evaluation, $HAI-Co^2$ significantly outperformed the vanilla LLM baseline across all metrics:

  • 85.7% of experts found $HAI-Co^2$ better at capturing initial preferences.
  • 78.6% agreed it adapted better to "preference switching" (when the user changes their mind mid-task).
  • 85.7% concluded that the framework is overall more suitable for software-level code generation than standard chat-based LLMs.

Limitations and Future Work

  • Computational Cost: Running tournament-based searches and generating multiple hierarchical candidates is significantly more expensive than a single LLM call.
  • Cognitive Load: While the AI helps, the human expert must still review and provide feedback at multiple levels, which can be taxing.
  • Ethical Risks: The authors warn of "influenceable reward functions"—the risk that an AI might manipulate a human into changing their preferences to make the task easier for the AI to solve.
  • Future Directions: The team suggests integrating Vision-Language Models (VLMs) so experts can communicate preferences via sketches or UI mockups, and incorporating standard DevOps tools (linters, unit tests) directly into the search loop.

Summary updated

Abstract

While there is a widespread belief that artificial general intelligence (AGI) -- or even superhuman AI -- is imminent, complex problems in expert domains are far from being solved. We argue that such problems require human-AI cooperation and that the current state of the art in generative AI is unable to play the role of a reliable partner due to a multitude of shortcomings, including difficulty to keep track of a complex solution artifact (e.g., a software program), limited support for versatile human preference expression and lack of adapting to human preference in an interactive setting. To address these challenges, we propose HAICo2, a novel human-AI co-construction framework. We take first steps towards a formalization of HAICo2 and discuss the difficult open research problems that it faces.
BibTeX
@inproceedings{dutta2024problem,
  author = {Subhabrata Dutta and Timo Kaufmann and Goran Glavaš and Ivan Habernal and Kristian Kersting and Frauke Kreuter and Mira Mezini and Iryna Gurevych and Eyke Hüllermeier and Hinrich Schuetze},
  title = {{Problem Solving Through Human-AI Preference-Based Cooperation}},
  booktitle = {Computational},
  year = {2024},
  doi = {10.1162/coli.a.19},
}
Figure