<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Motiff on Medium]]></title>
        <description><![CDATA[Stories by Motiff on Medium]]></description>
        <link>https://medium.com/@motiff?source=rss-80cfafbc3faa------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*6dYrO88U1oy_kYyc</url>
            <title>Stories by Motiff on Medium</title>
            <link>https://medium.com/@motiff?source=rss-80cfafbc3faa------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 14:01:31 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@motiff/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Surpassing Apple and Challenging Google: The Essential UI MLLM We Need]]></title>
            <link>https://medium.com/motiff/self-developed-llm-motiffs-strategy-for-future-ui-design-032b9813c1ef?source=rss-80cfafbc3faa------2</link>
            <guid isPermaLink="false">https://medium.com/p/032b9813c1ef</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ui-design]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[figma]]></category>
            <category><![CDATA[ui-ux-design]]></category>
            <dc:creator><![CDATA[Motiff]]></dc:creator>
            <pubDate>Tue, 03 Sep 2024 10:24:49 GMT</pubDate>
            <atom:updated>2024-09-04T09:35:30.053Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wikHeRlQwo25U7Z-IB5qxQ.png" /></figure><p>To become a leading design tool in the AI era, <a href="http://motiff.com/">Motiff</a> is focusing on two main goals: first, figuring out how to use AI to create innovative features that help designers and their teams, and second, ensuring that the AI technologies behind these features are strong enough to make the product truly effective.</p><p>Large language models (LLMs) have been evolving quickly, showing improved learning abilities and better generalization. These advancements open up new possibilities for AI applications, and the Motiff team is actively exploring these opportunities.</p><p>Reflecting on the past year, we have learned two key things about the impact of LLMs on AI product development:</p><p><strong>·</strong> Language User Interfaces (LUIs) will become important entry points for products and can handle complex tasks like generating design drafts.</p><p><strong>·</strong> Previously, solving specific problems with AI required high startup costs, but LLMs can now quickly develop AI functionalities at a lower cost using zero, few, or many examples.</p><p>In practice, we’ve tried using general LLMs to address product challenges. While some attempts were somewhat successful, these models often have limitations in specialized UI fields.</p><p>Our technical exploration is driven by the need to enhance product capabilities, setting us apart from other companies working on large-model research. We see that mature technology is leading to highly effective specialized LLMs in fields like healthcare, law, and education, which boosts our confidence in training a UI-specific LLM.</p><p>Through practical application, we’ve confirmed the necessity of developing our own LLMs. For instance, while exploring AI-generated design drafts, the Motiff team validated the technical solution with only 200 examples using a domain model. Compared to traditional AI feature exploration methods, Motiff’s MLLM significantly reduced costs, making product innovation more efficient and bringing broader ideas.</p><p>We’re excited to share Motiff’s innovative progress in UI design.</p><h3>Development of Multimodal Large Language Models</h3><p>Multimodal LLMs like LLaVA (open-source) and GPT-4V/4o (closed-source) can integrate various types of data (e.g., text, images, videos) and have more comprehensive understanding capabilities and higher accuracy.</p><p>The rapid development of multimodal technologies results from the combined efforts of academia and industry.</p><p>Initially, multimodal technology focused on improving input and output modes. Over time, it has branched into more specialized fields, such as Microsoft’s medical LLM (LLaVA-Med).</p><p>Despite the current growth of multimodal LLMs and some classic open-source models like LLaVA for reference, their success in specialized fields is still limited, leaving many areas unexplored.</p><p>The above outlines the technical background of our self-developed UI-specific MLLM.</p><p>The chart below illustrates the rapid development of multimodal large language models from 2022 to 2024.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7hwGZCSuxWe-aV8o.png" /></figure><h4>General Framework of Multimodal Large Language Models</h4><p>Training general multimodal LLMs usually involves three stages:</p><ol><li><strong>Independent Pre-training:</strong> This involves separate pre-training of visual and language models. Both have evolved over time and offer excellent reference materials.</li><li><strong>Alignment Training:</strong> This crucial step aims to make the independently pre-trained visual and language models work together. It involves freezing the parameters of both models and fine-tuning only the connectors, effectively training a “translator” between them using “image-text pairs”.</li><li><strong>Instruction Fine-tuning:</strong> The final stage involves fine-tuning the multimodal LLM for specific tasks using diverse training methods and data collected from various tasks.</li></ol><h4>MLLM Adoption for the UI Domain</h4><p>If we aim to train a UI-specific multimodal LLM from scratch, we must undergo the three-stage training process and use domain-specific data. However, this approach faces challenges:</p><ul><li>Domain-specific data is less available than general data, possibly insufficient for extensive training.</li><li>Training from scratch is time-consuming and costly, requiring tens of billions of samples and frequent adjustments.</li></ul><p>Given the need to empower our business quickly, training a domain-specific model from scratch isn’t ideal. Instead, we can adjust existing general multimodal LLMs to better fit the UI domain by:</p><ul><li>Fine-tuning visual and language models with domain-specific data.</li><li>Adding domain-specific data for alignment optimization.</li><li>Replacing instruction fine-tuning with UI-specific task fine-tuning.</li></ul><p>Our experience shows that later training stages yield more significant improvements in domain-specific performance. Therefore, our optimization strategy is sequential, moving from backward to forward.</p><p>Currently, our domain adaptation efforts focus on the latter two stages, not involving the first stage. However, exploring whether unimodal domain adaptation significantly impacts MLLM domain adaptation is an interesting research topic for the future.</p><h3>Training Journey of MLLM by Motiff</h3><p><a href="http://motiff.com/">Motiff</a>’s multimodal LLM adopts the classic approach of integrating expert models, connecting a pre-trained Visual Encoder with a pre-trained Large Language Model through a Connector.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*50Gy__hR7je6qWqd.png" /></figure><p>The visual encoder processes images into visual tokens understood by the language model, which then generates text responses.</p><h4>Data Collection in the UI Domain</h4><p>High-quality UI domain data, especially for mobile platforms, is scarce. To address this, we used methods like manual annotation, pseudo-labeling, and domain knowledge distillation to gather high-quality UI data, categorized as follows:</p><p><strong>Type 1: UI Screenshot Captions</strong></p><p>This common multimodal training data is used during alignment and instruction fine-tuning.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NmCOzRGOZw1j5iE7.png" /></figure><p>Unlike natural scene images, UI screenshots contain more details and require more reasoning.</p><p>Through a series of Prompt Engineering, we have generated descriptions similar to the following. These descriptions introduce each UI screenshot module-by-module from top to bottom, including layout styles, component names, key UI elements, and module functionalities. Finally, an comprehensive evaluation of the overall page design is provided.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LrVJC0F_0jBEKPzh.png" /></figure><p>Type 2: UI Screenshot Structured Captions</p><p>Influenced by Meta researchers ‘2023 paper “LIMA: Less Is More for Alignment”’, we have moved away from the “more is better” approach.</p><p>Instead, when training the MLLM by Motiff, we have incorporated a batch of high-quality, knowledge-intensive UI data. This data allows for precise localization and comprehensive understanding of each element on the UI interface, enabling the Motiff multimodal large language model to:</p><ol><li>Locate and identify more than 40 types of fine-grained UI components such as buttons, chips, tabs, search bars, navigation bars, tab bars, lists, cards, etc.</li><li>Locate and recognize all text.</li><li>Locate each icon on the UI interface and describe its meaning and function in the current context.</li><li>Locate all images in the UI interface and describe its content.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SVFtILzt7-zlCTr0.png" /></figure><p><strong>Type 3: UI Instruction Tuning Data</strong></p><p>We leveraged successful experiences from general domains to collect and construct a rich set of UI interface-related instruction-following data. This mainly covers functions such as UI interface descriptions, question and answering based on UI interfaces, pixel-level interface element localization, fine-grained interface element descriptions, and UI interface interaction guides.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jn4h7fI8s_JHaLc1.png" /></figure><p>In the data generation task, we introduced several expert models, such as component recognition expert model, icon recognition expert model, OCR recognition expert model, etc. By combining the data generated by these expert models with our structured descriptions and feeding them into the private LLM, we are able to generate high-quality training data that is closer to real user scenarios.</p><p>Existing large language model solutions for the UI domain, such as Apple’s Ferret UI and Google’s ScreenAI, typically rely on classifiers to generate static icon descriptions. In contrast, our approach merges the results from the icon recognition expert model with detailed structured text fed into private LLM. This integration allows the same icon to be described with varying meanings depending on the context, thereby enhancing the accuracy and contextual relevance of the descriptions.</p><p>As illustrated in the image below, the upper section showcases data generated by ScreenAI, while the three sections below display data generated by our method respectively.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4s6APZZl0iVnzUwi.png" /></figure><p>In addition to the three types of UI-related data mentioned above, we found that tasks such as chart Q&amp;A, document Q&amp;A, and OCR can also improve the understanding of UI interfaces.</p><p>Finally, to maintain general capabilities, we also included general domain data such as natural scene image descriptions, natural scene image question and answering, and generic text-based instructions.</p><p>In summary, we have collected tens of millions of multimodal training data samples, which include common app screenshots and a large number of web screenshots available in the market, infusing the MLLM by Motiff with extensive UI expertise.</p><h4>Domain Adaptation of MLLM by Motiff</h4><p>MLLM by Motiff focuses on UI interface scenes’ unique requirements, using a visual encoder supporting high-resolution inputs to capture more details, enhancing the model’s ability to perceive complex UI details.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7B61XgyxdWtyPopX.png" /></figure><p>Our domain adaptation training applies to two stages:</p><ol><li>Alignment Training: Introducing UI domain knowledge during alignment training by using UI interfaces and descriptions.</li><li>Domain-Specific Instruction Fine-Tuning: Training all task data to enhance domain knowledge while maintaining general abilities.</li></ol><h4>Performance Evaluation of MLLM by Motiff</h4><p>We’ve conducted comprehensive evaluations, comparing MLLM by Motiff with state-of-the-art models across five common UI scenarios:</p><ol><li>ScreenQA: Evaluates understanding capabilities through Q&amp;A based on screenshots.</li><li>Screen2Words: Assesses the ability to describe and infer screen content and functions.</li><li>RefExp: Tests precise localization of interface components.</li><li>Widget Captioning: Evaluates generating descriptions for UI components.</li><li>MoTIF-Automation: Assesses executing natural language instructions within mobile apps.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Cvlg-g9lzluK8LuL.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sOQrVUxKh9QsNQJB.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*TxRPo8RY6uqxC8TB.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*TXndKLFTx-NASDF-.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*EBQ0MLtO_lEw3HmT.png" /></figure><p><strong>Evaluation Results:</strong></p><ol><li>MoTIF-Automation and RefExp: MLLM by Motiff scored 86.09 and 85.13, respectively, slightly below ScreenAI’s 87.4 and 86.3 but still excellent.</li><li>Screen2Words: MLLM by Motiff achieved a Cider Score of 121.19, outperforming ScreenAI’s 120.8, showing superior performance in screen content description.</li><li>ScreenQA Short: The model’s F1 score was 93.03, just below ScreenAI’s 94.6, demonstrating strong Q&amp;A capability.</li><li>Widget Captioning: The model achieved a Cider Score of 161.77, surpassing ScreenAI’s 156.4, indicating a significant advantage in component description.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_jBueIE4J1O3lxf7.png" /></figure><p>Overall, MLLM by Motiff outperforms Apple’s Ferret-UI and closely matches Google’s ScreenAI, even surpassing it in some aspects.</p><p><a href="https://static.motiffcontent.com/public/resource/cms/video/e8666b27-c794-4353-9a46-dccea4e25936.mp4">https://static.motiffcontent.com/public/resource/cms/video/e8666b27-c794-4353-9a46-dccea4e25936.mp4</a></p><h3>Summary</h3><p>The Motiff team is committed to leading AI-related products, with the UI multimodal LLM being a crucial step toward this goal.</p><p>With MLLM by Motiff, we can rapidly implement AI capabilities, integrate them into our products, and gather real user feedback, driving LLM development. This positive feedback loop will create smarter and more efficient UI design tools in the AI era.</p><p>Human creativity stems from cognition and understanding. In the AI era, creating user interfaces will start with LLMs that thoroughly comprehend them.</p><p>Looking ahead, the Motiff team aims to make AI design tools more intelligent and efficient, truly enabling “unbounded creativity for designers.”</p><h4>References</h4><p>[1] Yin S, Fu C, Zhao S, et al. A survey on multimodal large language models[J]. arXiv preprint arXiv:2306.13549, 2023.</p><p>[2] Hsiao Y C, Zubach F, Wang M. Screenqa: Large-scale question-answer pairs over mobile app screenshots[J]. arXiv preprint arXiv:2209.08199, 2022.</p><p>[3] Wang B, Li G, Zhou X, et al. Screen2words: Automatic mobile UI summarization with multimodal learning[C]//The 34th Annual ACM Symposium on User Interface Software and Technology. 2021: 498–510.</p><p>[4] Bai C, Zang X, Xu Y, et al. Uibert: Learning generic multimodal representations for ui understanding[J]. arXiv preprint arXiv:2107.13731, 2021.</p><p>[5] Li Y, Li G, He L, et al. Widget captioning: Generating natural language description for mobile user interface elements[J]. arXiv preprint arXiv:2010.04295, 2020.</p><p>[6] Burns A, Arsan D, Agrawal S, et al. A dataset for interactive vision-language navigation with unknown command feasibility[C]//European Conference on Computer Vision. Cham: Springer Nature Switzerland, 2022: 312–328.</p><p>[7] Burns A, Arsan D, Agrawal S, et al. Mobile app tasks with iterative feedback (motif): Addressing task feasibility in interactive visual environments[J]. arXiv preprint arXiv:2104.08560, 2021.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=032b9813c1ef" width="1" height="1" alt=""><hr><p><a href="https://medium.com/motiff/self-developed-llm-motiffs-strategy-for-future-ui-design-032b9813c1ef">Surpassing Apple and Challenging Google: The Essential UI MLLM We Need</a> was originally published in <a href="https://medium.com/motiff">Motiff Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Performance magic behind Motiff]]></title>
            <link>https://medium.com/motiff/performance-magic-behind-motiff-527d902d6847?source=rss-80cfafbc3faa------2</link>
            <guid isPermaLink="false">https://medium.com/p/527d902d6847</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[ui-design]]></category>
            <category><![CDATA[ux-design]]></category>
            <dc:creator><![CDATA[Motiff]]></dc:creator>
            <pubDate>Mon, 24 Jun 2024 11:12:58 GMT</pubDate>
            <atom:updated>2024-06-24T11:12:58.313Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nclM9gxMkbIXzb_NuA2Tng.png" /></figure><p>How hard can building a UI editor be?</p><p>When our team decided to embark on creating an editor for the AI era two years ago, we didn’t think it was going to be that tough. With the plenty of open-source solutions available, we assumed that integrating some AI capabilities with these existing solutions would suffice to develop a product. However, as we delved deeper into the project, we realized that the performance demands of the editor made what seemed like standard features extraordinarily difficult, such as:</p><ul><li>Moving layers in bulk</li><li>Opening files</li><li>Switching pages</li></ul><p>You might shrug off these functionalities as basic — we did too, at first…</p><h3>It’s Just Drawing a Few Rectangles, How Hard Could It Be?</h3><p>Motiff is packed with designer-friendly features such as auto layout and component instances, which introduce a complex web of data relationships. For instance, changing a layer’s size means its parent frame needs rearranging; altering a vector layer necessitates a redraw of its associated Boolean layer; tweaking a component might impact hundreds or thousands of its derived instances.</p><p>At the end of 2021, as we began crafting Motiff, the computation challenges in manipulating this data web didn’t fully register with us.</p><p>Just days into the project, by leveraging Skia’s C++ code, our front-end engineers conjured up a demo that could draw a few rectangles using the good ol’ React + Redux stack. Encouraged by this early success, the team managed to nail down most of the editor functionalities in a few months. It looked like we were on the brink of release, but then we hit two major snags: we hadn’t integrated the component instances yet, and we hadn’t conducted any performance stress tests.</p><p>It was only when we started to grapple with these issues that we had our “oh no” moment. Between struggling with complex logic and watching our frame rates hit the single digits, it dawned on us: we had strayed from the right path from the start. We had to go back to the drawing board and rework our computational architecture, painstakingly extracting and transferring the relevant logic from React + Redux to a new C++-based framework.</p><p>In hindsight, Motiff’s unique feature set led us down this path:</p><ul><li>Compared to traditional GUIs: Features like component instances trigger extensive computations, and many designers are accustomed to stacking numerous layers on an infinite canvas. They navigate quickly through zooming and selecting multiple layers for bulk movement. In contrast, traditional GUI scenarios don’t typically face such intensive update and rendering requirements. Or if they do, a bit of lag is often deemed acceptable. Systems like React + Redux and Vue are designed with the mindset of updating a small piece of a massive GUI. Skia, serving as the foundational library for traditional GUIs, isn’t optimized for handling mass updates either.</li><li>Compared to gaming: Games don’t require high precision in rendering; objects not visible within the viewport can be ignored or not rendered. Distant objects can be simplified or merged, and sometimes even completely disregarded. When porting triple-A titles to the handheld Switch console, these techniques are employed to reduce computational demands. However, Motiff’s users expect highly accurate rendering, even for rapid zooming on an infinite canvas. What’s more, running Motiff in the memory-constrained environment of WebAssembly means we can’t simply transplant batching techniques from games wholesale.</li></ul><p>These contrasts forced us to think outside the box, drawing on the best practices from GUI and game architectures but grounded in first principles and original thought. Next up, I’ll dive into the specific optimizations we deployed for three distinct business scenarios.</p><h3>Precision Updates — Smaller Moves, Faster Speed</h3><p>In Motiff, design drafts are viewed as a Key-Value (K-V) database, where each design element (such as rectangles, circles, text, etc.) is identified by a key consisting of a unique identifier (NodeId) and a property key (PropKey). Each key corresponds to a Value, which can be a number, string, color code, position coordinates, etc., depending on the type of property.</p><p>For example, if we draw a rectangle in Motiff, the data in the files can be represented as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/896/1*X2XsHEd5pJAVMaPp3p_lmA@2x.png" /></figure><p>It can also be seen as a Map to help us understand the content of this blog post. For such a Map, we have three basic operations:</p><ul><li>Create: Create a K-V Pair</li><li>Update: Update a K-V Pair</li><li>Remove: Delete a K-V Pair</li></ul><p>Any editing action is a combination of such operations in this K-V database. For instance, when a designer starts a new interface design through Option copy, the moment the mouse drags, Motiff needs to create thousands of new K-V Pairs in the files through the Create operation.</p><p>When the size of a layer changes, its parent frame also needs to be re-layout. In the initial demo version, Motiff accomplished this by adding extra logic in the property update function, as shown below:</p><pre>setWidth(width: number) {<br>    this.width = width<br>    this.getAncestors().forEach(node =&gt; node.reLayout())<br>}</pre><p>However, this method of immediate updates, while ensuring data consistency, could also lead to performance issues, especially during bulk editing. For example, when bulk editing layers, the code in this scenario means the editor needs to adjust the position of each selected layer. However, However, stuttering often occurs during the adjustment process.</p><p>In Motiff, the scale of the computations associated with such manipulations is much larger than the volume of data being directly updated. So, it’s easy to conceive that a reasonable approach is to trigger “related” recalculations only for the updated data after its update.</p><p>To enhance performance, Motiff adopted a strategy of batch updating, by combining multiple fragmented update operations into a single batch operation. The merged algorithm makes it convenient for programmers to optimize performance, reducing unnecessary computations. In theory, we could first batch update a selection of Nodes directly.</p><p>During the entire bulk editing process, each attribute of each node would only be computed once. This is the foundation of Motiff’s data computation algorithm.</p><p>Motiff encapsulates these algorithms for maintaining files consistency into separate Systems. When the files is modified by the user’s direct actions, related Systems are triggered to execute. They run in a certain order, gradually updating the files‘ related properties to ensure the files’ final consistency.</p><p>Here are two sets of data, moving 1024 rectangles inside a Boolean frame, comparing individual updates to batch updates:</p><ul><li>Individual updates: 20647 ms</li><li>Batch updates: 54 ms</li></ul><h3>Opening Large Files — A Distinctly Different Challenge from Editing</h3><p>Precision updates are based on change events. However, it is not necessary to convert files recovered from compressed archives into an intermediary state of change events initially. At the same time, the processing algorithm based on change events needs to consider both the existing files data and the new modifications, making its algorithm complexity higher. To optimize the speed of opening files, each System has implemented a fast batch tree traversal algorithm specifically for bulk creation scenarios. Compressed archives are first decompressed and deserialized into an initial node tree, and then each System traverses this tree to populate the properties that need to be calculated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FmOWg6C_W2fyK6tT.png" /></figure><p>Here are two sets of data for opening file with 4000 rectangles, comparing an optimized algorithm to a non-optimized algorithm:</p><ul><li>Non-optimized algorithm: 758 ms</li><li>Optimized algorithm: 341 ms</li></ul><p>Besides the opening speed, another challenge is whether there is enough memory to open large files. A Node’s properties can number in the hundreds, but often only a few dozen are used. If defined in the most intuitive way, each Node as a Struct with hundreds of properties would consume a lot of memory to indicate that this Node does not have this property.</p><p>However, if not using a Struct and instead storing objects like dynamic typed languages using a Map, it would cause a lot of memory fragmentation and slow down the property read/write speed. This leads to our memory management strategy not being able to choose a single solution but needing to make different memory layout choices for different properties.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WA7NWgLkudrbNapL.png" /></figure><p>Here are two sets of data, holding ten thousand rectangles, comparing optimized memory layout to using a Map:</p><ul><li>Storing with Maps entirely: 183 MB</li><li>Optimized memory layout: 4.3 MB</li></ul><p>In addition to more precisely using memory, we have also supported new features of the latest version browsers, raising the memory limit from 2GB to 4GB. This allows us to put more layers within a single page.</p><p>Currently, Motiff can ensure a smooth editing experience for users working with files that contain up to a million layers on a single page.</p><h3>High-Performance Rendering Process — The Final Round of Smoothness Calculation</h3><p>In the early stages of development, we chose Skia as our rendering engine. Skia is an open-source graphics library, and it serves as the rendering engine for Chrome, Android, and Flutter. With Skia, we could easily draw various layers:</p><pre>void draw(SkCanvas* canvas) {<br>    SkPaint p;<br>    p.setColor(SK_ColorRED);<br>    p.setAntiAlias(true);<br>    p.setStyle(SkPaint::kStroke_Style);<br>    p.setStrokeWidth(10);<br>    canvas-&gt;drawLine(20, 20, 100, 100, p);<br>}</pre><p>At the outset, our team held an optimistic view that since Skia was the rendering engine behind a multitude of mainstream GUI libraries, it would naturally excel in efficiently rendering Motiff as well. Our assumption was straightforward: simply utilize Skia’s drawing API to update layers following any changes in their data, enabling us to render the design drafts directly within the browser. Nonetheless, upon deploying Skia for these tasks, the anticipated ideal performance fell short of our expectations, and the underlying issues were far from straightforward:</p><ol><li>Skia forces a reranking of rendering instructions that do not match the performance we could achieve with manual arrangements in understanding business scenarios. Moreover, this reranking itself incurs a significant performance cost.</li><li>Due to the need for reranking, Skia accumulates rendering instructions, reranks them, and then executes all rendering instructions at once. This makes it difficult to limit rendering time within a specified range.</li><li>For the same path, there are different rendering algorithms. Skia selects the algorithm based on fixed rules, whereas we could choose the most optimal algorithm based on our business scenarios.</li></ol><p>Eventually, we used WebGL to implement Motiff’s own rendering engine, completely saving the instruction reranking time, while also optimizing paths and effect algorithms, making the overall performance 2.27 times that of the initial version implemented with Skia.</p><p>The complexity of achieving high-performance rendering goes beyond this. Any rendering stuttering can easily be noticed by users, particularly when zooming in and out of the canvas area, thereby affecting the user experience. However, blindly reducing the rendering time per frame would significantly prolong the overall rendering time, resulting in users seeing blanks in the files content for an extended period. The biggest challenge in rendering is how to render more content within a single display refresh cycle, while minimizing the probability of exceeding the time limit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Rq_KrV0P4wTyu15e.png" /></figure><p>The scale of files is limitless, while the performance of devices is limited. Obviously, it’s impossible to guarantee that all visible files content can be rendered within a single display refresh cycle, regardless of the file size. We use a technique called “tiling”, which divides the screen into numerous fixed-size areas. The rendering target is no longer the entire screen but each individual tile.</p><p>Tiling has many benefits. It not only divides tasks but also establishes a unit of cache. For example, during the editing process by users, only the tiles within the editing area need to be updated, while the other tiles remain unchanged.</p><p>During the zooming process of the user’s canvas area, new tiles can also replace previous ones with different zoom ratios, as the difference in rendering content is merely a change in zoom ratio.</p><p>If a tile contains a lot of content, it might not be completely rendered within a single display refresh cycle. In our initial rendering engine, either we forced the rendering of this tile, causing a timeout, or we further divided this tile, extending the overall rendering time. In the current Motiff rendering engine, we have the ability to interrupt the current rendering task and continue this rendering task in the next display refresh cycle, thus minimizing the overall rendering time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wHiTtpNykxl9PEoW.png" /></figure><p>In addition, we developed a unique data structure dedicated to rendering, named RenderTree. This structure is finely tuned to contain precisely the data necessary for rendering, which guarantees a continuous stream of data in memory. By harnessing the principle of spatial locality in CPU memory access, we’ve significantly enhanced access efficiency. Concurrently, we’ve implemented caching for the outcomes of computations related to rendering. This strategy effectively minimizes the computational load needed during the rendering phase, especially when files are in a static state and not undergoing edits.</p><h3>A Brief Recap</h3><p>In the world of Motiff, nothing takes precedence over performance. The content of this blog post represents just a portion of the efforts we’ve made toward enhancing Motiff’s performance. Through essential improvements in data storage, memory management, update protocols, and rendering tactics, we’ve empowered designers to manipulate design projects that consist of millions of layers. The broader the capability of the tool in handling extensive design projects, the smaller the creative limitations imposed on the designer. With ongoing changes in design methodologies, Motiff is on a continuous journey to upgrade its framework for computing data, aiming to fulfill the ever-escalating expectations for power and stability from designers.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=527d902d6847" width="1" height="1" alt=""><hr><p><a href="https://medium.com/motiff/performance-magic-behind-motiff-527d902d6847">Performance magic behind Motiff</a> was originally published in <a href="https://medium.com/motiff">Motiff Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Welcome to Motiff: UI design tool for AI era]]></title>
            <link>https://medium.com/motiff/welcome-to-motiff-ui-design-tool-for-ai-era-17187f535e92?source=rss-80cfafbc3faa------2</link>
            <guid isPermaLink="false">https://medium.com/p/17187f535e92</guid>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[ux-design]]></category>
            <category><![CDATA[ui-design]]></category>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Motiff]]></dc:creator>
            <pubDate>Tue, 18 Jun 2024 03:49:12 GMT</pubDate>
            <atom:updated>2024-06-18T03:49:12.231Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*voJk0mA4Z9kDt4mrWbfsCA.png" /></figure><h3>Rewinding to 2021</h3><p>Our journey on the <a href="http://motiff.com/">Motiff</a> project took off in October 2021.</p><p>Unlike many startup stories filled with narratives of gathering a dream team, we already had a robust team with a strong engineering culture and some brilliant AI scientists. This group had previously launched several impactful global projects.</p><p>Looking back at the initial spark that led us to venture into a new business direction, it involves our experience with Github Copilot. Initially, most of our engineers were skeptical about its utility, feeling the era of AI guiding coding was far off. However, it didn’t take long before almost every engineer on our team became a Copilot convert. This profound turnaround highlighted a potent truth: Integrating AI into professional tools, given the right user scenario, could revolutionize efficiency. Witnessing the transformative potential of AI in professional tools sparked our excitement to dive in.</p><p>Having been inspired, the next big step was to determine “what we should focus on”. Following intense discussions, we settled on revolutionizing the “product design” realm for two main reasons:</p><ul><li>Our team had a longstanding passion and practice in designing and developing online products. Also, our members have always been keen on about utilizing advanced tools. We were confident in our expertise in this domain.</li><li>Observing the vast world of UI revealed a fascinating pattern: despite variations in style, the similarity in design patterns across interfaces was striking. This consistency bolstered our belief in AI’s potential to make significant contributions to this field.</li></ul><p>Thus, we set off on our mission: Designing an AI-Era Design Tool. And that marked the beginning of our journey. Welcome to the future of UI Design with Motiff.</p><h3>What features does a design tool for AI era need in its editor?</h3><p>The editor lies at the heart of a product design tool. Sketch revolutionized the editing process by simplifying and improving Photoshop to develop a UI designer-focused tool. This was essentially an “editor revolution”. The “infinite canvas”, “artboard”, and “vector tools” of Sketch defined the vector era of professional UI design tools. And then came Figma, using “collaboration” as the game-changer — the editor was directly put onto the cloud where designers could collaborate in real-time via a browser. This new revolution saw Figma outrun Sketch to become the more popular tool of the day.</p><p>Returning to Motiff, if we aim to spark yet another revolution for the AI era, what kind of editor would we need? Initially, we pondered broader questions: Should we completely overthrow current definitions or draw inspiration from them? If AI is to play a significant role in design tools, how different will the next-generation editor be from what we’re familiar with now?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jXcDQxIjDsbsH4k8.png" /></figure><p>These questions were complex with no straightforward answers. Still, our reflections revealed:</p><ul><li>AI’s impact on the editor might be incremental, as enhancing each feature independently with AI seemed like a standalone proposition. For continuous feedback and improvement, offering a comprehensive editor was crucial.</li><li>“AI generation” could represent a non-incremental leap forward, inspired by the rapid advancements of LLM. However, we believe that superior designs necessitate human refinement, making a detailed and comprehensive editor indispensable.</li></ul><p>Our journey of building and rethinking made one thing clear: a comprehensive editor was essential. It served as the foundation of a building, upon which we could effectively put the impressive “AI constructions” to good use.</p><p>Today, if you’re exploring <a href="http://motiff.com/">Motiff</a>, you’re interacting with a professional editor equipped with cloud collaboration capabilities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*joqNZXzzZ87CxkMh.png" /></figure><p>Creating a comprehensive editor demanded significant effort from the Motiff team. We owe a debt of gratitude to Figma for paving the way. Figma’s creation of a complex yet refined online graphic editor has been a source of constant learning for us. Our product and technology team have benefited immensely from Figma’s blog shares. Moreover, we realized the critical importance of “performance” for an online graphic editor. Figma has always excelled in this, and Motiff aimed to do even better. In fact, we have optimized performance in many key scenarios to surpass what was previously possible. In our most recent robustness testing, Motiff was able to smoothly edit million layers in a single canvas, likely making us the world’s first online graphic editor to achieve this level of performance.</p><h3>Motiff’s positioning on AI application</h3><p>Ever since the inception of Motiff, examining how to incorporate AI capabilities into professional design tools has been an essential topic of discussion for our team.</p><p>What problems can AI solve for UI design? After several brainstorming sessions, we have a long list of cool “ideas”. Although it wouldn’t be challenging to create prototypes for these ideas, the real obstacle has never been the lack of good ideas — it lies in whether these ideas could be stably and accurately implemented by AI.</p><p>In the past, almost any business requirement could be accomplished by product and development engineering — it was simply a matter of development time and quality. However, when it comes to AI functionalities, the key lies in finding a “PTF: Product — Technology Fit”. Technological feasibility and product design need to meet at a certain intersection. We need to understand the range and boundaries of AI models’ capabilities and define suitable product forms for accurate and stable application of existing AI capabilities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xJy1p6u-e0_fjZqU.png" /></figure><p>From 2021 until now, we have managed to pinpoint some “PTF” scenarios and successfully implement them, providing direct assistance to designers and design teams in their day-to-day work.</p><h3>Redefine all the design tools</h3><p>One of our keys to innovation has been closely observing designers’ daily routines. We asked ourselves, “If there are high-frequency but complex operations in their workflow, could AI simplify these?” Our product managers engaged in what could be dubbed a “boring yet interesting” activity: they analyzed hours of screen recordings from early Motiff users, identifying patterns, frequently used tools, and common procedures. This deep dive gave us incredible insights into how repetitive tasks dominate the design process.</p><h3>The quest for repetition</h3><p>Surprisingly, or perhaps unsurprisingly, we found that more than 50% of a product designer’s operations aimed at “repetition”. This cycle of copy-pasting, although mundane, is fundamental in ensuring consistency across the product’s UI, hence reducing the cognitive load on the end-user.</p><p>“Paste” isn’t the end of repetition for designers, who often use “copy-paste” for consistent design patterns with slight variations to suit different contents or reuse existing information.</p><p>“AI Reduplication” is birthed based on our reflections on the essence of repetition, a tool Motiff developed that streamlines this process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iyfjR3PjkQWUNdfm.png" /></figure><p>If you want to learn more about the story behind it, you can check out our product manager Chloe’s thoughts on “AI Reduplication” in her share: <a href="https://motiff.com/blog/ai-reduplication-fast-duplicate-smart-replace"><em>“AI Reduplication: Fast duplicate, smart replace”</em></a>.</p><h3>Auto Layout is excellent in many scenarios, but a disaster in others</h3><p>The auto layout feature invented by Figma allows product designers to have a better structured layout capability — it’s a groundbreaking feature. Motiff has also carried forward this highly practical function. However, while observing designers using auto layout on Motiff, we noted some phenomena:</p><ul><li>Many designers never used Auto Layout because they thought it had a high learning curve.</li><li>If learning to use auto layout is a “hard mode”, then modifying (especially other’s) auto layout is “hell mode”. Absolute positioning can solve limited problems, but auto layout, when nested layer upon layer, makes it hard to go back to free-form.</li></ul><p>Sho Kuwamoto’s 2021 Schema speech about classification of design into Free-form Design and Structured Design was quite enlightening. Given that designers need both free-form and structured layouts, we were inspired to find a solution: Is there a way to make it easier for users to create structured layouts while making the transition between freedom and structure less burdensome?</p><p>This is how the “AI Layout” feature came to be.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VBN2uMgX2afjy48L.png" /></figure><p>Currently, we support two modes to address the above problems. If you want to learn more, you can check out our Product Manager, Tim’s sharing <a href="https://motiff.com/blog/ai-layout-the-dream-of-dynamic-flexibility"><em>“AI Layout: The dream of dynamic flexibility”</em></a>. We hope Motiff, with AI, can help designers excel in both Freedom Design and Structured Design.</p><h3>Design System: Effective efficiency improvement from the production process perspective</h3><p>Since the pioneering concept of design systems was introduced in “Atomic Design,” they have long been regarded as the best practice for keeping consistency in design.</p><p>We believe the true effectiveness of design systems began with the shift to collaborative cloud-based tools, which addressed many synchronization challenges. However, collaboration hasn’t solved every issue. For instance, creating a design system requires significant time for organization. And each team’s library of components and guidelines can be complex, making maintenance and application challenging.</p><p>If we examine the production process closely, we find it is laden with repetitive and creatively undemanding tasks. Many seasoned product designers find themselves mired in these tasks, leading them to question their value as designers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*EXrBujlRDuFxLh3w.png" /></figure><p>Integrating AI into the practice of design systems seems like an intuitive and natural idea. AI can serve as an assistant in various scenarios, taking over tedious tasks. Currently, Motiff has leveraged AI to significantly enhance the efficiency of design system practices, including organizing interface inventories more efficiently when creating design systems, making system iterations more real-time during maintenance, and enabling designers to easily align with standards through intelligent checks during application.</p><p>If you want to learn more about AI Design System, you can check out Frank and Otis’s thoughts on it in <a href="https://motiff.com/blog/ai-design-system-creator"><em>“AI Design System Creator: A new practice in the AI era with just one click”</em></a><em>.</em></p><h3>Motiff Labs: Exploring the possibilities of collaboration between AI and humans</h3><p>What does the future of integrating AI and UI fields look like? The debate over whether AI will entirely replace product designers has become a hot topic in the industry. Motiff believes that human creativity and aesthetics are challenging to replace in the long run, but the transformation of design tools could lead to “collaboration between AI and humans.” Motiff Labs is exploring these new ways of collaboration.</p><h4>AI Generates UI: Designers dream it, AI builds it.</h4><p>The development of LLM has made “generation” the hottest topic. After all, we have seen the rapid development of text-to-image; there is no reason text-to-UI cannot be implemented. Compared to producing a cool “AI Generates UI Demo”, Motiff’s thinking on “generation” more carefully evaluates one thing: what does AI need to “generate” that is more valuable to the current work of product designers?</p><p>We believe that value will mainly arise in two directions:</p><ul><li>For newly established projects, designers only have a vague “Intention”. Designers need more inspirations to refer to before doing specific designs. At this time, it is valuable for AI to quickly provide some blue prints</li><li>For projects practicing design systems, designers need to build new interfaces more quickly with the existing design system. The Intention at this time might be a description or a Wireframe. If the narrative of the Intention is sufficient and the design system is perfect, it is possible to let AI generate the interface directly.</li></ul><p>Our work in “generate” has been progressively developing around these two directions and continuously exploring how to integrate the capabilities of LLM.</p><h4>AI Magic Box: Designers drag a box, AI finds the matches.</h4><p>Just as product managers and designers continually communicate to complete a new product design, we believe that the relationship between humans and AI is not just a “top-down delivery” but can form a “Round Table” collaborative model.</p><p>The inspiration for the AI Magic Box was born under this assumption. We’ve observed that most product designs go through numerous sketches and trials by designers before settling on an appropriate solution. “Repeating” the use of previous elements or structures is a very frequent operation. Our previously introduced AI Duplication helps designers improve the efficiency of “repetition” in specific scenarios, while the AI Magic Box aims to enhance the efficiency from another dimension — dramatically improving the efficiency from having a nearly “repeated” “intention” to having this “intention” “presented” on the canvas interface.</p><p>With the AI Magic Box, designers only need to draw a box to “sketch their intent”, and AI can then “refine the intent” based on the box and the context of its location.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/0*GoodoAMo1LvZy1wI.png" /></figure><p>Although the current capabilities of the AI Magic Box are limited to recalling past repetitive elements, we believe it will be able and combine generation to create more magic in the future. For more insights, you can read <a href="https://motiff.com/blog/ai-magic-box-drag-a-box-for-future"><em>“AI Magic Box: Drag a box for future”</em></a><em>.</em></p><h3>Welcome to try the design tool for AI era</h3><p>June 2024, after polishing for two and a half years, we finally present to you Motiff — design tool for AI era. We encourage you and your teams to explore Motiff’s innovative AI features. See firsthand how a product design tool in the AI era brings about improvements in efficiency, creativity, and productivity.</p><p>Motiff believes the value of a product design tool in the AI era lies in assisting designers and design teams. Therefore, we have offered a fair price so that you and your team can enjoy a comprehensive, fully functional, and high-performing basic design tool. At the same time, we’re offering our AI functions for free for a limited time.</p><p>We look forward to AI helping you escape tedious work and returning to the essence of design. Try Motiff now and start your AI adventure right the way.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=17187f535e92" width="1" height="1" alt=""><hr><p><a href="https://medium.com/motiff/welcome-to-motiff-ui-design-tool-for-ai-era-17187f535e92">Welcome to Motiff: UI design tool for AI era</a> was originally published in <a href="https://medium.com/motiff">Motiff Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI Reduplication: Fast duplicate, smart replace]]></title>
            <link>https://medium.com/motiff/ai-reduplication-fast-duplicate-smart-replace-77e2c0cd7992?source=rss-80cfafbc3faa------2</link>
            <guid isPermaLink="false">https://medium.com/p/77e2c0cd7992</guid>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[ui-design]]></category>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[ux-design]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Motiff]]></dc:creator>
            <pubDate>Mon, 17 Jun 2024 15:16:29 GMT</pubDate>
            <atom:updated>2024-06-17T15:16:29.545Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*37cP0JfZbLgBybJBNeqM8A.png" /></figure><p>As we consider the question, “how to integrate AI to simplify the UI design process for designers?” it naturally leads us to explore “how a set of UI elements is drawn step by step?”</p><p>We observed the workflows of three designers in our team, recording all the features they used and how they used them during the design process. This can be summarized in the image below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*OR7uaEqQ_cEkgsqy.png" /></figure><h3>Copy&amp;Paste: One of the most common user activity</h3><p>To maintain consistency in the product experience, the use of repetition is prevalent in the UI design. Repetition can be a dividing line, a color, a projection effect, a set of text styles (i.e. the combination of font size and font weight), a layout pattern, or a type of design style. Repetition can also be a button, a line in a list, a card, or a dialog.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0weruLDHnVxibhrJ.png" /></figure><p>It is easier to copy and paste similar content and then make some adjustments than to redraw it. So, it perfectly explains why copy and paste are used so often.</p><h3>Copy&amp;Paste + AI = ?</h3><p>The key question is: what can AI do in a copy-and-paste scenario?</p><p>Returning to what users truly do, we focus on the copy-and-paste context this time, classify the contents copied, and consider the actions occurring before and after.</p><p>We found that the repetitive elements tend to be alike but slightly different. After copy-pasting, some adjustments are typically needed to address these differences. Perhaps this “tweaking” can be done by AI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MJlr9qQJzZKtFwtP.png" /></figure><p>Making changes requires expertise.</p><p>Some changes are made to simulate real interfaces or to showcase the possible layout shifts arising from different content for developers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LgrBK1BacRWLOi5l.png" /></figure><p>For example:</p><ul><li>Case A: Repeated rows in the message list Action → Duplicate a row, replace the text and images, and adjust the relative position between rows.</li><li>Case B: Repetitive content cards in the masonry layout. Action → Duplicate a content card, replace the text and images, and adjust the relative position between cards.</li></ul><p>Such adjustments typically require designers to search for similar images, write similar text, and then replace them with duplicates. Although this process sounds simple, sourcing images and writing text can be tedious. In such cases, AI happens to have the ability to complete this simple yet tedious task.</p><h3>From idea to implementation: Challenges and Solutions</h3><p>Layouts that seem to be consistent may actually have significant differences.</p><p>Replacing text and images into duplicates seems simple, but involves understanding of layout design and making adaptive adjustments.</p><p>Directly replacing content with duplicates may lead to the following issues:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fhp75NUVOs1a3RsN.png" /></figure><p>These types of issues often arise from text replacement, where changes in text length potentially lead to the following variables:</p><ul><li>How should the text align? Left, center, or right?</li><li>If the text is in a frame with a background color or border (e.g. a button), should the frame resize accordingly?</li><li>Should the subsequent text content also change its position?</li></ul><p>Of course, if the input has been applied Auto Layout that can adapt to changes in text length, the above issues are easily resolved. However, we cannot assume users are used to using auto layout or willing to do extra steps before starting AI Reduplication.</p><p>AI Reduplication requires the ability to handle various inputs, understand users’ layout patterns, and make adjustments as accurately as possible.</p><p>To solve this problem, when replacing content, we will use another AI feature of Motiff — AI Layout. It can calculate the position and size of all layers after content replacement, apply the calculation result to the AI-reduplicated copy, and present the correct layout to the user.</p><h3>Images and texts have their fixed matches</h3><p>Most of the time, our expectations for AI-generated content are not high. We simply need it to be correctly categorized with variations in a certain range. For example, we can generate addresses, dates in the same format, cell phone numbers, etc.</p><p>However, sometimes we hope to maintain a certain level of relevance among various elements in a group of inputs, for example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jxzYko2gThHNNgDg.png" /></figure><p>The knowledge required for this type of content matching doesn’t entirely fall under common knowledge. Without additional input or instructions, AI may struggle to address this scenario effectively.</p><p>Nevertheless, these elements may be well-known to feature users, as they have been reused in prior design files. They might consist of content combinations that are previously used and manually arranged by designers.</p><p>For such scenarios, AI Reduplication not only refers to the text and image content of prior design files but also refers the “fixed collocations” between content, making the reduplicated results more suitable for users’ actual scenarios.</p><h3>AI’s learning speed VS. Designers’ creative tempo</h3><p>One of the research topics in the field of search is: How to improve the update speed of search indexes?</p><p>An index is a data structure that enhances data retrieval speed. In search engines, indexes are used to quickly locate web pages containing specific keywords. It’s similar to the table of contents of a book. We can directly find relevant chapters without having to go through the entire book.</p><p>During searches, what is being looked up isn’t the full real content but rather the index. The actual content is changing every minute, and the index is trying to catch up with these updates, but the time lag cannot be avoided.</p><p>This issue is particularly evident for tools like search engines that need to retrieve vast amounts of data. For highly important websites, index updates could take place within minutes to hours; whereas for less frequently updated or relatively less important websites, updates might be delayed by several days or even weeks.</p><p>AI Reduplication faces similar challenges.</p><p>There is a process that AI needs to go through to learn your prior designs: recognizing repeated sections in the design files, understanding their corresponding and group relationships, establishing indexes, and so forth.</p><p>Designers continue to create new content every day, and AI is also continuously learning, but its speed is not as instantaneous as imagined.</p><p>UI design is different from search, and delays in search engine indexing may be difficult for users to perceive. However, AI Reduplication learns at a slower pace, which may impact the usability of the feature in some cases.</p><p>Imagine this scenario:</p><p>A designer has just drafted a new list view for a course page and imports several new images. Then, the designer moves on to construct the grid view for the same page. Ideally, the grid view could use the same images and text as the list view. AI Reduplication cannot invoke these newly created image and text contents in this scenario.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Y33vtQi_7-pU72Xl.png" /></figure><p>To reduce learning time, the structure of the AI Reduplication index has undergone several revisions. It evolved from individual indexes for each user to shared indexes for the same content. From uniform updates at regular intervals to more detailed updates for groups of files or frames.</p><p>After several revisions, we have greatly reduced the cost and improved the speed of AI Learning.</p><p>The current timeliness is as follows:</p><ul><li>For files that are newly included in the scope of AI Learning (such as imported files), indexes will be generated within a few minutes.</li><li>For updates to existing files within the scope of AI Learning, AI will incorporate the updates into the index within 24 hours (actual update times may vary depending on the concurrency of updates).</li></ul><p>However, this doesn’t meet the scenario we just envisioned. We still need to continue observing the actual needs of users for index updates and carry out continuous optimization.</p><h3>Continuous Exploration</h3><p>From ideas to implementation, we’ve encountered a lot of challenges. While a small portion has been addressed, many more may remain undiscovered or are temporarily unresolved due to constraints such as time, technology, cost, or understanding of certain scenarios.</p><p>For example:</p><ul><li>The issue of learning speed discussed above.</li><li>The issue of image generation. (Currently, AI Reduplication can only refer to images used in prior design files and cannot generate new ones or introduce external images.)</li><li>The issue of dealing with multiple inputs. When users input multiple pieces of content simultaneously, how can we determine the segmentation of content within mere seconds, and identify whether there is a correlation among the segmented contents? If there is, should the subsequent outputs maintain this correlation?</li></ul><p>There are quite a few challenges, but our research and experiments won’t stop. When we come up with a solution, we will launch a new version of AI Reduplication as soon as possible.</p><h3>Behind the scenes: Why Reduplication?</h3><p>Before launching this feature, there was an unexpected discussion about the name for this functionality.</p><p>We had multiple discussions about the word choice. The main candidates were: Copy, Duplication, Replication, and Reduplication.</p><p>After careful analysis, we found that:</p><ul><li>Copy, Duplication, and Replication are used in different scenarios. Some of them are commonly used in daily conversations, while others are applied in specific fields. Despite these differences, they all emphasize that the duplicate is exactly the same as the original.</li><li>Reduplication is relatively less common in everyday language. In terms of usage of this word, it doesn’t necessarily emphasize an exact match between the duplicate and the original. The degree of consistency depends on the specific context. For example:</li><li>In art, “reduplicate” can refer to imitating the style of an artist or characteristics of a piece of work. The repetition here doesn’t aim for an exact copy but tries to capture and reproduce the spirit or style of the original.</li><li>In Biology, “reduplication” can refer to the process of duplicating genes or chromosomes, a key mechanism for evolution and functional diversification. Such repetition might lead to changes in gene expression, and even identical gene duplicates can diverge functionally due to environmental factors and mutations.</li></ul><p>The AI + copy and paste feature creates objects similar but different from the original, which aligns with the meaning of Reduplicate.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=77e2c0cd7992" width="1" height="1" alt=""><hr><p><a href="https://medium.com/motiff/ai-reduplication-fast-duplicate-smart-replace-77e2c0cd7992">AI Reduplication: Fast duplicate, smart replace</a> was originally published in <a href="https://medium.com/motiff">Motiff Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI Layout: The dream of dynamic flexibility]]></title>
            <link>https://medium.com/motiff/ai-layout-the-dream-of-dynamic-flexibility-b365e136e50c?source=rss-80cfafbc3faa------2</link>
            <guid isPermaLink="false">https://medium.com/p/b365e136e50c</guid>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[ui-design]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ux-design]]></category>
            <category><![CDATA[ux]]></category>
            <dc:creator><![CDATA[Motiff]]></dc:creator>
            <pubDate>Mon, 17 Jun 2024 14:52:30 GMT</pubDate>
            <atom:updated>2024-06-17T14:52:30.047Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9cK1sAQyCd1OWIeJWpC5yw.png" /></figure><h3>More Flexible Dream</h3><h4>A Big fan of Auto Layout</h4><p>I’ve always been a big fan of Figma’s Auto Layout.</p><p>Before the launch of Auto Layout, resizing designs was a manual task. For instance, when you’re designing two buttons and you want to make the text in one of the buttons longer, you’d have to manually resize that button to to accommodate the extra characters. Then, you’d move the other button a certain distance in the same direction to keep the spacing consistent.</p><p>It is tedious, but it’s a repetitive task that designers often need to undertake. What’s even more frustrating is that when the design content is nearly completed, a small change can require you to manually adjust many layers, and you have no choice.</p><p>Therefore, when I first learned about Auto Layout and saw that buttons with Auto Layout can resize with their text, it was truly exciting. I will always be grateful to Figma for opening the door to a new flexible world for designers.</p><p>However, as designers continue to use Auto Layout in their designs, many have become believers of Auto Layout. They prefer to use Auto Layout in their designs, which has caused some dilemmas.</p><ul><li>When the current Auto Layout does not support the adjustments you want, we could only manually remove it layer by layer. At this point, Auto Layout has turned into a constraint for freeform design.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XtoUQ8fuCsLL9IUh.png" /></figure><ul><li>When designers collaborate on design files, their habits of adding Auto Layout can differ among individuals. They often have to inspect the Auto Layout properties layer by layer before beginning work on that file. Alternatively, you may have to choose to remove all Auto Layout added by others.</li></ul><p>It was not until one day, when I saw Sho Kuwamoto’s presentation on <a href="https://tinyurl.com/2b3cjlac"><em>Opening Keynote — Conference Kickoff — Sho Kuwamoto (Schema 2021)</em></a><em> </em>, that I was inspired. Drag &amp; Drop represents Free-form design, while the use of Auto Layout represents Structured Design. The correct way to work involves flexibly using both methods according to work needs. It is not advisable to prefer Auto Layout for everything because it makes edits easier.</p><p>But a question emerged in my mind. It’s certain that designers have the option to decide whether to add Auto Layout to layers, thus categorizing them as Free-form or Structured. However, it seems that categorizing into Free-form and Structured isn’t dictated by the content of the layers. Instead, it’s more influenced by the adjustments that are intended to be made.</p><p>For instance, when a designer is exploring multiple layout changes for a card, the card should be categorized as Free-form, allowing for more free-form exploration. However, if the designer wishes to make some “structured” adjustments, such as adjusting the spacing of layers within the card, then the card should be categorized as Structured.</p><p>I suddenly realized that what designers want is the flexibility to switch between Free-form and Structured based on the adjustments that are intended to be made.</p><h3>Before We Decide To Set Off</h3><p>After the initial inspiration, the idea of creating a flexible switch between Free-form and Structured design was prioritized.</p><p>We have envisioned a preliminary concept. Imagine entering a temporary structured mode where all edits become structured adjustments. In this mode, you’d have the flexibility to adjust spacing and padding, reorder and duplicate items, among others. This enables you to create designs that expand or contract to fit their contents, and reflow as their contents change. After completing these edits, you exit this mode, and everything switches back to Free-form Design, where you can drag &amp; drop designs. Doesn’t that sound cool?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*eQPboR66of_Ygde3.png" /></figure><p>However, the challenge we face is that if we want to create a flexible switch between Free-form and Structured, we need the capability to automatically generate Auto Layouts that can take us into the world of Structured design.</p><p>Despite the complexity of layouts, they can actually be abstracted into patterns of alignment, spacing, and padding values between layers. Learning these precise, abstracted rules is something AI can achieve.</p><p>Therefore, we decided to start building AI Layout. Once AI has learned from enough pages and recognized enough layouts, it can apply structure to designs. These tasks, accomplished by AI, are not different from those undertaken by designers who invest significant time and effort. AI can serve as a bridge between Free-form Design and Structured Design.</p><p>This was the beginning of our journey to create the AI Layout.</p><h3>Building AI Layout</h3><p>From the presentation <a href="https://tinyurl.com/26jlyxkl"><em>Designing Auto Layout V4</em></a> by Joel Miller and Oscar Nilsson at Figma’s Config 2022, I gained more insight into how users are utilizing the Auto Layout feature:</p><ul><li>In Figma, only 20% of users use Auto Layout for most of their work, according to data from Config 2022 — though this percentage may be higher now.</li><li>The barrier to use auto layout is high, making it difficult for many designers to understand complex layout structures, especially those created by others. As a result, many designers completely remove auto layout just to make simple edits.</li></ul><p>Therefore, we have defined the profiles of two user groups:</p><ul><li>Users who do not use Auto Layout: They are not very familiar with its properties and rules. We aim to provide them with a Smarter Temporary Structure to boost efficiency through AI Layout.</li><li>Auto Layout users: They are familiar with the properties and rules of Auto Layout. When they need to make temporary structural adjustments to designs that have not previously had auto layout added, AI layout allows them to make these adjustments with a single click without having to add auto layout layer by layer.</li></ul><h3>Determining the Scope of Effect</h3><p>Before building AI Layout — AI builds temporary structure, the first thing we need to do is determine the scope of effect.</p><p>Initially, my intuition was that applying effects to selection would offer users more control and a superior experience, so we then created a prototype based on this approach. However, in practical experience, we discovered some problems with it. For instance, when we wanted to adjust the spacing or padding of the first card on the following screen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KpR5XuUbrCDsaeM6.png" /></figure><ul><li>For Auto Layout users, familiarity with the properties and rules of Auto Layout simplifies tasks like those depicted below. They can select the first card along with any other layers that will be adjusted. Upon entering a temporary structure mode, they are then able to make the desired edits.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6mCd4UcT5gIBc0iR.png" /></figure><ul><li>However, for users who do not use Auto Layout, everything becomes less clear. Their instinct is often to select the card they want to edit. However, when they attempt to edit a card, they find that the content below the card does not keep spacing and move down as expected. Instead, it starts to overlap the content below. This indicates that the adjustment is still operating in a design without Auto Layout.</li></ul><p>We ultimately decided that when users enter temporary structure mode, AI will identify the entire screen that should be effected based on the layers selected by the user, building temporary structure. In this way, users who do not use Auto Layout no longer need to understand the rules of how Auto Layout affects other layers. Meanwhile, for Auto Layout users, as long as the AI results are accurate, they can still make the adjustments they desire.</p><h3>Under AI Layout</h3><h4>AI builds temporary structure:</h4><p>We’ve implemented “AI builds temporary structure” by using AI to automatically create Auto Layouts, functioning within the scope of the entire screen. This allows you to quickly perform adjustments, such as adjusting spacing and padding, reordering, and duplicating items, without having to manually add Auto Layout layer by layer.</p><p>After you’ve made your structured adjustments, you simply remove the temporary structure with one click. The design is back to Free-form design, unrestricted by the temporary structure.</p><p>From then on, switch freely between Free-form and Structured design.</p><h4>Additionally, we offer AI adds auto layout:</h4><p>With the capability for AI to automatically create Auto Layout, it seems feasible to introduce a feature that allows for quick generation of Auto Layout. This would facilitate a smoother transition for users from draft versions to reusable designs.</p><p>Now, you just need to select the Frame you want to add Auto Layout to and click “AI adds auto layout”. AI will then assist in generating the Auto Layout and create new Frames within it.</p><p>We’re thrilled to offer this gift to Auto Layout users and hope you will enjoy it.</p><h4>Typical Usage Scenarios:</h4><p>Through testing with different users, we gradually discovered the best practices:</p><ul><li>Users who do not use Auto Layout, when you need to quickly adjust spacing and padding, reorder and duplicate items, you can use “AI builds temporary structure”. With the help of AI, you can complete these tasks, replacing the previous step-by-step adjustments.</li><li>For Auto Layout users, we hope AI Layout can help you move beyond the default preference of using Auto Layout for all designs.</li><li>For components, repetitive content, or reusable modules that require an Auto Layout, you can now seamlessly accomplish this by using the “AI adds auto layout”.</li><li>For content that may change later, you can retain its Free-form mode. If there’s a need for structured adjustments later, you can quickly accomplish this through “AI builds temporary structure”.</li></ul><h3>In the Unseen Aspects: What We’ve Accomplished</h3><h4>The Challenge of AI</h4><p>Creating Auto Layout with AI may seem simple, but it heavily relies on AI’s understanding of the structure of designs. Designers often do not meticulously organize layers during the design process, making it initially challenging for AI to structure the designs.</p><p>To tackle this problem, we utilized two main kinds of information to assist AI:</p><ul><li>The overlay, containment, and alignment relationships between layers, groups, and frames in the designs.</li><li>The frames relationships, similarities between frames and groups, and layers within frames in the designs.</li></ul><p>With this auxiliary information, the accuracy of AI in identifying design structures significantly improved.</p><p>However, when dealing with designs with Auto Layout, how the related layers should respond to changes in certain content parts and how to maintain alignment relationships became new challenges for AI.</p><p>We collected a large amount of layout data to train and evaluate the model, gradually achieving the results we anticipated.</p><h4>Fine Tunings</h4><p>A core principle of AI builds temporary structure is that the designs before and after using AI Layout should look identical. That is, although layers are added to Auto Layout, the process does not alter the original spacing, alignment relationships, and visual effects of the layers.</p><p>Therefore, the first issue we needed to address was for non-frame users more accustomed to using “rectangle + group” to build designs. We needed AI Layout to have the ability to convert “rectangle + group” into frame. The rules here are mostly similar to those during the creation of Auto Layout, as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cLM42kYx44ptUTBj.png" /></figure><p>However, the world of design is not so simple, and in some cases, the above rule can lead to dramatic changes in the designs. For example, when you want to transform a “rectangle + group” that has effects applied to the rectangle, if you convert it into frame, the original effects of the rectangle will apply to all layers within the new frame. Similarly, if the rectangle layer’s opacity is not 100%, the opacity would also affect the layers within the new frame after the conversion.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XLJE-6yrwmcbxx8N.png" /></figure><p>Therefore, we chose a different method to create Auto Layout — setting the rectangle to absolute positions and applying its constraints to scale, scale, so it can always change in size along with the frame’s size changes. Then, by creating an Auto Layout frame for the other layers, we ensure the design looks identical to the previous designs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vRLxczUIUT4ZPl8C.png" /></figure><p>Upon completing the temporary structural adjustments and exiting this mode, all designs will revert back to their pre-mode state. This ensures that you can proceed with your design work smoothly.</p><p>Furthermore, we encountered a problem: in AI Layout, if designers deliberately created 1px or 2px misalignments in some design draft content, they wouldn’t want these deliberately misaligned layers to be forcibly aligned due to Auto Layout’s alignment rules.</p><p>We added many temporary frames, allowing the original misaligned layers to maintain alignment with Auto Layout rules within the new temporary frames, and changing size with content changes.</p><p>After refining these aspects, we are delighted to have adhered to the principle that “the content before and after using AI Layout should look identical,” and we’re eager to see it in production.</p><h3>The Future of AI Layout</h3><p>As you explore the feature set of design tools, you’ll notice that for every feature helping you to structure design content, there’s a free-form counterpart. For example, you can manage colors with styles, but if you want to leave things unstructured, you can use selection colors to make edits. You can use auto layout to manage designs, but if you prefer not to structure these layers ahead of time, you can use smart selection to adjust spacing and reorder items.</p><p>However, structuring designs requires effort and preparation. It undoubtedly makes our repetitive work more efficient, but it’s undeniable that our preliminary preparations also involve a lot of sweat invisible to outsiders.</p><p>I often encounter two perspectives: one celebrates Auto Layout for significantly improving work efficiency. The other laments how auto layout confines their work within numerous flexible boxes, forever constrained by horizontal and vertical rules.</p><p>We don’t wish to conform to the latter. We aim to preserve designers’ space for inspiration and experiments, rather than confining creativity and imagination within a series of structured “flex box”. Through AI, we hope you can enjoy the convenience of structured designs while maintaining a free-form state.</p><p>AI Layout represents the beginning of a more flexible dream between freedom design and structure design, and we plan to continue exploring more.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b365e136e50c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/motiff/ai-layout-the-dream-of-dynamic-flexibility-b365e136e50c">AI Layout: The dream of dynamic flexibility</a> was originally published in <a href="https://medium.com/motiff">Motiff Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI Design System Creator: A new practice in the AI era with just one click]]></title>
            <link>https://medium.com/motiff/ai-design-system-creator-a-new-practice-in-the-ai-era-with-just-one-click-30847b2e94e9?source=rss-80cfafbc3faa------2</link>
            <guid isPermaLink="false">https://medium.com/p/30847b2e94e9</guid>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[ui-design]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[ux-design]]></category>
            <dc:creator><![CDATA[Motiff]]></dc:creator>
            <pubDate>Mon, 17 Jun 2024 13:56:30 GMT</pubDate>
            <atom:updated>2024-06-17T13:56:30.308Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yaK7jk3ZFzA4n7QeVP4Org.png" /></figure><p>A well-functioning design system can provide reusable components and shared design guidelines, allowing developers and designers to quickly build new pages or features without having to start from scratch every time. This means that teams can design and develop products more rapidly while ensuring consistency in product quality and user experience. As more and more Internet companies launch their own design systems, a general agreement is that design systems are an advanced and helpful best practice for teams.</p><p>Naturally, we believe that such practices should be popularized among product design teams.</p><p>With this assumption, I began to research the real-world implementation of design systems among professional designers and their teams. I spent a month interviewing about 15 design teams, but the results were disappointing — many teams did not have a design system. Only design teams in two large “Internet Giants” said that they have had a well-functioning design system.</p><p>Although this is widely recognized as a best practice in the industry, its adoption rate is low. With questions in mind, we researched more teams and discovered two main reasons preventing them from building design systems:</p><ul><li>The team doesn’t fully understand how important a design system is. When we suggest building a design system, we often face a challenge: convincing everyone to dedicate some effort to building it. Simply explaining the benefits of a design system isn’t always enough to show the problems with our current design practices without one. This makes it hard to convince the team to decide to start building one right away. The person proposing the idea may also face tough questions, such as “Even though we don’t have a design system now, everything seems to be fine,” or “Our current methods are working well, and the design experience seems consistent.”</li><li>The cost of building a design system is high. Building a design system means going through all our prior design drafts and summarizing them into our team’s design guidelines. Just collecting and organizing past design drafts is very time-consuming. For example, the teams we surveyed needed 2–3 designers to spend 2 days just to finish collecting the necessary elements.</li></ul><h3>A decision to leverage AI for design system creation</h3><p>As Motiff has explored the use of AI to solve these problems in different design scenarios, we thought about if AI could solve the above two issues:</p><p>Regarding how to convince teams to start building a design system, Brad Frost, the author of <em>Atomic Design</em>, once proposed the concept of “Show, don’t tell”. This concept involves collecting the styles and components used in the current application, organizing them into an “interface inventory” to directly “expose” the inconsistencies, rather than just explaining the benefits of a design system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yVl6hKaAFgE4RRu0.png" /></figure><p>At this point, it is natural for me to think that perhaps AI could help designers to organize interface inventory, since collecting and organizing are exactly what AI is good at.</p><p>About the Interface inventory: The Interface inventory is a collection and organization of the components that make up an application, laying them out to find redundancies and consistency issues.</p><p>The cost problem of building a design system can be broken down into two parts: collection and definition:</p><ul><li>Collection involves extracting elements from the current application that can be turned into styles and components. Like the answer to the first question, the collection is essentially creating an interface inventory. We believe AI can help people with this part of the work.</li><li>Definition involves regroup and eliminate styles and components in the interface inventory, ultimately redefining the styles and components in the design system. This process requires an understanding of design scenarios and business requirements, and it might not be achievable by one person alone. It requires team discussion to reach an agreement. We believe that this part of work can only be finished by humans, AI cannot achieve it.</li></ul><p>The interface inventory serves as both a “persuasive tool” for the advocators of the design system and an initial step in helping designers and teams to collect for creating the design system. Based on this analysis, we have set a milestone: Use AI to help designers compile an interface inventory.</p><h3>How to help AI recognize interface inventory?</h3><p><strong>Categorization. </strong>As discussed earlier, the interface inventory involves organizing and grouping the styles and components found in the current application. To enable AI to compile this interface inventory, we first need to define the categories of styles and components and teach the machine how to categorize them. We draw inspiration not only from the categories outlined in <em>Atomic Design</em> but also from the component categorizations found in various design systems like HIG, Material Design, Fluent, Spectrum, and Ant Design, which include elements like colors, typography, buttons, labels, and more.</p><p>It’s worth noting that we initially underestimated the difficulty of the categorization task. As we encountered various edge cases, we continuously updated and refined our categorization system.</p><p><strong>Re-grouping. </strong>Once AI has learned how to categorize, we encountered a new challenge — AI tends to miss certain elements in its recognition attempts. After examining numerous instances of errors, we identified the problem.</p><p>Take the example below: in the design drafts, all lists include avatars. However, the recognition results don’t always include avatars. The reason is that the avatars are not grouped within the layers of the current list. They are located in a very far place of the layer list. Consequently, AI often overlooks them during recognition. To tackle this issue, we decided to abandon the original layer relationships and first let AI perform the re-grouping process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*H09S73NDpOA1Iy-N.png" /></figure><p>After completing the training for categorization and re-grouping, the recognition results provided by AI are mostly acceptable, but:</p><ul><li>In the design files, a significant amount of “redundant design” has been organized into the interface inventory.</li><li>The display of various information in the recognition results is disordered and inefficient.</li></ul><p>Even designers who are most familiar with this product cannot determine which components will be used in what scenarios.</p><p>Therefore, our next task is to “make the interface inventory more user-friendly”.</p><h3>How to make the interface inventory more user-friendly?</h3><p>In the process of developing new features, we continuously optimize the presentation of the interface inventory, hoping that AI can provide designers with more supplementary information to help them make better decisions.</p><p>In order to make the AI-generated interface inventory more convenient for designers to use, we started to think about what designers might do after receiving the interface inventory. Along this line of thought, we hope to find answers to two questions:</p><ul><li>How can we display the interface inventory in the most convenient and readable way for designers?</li><li>Which information can best assist designers in making decisions?</li></ul><h4>The most efficient display</h4><p><strong>Deduplication. </strong>When we initially received the AI recognition results, there were so many of them that they were practically unusable. The issue stemmed from the presence of numerous components with subtle differences. AI would identify the same component as multiple similar candidates due to inconsistencies in text or graphics. But for humans, it’s easy to understand that these are essentially the same components that only differ in their content.</p><p>To avoid showing ineffective information to designers, we developed a deduplication strategy, such as:</p><p>In the example below, AI identified the listed items as 2 separate components because of differences in avatars and text content.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-0RteZhLl60Us39G.png" /></figure><p>In the figure below, AI identified the dialog boxes as two components by AI because the size of the popup window has changed due to the difference in text content.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YIjbMmhw_RKwgKXK.png" /></figure><p><strong>Clustering and Layout. </strong>We also spent a considerable amount of time optimizing the clustering and layout of components in the interface inventory. Taking color as an example, you will notice many similar colors. Let’s take “red” as an example. It may only need one style in the design system, but 7 different shades of red are identified in reality. To help designers discover redundant design elements more intuitively, our goal in clustering and layout is to group and display similar styles and elements.</p><p>Similarity calculation: Initially, we used HSL and HSB color models to calculate the similarity between two colors, but the results were unsatisfactory, which shows significant discrepancies from what our eyes perceive. To address this issue, we began searching for color models that better align with human visual perception, until we met Google’s HCT, for which we are truly grateful.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*lqoJZloesVxjHlfJ.png" /></figure><p><strong>Cluster quantity.</strong>We also encountered the question of “how many rows should the displayed colors be lined up”. It’s clear that mechanically arranging them according to hue degrees is not what designers want. During this process, we thought about using the hierarchy cluster algorithm to recalculate the distances between each color, resulting in a clustering method that better aligns with the designers’ understanding.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dG7m5bKq5P6AxQoU.png" /></figure><h4>Assist designers in decision-making</h4><p><strong>Usage counts. </strong>In addition to organizing components and styles into clusters and layouts to assist designers in viewing the interface inventory, we also take “usage counts” into consideration. We use usage counts to assist designers in making decisions.</p><p>We have observed that when facing a variety of similar font styles, analyzing their usage counts helps designers identify which styles are being misused since misused styles are not commonly agreed upon and tend to have lower usage counts</p><p>In the example below, you can see a significant difference in their usage counts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*z7Q61txa9PN3yc02.png" /></figure><p><strong>Trace back to origins. </strong>After discovering that usage counts can help designers identify misused styles, we realized that this data could be combined with a new feature called “Tracing Applications”. Designers can now track where styles and components are being used based on their usage counts, facilitating the process of correcting errors and understanding usage scenarios.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*y6Jfund4iV4lqebw.png" /></figure><p>Moreover, another advantage of this feature is when designers encounter a set of very similar buttons, they often find it difficult to determine which ones can be grouped. At this point, understanding the specific usage scenarios becomes a common practice for designers. To better assist designers in understanding usage scenarios, the “Trace back to origins” feature can help designers quickly understand where this element or component is used and can also directly jump to the original file to view the specific design drafts.</p><h3>Challenges in creating AI design systems</h3><p>We discussed some of the challenges we overcame while developing the AI Design System Creator feature. Now, let’s talk about the issues we haven’t solved yet and may be hard to solve in the future.</p><h4>What is a Checkbox &amp; Radio?</h4><p>It’s easy to distinguish between a Checkbox and a Radio button in a component. Simply put, a Checkbox is for multiple selections and usually has a checkmark when selected, while a Radio button is for single selections and usually has a dot when selected. If you look at the image above, you can quickly identify that the left side is a Checkbox and the right side is a Radio button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_LSLxuxLf_Z4s_Rl.png" /></figure><p>However, in the image below, since they are both in an unselected state, it’s hard to accurately determine whether the component will have a checkmark or a dot when selected.</p><p>Fortunately, these two components do not appear frequently, so we have decided to group and display them on the same page:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3EFlIz14M7tKMhDS.png" /></figure><p>There are numerous examples of similar problems. Every time we are impressed with our seemingly perfect “solution”, we end up being proven wrong repeatedly. Nonetheless, we are still confident that these challenges will be resolved through advancements in datasets and algorithms.</p><h3>Is the Design System Complete After Creation?</h3><p>In the content above, I discussed how we optimized the interface inventory in the AI recognition results to help you identify the components or styles that need to be retained and can be reused based on the suggested components or styles.</p><p>However, I quickly realized a new problem — what about the remaining design elements? Should they be discarded directly? Should we modify the designs that deviate from the design guidelines?</p><p>To answer these questions, I started a new round of research and interviewed more than 10 design teams. During this process, I made an assumption: To ensure design consistency, past design drafts should be replaced.</p><p>The research conclusions confirmed my guesses. All teams agreed that the misused elements need to be replaced with the correct styles or components. Since most of the product updates reuse previous design files, if the earlier designs are not corrected, it is challenging for the subsequent designers to realize that the interface is incorrect. A new problem was discovered during the research. Although everyone agrees that replacements should be made, no team actually replaces past design files. The reason for this is quite apparent: it’s too much trouble.</p><p>During the research, we found that some teams would use KPI requirements to force designers to spend time regularly maintaining elements used in past design files, but this is clearly not an optimal solution. To solve this problem, we designed the AI Replaces Component feature, which has been launched and is available for use.</p><p>Meanwhile, from the stakeholder perspective, creating design systems is not solely the responsibility of the design team. Its creation requires consensus with the downstream libraries for developers and participation from all design-related positions in the business team. Once the internal library of the design team is consistent and replaced with suitable styles and components, how should the front-end library for developers be adjusted? We are exploring how to build a bridge for synchronizing libraries between designers and developers, so stay tuned for our new features…</p><h3>Summary</h3><p>Returning to the essence of the problem, what we truly focus on is design consistency and efficiency. Throughout this process, we discovered that the design system is a way to achieve this. We firmly believe that the design system is a best practice.</p><p>But our goal is not merely to help small and medium-sized teams build a design system, as that alone is not enough. We aim to use AI to transform the design system into a collaborative model between machines and humans. We hope that more teams will be able to realize and improve the application of the design system through this new way of practice, thereby promoting the progress of the whole industry.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=30847b2e94e9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/motiff/ai-design-system-creator-a-new-practice-in-the-ai-era-with-just-one-click-30847b2e94e9">AI Design System Creator: A new practice in the AI era with just one click</a> was originally published in <a href="https://medium.com/motiff">Motiff Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is AI Design System Maintainer?]]></title>
            <link>https://medium.com/motiff/what-is-ai-design-system-maintainer-8241dc416972?source=rss-80cfafbc3faa------2</link>
            <guid isPermaLink="false">https://medium.com/p/8241dc416972</guid>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[ui-design]]></category>
            <category><![CDATA[ux-design]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ui]]></category>
            <dc:creator><![CDATA[Motiff]]></dc:creator>
            <pubDate>Mon, 17 Jun 2024 12:32:31 GMT</pubDate>
            <atom:updated>2024-06-17T12:32:31.145Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JAe7lx1a1aLkmcDl2kFSRg.png" /></figure><p>Does the design system require maintenance?</p><p>Of course it does.</p><p>After you have gone through the hard work of creating a design system and recommending it to designers, your journey with implementing the design system has just begun. For more insights of Motiff’s considerations on creating design systems, you can check out <a href="https://motiff.com/blog/ai-design-system-creator"><em>AI Design System Creator: start an intelligent practice in AI era</em></a> by Frank (2024).</p><p>In this blog, I will introduce you to our thoughts on “design system maintenance” in the AI era.</p><h3>Why should we maintain design systems?</h3><p>Since the rapid evolution of business trends leads to the emergence of new patterns, design systems cannot remain static. After creating a design system, regular maintenance is essential for teams implementing it to keep the system in optimal working condition.</p><blockquote>“A design system is a living, funded product with a roadmap&amp;backlog, serving an ecosystem.” — — Nathan Curtis</blockquote><p>As Nathan Curtis mentioned, a design system is a product that evolves continuously with the “ecosystem” it serves.</p><p>This evolution includes:</p><ul><li>Gathering: Collect feedback from users of the design system.</li><li>Comparison: Review and adjust existing components and styles to ensure alignment with the latest design guidelines and brand styles.</li><li>Update: Introduce new components or styles to the design system.</li><li>…</li></ul><p>These tasks are periodically repeated under the guidance of the roadmap and backlog, constituting the maintenance process of the design system.</p><p>Once the design system is not maintained on time, it will gradually become outdated and even obsolete.</p><p>A design system that is not maintained in a timely manner may force users to ignore using the system because it lacks the required components or styles.</p><p>The decline in the usage of design systems also widens the gap between the system and actual design needs, which makes the maintenance process even more challenging.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2Tdshjz2HAmBskgY.png" /></figure><p>There is more than one way to prevent a design system from falling into a vicious cycle.</p><p>The “Design system first” practice recommended by Brad Frost provides a key solution to address this issue. It suggests that you should begin your design work by looking at components and patterns that are already available in your design system. If the current design system doesn’t meet your requirements, you need to adjust it first and use the improved ones in the design files.</p><p>The approach of “Design system first” ensures that your design system is one step ahead of the latest design needs. Every design inherently becomes a maintenance opportunity for the design system, preventing the gaps between the design system and the design needs from the very beginning.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*94IDBpj_O9AJZQD6.png" /></figure><p><em>Reference: </em><a href="https://atomicdesign.bradfrost.com/chapter-5/"><em>Maintaining Design Systems</em></a></p><p>However, “Design system first” makes the collaboration between design system users and design system makers more complicated. Design system users must provide feedback to system owners and wait for the system to be updated, which leads to longer and unpredictable output times for design needs. Many teams find this approach unacceptable.</p><p>Timely maintenance of the design system is also a viable solution. Although it may not completely eliminate the gap between the design system and the needs of users, high-frequency maintenance keeps this gap dynamically controlled within a smaller range.</p><p>But performing timely maintenance on the design system is also challenging.</p><h3>What are the difficulties of timely design system maintenance?</h3><p>Maintaining a design system relies heavily on the communication between design system owners and design system users. When users find that the design system doesn’t meet their needs, they can provide feedback to the maintenance team. The team will examine whether the feedback is valid and decide whether to incorporate it into the design system to meet the needs of other users.</p><p>However, in our communication with almost every beta tester, we have found that no matter how smooth the feedback channels are or how timely the response from the maintenance team is, users will always discover new components and styles in the design files that are outside the design system, and they never received feedback about these elements. This is because some users choose to “quietly endure” and solve the problems on their own.</p><p>Consequently, the design system maintenance team is forced to regularly review the latest design drafts to identify and summarize new elements and add them to the design system. This process requires the following steps:</p><ul><li>Scan through design files: Review each of the new design files since the last maintenance and summarize components and styles.</li><li>Compare to find new elements: Compare the components and styles from the process of scanning design files with those already in the existing design system to identify newly added elements.</li><li>Evaluate and update the design system: Evaluate new components and styles. Decide whether to update the design system based on usage scenarios and reuse frequency.</li></ul><p>This process requires a significant amount of their time. Ultimately, instead of quickly sorting things out, design system maintenance turns into a year-end overhaul.</p><h3>Can AI Help Us?</h3><p>Luckily, AI can free us from the tedium of routine tasks, which is why we launched the “AI Design System Maintenance”.</p><h4>Scan through design files</h4><p>With AI Design System Maintenance, you simply need to select the design files you want to scan, and then you can start AI recognition with a single click. Motiff’s unique AI model will start a series of analyses:</p><ul><li>Identify the interface within the design files that are used for handoff, excluding other layers that are used for analysis and annotation.</li><li>Identify and exclude parts of the interface that typically don’t have reusable value, such as illustrations, marketing graphics, etc.</li><li>Based on context and features, identify and extract styles, as well as 18 types of components like buttons and dialog boxes.</li></ul><h4>Compare to find new designs</h4><p>With the use of AI Design System Maintainer, AI will automatically start comparing differences after scanning the design files to identify components and styles that need maintenance but are not yet incorporated into the design system. Unlike the rigid “pixel-level” comparisons, Motiff’s AI offers a more intuitive design judgement:</p><ul><li>Ignore the differences in text length and icon vectors within the components.</li><li>Ignore minor size differences in certain scenarios.</li><li>You can choose to ignore differences in text line heights if your team hasn’t standardized it yet.</li><li>You can adjust settings to ignore “long-tail” styles that are rarely used in just one click.</li></ul><h4>Evaluate and update the design system</h4><p>With AI Design System Maintainer, each newly discovered style and component is clearly labeled with the number of times it has been used in the design file. You can click to view the specific usage scenarios.</p><p>Finally, Motiff AI leaves the final decision-making to designers. Design system maintenance is completed after you have decided whether to add or remove styles and components in the design system based on your team’s requirements.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cgCfsWL8DHvlZ4ly.png" /></figure><p>Further thoughts on AI design system maintenance?</p><p>AI design system maintenance is a complicated task. We are actively delving into new capabilities.</p><h3>Can AI help me analyze defects in the design system?</h3><p>Currently, analyzing defects in an existing design system relies on statistics from referencing and separating actions within the system, combined with feedback from users. However, AI can receive and process a broader and more complex range of data.</p><p>We are still exploring new possibilities.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8241dc416972" width="1" height="1" alt=""><hr><p><a href="https://medium.com/motiff/what-is-ai-design-system-maintainer-8241dc416972">What is AI Design System Maintainer?</a> was originally published in <a href="https://medium.com/motiff">Motiff Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI Consistency Checker: A solution for consistency issues]]></title>
            <link>https://medium.com/motiff/ai-consistency-checker-a-solution-for-consistency-issues-93ddb5f68a48?source=rss-80cfafbc3faa------2</link>
            <guid isPermaLink="false">https://medium.com/p/93ddb5f68a48</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[ux-design]]></category>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[ui-design]]></category>
            <dc:creator><![CDATA[Motiff]]></dc:creator>
            <pubDate>Fri, 14 Jun 2024 10:17:34 GMT</pubDate>
            <atom:updated>2024-06-14T10:17:34.700Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OAkRQ00RSHQ-k3YyjFjy1Q.png" /></figure><p>Consistency may be the most well-known but also the most fragile design principle. We typically divide consistency into two categories:</p><p><strong>Visual Consistency and Functional Consistency</strong></p><p>This involves achieving consistency in visual effects and functional experiences within the product. Visual consistency emphasizes using similar elements throughout the product, such as standardized fonts, font sizes, colors, and button styles. Functional consistency emphasizes that interactive elements in the product should behave in the same way, improving the product’s predictability. For example, actions like opening popups or navigating back should remain consistent.</p><p><strong>Internal Consistency and External Consistency</strong></p><p>Internal consistency focuses on keeping various parts of a single product consistent with each other, while external consistency concerns making sure the product remains consistent across different platforms or with other products. Examples include ensuring that the product looks and feels similar on both mobile and desktop devices, as well as maintaining consistent interaction logic across Adobe products for a better user experience.</p><p>How do you keep products consistent? Using a design system should be the top solution.</p><p>The purpose of creating a design system is not merely to compile a file for aesthetic pleasure. One of its main purposes is to guide the team’s future design efforts to be more consistent. Reusable components, styles, and interaction guidelines can ensure internal visual and functional consistency within the product. Moreover, it helps to address external consistency issues across different products or systems.</p><p>A design system is a complete set of standards intended to manage design at scale using reusable components and patterns. — — Therese Fessende</p><p>It seems like introducing a design system is the solution to consistency problems, but things are not that straight forward.</p><p>When using the “AI Design System Maintainer” to scan design files and extract new styles and components, we find some elements that should be incorporated into the design system, but we also come across many consistency issues. Surprisingly, these issues persist in product design files that have undergone reviews and have been released for users.</p><h4>Where do consistency issues come from?</h4><p>Further analysis of consistency issues reveals that most layers showing consistency issues don’t use styles or components from the design system. For example, can you spot the design consistency issues in the following set of interfaces?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*87wZ4k1EqeY_G2oo.png" /></figure><p>There are a total of 3 consistency issues in the interfaces. They are:</p><ol><li>The text inside two buttons has different font weights.</li><li>The two buttons have different fill colors.</li><li>The lengths of the two buttons are different.</li></ol><p>Have you noticed? These independent layers that do not reference the design system often have minor property differences that are difficult to spot with human eyes. This is why, even after thorough checks, these design files still have consistency issues.</p><p>It seems like removing all independent layers can avoid consistency issues. Sadly, it is impossible. Design systems cannot fully meet the requirements of design files:</p><ul><li>Design systems prioritize covering highly reusable design elements for efficiency.</li><li>Design systems often lag behind the latest design needs. Implementing the approach of “Design Systems First” comes with a high cost.</li><li>Typically, design systems are only introduced when the business reaches a certain scale, and adjustments based on historical design files also face the challenges of maintaining consistency with older designs.</li><li>…</li></ul><p>So, is there a way to find these “independent” layers more efficiently?</p><p>This is the original intention behind the AI Consistency Checker.</p><h3>Functional design of consistency checker</h3><p>Many tools can inspect styles such as text and colors in design files, such as Style Organizer and Design Lint. Motiff aims to explore more possibilities by using the ability of AI on top of existing tools.</p><h4>Identify elements in design files that don’t need to be checked</h4><p>Many elements in design files don’t need to undergo consistency checks, such as:</p><ul><li>Experimental drafts or annotations that are not part of the deliverables</li><li>Illustrations or marketing content in the design files that are usually not restricted by design systems</li><li>…</li></ul><p>Not skipping these types of content means that the checking results are mixed with interfering factors, making it difficult to identify the real consistency issues.</p><p>Typically, the method to resolve this problem is to skip the “locked” layers and rely on users to manually lock them before inspection. This can solve the problem, but the extra steps complicate the inspection process.</p><p>Motiff tries to address this issue using AI. Unlike rule-based mechanical comparisons, “AI Consistency Checker” can intelligently scan the pages and identify content that doesn’t require checking:</p><ul><li>Layers located outside the UI interface</li><li>Layers under overlays</li><li>Illustrations or marketing graphics</li><li>…</li></ul><p>Of course, in order to fully meet designers’ needs, the AI Consistency Checker still supports skipping layers that users have locked or hidden.</p><h4>Supports consistency checks for components</h4><p>Unlike existing consistency check tools that only support style checking, “AI Consistency Checker” also supports component inspection. This means that common component differences can be flagged, such as the differences in size and padding, the misuse of text, color, and radius styles, as well as other consistency issues.</p><p>During the process of AI Consistency Check, layers in the design file that match common component characteristics are automatically identified and extracted. These layers are then compared with the main component in the design system. Layers that don’t reference components and those properties are not entirely consistent with the existing components will be marked for designers to review and double-check.</p><p>Currently, our consistency checker supports 8 types of components, which are typically the first to be included in design system specifications: Button, Tag, Checkbox, Dialog, Toast, Tabs, Navigation Bar, and Tab bar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5SaXNT9If4a9BGeX.png" /></figure><h4>More details</h4><p>Even with the help of AI, conducting a consistency check on thousands of layers is not easy. AI consistency checker also offers some detailed optimizations to enhance the efficiency of the inspection as much as possible. These include:</p><ul><li>Support for panning and zooming the canvas to inspect each abnormal layer individually, which is useful when dealing with complex design files.</li><li>Support for one-click replacement of text and color styles with the same properties. If the same properties do not exist, it will recommend similar styles for replacement.</li><li>Configurable options to ignore differences in text line heights during the checking process.</li></ul><h3>What’s more</h3><p>We are working on expanding our style consistency checks to cover more style categories, such as rounded corners, effects, etc. We believe they will be available for everyone to use soon.</p><p>For component consistency checks, we aim to scan and understand how users organize and name components in their design system files, to compile preferences for component similarity within the design system. With this capability, component consistency checks will support recommending similar components and intelligently exclude components that have not yet been standardized in the design system.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=93ddb5f68a48" width="1" height="1" alt=""><hr><p><a href="https://medium.com/motiff/ai-consistency-checker-a-solution-for-consistency-issues-93ddb5f68a48">AI Consistency Checker: A solution for consistency issues</a> was originally published in <a href="https://medium.com/motiff">Motiff Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI Magic Box: Drag a box for future]]></title>
            <link>https://medium.com/motiff/ai-magic-box-drag-a-box-for-future-882b9e85f015?source=rss-80cfafbc3faa------2</link>
            <guid isPermaLink="false">https://medium.com/p/882b9e85f015</guid>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[ux-design]]></category>
            <dc:creator><![CDATA[Motiff]]></dc:creator>
            <pubDate>Fri, 14 Jun 2024 09:45:35 GMT</pubDate>
            <atom:updated>2024-06-14T09:45:35.507Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*87Rsd_BfRjs0bzkFW80U7w.png" /></figure><p>Frame it, and let AI return best matches.</p><p>As a Product Manager at Motiff, let me guide you through the thought process behind our design of the AI Magic Box.</p><h3>From Intention to Presentation, from Input to Output</h3><p>Product design is an integral part of software engineering. Software engineering is about turning our intentions to change the world into a user-centric product. During the design stage, product designers may come up with countless creative ideas and thoughts. They continuously put these ideas into action and aim to express creative thinking through the interface they design.</p><p>The functionality of past design tools, including features like “AI Reduplication” and “AI Layout” in Motiff, aimed to “accelerate the execution of actions.” We refer to this as transforming from “intent” to “action”.</p><p>In the past, creating a page in Photoshop was not easy, but Sketch’s Artboard sped up this action.</p><p>Adjusting a responsive and structured layout wasn’t easy in Sketch either, but Figma’s Auto Layout accelerated it. Motiff’s AI Layout further speeds up this process.</p><p>Reducing a 100-step action to only one step is the ultimate goal of productivity tools, and AI is bound to play a crucial role.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/0*0xVlqyZEh1HBPn2h.png" /></figure><p>AIGC appears to have introduced new possibilities into the industry landscape, as AI can directly generate content. Particularly within the UI field, there is a natural expectation among designers and developers for AI to craft user interfaces. However, I believe that beyond the critical need for ongoing AI advancements to streamline the process from intent to action, there is also an emerging pathway: from intention to presentation.</p><p>Furthermore, if we look at this proposition from an engineering standpoint, its essence is actually from “Input” to “Output”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/0*Y9vwLa2vANZZzpk8.png" /></figure><h3>Art Embraces Randomness, but UI Requires Precision</h3><p>First, let’s look at the Output, the deliverable of the presentation.</p><p>Distinctions between UI design and art creation are profound. Art welcomes randomness because it often creates artistic value. UI design is a precise engineering process based on the demands of users and businesses, where the need for precision is inherently driven.</p><p>For instance, with image generation tools like Midjourney, there is an expectation that AI will go beyond the intended presentation. If we draw a tree, we don’t need AI to precisely count the number of leaves.</p><p>However, in UI design, we need to precisely determine the placement of each element and its features. The output of each feature in its corresponding location is also clear.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/0*GSnlCJSNDLDn35ZV.png" /></figure><p>How do we achieve “precision” in output? Here are two approaches:</p><ul><li>Narrow down the range of the output. With a relatively smaller output, AI can control with greater precision.</li><li>Increase the information in the input. Providing more information to AI can improve their understanding of our intentions.</li></ul><h3>Extreme Thinking 1: Maximum Input, Minimal Output</h3><p>In fact, examples of this scenario are everywhere.</p><p>For instance, you can draw a rectangle within Motiff. Although this action doesn’t seem complicated, you actually input a substantial amount of information. For example, you can specify:</p><ul><li>The rectangle’s coordinates on the x and y-axis.</li><li>The width and height of the rectangle.</li><li>The rectangle’s border styling, such as dotted lines instead of continuous lines.</li><li>The color of the rectangle and the border. For example, the rectangle could be transparent, while the border could be a gradient color.</li></ul><p>How about the output you need? It is a precise rectangular frame. In other words, if you input the above information into AI, it can help you achieve your intention with precision.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/0*kW8gYRjGTm7GXAuC.png" /></figure><h3>Extreme Thinking 2: Minimal Input, Maximum Output</h3><p>What kind of example is this? Such examples have become quite common recently:</p><p>For example, input in one sentence and let AI generate a complete user interface.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/0*X20mQ9enMMXNxuRP.png" /></figure><p>Several applications exploring this direction have been introduced, impressing the public with their cool demos. (Apparently, Motiff presents a “cool” demo as well. Who doesn’t like rock and roll?)</p><p>But stepping back into reality, it is doubtful that this method will add much value to the actual work. Once you have taken the first step of “describing a sentence”, you will find that one is not enough, leading to a second sentence, a third sentence, and so on, until it becomes a paragraph. By these means, you allow AI to grasp your intentions more thoroughly and accurately.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/0*gSoMG1LMb5_VOqFV.png" /></figure><p>Ultimately, to generate an interface that aligns closely with your intentions, would you consider inputting the following text?</p><h3>Breaking the Limitations of Input</h3><p>We’re sorry if our narrative logic may inadvertently mislead you: if AI is your partner, you might feel compelled to become overly talkative to make it understand your intentions.</p><p>If you are discussing a product design plan with a real partner, would you do the same? Would you find yourself unconsciously inputting more words to express your intentions to them? I doubt it.</p><p>Instead, you’d likely grab a marker and swiftly sketch out flowcharts or wireframes on a whiteboard to convey your intentions to your partner through both words and visuals. This method — instinctual and intuitive — is the most efficient form of input.</p><p>Here, we propose a hypothesis: in the realm of UI design, AIGC should not be limited to text prompts because text is not the most efficient input method. A better approach would integrate both graphics and text information.</p><h3>The Best Integration of Graphics and Text: PRD?</h3><p>This is a natural deduction. Since we hypothesize that a mix of graphics and text can strengthen the efficiency of AI in generating user interfaces, we already have a perfect example of this type of input: the Product Requirement Document (PRD). The PRD is filled with rich diagrams and textual explanations to describe the intentions and objectives of product design.</p><p>What about importing the PRD and letting AI generate UI?</p><p>Indeed, this has been one of our long-term research directions. Another section of Motiff Lab, AI-Generated UI, aims to achieve this ultimate goal. Our focus extends beyond simply refining how AI interprets the PRD. We also aim to ensure that AI can apply existing design systems comprehensively in UI creation.</p><p>Back to reality, we still need to face challenges before accomplishing this “one-step” goal, but it inspires us on a different dimension.</p><h3>A New Interaction: Meeting in a Box</h3><p>As previously mentioned, we have explored two key issues:</p><ol><li>Inputs can be more than text, it can be visual sketches.</li><li>Producing a complete interface within one output is challenging for AI. Can we take a step back and generate a partial interface instead?</li></ol><p>Moving forward in one direction and retreating in another can seemingly create a balance. Taking a step forward in one area while taking one back in another can seemingly create a balance. These movements of progression and regression may meet at a certain point, potentially offering a new solution in the form of a “box”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/0*sMpCb_wYNK9iEjWl.png" /></figure><p>Why a “box”?</p><p>Because a “box” seems to strike the right balance between efficient input and technically achievable output.</p><p>If users draw a box in Motiff, the input can at least include:</p><ul><li>The relative size of the box.</li><li>Its position of the box and the context information around it.</li><li>Supplemental text inputs after drawing the box.</li></ul><p>As for the output, we can focus on exactly what information we want to convey in this box, thereby generating user-needed content in a more controllable way.</p><h3>Try AI Magic Box</h3><p>At present, if you have an account in Motiff, you can directly try AI Magic Box in the Playground after registration, and experience this new way of interaction between designers and AI.</p><p>Currently, we still define this feature as “lab stage”. We believe that in the near future, it can come out of the lab and truly provide value for designers.</p><p>We also welcome you to provide us with suggestions for this feature.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=882b9e85f015" width="1" height="1" alt=""><hr><p><a href="https://medium.com/motiff/ai-magic-box-drag-a-box-for-future-882b9e85f015">AI Magic Box: Drag a box for future</a> was originally published in <a href="https://medium.com/motiff">Motiff Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>