Source-linked AI summary

Grounding GUI Design in Computational Psychology

Xianni Wang, Javier Romero Davila, Saku Sourulahti, Torsten Schaub, Jussi P. P. Jokinen

arXiv:2609.03918v1cs.HC

TL;DR

GUI design requires costly manual iteration to balance functional, aesthetic, and cognitive constraints. The paper applies ASP to encode these principles and optimize layouts while preserving interpretable design rules. Across user evaluations, full-model layouts received higher visual-quality ratings than random or heuristic alternatives, and designers found the system useful for early-stage ideation.

  • Problem

    GUI design requires extensive manual iteration because designers must balance functional, aesthetic, platform, and cognitive constraints.

  • Method

    The paper uses ASP to encode aesthetic and cognitive layout principles, element relations, and designer preferences as explicit optimization constraints.

  • Results

    Full-model layouts received higher visual-quality ratings than Random and Grid alternatives, while designers found the prototype useful for brainstorming and early-stage prototyping.

  • Takeaways & Limitations

    ASP provides an interpretable foundation for generating, evaluating, and adapting psychologically grounded GUI layouts during design exploration.

  • Takeaways & Limitations

    The tool remains a research prototype requiring richer grouping controls, better objective communication, shape diversity, direct manipulation, and support for dynamic interaction and personalization.

Abstract

from arXiv · show

Creating visually appealing user interfaces often requires extensive manual iteration. We propose an approach that applies answer set programming (ASP) to automatically generate and optimize UI layouts while satisfying design objectives such as grid alignment, grouping, color harmony, and whitespace, along with designer-specified preferences. Our method encodes constraints on element properties and relative positioning, producing layouts that balance functional and aesthetic goals. We evaluate this approach in three studies. Across two user studies, participants rated layouts generated with the full ASP model higher than both random designs and those based on simple heuristics. Designers reported that ASP-generated layouts supported early-stage sketching and exploration.

1. Introduction

GUI design is costly and difficult because designers must balance functional, aesthetic, platform, and cognitive constraints through largely manual iteration. The paper proposes ASP-based optimization to make psychologically grounded design principles explicit, interpretable, and actionable.

  • 1. Introduction: GUI design demands substantial time because small layout changes can affect usability and perception across tasks, platforms, and screen sizes.Existing tools are often narrow or inflexible, leaving repeated prototyping and usability testing largely manual.
  • 1. Introduction: Psychological knowledge becomes more actionable when expressed computationally, enabling systematic evaluation and adaptation of interface layouts.The paper positions cognitive models and design principles as foundations for interpretable optimization rather than surface heuristics.
  • 1. Introduction: ASP formalizes GUI layout optimization by encoding aesthetic and cognitive principles as declarative constraints that generate optimized layouts.The workflow accepts sketches, partial layouts, or desired element counts and supports inspection of the applied rules.
  • 1. Introduction: Online users rated ASP-generated layouts higher in visual quality than layouts produced with simple heuristics.The authors attribute the advantage to encoding a broad set of aesthetic and cognitive constraints.
  • 1. Introduction: Three empirical studies provide evidence of perceptual benefits and formative support for early-stage ideation by designers.The contributions include the first ASP application to GUI layout optimization and a declarative constraint pipeline.

2. Related Work

The paper grounds computational GUI layout in perceptual, cognitive, motor, and visual-design principles, while relating ASP to prior constraint, heuristic, optimization, machine-learning, and evaluation systems. It presents ASP as a flexible and interpretable framework for encoding and optimizing richer design semantics.

  • 2. Related Work: Psychological grounding spans grid structure, density and whitespace, visual saliency, color harmony, and pointing efficiency.These principles connect perceptual organization and motor constraints to concrete layout objectives.
  • 2. Related Work: Figure 1 depicts a workflow in which designers specify principles, an ASP solver generates layouts, and designers inspect the resulting rules and adjustments.The workflow supports exploration across sketches, partial layouts, element counts, and device contexts.
  • 2. Related Work: Fitts’ law supplies a motor-performance basis for optimizing GUI element positioning and sizing across users and tasks.It models pointing time as a function of movement distance and target size, capturing a speed–accuracy tradeoff.
  • 2. Related Work: Prior systems range from constraint solvers and grammar-based tools to heuristic, evolutionary, machine-learning, and image-based evaluation methods.The surveyed approaches differ in guarantees, flexibility, computational demands, explainability, and whether they generate or assess layouts.
  • 2. Related Work: ASP combines solver guarantees with logic-programming flexibility, supporting qualitative, conditional, and compositional GUI constraints without training data.It can enumerate multiple optimal or near-optimal layouts and guarantees that generated layouts satisfy encoded constraints.
  • 2. Related Work: The framework advances prior computational layout systems by emphasizing expressivity, explainability, extensibility, and explicit aesthetic metrics.Its declarative formulation serves both generative and evaluative purposes.

3. Generating and Optimizing UIs with ASP

The ASP framework represents GUI layouts as declarative rules and answer sets, then optimizes multiple psychologically grounded design objectives while preserving designer control over priorities and preferences.

  • 3.1. Layout Optimization with ASP: ASP supports qualitative, compositional, and conditional GUI rules alongside multi-objective optimization for competing criteria such as alignment, grouping, whitespace, and color harmony.Its modeling language is presented as more flexible than numerical formulations for richer design semantics.
  • 3.1. Layout Optimization with ASP: ASP represents GUI design as a logic program whose answer sets correspond to candidate layouts, allowing designers to specify inputs as facts and rules.The framework separates describing the design problem from computing solutions.
  • 3.1. Layout Optimization with ASP: The solver selects element positions, sizes, and other properties while constraints eliminate invalid layouts, including rectangles that overlap.Choice rules generate candidate coordinates, occupancy rules identify covered points, and constraints remove conflicting answer sets.
  • 3.2. Optimization Objectives: The default priority hierarchy favors alignment and compactness, followed by interaction efficiency, group organization, positional balance, and size saliency.Designers can adjust priorities to navigate trade-offs between competing goals.
  • 3.2. Optimization Objectives: The objective modules encode grid alignment, grouping, saliency, and interaction efficiency by minimizing alignment lines, centroid distances, visual prominence differences, and predicted movement time.Grouping can also be optimized hierarchically around subgroup and parent-group centroids.
  • 3.3. Design Specifications: An external visual-search simulator can make grouping emerge from minimizing search time, complementing rigid geometric grouping constraints with a non-heuristic optimization route.The example links perceptual search behavior to layout optimization.

4. End-User Evaluation

The evaluation compared Full, Grid, and Random layout optimization conditions in user studies. Full layouts received the strongest visual-quality ratings, with validation and replication supporting the result while limiting generalization to the tested wireframes.

  • 4.1.2. Design and Materials: The study used a within-subjects design in which 100 participants rated 30 wireframes generated under Random, Grid, and Full conditions.The stimuli covered ten layout specifications, with each specification optimized under all three conditions.
  • 4.1.2. Design and Materials: Random satisfied basic constraints, Grid additionally optimized alignment, and Full added grouping, saliency, compactness, positional balance, and interaction efficiency.Random and Grid were treated as ablations of the Full model rather than external baselines.
  • 4.2. Results: Full layouts received the highest ratings, followed by Grid and Random, with significant differences between Full and both alternatives.The Full-versus-Grid effect was d = 0.81 [0.42, 1.20], and Full-versus-Random was d = 1.54 [1.15, 1.93].
  • 4.2. Results: The condition effect was significant, F(2, 27) = 32.9, p < .001, while rating-trial completion times did not differ between conditions.Participants completed the 30 trials in 3.59 min on average, with a median of 5.0 s per trial.
  • 4.3. Discussion: Generalization beyond the tested designs remains uncertain because the study used static, structured wireframes and did not include formal simulation-based power analysis.The authors state that extension to layouts with less visible grids or interaction-heavy interfaces remains to be tested.
  • 4.4. Validation and Replication Experiment: A follow-up experiment supported the single-item rating measure and replicated the ordering of Full, Grid, and Random conditions.The single-item rating correlated with the mean VisAWI-S score at β = .49, p < .001, and stimulus-level ratings correlated at r = .98 [.95, .99].

5. Designer Evaluation

The designer evaluation examined whether an ASP-based GUI optimizer could support practical design work, finding positive feedback on usability, guidance, and early-stage ideation while identifying several refinement needs.

  • Designer Evaluation: Participants valued comprehensive constraint specifications, especially geometric relations, grouping, and color harmony.The interface allowed requirements for element size, saliency, spatial relations, grouping, and color selection.
  • Designer Evaluation: Five participants reported valuable design guidance, while two said constraint specification encouraged more explicit articulation of design relationships than direct manipulation tools.One participant described one-click generation as a reference for future design iterations.
  • Designer Evaluation: Across nine tested configurations, all optimization runs reached final optimality within 40 seconds, with mean generation times from 12.3 to 21.3 seconds across element counts.Mean times were 12.3 s for 5 elements, 18.4 s for 8 elements, and 21.3 s for 18 elements.
  • Designer Evaluation: Designers found the ASP-based tool simple to use, effective for brainstorming, and valuable for early-stage prototyping.Participants described it as a source of objective design guidance, including for users with different levels of experience.
  • Designer Evaluation: Participants requested finer element-size control, more flexible grouping, greater shape variety, and clearer communication of saliency.The interface also presented only one layout per optimization request, motivating future presentation of diverse high-quality candidates.

6. Applications

The applications demonstrate that ASP can optimize menus, overlays, color, hierarchical grouping, responsive layouts, and cognitive-model objectives within one extensible framework.

  • The framework supports diverse GUI tasks, including menus, dynamic overlays, harmonic color design, hierarchical grouping, responsive layouts, and cognitive-model-based adaptation.Its declarative formulation allows new objectives and domain-specific constraints to be added across these applications.
  • 6.1. Menu Optimization: A six-item dropdown demonstrates simultaneous optimization of grouping, cross-group association, separation constraints, frequency-based positioning, and a fixed item position.Items 1–2 and 4–6 form groups; items 1 and 6 are associated, items 2 and 3 remain separate, and item 5 stays fifth.
  • 6.3. Color Design: Harmonic templates generate palettes from a designer-selected base color while preserving harmony alongside grouping and saliency objectives.The examples compare i-type and Y-type templates using purple, plus an i-type template using blue.
  • 6.2. Dynamic Interface Elements: The two-stage process first generates a base layout and then optimizes a popup that partially covers existing elements.
  • 6.4. Hierarchical Grouping: Hierarchical grouping preserves local subgroup compactness while maintaining global alignment across nested parent and child groups.
  • 6.5–6.6. Cognitive and Responsive Adaptation: The optimizer adapts layouts to screen size and motor-control demands, including enlarging the menu target in the mobile configuration.The desktop layout uses horizontal content areas, whereas the mobile layout stacks them vertically while preserving header and footer structures.
  • 6.7. Cognitive Simulation: Visual-search optimization produced more structured scanpaths and emergent grouping than post hoc simulation of layouts not optimized with the simulator.Across 5000 simulation runs, the optimized layout was evaluated through predicted visual-search behavior.

7. Discussion

The discussion presents ASP as an extensible and explainable foundation for psychologically grounded GUI optimization. It reports stronger visual-quality ratings for full-model layouts and promising designer experiences, while identifying prototype status and broader adoption as limitations.

  • 7.1. General Discussion: ASP explicitly encodes alignment, grouping, saliency, compactness, balance, color harmony, dimensions, and relations while remaining extensible to cognitive models and domain constraints.
  • 7.1. General Discussion: End users rated full-model layouts as visually superior to both Grid and Random conditions, while designers reported support for ideation and prototyping workflows.
  • 7.1. General Discussion: Application demonstrations cover motor-ability adaptation, menus, dynamic elements, color, and different screen sizes, with explicit objectives supporting transparent design explanations.
  • 7.2. Limitations and Future Work: The tool remains a research prototype requiring richer grouping controls, clearer objective communication, direct manipulation, dynamic-interaction objectives, and longer-term adoption studies.
  • 7.2. Limitations and Future Work: The paper identifies fragmented evidence on personality-related interface preferences and proposes structured design systems and expert review for reusable ASP knowledge bases.
  • 7.3. Conclusion: The authors present ASP as the first application of answer set programming to GUI layout optimization and plan to release the system materials openly.

Appendix A.1. 30 Stimuli

Appendix A.1 documents the 30 evaluation stimuli, spanning Full, Grid, and Random conditions crossed with Simple and Complex layouts.

  • Full stimuli: The appendix lists five Full–Complex and five Full–Simple stimuli used in the end-user evaluation, with selected items also used in validation.
  • Grid stimuli: It lists five Grid–Complex and five Grid–Simple stimuli used in the end-user evaluation, with selected items also used in validation.
  • Random stimuli: It lists five Random–Complex and five Random–Simple stimuli used in the end-user evaluation, with selected items also used in validation.

Appendix A.2. Screenshots of the End-User Experiments

Appendix A.2 shows the materials used to administer and measure the end-user and validation experiments.

  • The appendix includes experiment instructions, an abstract-wireframe-to-website example, a visual-quality rating screen, and a multi-item validation rating screen.

Appendix B. Designer Evaluation Protocol and Interview Guide

The evaluation introduced participants to a GUI for expressing design specifications and using an ASP optimizer without writing ASP code. Participants practiced the interface before completing the main design tasks.

  • The GUI let participants specify element size, saliency, spatial relations, grouping, and color selection.These inputs were translated into constraints for the ASP optimizer.
  • Participants were not required to write ASP code to use the optimizer.
  • Participants learned the interface through a demonstration and a three-element practice task before the main study.The practice task was intended to familiarize participants with the GUI.

Appendix B.2. Experimental Procedure

The procedure combined consent and GUI training with three counterbalanced design tasks. Participants entered specifications, invoked the optimizer, and received procedural clarification without design suggestions.

  • The researcher’s procedure was explicitly documented before the task sequence.
  • The three main design tasks were presented in counterbalanced order.For each task, participants reviewed the scenario and element list, entered specifications through the GUI, and invoked the optimizer.
  • The study began with an explanation, informed consent, a GUI demonstration, and a practice task.Procedural questions were answered before the main tasks began.
  • Generated layouts were displayed after each optimization step in the documented procedure.
  • The researcher provided procedural clarification when requested but did not provide design suggestions.
  • The same post-task questions followed each of the three main tasks, with neutral prompts used for clarification.

Appendix B.3.1. Post-Task Questions

Post-task evaluation combined questions about participants’ reactions to generated layouts with an overall satisfaction rating and open-ended feedback about the GUI experience.

  • Participants were asked whether each generated layout matched their intended specifications and which aspects were most successful.They also reported unexpected arrangements or inconsistencies with their specifications.
  • Overall satisfaction with the generated layouts was rated once on a 1-to-5 scale after all three main tasks.Participants were also asked to explain their rating.
  • The interview guide included a separate prompt section for open-ended participant feedback.
  • Open-ended questions addressed the GUI’s ease of use, specification difficulties, unsupported requirements, and useful specification categories.

Appendix C. Results of Model Efficiency Evaluation

The appendix presents optimized layouts alongside their corresponding ASP constraints across news, fitness, and weather-forecast design tasks with 5, 8, and 18 elements.

  • The appendix shows optimized layouts and corresponding ASP constraints for news, fitness, and weather-forecast design tasks.
  • The news task is documented with separate figures for 5-, 8-, and 18-element layouts and constraints.
  • The fitness app task is documented with separate figures for 5-, 8-, and 18-element layouts and constraints.
  • The weather forecast task is documented with separate figures for 5-, 8-, and 18-element layouts and constraints.
Loading 2609.03918v1…