24 June 2024

Generative AI Engines Compared using An Ancient Chinese Story

How good are the various AI engines that can give you principles from the cases given to them?

I took a historical case from 《战国策》赵四·赵太后新用事  “The Warring States Stratagems” Zhao Chapter 4 – Zhao Empress Began to Rule -to make sure the case study used is a real one.

I fed the Chinese version of the story to all the tested AI engines. The translation from Chinese to English was done using ChatGPT.  Below is the mind map comparing them.

From the same story, I also distill my principles, which are included for comparison with AI engines.

Personally, with some bias, of course, my distill principles are better than all the AI engines. 
It shows that AI engines give reasonable answers but human beings with the right expertise can do better.

Among the AI engines, I think, for this particular case, KIMI is the best.

What do you think? Please add your comments to this post.


The above map (except for the branch Lim Liat) is translated from the following Chinese text mind map:


The Case Study Story:

赵太后新用事,秦急攻之。赵氏求救于齐,齐曰:“必以长安君为质,兵乃出。”太后不肯,大臣强谏。太后明谓左右:“有复言令长安君为质者,老妇必唾其面。”   左师触龙言愿见太后。太后盛气而揖之。入而徐趋,至而自谢,曰:“老臣病足,曾不能疾走,不得见久矣。窃自恕,而恐太后玉体之有所郄也,故愿望见太后。”太后曰:“老妇恃辇而行。”曰:“日食饮得无衰乎?”曰:“恃粥耳。”曰:“老臣今者殊不欲食,乃自强步,日三四里,少益耆食,和于身。”太后曰:“老妇不能。”太后之色少解。   左师公曰:“老臣贱息舒祺,最少,不肖;而臣衰,窃爱怜之。愿令得补黑衣之数,以卫王宫。没死以闻。”太后曰:“敬诺。年几何矣?”对曰:“十五岁矣。虽少,愿及未填沟壑而托之。”太后曰:“丈夫亦爱怜其少子乎?”对曰:“甚于妇人。”太后笑曰:“妇人异甚。”对曰:“老臣窃以为媪之爱燕后贤于长安君。”曰:“君过矣!不若长安君之甚。”左师公曰:“父母之爱子,则为之计深远。媪之送燕后也,持其踵,为之泣,念悲其远也,亦哀之矣。已行,非弗思也,祭祀必祝之,祝曰:‘必勿使反。’岂非计久长,有子孙相继为王也哉?”太后曰:“然。”   左师公曰:“今三世以前,至于赵之为赵,赵王之子孙侯者,其继有在者乎?”曰:“无有。”曰:“微独赵,诸侯有在者乎?”曰:“老妇不闻也。”“此其近者祸及身,远者及其子孙。岂人主之子孙则必不善哉?位尊而无功,奉厚而无劳,而挟重器多也。今媪尊长安君之位,而封之以膏腴之地,多予之重器,而不及今令有功于国,一旦山陵崩,长安君何以自托于赵?老臣以媪为长安君计短也,故以为其爱不若燕后。”太后曰:“诺,恣君之所使之。”   于是为长安君约车百乘,质于齐,齐兵乃出。   子义闻之曰:“人主之子也,骨肉之亲也,犹不能恃无功之尊、无劳之奉,而守金玉之重也,而况人臣乎。”

The translation:

The Queen Dowager of Zhao had just taken power, and Qin launched a sudden attack. Zhao sought help from Qi, but Qi said, "Only if the Lord of Chang'an is sent as a hostage will we send troops." The Queen Dowager refused, and the ministers strongly urged her. The Queen Dowager openly declared to her attendants, "If anyone dares to suggest sending the Lord of Chang'an as a hostage again, I will spit in their face."

The senior official, Chu Long, requested to see the Queen Dowager. She received him angrily. Upon entering, he walked slowly and apologized, saying, "I am an old servant with leg problems and cannot walk quickly. I have not seen you for a long time. I worry about your health and have come to see you." The Queen Dowager replied, "I rely on a carriage to move around." He asked, "Has your daily food and drink intake decreased?" She said, "I rely on porridge." He said, "I have no appetite lately, but I force myself to walk three or four miles a day, which improves my appetite and benefits my health." The Queen Dowager said, "I cannot do that." Her expression softened a little.

Chu Long said, "I have an unworthy youngest son, Shu Qi, whom I love dearly because I am old. I wish to have him serve as the palace guard to protect the royal family. Even if I die, I will be at peace." The Queen Dowager said, "Agreed. How old is he?" He replied, "Fifteen. Though young, I hope he can serve before it’s too late." The Queen Dowager asked, "Do men love their youngest sons as much as women do?" He answered, "More so than women." The Queen Dowager laughed, "Women are very different." He said, "I think you love the Lord of Yan more than the Lord of Chang'an." She replied, "You are mistaken! My love for the Lord of Chang'an is much greater." Chu Long said, "Parents who love their children plan for their long-term future. When you sent the Lord of Yan away, you held his heel and cried because you were sad about his departure. But once he left, you did not forget him and prayed during rituals, hoping he would not return. Isn’t this planning for the long-term so that your descendants can continue to rule?" The Queen Dowager said, "Indeed."

Chu Long continued, "From three generations ago to the present, among the descendants of the Zhao kings, are there any who still hold noble titles?" She said, "None." He asked, "Not just in Zhao, but among the other feudal lords, are there any descendants still holding titles?" She replied, "I have not heard of any." He said, "This is because the closer ones faced disaster themselves, and the farther ones affected their descendants. Is it that the rulers’ descendants are necessarily incompetent? No, it’s because they have high status without merit, receive great rewards without labor, and possess many valuable items. Now you honor the Lord of Chang'an, grant him fertile lands, and give him many valuable items. Yet, if he does not contribute to the country now, how will he secure his position in Zhao if something happens to you? I think your plan for the Lord of Chang'an is short-sighted and shows less love than for the Lord of Yan." The Queen Dowager said, "You are right, do as you suggest."

Thus, they prepared a hundred carriages and sent the Lord of Chang'an to Qi as a hostage, and Qi dispatched troops.

Zi Yi, upon hearing this, said, "Even the son of a ruler, though of royal blood, cannot rely on status without merit or rewards without labor to secure precious items. How much more so for ministers?"

Lim Liat (c) 24 Jun 24


17 June 2024

Creative Ideas for the Next Smart Phone using Generative AI & BVITS Ideas-generator

Using Generative AI for Creative Ideas Generation

Generative AI is based on collections of large existing data. Since it is based on past data, could it be used for creativity and innovation? The answer is yes with some limitations. Take an example, say what the next generation smartphone will be like. The internet does contain many posts that talk about the next smartphone. So, Generative AI, based on such, will be able to tell us about the future of smartphones. Below is the summary of such an exploration, using Generative AI like ChatGPT4o, Doubao, Kimi, Germini & Perplexity.

The prompt was: 
present mobile phone has reached the saturation state, what will be the next kind of mobile phone. what functions will they have?

I combined their results and regrouped them into 17 categories which are shown in the mind map below:

Using BVITS For 'Absurd' Ideas Generation

However, to be extremely creative, and to have radical ideas, we need to have some methods that will break our prejudices and see into our blindspots. 

Some years back, I created a method called "BVITS“, see the post for the details.

“If at first the idea is not absurd, then there is no hope for it.” ― Albert Einstein

While the BVITS method shows us how to think 'absurdly', it is very difficult for us to follow since it is acting against our stereotype fixed mindset.  The best is to let the computer generate absurd ideas for us. I had done that using Axon Idea Processor software. Unfortunately, it is no longer available. So I wrote an improved version using Python named "BVITS Ideas Generator ".

The BVITS basic method just uses 3 lines of text. Using the smartphone as an example:

   1st Line: New System Name e.g. NewPhone
   2nd Line: Components e.g. Screen CPU Memory Camera Apps Battery Sensor
   3rd Line: Environment Components e.g. 'People', 'Internet', 'Satellites', 'Things'

We can generate as many absurd ideas as we wish. 

Below is a run of the program:

BVITS Ideas Generator 0.0 by Lim Liat 11-6-2024 copyrighted
BVITS Ideas Generator 0.0 by Lim Liat 11-6-2024 copyrighted

BVITSIGEN Input File Format:
3 lines of text as descrbed below

   1st Line: New System Name e.g. NewPhone
   2nd Line: Components e.g. Screen CPU Memory Camera Apps Battery
   3rd Line: Environment Components e.g. People Building

BVITGEN-Input.txt Example:

NewPhone
Screen CPU Memory Camera Apps Battery
People Building
========================================

New system is:
NewPhone
The Components are:Screen CPU Memory Camera Apps Battery Sensor
['Screen', 'CPU', 'Memory', 'Camera', 'Apps', 'Battery', 'Sensor']
Size is 7
The Environment Elements are:
['People', 'Internet', 'Satellites', 'Things']

The Generated Ideas are:
------------------------

The ideas generated are kept in a file BVITSGenIdeas.txt
Ideas are appended to the file. So you can run many times and all ideas are kept
Enter the number of ideas wanted: 20
-----
Intensify:Change and Intensify the value of CPU's parameters
Outsource:For NewPhone replace Apps by Internet
Irregularize: Create a dependency between Battery and Memory
Combine: Merge Screen and Camera
TakeOut:NewPhone without Sensor
Irregularize: Create a dependency between Battery and Camera
TakeOut:NewPhone without CPU
Adopt: Bring into NewPhone a function or attribute in Things
TakeOut:NewPhone without Memory
DropIn: Take in the practices from other industries, countries, living things or nature.
Divide:Segment NewPhone over phase change (Solid->Liquid->Gas)
Combine: Merge Memory and Apps
Outsource:For NewPhone replace CPU by Satellites
TakeOut:NewPhone without Sensor
Intensify:Change and Intensify the value of Camera's parameters
DropIn: Take in the practices from other industries, countries, living things or nature.
Adopt: Bring into NewPhone a function or attribute in People
Invert: Reverse the relationship between Screen and Sensor over force (gravity, mechanical, thermal, chemical, Sonar, ElectroMagnetic, AI)
Combine: Merge Sensor and Sensor
Invert: Reverse the relationship between Memory and CPU over Time (start,end,duration,pre/post-action, cycle, frequency) 
 
To continue (Y/N)?n 
Data has been appended to BVITSGenIdeas.txt
To sort the ideas (Y/N)?n
Duplicated ideas are removed and put in BVITSGenIdeasP.txt
That's all folk. Hope it helps
Hit <Enter> to exit program

Feeding the Absurd Ideas Back to Generative AI

We can take any of the generated ideas and feed it back to the Generative AI.
Take the following one --- Irregularize: Create a dependency between Battery and Memory.
Our initial response would be, "What's that? So silly."
But when we use it as a prompt to ChatGPT 4o model, we get a long list of suggested features ending with a prototype:

Conceptual Smartphone Example

Model Name: EcoSmart X1

Key Features:

  • Adaptive Power and Memory Management: Adjusts memory allocation and power usage dynamically based on battery levels.
  • Smart Application Control: Limits background processes and prioritizes essential apps when battery is low.
  • Energy-Efficient Memory: Incorporates LPDDR5 and non-volatile memory for reduced power consumption.
  • Real-Time Monitoring: Provides real-time alerts and adjustments for optimal performance and power efficiency.
  • Machine Learning Optimization: Learns user behavior to predict and optimize resource allocation.

By integrating these features, the EcoSmart X1 ensures a balance between high performance and energy efficiency, providing users with a longer-lasting and more reliable smartphone experience.

Try another one:  Adopt: Bring into NewPhone a function or attribute in Internet

Integrating advanced internet-based features into a new smartphone can significantly enhance user experience and functionality. Here's a conceptual overview of a new smartphone with an innovative internet-dependent feature:

Conceptual Smartphone: ConnectSmart Z1

Key Feature: Smart Web Optimizer

Description: The Smart Web Optimizer is an intelligent feature designed to enhance browsing speed, data usage efficiency, and overall internet experience on the smartphone. It leverages AI, cloud computing, and advanced network protocols to optimize web content delivery based on user habits, network conditions, and battery levels.

Features and Functionalities:

  1. AI-Driven Content Caching:

    • Predictive Caching: Uses machine learning to predict and pre-load frequently accessed websites and web pages based on user habits. This ensures faster load times and a smoother browsing experience.
    • Local and Cloud Caching: Balances caching between local storage and cloud servers to optimize performance and storage usage.
  2. Dynamic Data Compression:

    • Adaptive Compression: Compresses web content dynamically based on the current network speed and battery level. Higher compression rates can be applied during slower network connections or when the battery is low to save data and power.
    • Content-Specific Compression: Applies different compression techniques for text, images, and videos to maintain a balance between quality and data efficiency.
  3. Enhanced Security and Privacy:

    • Encrypted Browsing: Ensures all web traffic is encrypted for secure browsing, protecting user data from potential threats.
    • Ad and Tracker Blocking: Includes built-in ad and tracker blocking to enhance privacy and reduce data usage.
  4. Seamless Connectivity Management:

    • Smart Network Switching: Automatically switches between Wi-Fi, LTE, and 5G based on signal strength and data needs, ensuring the best connection at all times.
    • Data Usage Monitoring: Provides real-time monitoring of data usage with detailed insights, allowing users to manage their data plans effectively.
  5. Battery and Performance Optimization:

    • Energy-Efficient Browsing: Reduces power consumption by optimizing the rendering process of web content, especially during low battery conditions.
    • Background Activity Management: Limits background data usage of apps when the battery is low or when on a limited data plan.

Implementation:

  • Software Integration: The Smart Web Optimizer can be integrated into the phone's operating system, working seamlessly with the default browser and other internet-dependent apps.
  • Cloud Services: Utilizes cloud computing for predictive caching and dynamic data compression, ensuring minimal impact on local device resources.
  • User Interface: Offers an intuitive interface within the settings menu, allowing users to customize their browsing experience, such as adjusting compression levels, managing cache storage, and setting data usage alerts.

Example Scenario:

A user frequently visits news websites in the morning. The Smart Web Optimizer predicts this behavior and pre-loads the latest news articles during off-peak hours or when the device is charging overnight. As the user opens their browser, the pages load instantly. When the user is on a limited data plan, the feature compresses images and videos to reduce data usage, ensuring they can access more content without exceeding their data limits. If the battery is low, the optimizer reduces background activity and switches to a less power-intensive network mode to save energy.

By incorporating the Smart Web Optimizer, the ConnectSmart Z1 ensures users enjoy a fast, efficient, and secure internet experience, tailored to their usage patterns and network conditions.

This ConnectSmartZ1 idea is a superset of Apple Intelligence: every new AI feature coming to the iPhone and Mac latest

Try another seemingly ridiculous one:

The new smartphone can be: Segment NewPhone over phase change (Solid->Liquid->Gas)

ChatGPT:

Segmenting the marketing campaign for the new smartphone, "NewPhone," over the phases of a phase change (solid -> liquid -> gas) can provide a creative and memorable way to highlight its features and lifecycle. Here’s how you can break it down:

Solid Phase: Stability and Durability

  • Tagline: "Solid as a rock."
  • Features to Highlight: Build quality, durability, long battery life, robust design, and reliability.
  • Marketing Focus:
    • Showcase the phone's resistance to drops, scratches, and everyday wear and tear.
    • Emphasize the long-lasting battery and the reliability of the hardware.
    • Customer testimonials focusing on durability and reliability in various environments.

Liquid Phase: Flexibility and Adaptability

  • Tagline: "Flows with you."
  • Features to Highlight: Versatile software, adaptive performance, seamless connectivity, and fluid user experience.
  • Marketing Focus:
    • Demonstrate how the software adapts to different user needs and preferences.
    • Highlight features like multitasking, seamless app integration, and smooth transitions between tasks.
    • Use scenarios showing how NewPhone fits into different lifestyles, from professional to personal use.

Gas Phase: Innovation and Expansion

  • Tagline: "Reaching new heights."
  • Features to Highlight: Cutting-edge technology, innovation, advanced camera features, and expansive capabilities.
  • Marketing Focus:
    • Showcase the latest innovations and advanced technology incorporated into the NewPhone.
    • Emphasize features like high-resolution cameras, AI capabilities, and future-proof technology.
    • Use aspirational imagery and narratives to position the NewPhone as a leader in innovation, showing it pushing the boundaries of what a smartphone can do.

Integrated Campaign Strategy

  • Visuals and Media:

    • Solid Phase: Strong, bold visuals with emphasis on strength and durability. Use imagery of rugged environments, showcasing the phone's build.
    • Liquid Phase: Smooth, flowing visuals that depict flexibility and ease of use. Show diverse use cases and environments, emphasizing adaptability.
    • Gas Phase: Airy, expansive visuals that symbolize freedom and limitless possibilities. Highlight futuristic elements and cutting-edge technology.
  • Promotional Events:

    • Launch events that transition through the phases, starting with a showcase of durability tests (solid), moving to live demos of software and user interface (liquid), and concluding with a reveal of innovative features and future updates (gas).
    • Social media campaigns that progressively unveil each phase, building anticipation and engagement over time.
  • Customer Engagement:

    • Encourage user-generated content by asking customers to share their experiences relating to each phase, using specific hashtags for each phase to create a sense of progression and community involvement.
    • Provide incentives for customers who participate in all three phases, such as exclusive access to new features or special discounts.

Conclusion

This segmented approach not only highlights different aspects of the NewPhone's capabilities but also creates a narrative that captures the product's journey from being a sturdy, reliable device to a flexible, user-friendly tool, and ultimately to a cutting-edge, innovative gadget. This phased marketing strategy can engage customers at different levels and keep them interested throughout the product lifecycle.

Endless Radical Ideas

By using the BVITS Idea generator with Generative AI, we can come up with endless innovations that could be made.

Lim Liat (c) 17 June 2024

 


14 June 2024

Life Lessons from Programming

Life Lessons from Programming:

1. It is all about decision-making...

If..then...else...

Know the conditions for success and those for failures.
Study the consequences.
Learn from the mistakes. Don't blame. Don't complain. Those actions are futile. Such a concept in management is called 'above the line' thinking.
2. Errors happen at the boundaries.

Two types of errors --- starting and ending.
Type 1 Starting: Forget to initialize the variables.
Don't just anyhow start. Many people failed because they heard that "Entrepreneurs must take risks." But the truth is that "Successful serial entrepreneurs minimize risks first before they start." That's why they are serially successful. Sun Zi tells us, "Winners calculate first and only fight the war that they can win. Losers start a war first and then try to win.". So you know the secret of "hundreds of batters hundreds of wins". Initial the variables rightly. Compute and start only if you can still make it even if the worse happens.
Type 2 Ending: Don't know how to stop.
The program runs without end or until it crashes with an error.
Sun Zi tells us that we must stop when there are no more benefits. Many gamblers wishfully hope that one more attempt will win back all after a long series of losses. They became bankrupt. Must know the conditions for stopping when enough is enough. Sunk costs are lost costs, don't try to invest more good money to recover sunk costs. Face the facts, read the trends, and stop with contentment. Rest that you may go even further.
3. It is about Data Types:

A string '123' is not the same as an integer 123. They operate differently. '123'+'456'='123456', whereas, 123+456=579.
People are of different types. No way to treat them the same. They are good for different types of jobs. So key in human capital management is the matching of people-types and job-types. Got them right and the company will do well. Got them wrong, you will be spending time solving relationship and productivity problems and living a stress-filled life.
So learn from programming well.

Lim Liat (c) 7-Mar-21
opSdronest1

7