• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 12:12
CET 18:12
KST 02:12
  • 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 Revival - 2025 Season Finals Preview8RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12
Community News
ComeBackTV's documentary on Byun's Career !3Weekly Cups (Dec 8-14): MaxPax, Clem, Cure win4Weekly Cups (Dec 1-7): Clem doubles, Solar gets over the hump1Weekly Cups (Nov 24-30): MaxPax, Clem, herO win2BGE Stara Zagora 2026 announced15
StarCraft 2
General
When will we find out if there are more tournament Weekly Cups (Dec 8-14): MaxPax, Clem, Cure win Did they add GM to 2v2? ComeBackTV's documentary on Byun's Career ! RSL Revival - 2025 Season Finals Preview
Tourneys
RSL Offline Finals Info - Dec 13 and 14! Master Swan Open (Global Bronze-Master 2) Winter Warp Gate Amateur Showdown #1: Sparkling Tuna Cup - Weekly Open Tournament $5,000+ WardiTV 2025 Championship
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 504 Retribution Mutation # 503 Fowl Play Mutation # 502 Negative Reinforcement Mutation # 501 Price of Progress
Brood War
General
FlaSh on: Biggest Problem With SnOw's Playstyle How Rain Became ProGamer in Just 3 Months BGH Auto Balance -> http://bghmmr.eu/ [BSL21] RO8 Bracket & Prediction Contest BW General Discussion
Tourneys
[Megathread] Daily Proleagues [BSL21] WB SEMIFINALS - Saturday 21:00 CET [BSL21] RO8 - Day 2 - Sunday 21:00 CET [ASL20] Grand Finals
Strategy
Game Theory for Starcraft Current Meta Simple Questions, Simple Answers Fighting Spirit mining rates
Other Games
General Games
Nintendo Switch Thread Stormgate/Frost Giant Megathread Path of Exile General RTS Discussion Thread Dawn of War IV
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 Survivor II: The Amazon Sengoku Mafia TL Mafia Community Thread
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine The Games Industry And ATVI Russo-Ukrainian War Thread YouTube 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
TL+ Announced Where to ask questions and add stream?
Blogs
The (Hidden) Drug Problem in…
TrAiDoS
I decided to write a webnov…
DjKniteX
James Bond movies ranking - pa…
Topin
Thanks for the RSL
Hildegard
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1575 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
WardiTV 2025
13:00
Playoffs
Scarlett vs GeraldLIVE!
Rogue vs Shameless
MaNa vs ShoWTimE
Nice vs Creator
WardiTV1513
ComeBackTV 694
TaKeTV 390
IndyStarCraft 252
Rex108
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
IndyStarCraft 252
ProTech134
Rex 108
BRAT_OK 75
UpATreeSC 56
DivinesiaTV 15
StarCraft: Brood War
Britney 25215
Sea 3767
Calm 1941
EffOrt 982
Larva 942
Mini 837
Soma 492
Horang2 432
ZerO 313
firebathero 284
[ Show more ]
Snow 280
Sharp 211
Rush 177
hero 169
actioN 138
Hyun 64
sorry 52
PianO 43
JYJ 42
Aegong 27
Mind 27
Terrorterran 17
soO 16
scan(afreeca) 15
Shine 10
Mong 9
Sacsri 9
Dota 2
Gorgc6322
singsing3831
qojqva3441
Dendi1134
syndereN356
Other Games
FrodaN1376
Beastyqt771
B2W.Neo698
crisheroes319
DeMusliM134
KnowMe115
QueenE99
Livibee66
Trikslyr61
Mew2King44
nookyyy 31
ZerO(Twitch)29
trigger8
Organizations
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 16 non-featured ]
StarCraft 2
• StrangeGG 54
• intothetv
• AfreecaTV YouTube
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• HerbMon 25
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• WagamamaTV592
League of Legends
• Nemesis2548
• TFBlade882
Other Games
• Shiphtur139
Upcoming Events
WardiTV 2025
17h 48m
ByuN vs TBD
Clem vs TBD
OSC
20h 48m
CranKy Ducklings
1d 16h
WardiTV 2025
1d 17h
SC Evo League
1d 19h
Ladder Legends
2 days
BSL 21
2 days
Sziky vs Dewalt
eOnzErG vs Cross
Sparkling Tuna Cup
2 days
Ladder Legends
2 days
BSL 21
3 days
StRyKeR vs TBD
Bonyth vs TBD
[ Show More ]
Replay Cast
3 days
Wardi Open
3 days
Monday Night Weeklies
3 days
WardiTV Invitational
5 days
Replay Cast
6 days
WardiTV Invitational
6 days
ByuN vs Solar
Clem vs Classic
Cure vs herO
Reynor vs MaxPax
Liquipedia Results

Completed

Acropolis #4 - TS3
RSL Offline Finals
Kuram Kup

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
YSL S2
BSL Season 21
Slon Tour Season 2
CSL Season 19: Qualifier 1
WardiTV 2025
META Madness #9
eXTREMESLAND 2025
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

CSL Season 19: Qualifier 2
CSL 2025 WINTER (S19)
BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
Big Gabe Cup #3
OSC Championship Season 13
ESL Pro League Season 23
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
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.