• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 09:03
CET 15:03
KST 23:03
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12Intel X Team Liquid Seoul event: Showmatches and Meet the Pros10
Community News
Weekly Cups (Dec 1-7): Clem doubles, Solar gets over the hump0Weekly Cups (Nov 24-30): MaxPax, Clem, herO win2BGE Stara Zagora 2026 announced15[BSL21] Ro.16 Group Stage (C->B->A->D)4Weekly Cups (Nov 17-23): Solar, MaxPax, Clem win3
StarCraft 2
General
Weekly Cups (Dec 1-7): Clem doubles, Solar gets over the hump Chinese SC2 server to reopen; live all-star event in Hangzhou Maestros of the Game: Live Finals Preview (RO4) BGE Stara Zagora 2026 announced Weekly Cups (Nov 24-30): MaxPax, Clem, herO win
Tourneys
StarCraft2.fi 15th Anniversary Cup Tenacious Turtle Tussle Sparkling Tuna Cup - Weekly Open Tournament RSL Offline Finals Info - Dec 13 and 14! StarCraft Evolution League (SC Evo Biweekly)
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 503 Fowl Play Mutation # 502 Negative Reinforcement Mutation # 501 Price of Progress Mutation # 500 Fright night
Brood War
General
BW General Discussion BGH Auto Balance -> http://bghmmr.eu/ Foreign Brood War Data analysis on 70 million replays MBCGame Torrents
Tourneys
Small VOD Thread 2.0 [Megathread] Daily Proleagues [BSL21] RO16 Group D - Sunday 21:00 CET [BSL21] RO16 Group A - Saturday 21:00 CET
Strategy
Current Meta Game Theory for Starcraft How to stay on top of macro? PvZ map balance
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread Path of Exile ZeroSpace Megathread The Perfect Game
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Mafia Game Mode Feedback/Ideas TL Mafia Community Thread
Community
General
Things Aren’t Peaceful in Palestine European Politico-economics QA Mega-thread US Politics Mega-thread Russo-Ukrainian War Thread The Big Programming Thread
Fan Clubs
White-Ra Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece Movie Discussion!
Sports
2024 - 2026 Football Thread Formula 1 Discussion
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
Where to ask questions and add stream? The Automated Ban List
Blogs
I decided to write a webnov…
DjKniteX
Physical Exertion During Gam…
TrAiDoS
James Bond movies ranking - pa…
Topin
Thanks for the RSL
Hildegard
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1749 users

Towards a good SC bot - P5 - H.I. (1/2)

Blogs > imp42
Post a Reply
imp42
Profile Blog Joined November 2010
398 Posts
Last Edited: 2016-11-23 15:40:40
November 23 2016 04:57 GMT
#1
Towards a good StarCraft bot - Part 5 - "Human Intelligence (1/2)"

Summary:
+ Show Spoiler +
A short overview over the executive functions (cognitive capabilities) I consider most relevant for StarCraft players - human or artificial.


While Neural Nets keep me busy, it is a good time for a change of perspective. If we want good Artificial Intelligence bots, what can we copy from Human Intelligence? How do humans work?

That is obviously a very broad question. It involves many different subfields. Here, I pick some aspects that I personally consider important and related to the ability to play games like StarCraft on a high level.

What is human intelligence?
There are many different definitions. So, I just pick one that suits my purpose: human intelligence is the intellectual capacity characterized by perception, consciousness, self-awareness, and volition. It gives humans the cognitive abilities to learn, form concepts, understand, and reason.

Can intelligence be measured?
As the definition of intelligence suggests, there are several dimensions to intelligence. However, there is a notion of general intelligence called “g” or “g factor”. Supporters of this notion believe “g” to be a good metric because it summarizes performance among different cognitive tasks. Many different tests have been developed around such cognitive tasks, to capture the dimensions of intelligence. One test that is believed to be positioned at the center of all those dimensions is called the Raven Progressive Matrices test. This shown in the following illustration:

[image loading]

Figure taken from: Carpenter, P. A., Just, M. A., & Shell, P. (1990). What one intelligence test measures: a theoretical account of the processing in the Raven Progressive Matrices Test. Psychological Review, 97(3), 404–431.

Executive functions
As we learned, intelligence gives us the cognitive abilities required to e.g. play a game of StarCraft. There are ways to measure intelligence and tests have been developed in an attempt to do so. Many tests attempt to capture dimensions of intelligence by measuring performance of a set of execute functions. Executive functions are a set of cognitive processes highly relevant to how well we play StarCraft*. Because these cognitive processes include attentional control, working memory, reasoning, problem solving, and (very important) planning.

*+ Show Spoiler +
On a side note, the same processes are also highly relevant in assessments to identify high-potentials and future leaders in corporates. But we don’t really care about that, right?


Let me elaborate a bit and put each of the mentioned processes into the context of playing a game of StarCraft:

Attentional control: the capacity to choose what to pay attention to and what to ignore. Clearly relevant when perceiving all the graphical (and audio) input from the game. Indicators of mineral/gas income, max supply/used supply, health bars, moving dots on the mini-map, etc. etc. This also includes the ability not to pay attention to the nice reflections in the water or the cute animation of the critter.

Working memory: the system responsible for holding, processing, and manipulating information. There are only so many things we can keep in our working memory at once. A rough estimation is 5 +/- 2 (i.e. between 3 and 7). This implies even the best player is prone to make mistakes when he needs to deal with more than 7 issues simultaneously. Cleary StarCraft overburdens human working memory, so we need to be selective (see attentional control).

Reasoning: the capacity to apply logic and establish facts and beliefs. “If we are at the t minute mark in the game and the opponent already has x units of type y out, then he can impossibly have any units of type z” is an example of such reasoning. Or more simply: “My scout arrives at his base and the base is empty -> he must have a proxy somewhere”.

Problem solving: The capacity to use generic or ad hoc methods to find solutions to problems. Let’s say you played ladder some years ago and ran into a player called “Gaulzi”. You would immediately know he _only_ does cannon rushes. And sure enough, you find a pylon warping in behind your mineral line. Since you already knew it was coming you can apply a generic “defend against canon rushes” method, even though you may have never faced the exact same situation (same map, same spots, pylon on the same tile, etc.) before. Let’s now assume you ran into TLO in the early days. You might end up playing against something you have never seen before. Your ability to come up with an answer on the spot is referred to as ad-hoc problem solving.

Planning: the capacity to think about and organize activities required to achieve a required goal. In StarCraft it is very beneficial to have a goal in mind _before_ entering the game (precisely because we’re not good enough at planning while we have to perform all the other cognitive tasks at the same time). Still, we definitely need to be able to adjust our plan once we encounter a deviation in the game state that makes our initial plan infeasible. People good at planning can come up with very efficient build orders or are able to optimally exploit a given map.

Conclusion
I have given you a short overview of some cognitive capabilities I consider very relevant in the context of StarCraft. On one hand, it is a very narrow selection and I haven’t even touched concepts like perception or learning yet. On the other hand, each of the mentioned cognitive capabilities is a research field in its own right and there is no way to give them justice in a blog post. If you are interested, please take this post as a pointer for your own investigations. I am sure you can also benefit as a human player.

If we want to create a successful bot, we need to master the presented cognitive capabilities in one way or another. In a next post, I will attempt to map the cognitive capabilities to attributes of an artificial intelligence, compare strengths and weaknesses and hopefully lay out a road map to cover current deficiencies of bots.

Disclaimer
Although I did deal with this subject in-depth for a good while, I am not a Neuroscientist. Apart from a 3-digit number of published scientific papers that I read I do also rely on Wikipedia as a source.



50 pts Copper League
Jett.Jack.Alvir
Profile Blog Joined August 2011
Canada2250 Posts
November 23 2016 15:54 GMT
#2
If you are trying to emulate human intelligence using those 5 processes, which would you say would be the most difficult for an artificial intelligence bot?

I can already assume attentional control and working memory are easy to design, unless you intentionally design your bot to get distracted by shiny objects and a memory of a goldfish. In fact, this might be where an artificial intelligence bot will be superior to human intelligence (aside from having automaton 1000 micro)

Reasoning will have limitations as the game goes longer, so that might be challenging for your bot. In super long games where all upgrades/units are unlocked, trying to use reasoning might become an exercise in futility.

Problem solving will be the greatest challenge for an AI, specifically ad-hoc problem solving. Your AI could have a plethora of problems it has encountered and solved, but can it account for every problem ever encountered in a game of SC? Because one of the truly remarkable capacities of humans is to 'think on our feet', which is a realm an AI might struggle with.
imp42
Profile Blog Joined November 2010
398 Posts
November 23 2016 16:20 GMT
#3
you mostly answered it yourself, here is my view as a preview of the next post:

Attentional Control: needs to be modeled for AI as well. Yes, a computer can simultaneously handle 3 incoming drops with ease and split the army perfectly, but at a lower level we have to deal with how this is done. Which process gets priority and access to CPU cycles?

Working Memory: not an issue for an AI.

Reasoning: Computers are good at reasoning if they are given a universe in which to reason. See e.g. theorem provers written in logical programming languages.

Problem solving requires the crucial abilities to generalize and to transfer.

Planning requires the crucial abilities to extrapolate and imagine.

So yes, the last two contain the real challenges and current Neural Nets are not the solution to those challenges IMO.

PS: you will probably laugh but I have spent several days thinking about how to make a computer discover the concept of addition (unsupervised), and I haven't come up with a good answer yet

E.g.: given the fact that 1 + 1 = 2, how can a computer extrapolate that 2 + 1 = 3 and how can it generalize that the concept holds for any natural numbers?
50 pts Copper League
Jett.Jack.Alvir
Profile Blog Joined August 2011
Canada2250 Posts
November 23 2016 16:50 GMT
#4
Yeah I assumed as much.

So for attentional control, it seems you are limited by hardware. If you had access to Google's data centres across the world, this shouldn't be a problem. Theoretically you can have your AI pay attention to everything.

It's funny what we take for granted as humans. Computers can do things no human could ever think of, but the simple things that we assume are easy are huge obstacles for computers.
imp42
Profile Blog Joined November 2010
398 Posts
November 23 2016 17:22 GMT
#5
On November 24 2016 01:50 Jett.Jack.Alvir wrote:
It's funny what we take for granted as humans. Computers can do things no human could ever think of, but the simple things that we assume are easy are huge obstacles for computers.


One thing I have observed, is that many people including well-known researchers make the "mistake" to judge the performance of a computer by a problem that is very biased towards humans.

For example: Neural Networks have been trained to play Frostbite better than humans. But some authors criticize that the Neural Networks need much more learning iterations (hundreds of thousands of iterations) than a human (a couple of minutes) to master the game.

What they forget when doing this comparison is the fact that any game produced by humans is specifically designed to suit the human brain. That is, it follows a set of rules that we're pretty much hardwired to know (e.g. human babies already have some concept of temporal causality).

In Pong, we just know that if a ball goes in a certain direction, it will follow that direction in the next frame, unless it hits an obstacle. In Frostbite we know that if birds kill you and fish give extra points, they will continue to do so in the next frame.

But what if we designed a game of Frostbite, where birds and fish reward or kill the player based on the pixel position of the floating ice multiplied by the game score or in-game frame count minus (randomly changing) color value of the polar bear?
Well, it wouldn't make a difference to the Neural Net but the human brain would struggle to the point it would under-perform even after hundreds of thousands of iterations.

Yes, we humans have a pretty good general problem solving tool in our heads. But at the same time it is also highly specialized to deal with problems that have been historically relevant to survival in our physical world and it will often fail miserably outside that domain.
50 pts Copper League
angrybacon
Profile Joined March 2010
United States98 Posts
November 24 2016 05:34 GMT
#6
On November 24 2016 02:22 imp42 wrote:
But at the same time it is also highly specialized to deal with problems that have been historically relevant to survival in our physical world and it will often fail miserably outside that domain.


The same can be said of neural nets.
imp42
Profile Blog Joined November 2010
398 Posts
November 24 2016 06:28 GMT
#7
On November 24 2016 14:34 angrybacon wrote:
Show nested quote +
On November 24 2016 02:22 imp42 wrote:
But at the same time it is also highly specialized to deal with problems that have been historically relevant to survival in our physical world and it will often fail miserably outside that domain.


The same can be said of neural nets.


yes, maybe it can.
Still, comparing neural nets and human brains on the grounds of video games developed for us by us seems to me as valuable as comparing movement speeds of the fish and the bird when doing all the tests in the water.
50 pts Copper League
Please log in or register to reply.
Live Events Refresh
Wardi Open
12:00
#64
WardiTV822
OGKoka 328
Rex168
IntoTheiNu 22
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Reynor 423
OGKoka 328
Harstem 305
Fuzer 270
Lowko270
Rex 168
ProTech120
Railgan 47
StarCraft: Brood War
Calm 2146
Shuttle 1283
Soma 1055
Mini 697
EffOrt 636
Stork 525
Light 478
Larva 435
ZerO 429
BeSt 388
[ Show more ]
firebathero 330
Hyun 212
Snow 189
hero 188
910 165
Rush 145
Barracks 144
Zeus 135
ggaemo 135
Mong 88
Shine 74
Sharp 67
JYJ65
Sea.KH 58
Leta 54
Mind 45
sorry 45
soO 41
yabsab 40
Free 36
ToSsGirL 32
zelot 21
Noble 20
Terrorterran 19
scan(afreeca) 14
SilentControl 12
ajuk12(nOOB) 10
Icarus 9
Rock 0
Dota 2
singsing3024
qojqva2961
Dendi822
syndereN156
XcaliburYe118
febbydoto19
Counter-Strike
olofmeister2212
allub317
markeloff131
oskar64
edward60
chrisJcsgo21
Other Games
B2W.Neo1337
crisheroes445
hiko417
Hui .275
XaKoH 98
Mew2King49
QueenE37
ZerO(Twitch)20
Organizations
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 10 non-featured ]
StarCraft 2
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Upcoming Events
StarCraft2.fi
1h 57m
Monday Night Weeklies
2h 57m
Replay Cast
9h 57m
WardiTV 2025
21h 57m
StarCraft2.fi
1d 1h
PiGosaur Monday
1d 10h
StarCraft2.fi
2 days
Tenacious Turtle Tussle
2 days
The PondCast
2 days
WardiTV 2025
2 days
[ Show More ]
StarCraft2.fi
3 days
WardiTV 2025
3 days
StarCraft2.fi
4 days
RSL Revival
4 days
IPSL
5 days
Sziky vs JDConan
RSL Revival
5 days
Classic vs TBD
herO vs Zoun
WardiTV 2025
5 days
IPSL
6 days
Tarson vs DragOn
Wardi Open
6 days
Liquipedia Results

Completed

Acropolis #4 - TS3
RSL Revival: Season 3
Kuram Kup

Ongoing

IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
YSL S2
BSL Season 21
Slon Tour Season 2
WardiTV 2025
META Madness #9
SL Budapest Major 2025
ESL Impact League Season 8
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22

Upcoming

BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
Big Gabe Cup #3
RSL Offline Finals
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
eXTREMESLAND 2025
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.