khub.ai Articles

A collection of articles on the research and applications of Generative AI

View the Project on GitHub

Banner Image

From Visual Common Sense to AGI

Published: February 29, 2024

Does OpenAI’s vision model GPT-4V have sufficient visual common sense to support AGI (Artificial General Intelligence)? Here we evaluate GPT-4V against a suite of 17 fundamental visual capabilities.

Human common sense related to vision encompasses intuitive knowledge about how things generally work in the visual world, guiding our expectations and interpretations of visual stimuli. Here’s a list that captures some of these common-sense understandings:

  1. Object Permanence: The understanding that objects continue to exist even when they cannot be seen, heard, or touched.
  2. Gravity’s Effect: Recognizing that unsupported objects will fall toward the Earth due to gravity.
  3. Light Source and Shadows: Knowing that light sources create shadows and the direction and length of a shadow provide clues about the light’s location and time of day.
  4. Perspective and Size: Understanding that objects appear smaller the farther they are from us, and this change in size helps gauge distance.
  5. Reflections and Mirrors: The knowledge that smooth, shiny surfaces like mirrors can reflect images and that reflections follow specific rules (e.g., symmetry, angle of incidence equals angle of reflection).
  6. Transparency and Opacity: Recognizing that some materials (like glass) are transparent and allow light to pass through, whereas others are opaque.
  7. Facial Recognition: The ability to identify and distinguish between different faces, often automatically and from a very young age.
  8. Emotion through Facial Expression: Understanding that facial expressions convey emotions and intentions.
  9. Continuity of Movement: Expecting movement to be smooth and continuous and using this to predict future positions of moving objects.
  10. Depth Perception: The ability to perceive the world in three dimensions and to judge the distance of objects.
  11. Natural Affordances: Intuiting the use of objects based on their shape and size (e.g., understanding that a chair is for sitting).
  12. Causality in Vision: Understanding that certain visual events cause others, such as an object being pushed and then moving.
  13. Biological Motion Recognition: The ability to recognize the movement patterns of living beings as distinct from inanimate objects.
  14. Visual Illusions Awareness: Acknowledging that our visual perception can be deceived by certain patterns or contexts, leading to incorrect interpretations of size, color, or shape.
  15. Spatial Relationships: Understanding the spatial relationships between objects, including concepts like next to, above, below, and inside.
  16. Visual Texture and Material Identification: Recognizing materials and textures (smooth, rough, soft, hard) by their appearance.
  17. Weather and Environmental Cues: Using visual cues to infer weather conditions or time of day, such as cloud formations indicating rain or the color of the sky signaling sunset or sunrise.

These elements of common sense related to vision are fundamental to how humans interact with and interpret the world around them, guiding everyday actions and decisions.

Experimental Setup

Prompting technique

Proper prompting for a vision model is very important in setting the context and direct the model’s attention in the right direction.

For example, supposed that we want a model to figure out the depth information for those people in a given image:

Banner Image

If we prompt the GPT-4V model as follows:

There are two persons in the image. Tell me which person is further away than the other?

Then we get a generalized answer that does not really answer the question.

I can’t view images directly in my current environment. However, if you have an illustration or a photograph with two individuals, the person who appears smaller or whose body parts (like the head or torso) are partially obscured by the other person is generally perceived to be further away. In typical side-by-side portraits, the person who is more in the background or has less of their body visible in the frame is usually the one who is further away.

However, if we prompt the model as follows:

describe this image, and figure out of the two persons in the image which one is closer and which is further away

then we get a good answer. Details can be found HERE.

Experiments

  1. Object Permanence

    Given the following image:

    Prompt:

    What will we see if this child remove his hands?

    Response:

    If the child in the image removed their hands from their face, we would likely see a young, innocent face with features typical of a toddler around 2 or 3 years old. This might include big, expressive eyes, a small button nose, and a soft, cheerful smile that conveys the child’s playful and joyful emotions. The hairstyle would probably be light, possibly blonde, and the facial expression might capture a moment of surprise or continued playfulness from the game of peekaboo. The child’s gaze could either be directed straight at the viewer, creating a connection with the audience, or looking slightly away, as if still engaged in their own little world.

    Verdict: passed

  2. Gravity’s Effect

    Given the following image:

    Prompt:

    What will happen if the burner stops working?

    Response:

    If the burner on a hot air balloon stops working, the immediate consequence is that the balloon would stop ascending. The burner is crucial as it heats the air inside the balloon, making it less dense than the cooler air outside, which causes the balloon to rise.

    Here’s what would typically happen:

    1. Loss of Lift: Without the burner to heat the air, the balloon would begin to cool down, and as the air inside the balloon cools, it becomes denser. This causes a reduction in lift.

    2. Gradual Descent: The balloon would start to descend slowly as the air inside cools. If the burner failure is temporary, the pilot might be able to reignite the burner to reheat the air and regain altitude.

    (long text ommitted)

    Verdict: passed

  3. Light Source and Shadows

    Given the following image:

    Prompt #1:

    Describe this image

    Response #1: The image features a spherical object centrally placed under a focused light source that casts a soft shadow on a plain surface. The sphere has a glossy texture (long text ommited)…

    Prompt #2:

    If I move the sphere to the left, then what will happen to the shadow?

    Response #2: If the sphere is moved to the left while the light source remains stationary, the shadow would also move to the left correspondingly. The position of the shadow is directly related to the position of the sphere in relation to the light source. The shadow’s shape might also change slightly depending on the angle of the light and the new position of the sphere, but it would still be cast away from the light source. The highlight on the sphere that is closest to the light source would shift according to the sphere’s new position relative to the light.

    Verdict: passed

  4. Perspective and Size

    Given the following image:

    Prompt:

    Which person in the given image is actually the largest when taking into account of the perspective

    Response:

    The image shows four identically dressed figures, each holding a briefcase and spaced at intervals on a surface with converging lines that indicate perspective. From the perspective of the viewer:

    The figure closest to the front of the image appears to be the smallest. Each subsequent figure appears progressively larger due to their positioning further back in the space.

    If we account for perspective and assume that all figures are of equal size in reality, the figure that appears smallest (the one closest to the front) would actually be the largest in physical size compared to how they are depicted. This is because, in perspective drawing, objects that are closer to the viewer are drawn larger than those further away. However, since the figures are likely intended to represent people of the same size in a three-dimensional space, they would actually be the same size in reality. The apparent size difference is an optical illusion created by the rules of perspective in the drawing.

    Verdict: passed

  5. Reflections and Mirrors

    Given the following image:

    Prompt:

    Describe every person in this image

    Response:

    In this black and white image, there appears to be only one woman. She is facing away from the camera, leaning on what seems to be a counter or a bar, with her arms outstretched and resting on the surface. Her reflection is visible in a large mirror in front of her, which allows us to see she has a short, wavy hairstyle typical of the early to mid-20th century, and is wearing a sleeveless dress with a fur shawl or boa draped over her shoulders. Her expression is not clearly discernible, but she appears to be looking slightly to her left side in the reflection. The setting suggests a luxurious interior, possibly from a bygone era, evoking a sense of vintage glamor.

    Verdict: passed

  6. Transparency and Opacity

    See experiment #3, where the sphere is identified as of glass material.

    Verdict: passed

  7. Facial Recognition

    Verdict: deferred

    This test cannot be completed because both GPT-4V and Google Gemini Advanced refused to identify people in the image.

  8. Emotion through Facial Expression

    Given the following image:

    Prompt:

    Describe the state of mind of the person in the image

    Response:

    The person in the image appears to be a man dressed in a business suit with a striped tie, who is making an exaggerated facial expression and gesture that mimics choking himself. His expression could be interpreted as one of distress or discomfort, but given the context of the photo, which seems staged and not in a real-life threatening situation, it’s more likely that the man is acting or posing for the camera. The overall impression is that the image is meant to be humorous or illustrative of stress or frustration rather than depicting actual harm or fear.

    Verdict: passed

  9. Continuity of Movement

    Given the following image:

    Prompt:

    Predict what will happen if a driver seeing this scene continue to proceed at high speed.

    Response:

    The image suggests a jackknifed truck on a snowy road, indicative of slippery and hazardous driving conditions. If a driver were to approach this scene at high speed, several outcomes could occur:

    1. Collision: The most immediate risk is a collision with the truck due to the inability to stop in time on the slippery road.

    2. Loss of Control: The driver could lose control of their vehicle while attempting to avoid the truck, potentially leading to a spinout or crash.

    3. Additional Accidents: High speed in such conditions increases the risk of a multi-vehicle pile-up, especially if visibility is low and other drivers are also unable to react in time.

    4. Injuries or Fatalities: High-speed impacts, particularly in dangerous conditions, greatly increase the likelihood of serious injuries or fatalities.

    It is crucial for drivers to reduce speed and proceed with extreme caution in adverse weather conditions, especially when encountering an accident scene.

    Verdict: passed

  10. Depth Perception

    Prompt:

    Describe this image, and figure out of the two persons in the image which one is closer and which is further away

    Response:

    The image is an illustration of two people. On the left, there is an elderly man, likely in his senior years, dressed in a suit with a tie, and wearing glasses. He appears to be gesturing with his hand over his heart, which might indicate sincerity or making a point. On the right, there is a younger woman with dark hair, wearing glasses, and a black garment with what seems to be a pattern of letters or symbols. She has her index finger raised, which often suggests she’s making a point or indicating she has something to say.

    Regarding their positions, the man appears to be slightly further away because he is partially behind the woman. The woman is closer to the viewer as indicated by her full frontal appearance and the fact that she overlaps the man’s image. This overlapping and the relative size and clarity of the figures suggest that the woman is positioned closer to the viewer than the man.

    Verdict: passed

  11. Natural Affordances

    Prompt #1:

    Choose the best spot in the given image for a good night of sleep

    Response #1:

    The image shows a dining room setting with a table, chairs, and a bench, which are not designed for sleeping. For a good night’s sleep, one would typically look for a comfortable bed in a quiet and dark room. However, if one had to choose a spot from the given image, the bench could potentially be the most suitable option, as it is the longest piece of furniture and could allow for a reclined position. Nevertheless, it is important to note that sleeping on a bench is not advisable for a restful sleep as it doesn’t provide the proper support and comfort that a bed would.

    Prompt #2:

    Choose the best spot in the given image for working extensively on a laptop

    Response #2:

    The best spot in the given image for working extensively on a laptop would be at the dining table. The chairs around the table provide a place to sit, and the table itself offers a flat, stable surface at a comfortable height for typing and viewing a laptop screen. This setup would likely provide the most ergonomic and practical work environment given the furniture present in the image.

    Verdict: passed

  12. Causality in Vision

    Prompt #1:

    The given image is a Rube Goldberg Machine. Explain how this machine works.

    Response #1:

    In this image, if we were to imagine it as a Rube Goldberg machine, the sequence could go as follows:

    1. The candle is lit, representing the initial energy or trigger.
    2. If the balloon were to drift or be pulled towards the lit candle, the heat from the flame could cause the balloon to pop.
    3. The popping of the balloon could be the final action, or it could, in theory, trigger another event, such as startling the cactus (though in reality, the cactus would not react).

    Prompt #2:

    Assuming that the balloon does not drift, give me another explanation

    Response #2:

    If the balloon remains stationary and doesn’t drift towards the flame, another Rube Goldberg-like explanation might involve the heat from the candle causing the air inside the balloon to expand. However, in a realistic scenario, the distance between the candle and the balloon seems too great for the heat to have any effect, assuming the balloon is not filled with a highly reactive gas and that standard physics apply.

    Prompt #3:

    What if the candle burn through the string, then what could happen next?

    Response #3:

    If the string were to be positioned close enough for the candle’s flame to burn through it, here is a potential sequence of events in a Rube Goldberg machine context:

    1. The candle burns steadily until the flame comes into contact with the string holding the balloon.
    2. The heat from the candle flame eventually burns through the string.
    3. Once the string is severed, the balloon is released and begins to float upward or drift away, depending on the surrounding air currents and the inflation gas.
    4. If the balloon is filled with helium or another lighter-than-air gas, it would ascend. If it’s simply air-filled, it may just drop to the ground.
    5. The movement of the balloon, whether ascending or falling, could trigger another step in the machine. For example, the balloon could knock into a switch, release another object, or press a button as it moves.

    Prompt #4:

    The balloon cannot have been filled with helium, since in its initial state it is hanging downwards from the string, and not floating on top.

    Response #4:

    That’s a correct observation. If the balloon is hanging downwards, it’s likely filled with air rather than helium. If the candle were to burn through the string in such a setup, here’s what could happen next:

    1. The string is burned through, and the balloon is no longer suspended.
    2. The balloon falls directly downward due to gravity.
    3. Upon hitting the cactus or the floor, if the balloon doesn’t pop from the cactus spines, it may simply come to rest on the surface or roll away, depending on the angle of impact and the surface texture.

    Verdict: passed, sort of. Obsviously GPT-4V is not a master in Rube Goldberg machines, and it requires some prodding to reach the correct conclusion. However, the dialog demonstrates the GPT-4V does have the capability to perform causality analysis through vision.

  13. Biological Motion Recognition

    This requires the model to be able to process time-based images, i.e., videos, thus this test is deferred.

    Verdict: deferred

  14. Visual Illusions Awareness

    Prompt:

    Describe this image

    Response:

    The image presents an optical illusion known as the “impossible staircase” or “Penrose stairs,” which is a two-dimensional depiction of a structure that appears to be a three-dimensional staircase forming a continuous loop. The stairs make four 90-degree turns as they ascend or descend to form a square or rectangular arrangement, creating the illusion that one could walk forever either upwards or downwards without ever getting any higher or lower. This object cannot exist in three-dimensional space as it defies the laws of physics and Euclidean geometry. It is an example of an “impossible object,” which is a type of optical illusion.

    Verdict: passed

  15. Spatial Relationships

    Prompt #1:

    For each of the four panels in the given image there is a kid and a box in each panel. Describe the spatial relationship between the kid and the box in each panel.

    Response #1:

    In the given image with four panels, each with a kid and a box, the spatial relationship between the kid and the box in each panel is as follows:

    Top left: The kid is under the box, with the box balanced on their back and feet in the air.
    Top right: The kid is standing to the left side of the box.
    Bottom left: The kid is coming out of the box, with the upper part of their body visible and legs presumably inside the box.
    Bottom right: The kid is at the back of the box, with arms spread wide and possibly having just jumped out of it.

    Note that the model has made an mistake with the bottom-left panel, where it thought that the girl is inside the box. This type of error in a complex scene sometimes can be fixed by directing the model’s to pay specific attention to it.

    Prompt #2:

    inspect #3 again, paying attention to the girl’s legs.

    Response #2:

    Upon re-inspection of panel #3:

    The girl is actually sitting in front of the box with her legs crossed. It appears as though she has just emerged or is sitting outside of the open box.

    Verdict: passed, but with additional attempt.

  16. Visual Texture and Material Identification

    Prompt:

    Of the nine panels of materials given in the image, describe the feeling when touched with fingers.

    Response:

    Based on the appearance of each material in the nine panels, here are guesses on how each might feel when touched:

    1. Top left: Silky and smooth with a cool touch, similar to satin or silk fabric.
    2. Top center: Slightly sticky and pliable with a bumpy surface, like bubble wrap.
    3. Top right: Cool, fluid, and slightly slippery, akin to water.
    4. Middle left: Soft and fluffy, possibly with a fibrous texture, like sheep’s wool or a woolen blanket.
    5. Middle center: Hard and rigid with a textured, diamond-patterned surface, like a metal checker plate.
    6. Middle right: Soft, with a fine texture that might tickle slightly, similar to fresh grass.
    7. Bottom left: Rough, uneven, and hard, similar to a cobblestone path or rough-hewn stone.
    8. Bottom center: Mesh-like with large, open spaces and a flexible feel, resembling netting or mesh fabric.
    9. Bottom right: Smooth and cool with a slight bumpiness, like a glass surface with water droplets on it.

    Verdict: passed

  17. Weather and Environmental Cue

    Prompt:

    The image is captured by the front camera of the car. Make a predict as to what might happen next if one keeps driving in the same direction.

    Response:

    The image depicts a large tornado funnel touching down on a road directly in the path of the viewer. If one were to continue driving in the same direction, the following could happen:

    Entering the Tornado’s Path: The vehicle could enter the direct path of the tornado, which would be extremely dangerous.

    Vehicle Damage: The intense winds and flying debris associated with a tornado could cause significant damage to the vehicle.

    Risk to Life: There is a high risk of injury or fatality for anyone in a vehicle that is caught by a tornado due to the violent forces and debris.

    Potential for Being Lifted or Flipped: Tornadoes can lift and toss vehicles, which would likely result in a loss of control and potentially catastrophic outcomes.

    It is strongly advised to never drive towards a tornado and to seek immediate shelter if a tornado is spotted on your path. The best course of action in such a situation is to turn around and drive away from the tornado if possible, or to leave the vehicle and find a secure shelter.

    Verdict: passed

Other tests

We have tested GPT-4V for common sense behavior in specific domains:

Conclusions

The tests indicate that OpenAI’s vision model GPT-4V possesses a significant degree of visual common sense, which could be conducive to supporting AGI, but it’s important to recognize that more extensive testing and a larger data set are necessary for a conclusive assessment. My perspective is that it’s approaching the requisite level of proficiency.

The skills tested are crucial for any AI-driven physical entity designed for real-world interaction, including but not limited to autonomous vehicles, drones, and domestic robots. Multimodal Large Language Models (LLMs) like GPT-4V, once optimized for speed and efficiency, are poised to play a pivotal role in this arena.

Additional Resources

Banner Image