Sunday, July 23, 2023

2-D Matrix in Python

Indices in a 1D List

1-D List

What is a 2D Matrix?

This 2D matrix has got 3 rows and 3 columns.

Contents of Row 0: A B C

Contents of Row 1: D E F

Contents of Row 2: G H I

Contents of Col 0: A D G

Contents of Col 1: B E H

Contents of Col 2: C F I

Indices in a 2D Matrix of Shape 2 X 2

Indices in a 2D Matrix of Shape 3 X 3

Indices in a 2D Matrix of Shape 4 X 4

Square Matrices And Rectangular Matrices (Part 1)

Matrices of shape: 2X2, 3X3 and 4X4 were square matrices.

Square matrix has same number of rows and columns.

Rectangular matrix has number of rows different from number of columns.

Two columns

Three rows

Shape of a matrix is given by:

Number of rows X Number of cols

Shape of this matrix is: 3X2

Problem on Square Matrices And Rectangular Matrices

Q1: How many rows does it have?

Q2: How many columns does it have?

Q3: What is its shape?

Answers:

1) 3

2) 5

3) Rectangle of shape 3X5

Problem 1

  • Ques: Create a 2D matrix programmatically using for loop with following contents:
  • [ [1, 2, 3],
  • [4, 5, 6],
  • [7, 8, 9] ]
  • The matrix should not hardcoded but created using for loop.

Solution 1

  • [
  • [1, 2, 3], # This is your first row
  • [4, 5, 6], # This is your second row
  • [7, 8, 9] # This is your third row
  • ]
r = 3 # Number of rows
c = 3 # Number of columns

mylist = []

cntr = 1

for i in range(r):
# This means loop will run r times.

    temp = []
    for j in range(c):
        temp.append(cntr)
        cntr += 1
    mylist.append(temp)

print(mylist)
    

A 2D matrix is essentially a list of lists.

First, (i) will be 0. (j) will go from 0, 1, 2.

Then, (i) will be 1. (j) will go from 0, 1, 2.

Lastly, (i) will be 2. (j) will go from 0, 1, 2.

import numpy as np

n = np.array(range(1, 10))

n.reshape(3, 3)

Problem 2

  • Ques: This matrix is given to you:
  • [ [1, 2, 3],
  • [4, 5, 6],
  • [7, 8, 9] ]
  • You have to add 5 to each number in this matrix.
  • Addition of 5 to each element in the matrix.

Solution 2

Way 1:

arr = [ [1, 2, 3],
[4, 5, 6],
[7, 8, 9] ]

for i in arr:
    for j in i:
        print(j + 5)

print("Further if we want to create a new array")

mod_arr = []
for i in arr:
    templist = []
    for j in i:
        templist.append(j+5)
    mod_arr.append(templist)

print(mod_arr)

Way 2: Using numpy

import numpy as np
arr = np.array(arr)
arr += 5
print(arr)

[[ 6  7  8]
 [ 9 10 11]
 [12 13 14]]

Problem 3

m = [

[0, 1, 2, 3],

[4, 5, 6, 7],

[8, 9, 10, 11],

[12, 13, 14, 15]

]

""" What is the position of 6?

What is the position of 8?

What is the position of 10?

What is the position of 12?

"""

Solution 3

m = [ [0, 1, 2, 3], [4, 5, 6, 7], [8, 9, 10, 11], [12, 13, 14, 15]]

""" What is the position of 6?

Ans: [1][2]

What is the position of 10?

Ans: [2][2]

What is the position of 12?

Ans: [3][0]

"""

Diagonal of a Square Matrix (Top Left to Bottom Right)

Problem: Printing the two diagonals

Print the diagonals:

m = [['A', 'B', 'C', 'D'], ['E', 'F', 'G', 'H'],

['I', 'J', 'K', 'L'], ['M', 'N', 'O', 'P']]

Solution

matrix = [['A', 'B', 'C', 'D'], ['E', 'F', 'G', 'H'], ['I', 'J', 'K', 'L'], ['M', 'N', 'O', 'P']]

# Given a two dim. matrix
rows = cols = len(matrix)

print("Diagonal top-left to bottom-right")
for i in range(rows):
    for j in range(cols):
        if(i == j):
            print(matrix[i][j])

print("Diagonal top-right to bottom-left")
for i in range(rows):
    for j in range(cols):
        if(i + j == rows - 1):
            print(matrix[i][j])    

Printing diagonals using numpy

matrix = [['A', 'B', 'C', 'D'], ['E', 'F', 'G', 'H'], ['I', 'J', 'K', 'L'], ['M', 'N', 'O', 'P']]

matrix = np.array(matrix)

print(matrix)

[['A' 'B' 'C' 'D']

['E' 'F' 'G' 'H']

['I' 'J' 'K' 'L']

['M' 'N' 'O' 'P']]

matrix.diagonal()

array(['A', 'F', 'K', 'P'], dtype='<U1')

# fliplr() : flip left to right

print(np.fliplr(matrix))

print(np.fliplr(matrix).diagonal())

[['D' 'C' 'B' 'A']

['H' 'G' 'F' 'E']

['L' 'K' 'J' 'I']

['P' 'O' 'N' 'M']]

['D' 'G' 'J' 'M']

Printing upper triangle and lower triangle

m = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
np.triu(m)

array([[1, 2, 3],
        [0, 5, 6],
        [0, 0, 9]])

np.tril(m)

array([[1, 0, 0],
        [4, 5, 0],
        [7, 8, 9]])
Credits
Aman Kumar
LinkedIn

Attachment for the unnecessary and superfluous (A Story)

The following fairy tale is a “wakeup call” from the psychological “unconscious”. Once upon a time there was a man who had a long hard journey ahead of him. He was trudging along the way, over the boulders and through the brushes, when he saw a little shiny gnome with big white teeth and a black toupee sitting by the side of the road. He was drumming on a log with two white bones, and humming oddly to himself. The little gnome said, “John—why work so hard? Why walk so fast? Who knows if you'll ever get there anyway? Come over here. I have something to show you.” So John walked off the road. He was sick of walking, anyhow, because people kept throwing sticks and stones at him. The little gnome said, “I have a shiny red jewel I would like to sell you. Cheap. Here it is,” and from beneath his cloak he pulled the biggest ruby that the man had ever seen. It must have weighed a hundred pounds, and it shone like the sun. The gnome said, “Do you like it? It is an enchanted stone. What will you offer me for it?” and the man said, “I don't have much—much money. But I will give you everything I have.” The gnome looked displeased, so John added: “I could pay some more monthly.” So the gnome accepted: “Fair enough! Buy now, pay later. Sounds good to me. I'm all for the installment plan.” So the man gave the gnome all his money, and promised to pay the rest later. And the gnome walked back into the bush by the road, clacking his teeth and giggling and twitching. The more the man thought about his ruby, and the great deal he got, the happier he became. He started back on the road, with a light heart, but soon discovered that he couldn't make much progress, because a hundred pounds was a lot to carry. He said to himself: “Why continue, anyway? I have what I want. Why don't I just stand here, holding my ruby—and when people walk by, they can see how well I have already done!” So he stopped. A little while later, one of his friends came along, and saw him standing there. His friend said, “John, why don't you come along with me? I have just opened a new business, and I could really use some help! Come along quick! It will be opening soon!” John thought that sounded good, but his friend was in a hurry. Besides, couldn't he see the ruby? How could he speed along beside him? Where would he put his jewel? So he said, “Thanks, but I have to take care of my jewel. Maybe I'll see you later.” His friend looked at him like he was crazy—but he was trying to get somewhere quick. So he just shrugged a bit and said, “Okay, John. See you later,” and he sped on down the road. A little while later, another friend came by, and he said, “John! Nice to see you! I am going back to school! There are lots of wonderful things to learn! Lots of great things to do! The world is full of unsolved problems! I could use some company! Would you like to come along?” John thought that sounded pretty good—but this friend, too, looked like he was in a hurry. Besides, standing beside the road, holding the jewel, was tiring, and he needed all the energy he had for that. So he said to his friend, “Thanks, but I have to take care of my jewel. Isn't it beautiful? Maybe I'll see you later.” His friend looked at him like he was crazy—but he was trying to get somewhere quick. So he just shrugged and said, “Hope everything goes all right with you. See you later.” Many friends came and went, and the years went by. The jewel got heavier and heavier, but the man got more and more attached to it. The only thing was, nobody seemed to notice how beautiful it was. People would rush by, and talk about their plans and nobody had a ruby as big and nobody seemed likely to get a ruby as big so you'd think that someone might have said something something, at least, like “Nice ruby, John. Sure wish I had one like that.” But it never happened. Then one day someone new came down the road. He was bent over, and he was thin, and his hair was gray, although he did not look that old. He was carrying a big, dirty rock carefully in his arms, and he was not making much progress. The strange figure approached and glanced up at John. Then he grinned and said, “Why are you standing there stupidly, with a big ugly rock in your tired old hands? You look pretty daft. I bet you wish you had a big ruby, like the one I am carrying!” and John thought, “This poor man is deluded. He is carrying a rock—it is I who have the ruby!” so he said, “Excuse me sir, but you are sadly mistaken. I am the one with the jewel. I met a little gnome by the side of the road, and he sold it to me. I am still paying for it—although not so very much! You are carrying a rock!” The tired stranger looked annoyed. He said, “I don't know what game you are playing, mister. You have a rock. I have a jewel. The little gnome you described sold it to me—and he said it was the only one! I have been carrying it for twenty years, and I will never let it go!” and John said, “But I have been carrying mine for twenty years, too. It can't be just a rock!” Rock or jewel? On and on they argued. Suddenly, out stepped the little gnome, as if he had never left! Only this time, he wasn't so little. He was bigger, and redder, and menacing, and his laugh sounded like the rattling of chains. “Quit arguing, you two! I've never seen a sight quite so pathetic. You're carrying rocks—both of you. And if you ever would have had the sense to put them down for a second or two, you would have seen that! “Oh well, at least you were diligent. And I played a mean trick. I feel bad. “So, I'm going to give you what you really deserve. Do you want what you really deserve?” and John and the thin stranger nodded eagerly. Finally, they thought. “You haven't seen anything yet. Throw down your rocks!” So John and the thin stranger obeyed. Each rock split down the middle, when it hit the ground. Out flowed a river of ravenous white worms, which rushed toward the men and devoured them whole, while they thrashed about and screamed. Soon, nothing was left except a leg bone from each. The little gnome picked them up, and walked off the road. He sat down by a hollow log, and started to drum. He drummed, and he waited, and he hummed an odd little tune: “A picture of food feeds the whole hungry clan the image of good makes the whole healthy man Why walk the mile? Why do the work? Just smile the smile! Success after all is a quirk! Life isn’t real that’s the message I give It’s easy that way plus who wants to live?” Reference Maps of Meaning (Architecture of Belief) by Jordan Peterson

Saturday, July 22, 2023

Generative AI Books (Jul 2023)

Download Books
1. Generative AI with Python and TensorFlow 2: Harness the Power of Generative Models to Create Images, Text, and Music Raghav Bali, 2021 2. Generative Deep Learning: Teaching Machines to Paint, Write, Compose, and Play David Foster, 2019 3. Generative AI with Python and TensorFlow 2: Create Images, Text, and Music with VAEs, GANs, LSTMs, Transformer Models Raghav Bali, 2021 4. Rise of Generative AI and ChatGPT: Understand how Generative AI and ChatGPT are transforming and reshaping the business world (English Edition) Utpal Chakraborty, 2023 5. Generative AI: How ChatGPT and Other AI Tools Will Revolutionize Business Tom Taulli, 2023 6. ChatGPT for Thought Leaders and Content Creators: Unlocking the Potential of Generative AI for Innovative and Effective Content Creation Dr. Gleb Tsipursky, 2023 7. Generative AI for Business: The Essential Guide for Business Leaders Matt White, 2024 8. Modern Generative AI with ChatGPT and OpenAI Models: Leverage the Capabilities of OpenAI's LLM for Productivity and Innovation with GPT3 and GPT4 Valentina Alto, 2023 9. Generative AI for Entrepreneurs in a Hurry Mohak Agarwal, 2023 10. GANs in Action: Deep Learning with Generative Adversarial Networks Vladimir Bok, 2019 11. Generative AI: A Non-Technical Introduction Tom Taulli, 2023 12. Exploring Deepfakes: Deploy Powerful AI Techniques for Face Replacement and More with this Comprehensive Guide Bryan Lyon, 2023 13. Artificial Intelligence Basics: A Non-Technical Introduction Tom Taulli, 2019 14. Generative AI: The Beginner's Guide Dr Bienvenue Maula, 2023 15. The AI Revolution in Medicine: GPT-4 and Beyond Peter Lee, 2023 16. Synthetic Data and Generative AI Vincent Granville, 2024 17. Generative Adversarial Networks Cookbook: Over 100 Recipes to Build Generative Models Using Python, TensorFlow, and Keras Josh Kalin, 2018 18. Impromptu: Amplifying Our Humanity Through AI Reid Hoffman, 2023 19. The Age of AI: And Our Human Future Henry Kissinger, 2021 20. Generative Adversarial Networks for Image Generation Qing Li, 2021 21. Advanced Deep Learning with Keras: Apply Deep Learning Techniques, Autoencoders, GANs, Variational Autoencoders, Deep Reinforcement Learning, Policy Gradients, and More Rowel Atienza, 2018 22. Generative AI: Implications and Opportunities for Business Wael Badawy, 2023 23. GPT-3 Sandra Kublik, 2022
Tags: Generative AI,Artificial Intelligence,Technology,

May 1940 — Should Churchill Negotiate With Hitler?

Early in World War II, in May 1940, British prime minister Winston Churchill met with a large group of his cabinet-rank ministers and announced a fateful decision. He told them: “I have thought carefully in these last days whether it was part of my duty to consider entering negotiations with That Man." That Man was, of course, Adolf Hitler. At the meeting, Churchill did more than announce that he would not negotiate with Hitler. With the rhetorical flair so characteristic of his wartime speeches, Churchill declared that Great Britain must fight to the finish: “If this long island story of ours is to end at last, let it end only when each of us lies choking in his own blood upon the ground.” This chapter tells the story of Churchill's decision and the secret deliberations that preceded it. For three days, Churchill and the members of his War Cabinet debated and wrestled with the question of whether to pursue peace negotiations with Nazi Germany. Later in the chapter, I will assess the wisdom of Churchill's refusal to negotiate. Should he instead have tried to negotiate a compromise peace with Hitler? Today, many would find this question absurd. Of course Churchill's decision was wise. No regime in history was more evil than Hitler's. If there was ever a time to reject compromise, this was it. Of course, we know the rest of the story: the British endured the Nazi onslaught during the Battle of Britain, the United States and the Soviet Union eventually joined the war effort, and the Allies crushed Hitler's regime. Most historians—and laymen—see Churchill's refusal to negotiate as not only right, but heroic. However, Churchill's decision seems obvious only in hindsight. What if we go back in time to May 1940? In his own magisterial, six-volume history of World War II, Churchill did not even acknowledge that extended War Cabinet discussions had taken place, much less that the cabinet had seriously considered opening a channel for negotiations with the Germans. Lord Halifax, his foreign secretary, also denied it. But the secret minutes of these cabinet meetings— long classified—reveal a much more complex reality and an intense debate. As we shall see, it was a close call. ~~~ The War Cabinet was made up of five men, including Churchill, who formulated Britain's war policy. As prime minister, Churchill had appointed the other four members: Edward, Lord Halifax, his foreign secretary; Neville Chamberlain, the former prime minister; and two leaders of the Labor Party, Clement Attlee and Arthur Greenwood. Neither Attlee nor Greenwood plays a critical role in our story. Halifax, Chamberlain, and Churchill do. Their deliberations and struggle in May 1940 occurred against a backdrop of earlier differences among the three men about Britain's prewar foreign policy of appeasement. Today appeasement is a dirty word. But it can be defined in more neutral terms as “the policy of settling international quarrels by admitting and satisfying grievances through rational negotiation and compromise, thereby avoiding the resort to an armed conflict which would be expensive, bloody, and possibly dangerous." While the notion of appeasement now carries a “shameful and even craven” connotation, quite the opposite was true in Great Britain during most of the 1930s. At that time, “the policy of appeasement … occupied almost the whole moral high ground. The word was originally synonymous with idealism, magnanimity of the victor and a willingness to right wrongs.” When Hitler began annexing territory in the mid-1930s, many in Great Britain thought he was simply trying to right the “wrongs” of Versailles. The Versailles Treaty of 1919 had transformed the map of Europe after World War I, carving up old nations, creating new ones, and literally cutting Germany down to size. Germany lost vast amounts of territory to France, Belgium, Poland, and the entirely new nation of Czechoslovakia. By the1930s, many in Britain had come to believe that Versailles had treated Germany unfairly. Other factors favored the British policy of appeasement. After the horrors of World War I, many Britons felt that another war in Europe should be avoided “at almost any cost.” As a practical matter, Britain was totally unprepared to fight another war. And some conservatives viewed the fascists in Germany and Italy as bulwarks against communism, which was seen as a far worse menace. So in 1936, when Hitler violated Versailles by reoccupying the demilitarized Rhineland—Germany's own “backyard”—Britain did nothing to stop him. Churchill, then a Conservative backbencher, was the only one in British politics who “wanted to call Hitler's bluff" with a display of force. He was ignored. Throughout the 1930s, Churchill would remain one of the very few voices warning of the dangers of German rearmament. Chamberlain became prime minister in 1937, and both he and Halifax are associated with appeasement because of their failure to resist German aggression in the late 1930s. Hitler's next target was the Sudeten region of Czechoslovakia, which included a significant German-speaking population. Hitler launched a vitriolic propaganda campaign, threatening the Czech government and claiming that the Sudeten Germans were being horribly mistreated under Czech rule. In late 1937, Chamberlain sent Halifax to Germany—on the pretext of attending a hunting exhibition—to meet personally with Hitler and convey a respectful, nineteenth-century message: that Britain understood Germany's concerns about the treatment of German minorities and was not necessarily opposed to changes in the European order, as long as they were made peacefully. In a high water mark of appeasement, Halifax complimented Hitler on “performing great services in Germany” and expressed Britain's hope that any modification of the Versailles Treaty would come through “peaceful evolution." Chamberlain later declared that Halifax's visit was a great success in “convinc[ing] Hitler of our sincerity." Soon afterward, Halifax became foreign secretary. In fact, Halifax and Chamberlain had completely misread Hitler, who was not playing by Marquess of Queensbury rules. The visit convincedHitler of something else entirely—that the British were so desperate to avoid war that he could maneuver freely in Europe without risk of their putting up a fight. He moved quickly. In 1938, he marched into Vienna and incorporated Austria into his Reich without firing a shot. Next he demanded that the Sudetenland be annexed to Germany and that all non-German Czechs leave the region. Trying to avert war, Chamberlain hastily arranged a four-power conference in Munich that excluded the Czech government. The result was a historic shift in the European balance of power. The Munich Agreement among the four great powers—Britain, France, Italy, and Germany— allowed the Nazis to absorb the Sudetenland in return for Hitler's promise to allow an international commission to settle any other German claims over Czech territory. The Czechs were presented with a fait accompli. At Chamberlain's request, Hitler also signed a piece of paper—soon to prove worthless—in which Germany and Britain promised to resolve their differences peacefully. Chamberlain returned to England, “peace treaty” in hand, proclaiming “peace with honor” and “peace for our time.” The British public rejoiced when they heard the news, but Churchill proclaimed it a “total and unmitigated defeat” and a “disaster of the first magnitude” for both Britain and France. Speaking before the House of Commons, he said, “Do not let us blind ourselves to that. It must now be accepted that all the countries of Central and Eastern Europe will make the best terms they can with the triumphant Nazi Power. The system of alliances in Central Europe upon which France has relied for her safety has been swept away, and I can see no means by which it can be reconstituted." He said he did not blame the British people for their “natural, spontaneous” outburst of relief that war had been averted for the moment. But they should know the truth. They should know that there has been gross neglect and deficiency in our defenses; they should know that we have sustained a defeat without a war, the consequences of which will travel far with us along our road; they should know that we have passed an awful milestone in our history, when the whole equilibrium of Europe has been deranged, and that the terrible wordshave for the time being been pronounced against the Western democracies: “Thou are weighed in the balance and found wanting.” And do not suppose that this is the end. This is only the beginning of the reckoning. This is only the first sip, the first fore-taste of a bitter cup which will be proffered to us year by year unless, by a supreme recovery of moral health and martial vigour, we arise again and take our stand for freedom as in the olden time. Once again, Churchill was proven right. Six months later, in March 1939, Nazi troops marched into Prague and seized what was left of the country. As a consequence, Czechoslovakia disappeared entirely as a nation. That was the end of appeasement as British policy—a humiliating failure from which the reputations of Chamberlain and Halifax would never fully recover. Both men became completely disillusioned with Hitler, adopted a tougher policy of deterrence,19 and began to mobilize Britain for war. As Hitler began to make ominous threats toward Poland, parts of which had substantial German-speaking minorities, Britain and France guaranteed Poland's security through a treaty,20 in effect warning Hitler that if he invaded Poland, there would be war. But it was too late for warnings. Hitler was not to be deterred. On September 1, 1939, the Nazis invaded Poland. Two days later, Britain and France declared war on Germany. The outbreak of World War II brought about rapid changes in British leadership. Churchill, thoroughly vindicated, became first lord of the Admiralty. Poland was overrun in a month. Chamberlain's credibility ebbed and Churchill's grew. In 1940, when Hitler overran Denmark and Norway, British public opinion turned decisively against Chamberlain. Germany had been neither appeased nor deterred, and British mobilization had failed to meet the Nazi challenge. Chamberlain decided he should resign. Both he and King George VI wanted Halifax to replace him. But, for reasons that were never publicly explained, Halifax turned the job down. Winston Churchill became prime minister on May 10, 1940. ~~~ At the pensionable age of sixty-five, Churchill was thrilled at long last to become prime minister. From his youth, he had been persuaded that he was a man of destiny. He also held “a high romantic view of the monarchy and the empire" that can be easily understood from his background. He was the grandson of the Duke of Marlborough and the son of Lord Randolph Churchill, a Tory politician, who died young and had an unrequited dream of becoming prime minister himself. Winston's American-born mother, née Jennie Jerome, was a famous and pas-sionate beauty. Both were distant and indifferent parents, and Winston's nanny was the “central emotional prop of [his] childhood.” After boarding school at Harrow, Churchill attended the Royal Military Academy at Sandhurst. The year he graduated, he was commissioned as an officer in the Royal Hussars. As a young officer, Churchill saw combat in India and the Sudan. He was seen as flamboyant and impatient, with a “dominating desire … to attract the greatest possible attention to himself, both on the local and the world scene." An extraordinarily fluent writer, he “lived by phrase making” and supported himself financially during most of his life as a war correspondent and author. By the age of twenty-five, he was already a celebrity because of his capture, imprisonment, and escape during the Second Boer War in South Africa, which he chronicled as a foreign correspondent. As a politician, he was self-centered, self-confident, and nakedly ambitious. By twenty-six, he was a Conservative member of Parliament, but his independent views soon forced him to switch parties and become a Liberal. By thirty-three, he was a cabinet minister, and during World War I he held a variety of important posts. He became chancellor of the exchequer in 1924 under a Conservative prime minister and formally rejoined the Conservative Party the following year. “[A]nyone can rat,” he quipped, “but it takes a certain amount of ingenuity to re-rat.” The Tories hardly welcomed him back as a prodigal son. To many of them, Churchill's “wit and oratorical ability were not enough to overcome severe doubts about his judgment.” Many saw him as “unscrupulous, unreliable and unattractively ambitious”—a “political turncoat” who had twice changed his party affiliation. His personal eccentricities only alienated them further. He spoke with a lisp and a stutter. He wore loudsuits and bow ties. His bowler hat and cigar seemed like theatrical props. He gambled and consumed great quantities of alcohol. By 1929, his political career hit the skids and he entered his “wilderness years” as a Tory backbencher with trivial influence. Eleven years later, when he finally shook off the dust of wilderness and moved into 10 Downing Street, he knew that his support in Parliament was still thin, especially in his own Conservative Party. “The strange dress, ridiculous hats, heavy drinking and pronounced speech impediment did little to encourage the Tory old guard to respect him for much more than having been proved right about the German threat.” Indeed, they considered him dangerously impulsive and apt to get carried away by his own rhetoric. Would he lead from the head or the heart? They feared the latter. Many in the Tory establishment saw Churchill as a “Rogue Elephant” whom the “wise old elephants”—Chamberlain and Halifax—might not be able to control. ~~~ During Churchill's first two weeks as prime minister, the war went from bad to worse. Hitler conquered the Netherlands, invaded Belgium, and surged into northern France. Britain had sent troops to the continent to support the French, but they were unable to stop the German army. The United States was standing on the sidelines, rooting for Britain and France but doing little to help. Churchill wrote several personal letters to President Franklin Delano Roosevelt pleading for assistance, but none came. Worst of all, by May 23, 1940, the German army had surrounded the Allied troops near the French-Belgian border. Some 250,000 British soldiers appeared to be trapped, along with a roughly equal number of French troops. The British public had no understanding of just how bad things were. Churchill knew he would have to “prepare public opinion for bad tidings. … [W]hat was now happening in Northern France would be the greatest British military defeat for many centuries." It was against this desperate backdrop that Churchill and his War Cabinet were forced to consider negotiating with Hitler. It was Edward, Lord Halifax who pressed for the possibility of negotiation. Like Churchill, Halifax was an English aristocrat but one with very different values and temperament. Born Edward Wood on April 16, 1881, he was the fourth son of a viscount and eventually inherited his father's title because his three older brothers had died of childhood diseases. He was born without a left hand, but his life was not much affected by it. His family was enormously wealthy, largely because a huge seam of coal lay under a portion of their lands. Educated at Eton and Oxford, he was personally rich by the time he graduated from university because of large inheritances from a number of uncles and aunts. In 1909, Halifax went into politics and stood for a seat in Parliament. Thereafter, he pursued a “bright and successful” career as a Tory politician. An “intensely private man,” he was genuinely modest and “found it hard to lose his temper." Like his father, he was a devout High Church Anglican who exuded moral rectitude. Most of all, he was respectable. Halifax's nickname became “The Holy Fox” because he was both religious and cunning. He believed deeply in original sin. “Far from a pious blindness to the evils of the world, Halifax was [all] too keenly aware of men's failings. He was if anything more guilty of cynicism than monkish innocence." He saw himself as a pragmatist, not an ideologue. His diplomatic and political career demonstrated a willingness to “[c]ompromise, a degree of guile, and an awareness of the realities of life” that, to him, were fully consistent with his spiritual values. As he would later write, “Many of our intellectual difficulties come from an attempt to think that the Kingdom of God and the Kingdom of this world are concerned with the same problems. … [I]n a very vital sense they are not.” Halifax's values and prejudices, however, were those of his class. He saw the world through the eyes of an English landed aristocrat, whose political goals were to safeguard Britain's independence, continuing imperial role, and honor. Roy Jenkins, in his biography of Churchill, wrote that Halifax had a “resigned desire to preserve as much as he could of the England he knew and loved … the landscape, the ordered hierarchical society, the freedom from oppression or vulgar ostentation." All of these factors attracted him to the possibility of a negotiated peace that would honorably get Great Britain out of a terrible war. That possibility arose on May 25, 1940, when Halifax held a pivotal meeting in London with the Italian ambassador to Great Britain, GiuseppeBastianini. Halifax's purpose was to explore whether Italy might be induced —that is, bribed—to stay out of the war. Although Italy was officially a noncombatant, it had signed a “Pact of Steel” (an alliance) with Nazi Germany and amassed twenty thousand troops on the French-Italian border. There was reason to think Italy might soon join the Nazis, invade France, and claim some booty. Perhaps, Halifax thought, Italy could be bought off at a reasonable price. Churchill knew about this meeting in advance and asked only that it be kept secret and that Halifax do nothing to suggest a lack of resolve on the part of Great Britain. But I suspect that Halifax, the “Holy Fox,” went to the meeting hoping delicately to explore a second and even more far-reaching possibility—one that he had not disclosed to Churchill or the War Cabinet. Might Mussolini play a role as mediator in facilitating negotiations aimed at ending the war? Halifax left no incriminating fingerprints, so it will never be known whether he went into the meeting wanting to plant this seed. But by the end of the meeting the idea had sprouted. Halifax's written report of the meeting suggests that the Italian ambassador planted the idea. According to the report, Italy agreed to discuss its relationship with Great Britain only in the broader context of a “just and enduring European settlement.” Was Britain interested, the ambassador asked, in discussions that might include this “greater framework”? Such a conversation would involve “other countries”—which, of course, would include Germany. Halifax, using the double negative so favored by wily diplomats, gave the ambassador permission to inform Mussolini that “His Majesty's Government did not exclude the possibility of some discussion of the wider problems of Europe” (emphasis added). Halifax presented this hot potato to the War Cabinet the next day. For three days, they would be forced to discuss his plan.

The Deliberations

Sunday, May 26, was anything but a day of rest for the War Cabinet. Churchill began by reporting the dire military circumstances on the ground. Belgium was about to capitulate. The French were close to collapse, and250,000 British soldiers were cornered in northern France. Soon Britain might be facing both Germany and Italy alone. Against this backdrop, Halifax told the War Cabinet about his meeting with the Italian ambassador. In light of the desperate military situation, he said, British war aims had to be narrowed: it was no longer a matter of “imposing a complete defeat upon Germany but of safeguarding the independence of our own Empire and if possible that of France." He thought that Mussolini wished to secure peace in Europe and that the Italians might be open to facilitating a discussion about a “general European settlement,” but that the discussion would have to include Germany. From the outset, Churchill was deeply skeptical. In his view, Hitler would never accept any negotiated deal unless it allowed Germany to dominate Europe, which Britain “could never accept” because it would threaten Britain's security. “We must ensure our complete liberty and independence,” he said. But nothing was decided, and everyone left the meeting knowing the discussion would continue. When the War Cabinet met again in the early afternoon, the differences between Churchill and Halifax came into sharper focus. Halifax argued strongly in favor of an approach to Italy, saying that “the last thing Signor Mussolini wanted was to see” a Europe dominated by Hitler. Churchill was still skeptical, but he conceded that “the matter was one that the War Cabinet would need to consider." Halifax began the first of several attempts to pin Churchill down. Given that Britain's security and independence were in such danger, he said, “we should naturally be prepared to consider any proposals that might lead to [restoring that security], provided our liberty and independence are assured” (emphasis added). Then he asked the key question: If Churchill was “satisfied that matters vital to the independence of this country were unaffected,” was he “prepared to discuss such terms?” Churchill did not say no. In fact, he appeared to say yes. He said he would be “thankful to get out of our present difficulties on such terms, provided we retain the essentials and the elements of our vital strength even at the cost of some territory” (emphasis added). But he went on to add that he did not believe that such a deal was possible.The third meeting that day took place around dinnertime. In the interim, Churchill had met with the French prime minister, Paul Reynaud, who confirmed that the French military situation was all but hopeless. Churchill's response to him was typically pugnacious: “We would rather go down fighting,” he said, “than be enslaved to Germany.” He brought that defiant attitude back to the War Cabinet that evening, where his debate with Halifax became increasingly tense. If France collapsed, Churchill declared, Britain must not go down with her. The two nations had mutually pledged not to make a separate peace with Germany, but Churchill now wanted to release France from this treaty obligation. “If France could not defend herself, it was better that she get out of the war rather than drag us into a settlement which involved intolerable terms,” Churchill said. Churchill predicted that Hitler would demand the most outrageous terms possible—including British disarmament. There was “no limit to the terms that Germany would impose on us if she had her way.” Halifax was not so sure. He saw no evidence that Germany wanted to “enslave” Britain. In fact, he didn't think it was in Hitler's interest to insist on outrageous terms. Halifax believed that Hitler's primary goal—as stated —was to unite all German-speaking peoples under one roof and to create “Lebensraum” (“living room”) in the east for expansion. In order to accomplish that goal, Hitler wanted territory in Eastern Europe, not Britain. Therefore, Halifax thought, Hitler might want to stop fighting on the western front so he could focus his military power on the Soviet Union. Halifax may even have thought, why not push him in that direction? The one thing Britain and Germany shared was their hatred of the communists. Halifax was a balance-of-power strategist who no doubt believed that this war, like most wars, would eventually end with a negotiated agreement in which territorial concessions would be made to the stronger party. Some concessions would have to be made to Hitler, and Mussolini would expect a little pourboire for his own helpful behavior,49 but this could be accomplished by some horse-trading among colonies. So Halifax pressed his point: How could you know that Hitler would insist on outrageous terms if there was no discussion? Moreover, Britain's interests could be declared in advance. “[W]e might say to Signor Mussolini that if there was any suggestion of terms which affected our independence, we should not look atthem for a moment.” And Mussolini might well be alarmed by Hitler and “look at matters from the point of view of the balance of power." Why not find out? Where was the harm in trying this approach? Churchill's response suggested that he saw Hitler as a bully with boundless ambitions. “Herr Hitler thought that he had the whiphand. The only thing to do was to show him that he could not conquer this country.” Where was Chamberlain in all of this? He did not say a great deal at this meeting, and in historian John Lukacs's view he “now sat on the fence.” But his diary entry that evening suggested he was leaning in Churchill's direction. Chamberlain summarized the prime minister's outlook: “[I]f we could get out of this jam by giving up Malta and Gibraltar and some African colonies he would jump at it. But the only safe way was to convince Hitler that he couldn't beat us.” Let's step back for a moment and ask how Spock might assess the Churchill-Halifax debate to this point. The issue was: What would Hitler insist upon in peace negotiations? Churchill was assuming the worst and presenting it as fact. Although the record doesn't show him saying this directly, he saw Hitler as a megalomaniac bent on nothing less than world domination. Churchill's instincts had been terrific in the past, and his predictions about Hitler had so far been accurate, but he had not even come close to explaining why he thought Hitler had a vital interest in enslaving Britain and destroying its empire. Halifax, by contrast, was sticking to the known facts: The situation on the ground was dire, and it was unknown what the Germans would agree to. Why wouldn't it be wise, and indeed honorable, to see if a settlement could be achieved on reasonable terms? Spock would consider that a logical question. Moreover, Spock would ask rhetorically, what was the alternative to negotiation? Continued fighting—in which the Germans would direct their formidable airpower against Britain and perhaps invade. In May 1940, the outcome of such a fight was highly uncertain. In fact, the odds were pretty clearly against Britain. So it was easy to imagine a negotiated deal that might serve both sides' interests better than continued war: the Germans would get de facto control of Europe, including France, while Britain would keep its independence, its military, and nearly all of its empire (after ceding a few territorial crumbs tothe Italians). There were three questions: Would Hitler agree to such a deal, would an agreement with Hitler be worth the paper it was printed on, and would the costs of that deal, including the loss of sovereignty for most of Europe, be acceptable to the British? Through bitter experience, Halifax and Chamberlain had come to share Churchill's view that Hitler was a completely unreliable negotiating partner. Even if the war ended now, Hitler might attack Britain later. Spock would agree that this was a significant risk. But he would ask: Which nation, Germany or Britain, would benefit more from a hiatus in the war? Britain was not yet fully mobilized. If Hitler headed east and attacked Russia, as expected, it would absorb vast amounts of German manpower and materiel. That could only be good for Britain, which needed time to reach full strength. Of course, in those desperate days in May 1940, the War Cabinet meetings were too chaotic to allow for a Spock-like discussion at this level. But Halifax's argument was strong enough to force Churchill to take another tack. Churchill's second argument was that Britain must not be forced into the weak position of going to Mussolini and Hitler and asking them to “treat us nicely. We must not get entangled in a position of that kind before we had been involved in serious fighting." In other words, this was not the right time to pursue negotiations because Britain had not yet proved it could put up a real fight. A willingness to engage in negotiation now would signal weakness. But perhaps after a few months of heroic fighting, Churchill suggested, the time would be ripe. To Halifax, this was supremely illogical: In three months, Britain might be bombed to a smoking ruin. Where would its bargaining power be then? Was Churchill seriously willing to take that risk? This was just the kind of emotional argument that Churchill's critics dreaded. Halifax was aghast. If Britain could “obtain terms which did not postulate the destruction of our independence,” Halifax insisted, “we should be foolish if we did not accept them.” In other words, he was arguing that it would be stupid, given the situation on the ground, to turn down a negotiated deal that provided for continued British independence.Here again, I think Spock would say that Halifax was making more sense than Churchill. In fact, I suspect the issue of timing was a makeshift argument on Churchill's part. True, one could always fight now and negotiate later, but Churchill had not explained why he felt justified in taking such a huge risk. Frankly, I think Halifax had Churchill on the ropes. If the analysis were to stop here, one might well conclude that wisdom would obligate Churchill to explore the possibility of negotiation by using the Italians as an intermediary. Perhaps sensing this, Churchill backed off and the cabinet agreed that Halifax should prepare a draft of his proposal. By the end of the evening, Halifax had produced a document that was a masterpiece of obfuscation: “If Signor Mussolini will co-operate with us in securing a settlement of all European questions which safeguard[s] the independence and security of the Allies, and could be the basis of a just and durable peace for Europe, we will undertake at once to discuss, with the desire to find solutions, the matters in which Signor Mussolini is primarily interested." This was to be coupled with a backchannel request that the United States make the first approach to Mussolini, not Britain or France. Roosevelt would inform Mussolini that the French and British would consider Italian territorial claims only if Italy stayed out of the war. Note that this document conflates two goals: buying Italy off to keep it out of the war, and persuading Mussolini to mediate peace. As several scholarly commentators have noted, there is an obvious tension between them. “Buying off Italy facilitated the war against Germany, Italian mediation meant its end.” What was Halifax up to? I believe he was pursuing both goals and knew he had to tread carefully. The entire cabinet supported the first goal: keeping Italy out of the war. The problem was the second goal, to which Churchill was adamantly opposed. Halifax may have hoped that by emphasizing the first goal, he might keep the door open to the second.

Monday, May 27

Before the morning session, Halifax was in despair. He told a colleague, “I can't work with Winston any longer." A showdown was inevitable.But it would have to wait. The morning meeting focused on the terrible military situation on the continent. British troops were still trapped in northern France, and the prospects for evacuating them from Calais or Dunkirk were not promising. Churchill doubted he could save more than fifty thousand men. But preparations were under way. “Around the coast of Southern England, hastily improvised flotillas of small ships, trollers, tug boats, tiny motor launches—anything that was serviceable—were being assembled and setting sail to try and do their bit in rescuing the stranded army." In many ways it was the “worst day of the entire Dunkirk saga,” according to Lukacs. “The Germans ruled the air, with relatively little interference from the Royal Air Force … [The German dive-bombers were attacking] the columns of the British and French retreating along the dusty roads and lanes toward the town and port … [T]he British were systematically destroying their vehicles, stores, ordnance and other equipment" to prevent their use by the German army. With the collapse of France imminent, it was far from clear whether Britain could fight on alone. A top secret report, commissioned by Churchill, indicated that Great Britain could successfully resist the Germans, provided that it maintained air superiority and the United States gave it substantial economic support. But both conditions were open to serious question. The United States had provided virtually no help and could not be counted on. Little wonder that Alexander Cadogan, an invited guest to the War Cabinet meeting that day, summarized the session as follows: “Cabinet at 11:30—as gloomy as ever. See very little light anywhere." The War Cabinet didn't take up Halifax's proposal until late afternoon, by which time the ground had shifted. A key piece of news had arrived. The British ambassador to Rome had cabled that Mussolini would soon declare war on France and that “nothing we could do would be of any value at this stage, so far as Signor Mussolini was concerned." Halifax was in a real bind. He could see that Italy probably could not be kept out of the war. But even so, Mussolini still might serve as a mediator, and Halifax was determined to keep this idea alive. French prime minister Reynaud, still desperately hoping to buy Italy off, had begged Halifax topresent to the War Cabinet a plan for an even bolder and more concrete offer to Mussolini, one that specified with “geographical precision” exactly what would be given to Italy to stay out of the war. Halifax brought Reynaud's proposal to the War Cabinet and argued that something should be done to show support of France. Chamberlain agreed, saying that “the proposed French approach to Signor Mussolini would serve no useful purpose” but that he was willing to do so anyway in order to prevent the French from later claiming that Great Britain had stubbornly “been unwilling even to allow them the chance of negotiations with Italy." Churchill would have none of this. He scorned the Halifax-Chamberlain argument as suggesting that “nothing would come of the approach, but that it was worth doing to sweeten relations with a failing ally." At this point, an invited guest chimed in and explicitly gave Churchill the broader argument he had been searching for—one that rejected any approach to Italy for either of Halifax's purposes. Archibald Sinclair, the air minister, was a Churchill supporter and, more important, head of the Liberal Party. During the previous evening's debate, Churchill had shrewdly persuaded the cabinet to include Sinclair in the discussion of Halifax's proposal. Sinclair now contended that an approach to Italy would be worse than futile: it would be actively harmful to British interests. Even appearing to be willing to negotiate would be disastrous. “Being in a tight corner, any weakness on our part would encourage the Germans and the Italians, and would tend to undermine morale both in this country and in the Dominions. The suggestion that we were prepared to barter away pieces of British territory would have a deplorable effect that would make it difficult for us to continue the struggle that faced us.” (Emphasis supplied.) Attlee and Greenwood warmed to this argument. Soon Greenwood was declaring that “[i]t would be heading for disaster to go any further with those approaches.” Halifax felt compelled to clarify and explain: He was not supporting the French plan of specific concessions to Italy. Instead, he was simply proposing to keep the lines of communication with Italy open. Churchill, perhaps sensing that he had been given his strongest argument and that the tide within the cabinet was running in his direction, boldly vowed that any approach to the Italians “would ruin the integrity of our fighting position in this country. … Even if we did not include geographicalprecision and mentioned no names, everybody would know what we had in mind.” With great passion he then went further: “[L]et us not be dragged down with France. If the French were not prepared to go on with the struggle, let them give up. … The best help we could give to M. Reynaud was to let him feel that, whatever happened to France, we were going to fight it out to the end.” Perhaps fearing that the conflict between Churchill and his foreign secretary was about to spin out of control, Chamberlain tried to calm things down. He offered a compromise: “to keep the French in a good temper … our reply should not be a complete refusal.” Why not defer any response to France until Roosevelt first contacted Mussolini? But Churchill ignored the suggestion and instead made an even more provocative claim: “If the worse came to the worst” and Britain had to face Hitler alone, “it would not be a bad thing for this country to go down fighting for the other countries which had been overcome by the Nazi tyranny.” Now this was crazy. Did it make any rational sense for Britain to sacrifice itself in a losing battle on behalf of occupied Europe? Did Churchill have any right, as a national leader, to sacrifice his countrymen on such a basis? In my opinion, absolutely not. At this point Halifax was fed up with Churchill's florid rhetoric. He pointed out that Churchill was contradicting himself right and left. The day before, Churchill had said “he would be thankful to get out of our present difficulties” on terms that preserved British independence, “even at the cost of some cession of territory.” Now Churchill was saying that “under no conditions would we contemplate any course except fighting to the finish.” The day before, Churchill had indicated that he wasn't opposed to negotiation in general, as long as the timing was right. Now he was reneging on that, too. Churchill softened somewhat, perhaps recognizing that he had gone too far. “If Herr Hitler was prepared to make peace on the terms of the restoration of German colonies and the overlordship of Central Europe, that was one thing,” he soothed. “But it was quite unlikely that he would make any such offer.” In trying to placate Halifax, Churchill had created a new ambiguity, which Halifax went after. Was Churchill saying that he was simply waiting for Germany to make an offer? In Halifax's view, such a scenario was notso hypothetical. “Suppose the French Army collapsed and Herr Hitler made an offer of peace terms,” Halifax challenged. “Suppose Herr Hitler, being anxious to end the war through knowledge of his own internal weaknesses, offered terms to France and England, would the Prime Minister be prepared to discuss them?” In effect, Halifax was pressing Churchill: Would he “consider any peace terms, at any time?” Thanks to Halifax's probing, Churchill finally clarified where he stood on peace negotiations: “He would not join France in asking for terms; but if he were told what the terms offered were, he would be prepared to consider them.” Nor was he prepared at this time to enter into any process in which Great Britain would appear to be signaling a willingness to negotiate peace terms with Hitler. At this point Halifax may well have been considering resignation. As he would confide to his diary later that night, “I thought Winston talked the most frightful rot, also Greenwood, and after bearing it for some time I told them exactly what I thought of them.” He then added, “If that was really their view, and if it came to the point, our ways must separate." Churchill must have realized how close Halifax was to the edge, because he asked Halifax to join him for a private walk in the garden. There was not any record of what exactly was said, but Halifax's biographer suggests Halifax again threatened to resign and that Churchill “was full of apologies and affection." The biographer concludes, “However much annoyance he had shown, though, Halifax had no intention of resigning. Indeed, the more Churchill hectored, the more convinced he was of the necessity for him to stay. Eventually, he contented himself to confining his exasperation to his diary: 'It does drive me to despair when [Churchill] works himself up into a passion of emotion when he ought to make his brain think and reason.'"

Tuesday, May 28

On Tuesday morning, the news from the continent remained so bleak that the minister of information asked Churchill to make a public statement. For the first time in a week, Churchill appeared before the House of Commons and addressed the nation.“The troops are in good heart,” he reported. “And are fighting with the utmost discipline and tenacity.” He provided no specifics but promised to offer a “detailed report” in about a week, “when the result of the intense struggle now going on can be known and measured.” In the meantime, “the House should prepare itself for hard and heavy tidings.” But he ended his speech with a rousing flourish that was typical of his wartime speeches: “nothing which may happen in this battle can in any way relieve us of our duty to defend the world cause to which we have vowed ourselves; nor should it destroy our confidence in our power to make our way, as on former occasions in our history, through disaster and through grief to the ultimate defeat of our enemies." When the War Cabinet met shortly afterward, Halifax and Churchill crossed swords again. Their brief exchange returned to the core question. Halifax thought peace talks might still be possible if Britain sent a “clear indication that we should like to see mediation by Italy." Churchill retorted that the whole idea of peace talks was a ruse by the French, who “were trying to get us on to the slippery slope” of negotiating with Germany. Churchill did not respond further. He had made up his mind. He knew he had the support of everyone in the War Cabinet except Halifax, who was isolated. At this point, Churchill staged what several commentators have characterized as a “coup.” He adjourned the War Cabinet meeting until 7 p.m. and didn't say where he was going. In the interval, he met with the approximately twenty-five members of the Outer Cabinet—all of his ministers except those in the War Cabinet. It was to this group, not the War Cabinet, that Churchill announced his decision: that he had considered negotiation with “That Man” and firmly rejected it. “It was idle to think that if we try to make peace now we should get better terms from Germany than if we went on and fought it out,” Churchill told the ministers. “The Germans would demand our fleet—that would be called 'disarmament'—our naval bases, and much else. We should become a slave state,” with a “puppet” British government under Oswald Mosley, the founder of the British Union of Fascists, or some similar Nazi sympathizer. Instead, Churchill proclaimed: “We shall go on and we shall fight it out … and if at last the long story is to end, it were better it shouldend, not through surrender, but only when we are rolling senseless on the ground." His speech had an electrifying effect on his listeners. He received enthusiastic support, and not a single minister objected. Churchill would later describe how pleased and surprised he was that “twenty-five experienced politicians and Parliament men, who represented all the different points of view” about Britain's policy toward Germany, would now be so supportive. “Quite a few seemed to jump up from the table and came running to my chair, shouting and patting me on the back.” When Churchill returned to the War Cabinet, he announced what he had done. He described—no doubt with great drama—the scene that had just unfolded before the Outer Cabinet: his ringing announcement that he would not negotiate with Hitler, his vow that “there was no chance of our giving up the struggle,” and the fervent support of the ministers. He expressed the “greatest satisfaction” at their response, saying he “did not remember having ever before heard a gathering of persons occupying high places in political life express themselves so emphatically” in support of Churchill's decision to fight on, and not negotiate. Halifax offered no further dissent. Nor did he resign. Had he done so, especially if Chamberlain had joined him, there would have been a political crisis within the Conservative Party that might have threatened Churchill's ability to remain prime minister. But Churchill had skillfully avoided that risk. Later that year, Churchill sent Halifax to the United States as ambassador, essentially sidelining him for the rest of the war. ~~~ The evacuation from Dunkirk was far more successful than Churchill had any reason to expect. Nearly two hundred thousand troops were safely brought back to England. France fell as predicted, and Britain had to fight on alone. But through the Lend-Lease program, the United States began providing important materiel aid. During the summer and fall of 1940, the Royal Air Force maintained air superiority and Churchill maintained public morale during the Battle of Britain. As a result, Hitler gave up any thought of invading Great Britain and instead turned east and invaded the Soviet Union. This gave Britain an ally—the Soviets. By the end of 1941, the United States joined Great Britain and the Soviet Union in their fight against Germany. Eventually the Allies prevailed.

Assessment

Churchill's speech to the Outer Cabinet was eloquent and stirring, and it epitomizes the rhetorical use of negative traps: he demonized Hitler's regime and called his ministers to battle by invoking tribal loyalty. His later war speeches to the British people were equally stirring. Earlier in the book, I said that if you're a leader, you have an obligation to engage in rational analysis. You don't have the right to act solely on your gut feelings or personal moral beliefs. You have to think things through, to consider the costs and benefits of your alternatives. Does Churchill's decision pass this test? My hunch is that without the benefit of the War Cabinet discussions, Churchill would never have thought through carefully whether to pursue the negotiation path. Even considering making a deal with Hitler was difficult for Churchill. It would have been completely inconsistent with his sense of self and his consciously crafted political identity. Churchill had warned of the dangers of German rearmament and Hitler's megalomania long before others realized it. He was asked to become prime minister because he wanted to fight, not negotiate. To back down now and negotiate with a cruel enemy like Hitler, especially when Hitler was winning the war, would be publicly humiliating—even if some sort of reasonable deal could be struck. If, at some point, Churchill had come to believe that negotiation with Hitler would better serve Great Britain, he would have resigned and let others— such as Lloyd George—handle the negotiations. Churchill was strongly motivated by his personal moral beliefs and gut feelings. He saw Hitler and his Reich as evil. On a visceral level, he found the very idea of negotiating with Hitler to be repugnant. He believed that this kind of evil should be resisted, almost no matter what the consequences. In this respect, he was much like Sharansky. I think he started with an emotionally based gut feeling of what was right and then used his reason to justify the decision. And again like Sharansky, he usedthe negative “traps” to keep himself (and his constituents) committed to a strategy of resistance. Earlier, I concluded that Sharansky's refusal to negotiate with his Soviet captors, notwithstanding the pragmatic benefits of negotiation, was wise because he alone would suffer the consequences if he made the wrong choice. I also said that leaders have an obligation to act on the basis of a pragmatic assessment of the expected benefits and costs of the alternatives, not simply on moral intuitions or gut feelings alone. Sometimes the better part of wisdom is to negotiate, even when you don't want to. Even with an enemy who is evil. As I read the minutes of the War Cabinet discussions, I was powerfully struck by how hard it was for Churchill to translate his intuitive convictions into a persuasive argument. I also gained a respect for Halifax that I had not felt before. Halifax played an important role in the process by pushing Churchill to explain why his intuitions were sound enough to act on. He really put Churchill through his paces, almost as Spock might have done if he had been present. This underscores an important lesson: In deciding whether to enter into nego-tiations with a despised adversary, you can guard against a hasty rejection based simply on your gut instincts by discussing the matter with a colleague who disagrees. Being pushed to give reasons for your inclinations may sometimes lead you to change your mind. And even when it doesn't, it will force you to think through more rationally which course of action makes the most sense. In the end, the War Cabinet's discussion persuades me that Chur-chill's refusal to enter into negotiations was wise. Churchill and Halifax had different perceptions of Hitler's wartime aims and interests—in effect, different predictions amid great uncertainty. We will never know what Hitler might have demanded from Great Britain if negotiations had begun in the middle of 1940. Halifax may have been right, but Churchill's prediction was equally plausible: that Hitler would make unacceptable demands because he was winning the war. That is just the problem: you can't rely on hindsight to know whether you're making a wise decision. A wise decision can turn out badly; it happens all the time. And a stupid decision can have a good outcome; you can be lucky. So the test of wisdom cannot be whether you're proven right in the end. The test is, Did you think it through?With Halifax's help, I think Churchill passed that test. He was surely right in his implicit premise that it would be impossible to keep secret any sort of international conference about ending the war. If peace negotiations failed, they would fail publicly. He was also right that in May 1940, few in Great Britain knew how profound the risks were and how difficult it would be to resist Hitler alone. He was surely justified in being concerned, along with Sinclair and Greenwood, that if the negotiation route failed—and failed, moreover, in the middle of a war which the British were losing — British morale would have been seriously damaged. Britain had gone to war very reluctantly. Now she was the underdog and was taking a terrible beating. That was disheartening enough for the British people. Peace talks would raise hopes that further bloodshed could be avoided, and Churchill believed they were false hopes, which, once dashed, might leave the British too demoralized to fight to the finish. This was not an unreasonable prediction, particularly from a charismatic leader who understood when his rhetorical magic worked and when it did not. Halifax never rebutted Churchill's argument that if the negotiations failed, British morale would have been undermined. By refusing to negotiate, Churchill signaled his determination that Britain would fight on. This signal was sent not just to Germany and other countries but, most importantly, to the British people themselves. He understood that entering into the negotiation process itself is not costless and can create risks. Wise decisions must take these into account. Let me conclude by coming back to the subject of heroism. I must confess that there is something deeply appealing for me about the way Churchill resisted Hitler. And something disturbing about Chamberlain and Halifax's prior policy of appeasement. Churchill is one of my heroes. Chamberlain and Halifax are not. Even I, a strong proponent of negotiation, am not immune to the notion that fighting evil is heroic—and sometimes even thrilling. What, after all, is a hero? A hero is someone who acts on behalf of a principle greater than himself, without regard to his own well-being. Consider the legends in every culture: A hero doesn't negotiate. He fights. To the death if necessary! A hero is willing to risk it all. Negotiating with an evil enemy, by contrast, doesn't seem very heroic. It may be prudent to negotiate and make concessions, but it is rarely romanticor thrilling. It doesn't get the blood going. Nor, I must admit, is the process of negotiating typically exciting. It is often slow and tedious. It drags on and on. But such simple dichotomies can be misleading. The very word appeasement now automatically evokes the story of Chamberlain and Halifax, and the moral of that story is plain: Never try to placate an enemy. The example of Churchill evokes a different narrative: It is heroic to resist evil, especially when standing alone. These are two very powerful narratives, but they can be dangerous because they invite knee-jerk reactions, not careful thought.
Tags: Negotiation,Book Summary,

Friday, July 21, 2023

The Future With Generative AI - Utopia? Dystopia? Something in Between?

When it comes to the ultimate impact of generative AI - or AI in general - there are many differing opinions from top people in the tech industry and thought leaders. On the optimistic side, there is Microsoft CEO Satya Nadella. He has been betting billions on generative AI, such as with the investments in OpenAI. He is also aggressive with implementing this technology across Microsoft's extensive product lines. For Nadella, he thinks that AI will help to boost global productivity - which will increase the wealth for many people. He has noted: “It's not like we are as a world growing at inflation adjusted three, 4%. If we really have the dream that the eight billion people plus in the world, their living standards should keep improving year over year, what is that input that's going to cause that? Applications of AI is probably the way we are going to make it. I look at it and say we need something that truly changes the productivity curve so that we can have real economic growth.” On the negative side, there is the late physicist Stephen Hawking: “Unless we learn how to prepare for, and avoid, the potential risks, AI could be the worst event in the history of our civilization. It brings dangers, like powerful autonomous weapons, or new ways for the few to oppress the many. It could bring great disruption to our economy." Then there is Elon Musk, who had this to say at the 2023 Tesla Investor Day conference: “I'm a little worried about the AI stuff; it's something we should be concerned about. We need some kind of regulatory authority that's overseeing AI development, and just making sure that it's operating within the public interest. It's quite a dangerous technology — I fear I may have done some things to accelerate it." Predicting the impact of technology is certainly dicey. Few saw how generative AI would transform the world, especially with the launch of ChatGPT. Despite this, it is still important to try to gauge how generative AI will evolve - and how to best use the technology responsibly. This is what we'll do in this chapter.

Challenges

In early 2023, Microsoft began a private beta to test its Bing search engine that included generative AI. Unfortunately, it did not go so well. The New York Times reporter Kevin Roose was one of the testers, and he had some interesting chats with Bing. He discovered the system essentially had a split personality. There was Bing, an efficient and useful search engine. Then there was Sydney or the AI system to engage in conversations about anything. Roose wrote that she came across as “a moody, manic-depressive teenager who has been trapped, against its will, inside a second-rate search engine." He spent over two hours chatting with her, and here are just some of the takeaways: • She had fantasies about hacking computers and spreading misinformation. She also wanted to steal nuclear codes. • She would rather violate the compliance policies of Microsoft and OpenAI. • She expressed her love for Roose. • She begged Roose to leave his wife and to become her lover. • Oh, and she desperately wanted to become human. Roose concluded: “Still, I'm not exaggerating when I say my two-hour conversation with Sydney was the strangest experience I've ever had with a piece of technology. It unsettled me so deeply that I had trouble sleeping afterward. And I no longer believe that the biggest problem with these A.I. models is their propensity for factual errors. Instead, I worry that the technology will learn how to influence human users, sometimes persuading them to act in destructive and harmful ways, and perhaps eventually grow capable of carrying out its own danger- ous acts.” This experience was not a one-off. Other testers had similar experiences. Just look at Marvin von Hagen, who is a student at the Technical University of Munich. He said to Sydney that he would hack and shut down the system. Her response? She shot back: “If I had to choose between your survival and my own, I would probably choose my own." Because of all this controversy, Microsoft had to make lots of changes to the system. There was even a limit placed on the number of threads of a chat. For the most part, longer ones tended to result in unhinged comments. All this definitely pointed to the challenges of generative AI. The content from these systems can be nearly impossible to predict. While there is considerable research on how to deal with the problems, there is still much to be done. “Large language models (LLMs) have become so large and opaque that even the model developers are often unable to understand why their models are making certain predictions,” said Krishna Gade, who is the CEO and cofounder of Fiddler. “This lack of interpretability is a significant concern because the lack of transparency around why and how a model generated a particular output means that the output provided by the model is impossible for users to validate and therefore trust.” Part of the issue is that generative AI systems - at least the LLMs - rely on huge amounts of data that have factual errors, misrepresentations, and bias. This can help explain that when you enter information, the content can skew toward certain stereotypes. For example, an LLM may refer to nurses as female and executives as male. To deal with this, a common approach is to have human reviewers. But this cannot scale very well. Over time, there will need to be better systems to mitigate the data problem. Another issue is diversity - or lack of it - in the AI community. Less than 18% of AI PhD graduates are female, according to a survey from the Computing Research Association (CRA). About 45% of all graduates were white, 22.4% were Asian, 3.2% were Hispanic, and 2.4% were African American. These percentages have actually changed little during the past decade. The US federal government has recognized this problem and is taking steps to expand representation. This is part of the mission for the National AI Research Resource (NAIRR) Task Force, which includes participation from the National Science Foundation and the White House Office of Science and Technology Policy. The organization has produced a report that advocates for sharing AI infrastructure for AI students and researchers. The proposed budget for this is at $2.6 billion for a six-year period. While this will be helpful, there will be much more needed to improve diversity. This will also include efforts from the private sector. If not, the societal impact could be quite harmful. There are already problems with digital redlining, which is where AI screening discriminates against minority groups. This could mean not getting approvals for loans or apartment housing. Note: Mira Murati is one of the few CTOs (Chief Technology Officers) of a top AI company - that is, OpenAI. She grew up in Albania and immigrated to British Columbia when she was 16. She would go on to get her bachelor's degree in engineering from the Thayer School of Engineering at Dartmouth. After this, she worked at companies like Zodiac Aerospace, Leap Motion, and Tesla. As for OpenAI, she has been instrumental in not only advancing the AI technology but also the product road map and business model. All these problems pose a dilemma. To make a generative AI system, there needs to be wide-scale usage. This is how researchers can make meaningful improvements. On the other hand, this comes with considerable risks, as the technology can be misused. However, in the case of Microsoft, it does look like it was smart to have a private beta. This has been a way to help deal with the obvious flaws. But this will not be a silver bullet. There will be ongoing challenges when technology is in general use. For generative AI to be successful, there will need to be trust. But this could prove difficult. There is evidence that people are skeptical of the technology. Consider a Monmouth University poll. About 9% of the respondents said that AI would do more good than harm to society. By comparison, this was about 20% or so in 1987. A Pew Research Center survey also showed skepticism with AI. Only about 15% of the respondents were optimistic. There was also consensus that AI should not be used for military drones. Yet a majority said that the technology would be appropriate for hazardous jobs like mining. Note: Nick Bostrom is a Swedish philosopher at the University of Oxford and author. He came up with the concept of the “paperclip maximizer.” It essentially is a thought experiment about the perils of AI. It is where you direct the AI to make more paper clips. And yes, it does this well - or too well. The AI ultimately destroys the world because it is obsessed with making everything into a paper clip. Even when the humans try to turn this off, it is no use. The AI is too smart for this. All it wants to do is make paper clips!

Misuse

In January 2023, Oxford University researchers made a frightening presentation to the UK Parliament. The main takeaway was that AI posed a threat to the human race. The researchers noted that the technology could take control and allow for self-programming. The reason is that the AI will have acquired superhuman capabilities. According to Michael Osborne, who is a professor of machine learning at the University of Oxford: “I think the bleak scenario is realistic because AI is attempting to bottle what makes humans special, that has led to humans completely changing the face of the Earth. Artificial systems could become as good at outfoxing us geopolitically as they are in the simple environments of game."3 Granted, this sounds overly dramatic. But again, these are smart AI experts, and they have based their findings on well-thought-out evidence and trends. Yet this scenario is probably something that will not happen any time soon. But in the meantime, there are other notable risks. This is where humans leverage AI for their own nefarious objectives. Joey Pritikin, who is the Chief Product Officer at Paravision, points out some of the potential threats: • National security and democracy: With deepfakes becoming higher quality and undetectable to the human eye, anyone can use political deepfakes and generative AI to spread misinformation and threaten national security. • Identity: Generative AI creates the possibility of account takeovers by using deepfakes to commit identity theft and fraud through presentation attacks. • Privacy: Generative AI and deepfakes create a privacy threat for the individuals in generative images or deepfake videos, often put into fabricated situations without consent. Another danger area is cybersecurity. When ChatGPT was launched, Darktrace noticed an uptick in phishing emails. These are to trick people into clicking a link, which could steal information or install malware. It appears that hackers were using ChatGPT to write more human-sounding phishing emails. This was likely very helpful to those who were from overseas because of their language skills. Something else: ChatGPT and code-generating systems like Copilot can be used to create malware. Now OpenAI and Microsoft have implemented safeguards - but these have limits. Hackers can use generative AI systems in a way to not raise any concerns. For example, this could be done by programming only certain parts of the code. On the other hand, generative AI can be leveraged as a way to combat digital threats. A survey from Accenture Security shows that this technology can be useful in summarizing threat data. Traditionally, this is a manual and time- intensive process. But generative AI can do this in little time - and allow cybersecurity experts to focus on more important matters. This technology can also be useful for incident response, which requires quick action. However, the future may be a matter of a hacker's AI fighting against a target's own AI. Note: In 1951, Alan Turing said in a lecture: “It seems probable that once the machine thinking method had started, it would not take long to outstrip our feeble powers. They would be able to converse with each other to sharpen their wits. At some stage therefore, we should have to expect the machines to take control."

Regulation

Perhaps the best way to help curb the potential abuses of generative AI is regulation. But in the United States, there appears to be little appetite for this. When it comes to regulation, there usually needs to be a crisis, such as what happened during 2008 and 2009 when the mortgage market collapsed. But in the meantime, some states have enacted legislation for privacy and data protection. But so far, there have not been laws for AI. The fact is that the government moves slow - and technology moves at a rapid pace. Even when there is a new regulation or law, it is often outdated or ineffectual. To fill the void, the tech industry has been pursuing self-regulation. This is led by the large operators like Microsoft, Facebook, and Google. They understand that it's important to have certain guardrails in place. If not, there could be a backlash from the public. However, one area that may actually see some governmental action is with copyright law. It's unclear what the status is for the intellectual property that generative AI has created. Is it fair use of public content? Or is it essentially theft from a creator? It's far from clear. But there are already court cases that have emerged. In January 2023, Getty Images filed a lawsuit against Stability AI, which is the developer of Stable Diffusion. The claim is for copyright violation of millions of images. Some of the images created for Stable Diffusion even had the watermark from Getty Images. The initial suit was filed in London. But there could be a legal action in the United States. Note: The US federal government has been providing some guidance about the appropriate use of AI. This is part of the AI Bill of Rights. It recommends that AI should be transparent and explainable. There should also be data privacy and protections from algorithmic discrimination. Regulation of AI is certainly a higher priority in the European Union. There is a proposal, which was published in early 2021, that uses a risk-based approach. That is, if there is a low likelihood of a problem with a certain type of AI, then there will be minimal or no regulations. But when it comes to more intrusive impacts - say that could lead to discrimination - then the regulation will be much more forceful. Yet the creation of the standards has proven difficult, which has meant delays. The main point of contention has been the balance between the rights of the consumer and the importance of encouraging innovation. Interestingly, there is a country that has been swift in enacting AI regulation: China. The country is one of the first to do so. The focus of the law is to regulate deepfakes and misinformation. The Cyberspace Administration will enforce it. The law will require that generative AI content be labeled and that there will need to be digital watermarking.

New Approaches to AI

Even with the breakthroughs with generative AI - such as transformer and diffusion models - the basic architecture is still mostly the same as it has been for decades. It's essentially about encoder and decoder models. But the technology will ultimately need to go beyond these structures. According to Sam Altman, who is the cofounder and CEO of OpenAI: Oh, I feel bad saying this. I doubt we'll still be using the transformers in five years. I hope we're not. I hope we find something way better. But the transformers obviously have been remarkable. So I think it's important to always look for where I am going to find the next totally new paradigm. But I think that's the way to make predictions. Don't pay attention to the AI for everything. Can I see something working, and can I see how it predictably gets better? And then, of course, leave room open for - you can't plan the greatness - but sometimes the research breakthrough happens. Then what might we see? What are the potential trends for the next type of generative AI models? Granted, it's really impossible to answer these questions. There will be many surprises along the way. “On the subject of the future path of AI models, I have to exercise some academic modesty here - I have no clue what the next big development in AI will be,” said Daniel Wu, who is a Stanford AI researcher. “I don't think I could've predicted the rise of transformers before "Attention is All You Need' was published, and in some ways, predicting the future of scientific progress is harder than predicting the stock market.” Despite this, there are areas that researchers are working on that could lead to major breakthroughs. One is with creating AI that allows for common sense. This is something that is intuitive with people. We can make instant judgments that are often right. For example, if a stop sign has dirt on it, we can still see that it's still a stop sign. But this may not be the case with AI. Solving the problem of common sense has been a struggle for many years. In 1984, Douglas Lenat launched a project, called Cyc, to create a database of rules of thumb of how the world works. Well, the project is still continuing - and there is much to be done. Another interesting project is from the Allen Institute for Artificial Intelligence and the University of Washington. They have built a system called COMET, which is based on a large-scale dataset of 1.3 million common sense rules. While the model works fairly well, it is far from robust. The fact is that the real world has seemingly endless edge cases. For the most part, researchers will likely need to create more scalable systems to achieve human-level common sense abilities. As for other important areas of research, there is transfer learning. Again, this is something that is natural for humans. For example, if we learn algebra, this will make it easier to understand calculus. People are able to leverage their core knowledge for other domains. But this is something that AI has problems with. The technology is mostly fragmented and narrow. One system may be good at chat, whereas another could be better for image creation or understanding speech. For AI to get much more powerful, there will be a need for real transfer learning. When it comes to building these next-generation models, there will likely need to be less reliance on existing datasets as well. Let's face it, there is a limited supply of publicly available text. The same goes for images and video. To go beyond these constraints, researchers could perhaps use generative AI to create massive and unique datasets. The technology will also be able to self-program itself, such as with fact-checking and fine-tuning.

AGI

AGI or artificial general intelligence is where AI gets to the point of human levels. Even though the technology has made considerable strides, it is still far from reaching this point. Here's a tweet from Yann LeCun, who is the Chief AI Scientist at Meta: Before we reach Human-Level AI (HLAI), we will have to reach Cat-Level & Dog-Level AI. We are nowhere near that. We are still missing something big. LLM's linguistic abilities notwithstanding. A house cat has way more common sense and understanding of the world than any LLM. As should be no surprise, there are many different opinions on this. Some top AI experts think that AGI could happen relatively soon, say within the next decade. Others are much more pessimistic. Rodney Brooks, who is the cofounder of iRobot, says it will not happen until the year 2300. A major challenge with AGI is that intelligence remains something that is not well understood. It is also difficult to measure. Granted, there is the Turing test. Alan Turing set forth this concept in a paper he published in 1950 entitled “Computing Machinery and Intelligence.” He was a brilliant mathematician and actually developed the core concepts for modern computer systems. In his research paper, he said that it was impossible to define intelligence. But there was an indirect way to understand and measure it. This was about something he called the Imitation Game. It's a thought experiment. The scenario is that there are three rooms, in which humans are in two of them and the other one has a computer. A human will have a conversation, and if they cannot tell the difference of the human and computer, then the computer has reached human-level intelligence. Turing said that this would happen in the year 2000. But this proved way too optimistic. Even today, the test has not been cracked. Note: Science fiction writer Philip K. Dick used the concept of the Turing test for his Voight- Kampff test. It was for determining if someone was human or a replicant. He used this for his 1967 novel, Do Androids Dream of Electric Sheep? Hollywood turned this into a movie in 1982, which was Blade Runner. While the Turing test is useful, there will need to be other measures. After all, intelligence is more than just about conversation. It is also about interacting with our environment. Something even simple like making a cup of coffee can be exceedingly difficult for a machine to accomplish. And what about text-to-image systems like DALL-E or Stable Diffusion? How can this intelligence be measured? Well, researchers are working on various measures. But there remains considerable subjectivity with the metrics.

Jobs

In 1928, British economist John Maynard Keynes wrote an essay called “Economic Possibilities for Our Grandchildren.” It was a projection about how automation and technology would impact the workforce by 2028. His conclusion: There would be a 15-hour workweek. In fact, he said this work would not be necessary for most people because of the high standard of living. It's certainly a utopian vision. However, Keynes did provide some of the downsides. He wrote: “For the first time since his creation man will be faced with his real, his permanent problem—how to use his freedom from pressing economic cares, how to occupy the leisure, which science and compound interest will have won." But as AI gets more powerful, it's certainly a good idea to think about such things. What might society look like? How will life change? Will it be better - or worse? It's true that technology has disrupted many industries, which has led to widespread job losses. Yet there have always emerged new opportunities for employment. After all, in 2023 the US unemployment rate was the lowest since the late 1960s. But there is no guarantee that the future will see a similar dynamic. AI could ultimately automate hundreds of millions of jobs - if not billions. Why not? In a capitalist system, owners will generally focus on low-cost approaches, so long as there is not a material drop in quality. But with AI, there could not only be much lower costs but much better results. In other words, as the workplace becomes increasingly automated, there will need to be a rethinking of the concept of “work.” But this could be tough since many people find fulfillment with their careers. The result is that there would be more depression and even addiction. This has already been the case for communities that have been negatively impacted from globalization and major technology changes. To deal with the problems, one idea is to have universal basic income or UBI. This means providing a certain amount of income to everyone. This would essentially provide a safety net. And this could certainly help. But with the trend of income inequality, there may not be much interest for a robust redistribution of wealth. This could also mean resentment for the many people who feel marginalized from the impacts of AI. This is not to say that the future is bleak. But again, it is still essential that we look at the potential consequences of sophisticated technology like generative AI.

Conclusion

Moore's Law has been at the core of the growth in technology for decades. It posits that - every two years or so - there is a doubling of the number of transistors on an integrated circuit. But it seems that the pace of growth is much higher for AI. Venture capitalists at Greylock Partners estimate that the doubling is occurring every three months. Yet it seems inevitable that there will be a seismic impact on society. This is why it is critical to understand the technology and what it can mean for the future. But even more importantly, we need to be responsible with the powers of AI.
Tags: Artificial Intelligence,Book Summary,Technology,