Categories
ai artificialintelligence development

Large Language Models and the Chinese Room

It’s very easy to fool humans. We love to fill in gaps.

We see patterns and assume intelligence. We saw regular pulses from stars and called them Little Green Men. We see faces in cars and washing machines. Our brains fill in gaps when our eyes saccade.

And when we see a string of text that is coherent and reinforces our bias, we think that what produced it must be intelligent.

The Chinese Room is a thought experiment about artificial intelligence. The set-up is simple. Imagine there is a room with a letterbox and a massive stack of books. A human who does not speak Chinese is put in the room and told that for every Chinese message posted through the letterbox, they look up the symbols in the stack of books, copy out the response symbols, and post them back. Any Chinese speaker posting messages into the box would think they are talking to someone who understands Chinese, but the person in the box is just looking it up.

A large language model works the same way; it breaks the message into tokens, looks up the tokens in its database, and then looks up what the most likely next token will be based on the billions of tokens that were used to train it. And then adds a bit of randomness by sometimes choosing the 2nd or 3rd most likely.

The LLM then posts the response back, and the human outside the box starts to think that the box is intelligent. And some psychologists look at it and say it’s a prediction machine, and so is the human brain, so they’re the same thing.

But it’s not thinking, even if the chat box says it is. It’s not reasoning, even if the model has reasoning in its name. It’s just figuring out the next word. Sometimes it will figure out the next 10 words, like a Chess Grandmaster scanning the future moves, but it’s not got motivation. It’s not got self-reflection. It does not feel pain or remorse; it just keeps playing its own version of Scrabble until it draws a blank or runs out of tiles.

The thinking didn’t happen in the box. It happened in all the brains in all the people who wrote the words to put in the box, and it happens in all the brains posting things into the box, longing for connection or looking for a minion to help them steal the moon.

Humans love to find intelligence and faces in places where they don’t exist, because our brains are wired to find potential mates, friends and foes. A statistical model is none of those.

Categories
ai artificialintelligence

The conscious machine

This is a fantastic explainer of the threats and risks, and opportunities of AI. Thinking about the nature of consciousness. Can we ever say truly what a machine consciousness is, or how it feels?

Max Tegmark – When Our Machines Are Smarter Than Us – Clear+Vivid with Alan Alda
Up until now, we’ve been smarter than our tools. But that might change drastically sooner than we know. Isn’t it time to think about that?

As a white man, I have no idea how it feels to walk this world in darker skin. I can understand fear, but not the constant fear of being stopped by police, of watching my back.

I can understand what is happening, and fight to change it, but I’ll never understand how it feels to be in that position. Equally, a machine will never be able to understand how that feels, although it may be able to approximate the behaviours expected of someone who does.

AI is being built with a Western and a Chinese perspective. We cannot understand what a conscious machine will be like, or how it feels, but we can understand the environment it is created in.

In the USA and in China, it’s an environment where the ruling party actively dehumanise sections of the community, particularly Muslims at the moment, and black skin for centuries.

That environment is the context under which these consciousnesses are created. And whether the engineers agree with the government bias or not, their data will always be informed by it, especially where that AI is trained on historical data, news or social media.

How deeply will that consciousness embed the ideas of division and hatred, that one group is better than another, that one group is less than human? And if that’s its world view, what decisions will it make?

And it’s not theoretical. We know machine learning algorithms routinely discriminate against black skin, non-European names, female job applicants, and more.

Without active anti-discrimination training, all these algorithms will build these white supremacist biases in, and that will be their world-view. Their water will be division and discrimination and they won’t be able to see it.

Because those who train them are unable to see it.

Machines don’t have to be smart to be dangerous. But a machine that embeds that bias into its own world-view can do it opaquely, just as systemic racism doesn’t have to use discriminatory language to prevent black kids from getting to university.

Just one nudge after another to say “you don’t fit”, “this isn’t your world”, “try something else”, “behave more white”, “look less black”. (Why I’m No Longer Talking To White People About Race has a great section on a hypothetical black kid growing up and these barriers)

If you’re not actively building anti-discrimination into your AI, you are perpetuating white supremacy.

You are supporting fascism.

How will you be anti-racist today?

Categories
code development programming

You need a manifesto

My software engineers’ manifesto:

  1. We write software to solve problems, not to create them.
  2. We write software for everyone.
  3. Those who don’t write software have things we can learn from.
  4. Always leave the project better than you found it.
  5. Sometimes the best contribution you can make is not writing code.
  6. Sometimes the best contribution you can make is deleting code.
  7. Sometimes the best contribution you can make is by talking to someone.
  8. Software is inclusive. Women broke the Enigma code, and black women got us to the moon.
  9. If you don’t hate in 5 years what you’ve written today, you haven’t learned enough.
  10. If you don’t have compassion for whoever wrote that code 5 years ago, you haven’t learned enough.
  11. If anyone can’t use your software, that’s a bug. Prioritize accordingly.
  12. Overtime is a bug.
  13. Debug your processes with as much attention to detail as you debug your code.
  14. Asking for help is a sign of strength.
  15. Work with the best. Don’t lower your standards to only work with straight cis white men.
  16. Be pragmatic. Shipped code is far more useful than perfect code, but if you can have both, future you will thank you.

Inspired by: You Need A Manifesto https://pca.st/episode/33cb401f-a028-4de2-b20d-ec2c96f2b019

Categories
development programming ux

In the beginning… was the conversation

The history of computing has been an evolution of conversation between us and machines. Single-purpose machines were built to be talked about, not communicated with. Even a hoax like the mechanical Turk.

But then the punched cards of the loom and Ada Lovelace’s ideas of a general-purpose computer started to become real, and we needed a language. At first, it was a language based on mathematics, the language of log tables, the language of angles, and then the language of letter frequencies. But soon we got more advanced, we got to the language of logic. Decision making, and computers, were open to working on anything.

And that’s where software engineers, programmers and developers enter the story. The medium of communication between the world of humans and the world of logic (because there has been no greater fallacy in human endeavour than to assume there is a complete overlap between the two, despite how many Nobel prize winners in economics have tried to prove otherwise).

The story of computers since then has been the story of building layers upon layers on top of machine logic to bring machines closer to humans. The command line, high-level languages (when C was considered a high-level language), graphical user interfaces, and the emerging field of voice and text conversation epitomised by Alexa and but Google and Facebook bots, but also the first line at the call centre, the first responder on live chat.

There has always been a conversation, and there’s always been a mismatch between our words and our intent.

As developers, our job is to derive intent from those words and the actions. Traditionally, offline in workshops and focus groups, but increasingly in real-time, teaching the machines to understand users and adapting conversions, websites, and apps, as we detect errors and confusion, as our data tells us users are unable to complete their goals.

There has always been a conversation. But this new conversation is with the users, and the machines, and the stakeholders, in real-time. With incomplete and biased data.

Be forgiving in your conversations. No one knows what this global conversation is like. But we know from social media and the news that not everyone in the conservation is pursuing truth and simplicity. But that is the only logical route, and behind all the facades is whatever truth you’ve built into the system. Are they the truths you can stand behind? Are those the truths that help and empower people?

Communicate your truths clearly and without favour, because this conversation is never pure or simple, and we have unearned power to control and shape that conversation. I don’t know if anyone would have chosen to give power to the developers and make us responsible for the truth, but in an information economy, that’s where we are. All these conversations are our conversations.

Tech is not neutral.

Speak your truth and recognise your responsibility.

Further reading

Neal Stephenson – in the beginning… was the command line

Conversation is the command line of tomorrow

Categories
development leadership

No one thinks like you

Don’t make the mistake of thinking you’re the smartest person in the room. You might be the most knowledgeable about your specialist subject, but being a good boolean whisperer does not automatically make you an expert on public transportation, psychology, poverty, history, finance, or any other industry.

I’ve had the privilege of being disabused of that notion very early on in my career, surrounded by statisticians, linguists, psychologists, designers and vets. I do what I do, and let my curiosity take care of the rest.

But there’s a lot of arrogant arseholes in this industry who think they know best. Those who will talk instead of listening, who belittle, interrupt and condescend. They know their domain very well and are quick to criticise others who don’t understand.

But we all have our own models of how the world works, our own coordinates on the axes that describe the world as controlled by us vs controlled by others, whether money or relationships are more important, whether people matter more than animals, whether humanities can survive without science or science without humanities, visual thinkers or verbal thinkers or lingual thinker or kinetic thinkers. We don’t perceive or act in this world in a way quite like anyone else. We all bring unique experiences and perspectives to the table, and we all know something that others can learn from.

So sit and listen in silence. Take in what you can, and when you’re ready, ask questions. Listen to understand, not to respond, not merely to be polite, but because you are interested and you want to learn.

If we could see how others see us? They’re talking. All you need to do is listen.

Categories
development security

multiple points of failure – lawnmower

There are a lot of ways things can go wrong. So you need a lot of levels of safety.

If your production site goes down, it’s always a system failure. Even if the entire system is a bunch of LLMs running on one person’s machine. There’s no reason why anything on your local machine should be able to make changes in production. We’ve had CI/CD pipelines with authentication and secrets management for long enough that it’s a solved problem.

I have an electric lawnmower. It plugs in via a circuit breaker, into a grounded 3-pin plug, attached to a mains unit with another circuit breaker. To start it, after plugging it in (and testing its circuit breaker), I need to push a button with one hand and pull a lever with the other. The motor will cut out, even in that configuration, if the resistance is higher than a threshold. The blades are not visible in use, because the cover completely surrounds them.

None of this prevents me from chopping my toes off with the lawnmower, but it makes it a lot harder.

So a good security system will have multiple fail-safe protections between the developer’s machine and the production environment, and ideally a mix of human and machine checks. Anti-virus, firewalls and network monitoring on the developer machine itself, as well as policies to keep everything patched. Review and limitations on the supply chain via container and package registries. Refusal to run code in a CI build if conditions aren’t met, and refusal to sign and publish until build, test and human review all pass. Refusal to deploy unless there’s a signed build. Refusal to accept any credentials except those in the secure store. Refusal to accept developer credentials to change the database.

Security isn’t easy. You have to win every hour of every day. The attacker only needs to win once. But every failsafe is another barrier they need to pass, and they only win if they can pass them all.

And for your own sanity, keep development and production isolated.

Categories
development leadership

Slow productivity

Productivity isn’t getting things done. It’s getting the right things done.

The push from so many management books since the rise of Taylorism, and now accelerated by AI, is that productivity is doing. It’s that productivity is not thinking. Productivity is not creativity. Productivity is not connection. Because we can’t measure thinking, or creativity or connection. And in most cases, it’s not even a second-order effect; it’s third order. The connection helps you build the next team which builds the product.

We can measure lines of code; we can measure velocity; we can count closed PRs and track how long a card was stuck in a status. We can build workflows in Jira that ensure the process is followed and every minute is accounted for. And users still want Trello.

The unmeasured work is what gives rise to experiments, or better relationships, or spotting the underlying problem. It makes the doing easier; it helps us find the best thing to do. It builds foundations for learning and for novel approaches to make the doing better. It’s the glue work that makes great managers great, and it is often the work us straight white men overlook because it’s the work that doesn’t show up on the timesheet or the dashboard, and when the people doing that work leave, everything they impact is a lagging metric; it’s the things that fall apart 3 months or 2 years from now because it’s no longer on the horizon.

The meta work is planning, learning, connecting, making space for mistakes; it’s resilience and duplication because we never want to rely on one person for everything. It’s stepping back to make connections, to consider a better way of doing this, to consider if this is still the right team culture for the current work, or the right structure. It’s recruiting now for the work you don’t know you’re going to need yet because by the time you know it’s too late to onboard someone. It’s building the safety nets and the monitoring and the maintenance. And it’s the work you always have to fight to justify because it doesn’t fit neatly into things that can be measured, automated and controlled.

And we’ve never been trained for it, at school or elsewhere. It’s daydreaming, it’s being lazy, it’s a waste of my time. It’s a walk in the woods, a long shower; it’s not moving your mouse despite your manager tracking you on that.

It’s not just slow work; it’s slow meta work.

Categories
leadership

Job hunter mental health

Enough time has passed since my last job hunt that I can publish my thoughts to maybe help others, and definitely to talk to hiring managers and job platforms. And with LLM creeping into both sides, I’m hearing that it’s only getting tougher.

I don’t know if LinkedIn thinks it’s being helpful with the weekly update emails, listing 5 of the jobs I applied for a week ago and showing me only 1 was reviewed by the recruiter. And I know that the recruiter didn’t get back to me. I know there’s barrel–loads of spam on both sides of the job hunt, but I’m not sure a reminder of what a haystack we’re in is all that helpful.

With my manager hat on, whilst I always value openness and transparency, there are ways of presenting information which support and respect their mental health, and ways that don’t. And plenty of job seekers will be feeling vulnerable, rightly so, and reinforcing the learned helplessness that no one is even paying attention is really not going to help anyone.

There’s a few other posts going around about male suicide, especially concerning financial pressures. I don’t believe this is a mindful addition to LinkedIn.

I had a Trello board when I was job hunting, and the long list of “applied for” and the longer list of “waited more than 2 weeks/ghosted” were on the hidden end of the board. I should have set up an automatic move from the former to the latter so the only time I looked at them was when I got a response.

I can attest that a “thanks but no thanks” response is better than no response, even if the response was:

We have decided not to go forward for one of the following reasons:

  • This position is now closed to new applicants
  • Your CV didn’t contain the words “10 years experience shouting Abracadabra at hippos”
  • This job description only exists to give our current employees false hope that their workload will be reduced
  • Our AI has determined that you are a cat

With the “AI will take your job”, “inflation is still rising faster than wages”, “you’ll never afford to retire” stories, it’s a very tough market for job hunters. So recruiters, especially those feeling the pinch themselves, need to demonstrate more human compassion to job hunters. Not “hey, remember these people who aren’t thinking about you”, not a helpful “the green banner is Kryptonite to us recruiter superheroes”, just “this is tough, and the best we can give you is the truth, and a clean break”.

Let’s not make it tougher than it already is.

Categories
ai development ux

The product is never as important as the support

You can’t vibe code your way to a great customer experience.

You need the user flows and the user journeys, but you also need to understand the system the user operates in. How much of their job do they spend in your tools? Is it the essential part of their job that they’ll spend time customising to their needs, or is it the necessary admin they need to get out of the way quickly to get back to what they need to do?

And sometimes the same product can be both, to different people in the organisation, or at different points in the week for the same person. The announcement email for the new product is exciting and gives them purpose; the email with all the receipts for the conference that allowed them to perfect the message is the annoying thing they have to do, especially with all those separate dinners and gifts for the research workshops.

Writing code isn’t a skill everyone has, but working code isn’t the most important thing a developer does. It never has been. The code exists for a purpose and exists inside a system, so the developer needs to know why the code exists and what other code is in conversation with it. We don’t think the carpenter’s job is cutting wood, but without measuring and cutting the wood, they couldn’t get the legs to fit the seat, and without those things connecting in the right way, they couldn’t build a chair for you to sit on.

Some companies have perfected the mass production of the legs and the seats, and they flat-pack them for you to assemble at home, but there’s still a human in the loop to understand how they fit together and provide the instructions on how to do so; there’s a human who understands why it exists and what weight it needs to bear, and how it fits with the table. And if anything goes wrong, there should be a human who can help to fix it, because the human understands that you need that chair for next week when your family are arriving, and there’s not enough space at your dining table.

Products succeed or fail not because of the engineering, or how they’re cut, although that can be a critical part of the success. A product succeeds when it meets customers where they are. And gives them something they didn’t know they needed. And helps them when things don’t go as expected.

Taking the human out of the loop takes the customer out of the loop.

Categories
development leadership

If it hurts, stop doing it: the won’t do list

We have backlogs to tell us what to work on next. Things that don’t fit in the current sprint, or things we want to work on but are blocked because there are things we don’t know.

Backlogs can also be graveyards, where we hold on to dead ideas because they seemed like a good idea, or we don’t want to disappoint someone, or we’d love to try that new library that came out 5 years ago. Where we want to remember the low-priority things that nag us.

Warren Buffett has an idea that if you write down the next 20 things you want to do, and then highlight the 3 most important, the rest of the list becomes “do not do under any circumstances until those 3 are done” because they become anchors that drag you mentally, that hold space rent-free because they’ve not been done.

Create a won’t-do list, a rejected list, a Pandora’s box, and a someday-maybe list, and throw all those things in there. They’re still safe, you’ll see them again if you want to, but you don’t have to think about them. Put reasons against them if you want; this isn’t a priority because X is more important, or because we don’t know whether A, B, or C will lead the market. We’re not touching things with a bargepole because the ethics team doesn’t trust them; so let’s never add this and tell everyone why.

Put them out of sight and out of mind, and give the ideas you want to work on the space they deserve.

Categories
development leadership

MVP is a game of Jenga

The M in MVP stands for Minimal. Lots of teams forget.

MVP is not Version 1.0; it’s not the kitchen sink. It’s the smallest thing you can build to answer your next question. Once your questions are answered: “can we, should we, build it, does this solve the right problem?” then build your feature 1.0

Take away everything you don’t need. Sometimes MVP is a paper prototype, sometimes a sign-up form. Lots of edge cases won’t work. It might not look pretty, but it will give you great feedback.

Viable doesn’t mean battle-ready; it just means possible.

Categories
development leadership programming

The Andy Dufresne project

Have you ever been stuck on an Andy Dufresne project?

You know the one. You’re trapped because of something someone else did, chipping away at legacy structures with just a rock hammer. And you might even have your own Rita Hayworth poster to hide the refactoring of this debt.

Sometimes that’s agency life. The promise of a rewrite (and your own boat in Mexico) if you can just chip away slowly and then crawl through half a mile of shit. It can be achingly slow progress, trying to get buy-in for your freedom, when the people with the power just want to keep you where you are. You’re trapped because of what someone else did.

And if you stay in that code too long, you’ll get institutionalised and won’t be able to see a better way to fix this problem.

‌How to keep making progress

Firstly, it’s much easier to survive a project like this if you have the right team beside you. People who can accept the faults and accept they’re temporary. You need a team of gardeners, not innovators, who can dig deep and understand what’s actually happening, where the rocks and the edge cases are. And who’ll take a break to listen to music or otherwise relax and take stock and look up.

And you need to understand the progress will be slow, but you can put guard rails in place so that each bit of progress you make has tests and is better than you found it. And sometimes you have to shake the refactorings out as pebbles amongst the other work because management and the clients don’t want to see it.

Never stop asking for freedom to make bigger changes, but always pair it with trust. They’ll listen more if you respect their budgets and their time, and you can explain what’s easier and what’s harder.

The Great Escape

If you do get the chance to rewrite, there may well be external factors at play. Use them. Digital transformation, going mobile, getting AI-ready. If you can tap into the strategy and find ways to align what you want with that, it’s going to be much easier to get approval. Be honest with the proposal, but always keep an eye out for those opportunities.

Look after Red

The only way to get the job done and get where you want to go is to take the important people with you. The ones who can get you a better hammer, or a new cover for the next bit of refactoring. Honesty will always get you further, so long as you know who to trust. Make it easy for them, so they can come with you on the journey.

See you on the beach.

Categories
leadership

Exes or alumni

I’ve seen a few posts on LinkedIn recently about both the mass layoffs done in the worst way and also posts about people wanting a second chance after leaving or turning down a job offer. And I doubt many of the former companies are having those latter conversations.

So how do you treat your former employees and employers? What culture are you showing to your clients, your contractors, your colleagues, and your candidates?

When the relationship ends, do you seek to cut yourself off, like a betrayal, or continue to foster a relationship, even slight, so that collaborations in the future are possible? Are there people and places you’d be happy to return to in the right circumstances, and the ones that got away that you still pine for?

Thinking back on my career, I definitely have a mix, but very heavily weighted towards finding paths back. Indeed, at least 3 roles, and a few interviews on top, have been due to reconnecting with people I’d previously worked with, and rekindling opportunities.

I never want to leave a relationship sour, even when there are cultural differences that mean I wouldn’t want to work somewhere again, there are always people and projects that I’ll keep an interest in.

So, for all those you no longer work with, or never got the chance to work with, are you testing them with bitterness, like the ex you blame for everything that went wrong when you were with them? Or do you feel like an alumnus, a community that grew with a shared goal, and still keeps in touch because your past will always impact your future?

Leave the Door Open for Employees to Return to Your Organization

Categories
cosmosdb data development

Cloud thinking: Data in 3rd denormalised form

One schema to rule them all and in the darkness bind them.

That’s the SQL way. One schema, many tables, be efficient with space. Join, don’t duplicate. Third normal form and structured data. More structure.

But that’s not always the best way to scale. How important is it that everything is identical everywhere? How important is history? When a customer moves house, do you want to know the difference between the address they want their next order delivered to and the address the last order was delivered to?

When you let go of SQL and joins, and when storage is cheap, does it matter if you have multiple copies, so long as each document has the right copy for itself?

When you aggregate data, when your change log turns multiple orders into 1 delivery schedule for your driver, does it matter that the driver has their own copy for when they lose signal? Does it matter that there’s a copy of the addresses in the route that will be deleted tomorrow because it serves no more purpose?

If storage is cheap and joins and transmissions are expensive, wouldn’t you want to cache data and trade storage for speed?

Shouldn’t you embrace heterogeneous data? The address on your payment looks like the address on the order, but it serves a different purpose, it’s embedded in a different context, and it has a different lifecycle.

It’s sometimes hard to change your mental model, but it can save you from doing the wrong thing.

Categories
programming

If it hurts, stop doing it: automating the wrong things

Automation is too easy.

Copy every email to Slack, copy every Slack message to Todoist, copy every new task to My Notion inbox, and send an hourly Summary of new Notion inbox items to my email.

And you’ll never look at any of them.

Having a productivity sieve is great, but you need to be intentional.

Every automation should start with Manual intervention, unless the first step is a filter. Star that email, bookmark-emoji that message. Be implicit with your intent. Let the automation copy to the right place and label and find related, but don’t automate the decision, or the firehose.

Be a Centaur, in charge of the Machine, not a reverse Centaur, controlled by it. Filter at the source, or the sewage will overwhelm you. Don’t let your vibe lead to overwhelm.

People before process.

Killearn Balfron Path Project

An active travel project about walking wheeling and cycling near Stirling, Scotland

security trash panda

thoughts on education, security and privacy

Here Codes Nothing!

The story of a creative developer exploring exciting new things in this world of wide webs.

Therapy With Books

Reading and recommending books since 1986 so you don't have to read bad ones!

Azure Greg

Passionate about all things Azure

Hackaday

Fresh hacks every day

Andrew's View of the Week

Andrew's view of the world in poetry, prose, and pictures

nathanwoodconsulting.wordpress.com/

High-performance consultancy for elite sport

Richard WM Jones

Virtualization, tools and tips

Mike Taulty

I do some developer stuff on Microsoft technologies in the UK

Leadership Freak

Empowering Leaders 300 Words at a Time

ideas.ted.com

Ideas change everything

Create your own website, free on WordPress.com.Create your own website.
Start free