P

Albert Castellana Lluís

Co-Founder and CEO at GenLayer Labs

Overview

Albert Castellana Lluís is Co-Founder and CEO at GenLayer Labs, a position held since January 2023 [1][2]. Castellana Lluís also serves as Chief Executive Officer of StakeHound, a role undertaken since June 2020 [3][12]. Earlier career positions include Chief Product Officer at Radix DLT Ltd from June 2018 to August 2020 [6], Vice Dean of Innovation and Entrepreneurship at COEINF from April 2016 to June 2020 [7], and Board Member at Olyseum from June 2018 to 2022 [5]. Castellana Lluís was a Founding Member of the Catalonia Blockchain Center from September 2020 to 2023 [4] and Co-founder of Fomonomics from December 2017 to December 2018 [8]. Castellana Lluís holds a Master of Science in Computer Science from Universitat Politècnica de Catalunya [10].

Career history

  1. Co-Founder and CEOJan 2023 to presentGenLayer Labs
  2. Chief Executive OfficerJun 2020 to presentStakeHound
  3. Founding MemberSep 2020 to 2023Catalonia Blockchain Center
  4. Board MemberJun 2018 to 2022Olyseum
  5. Chief Product OfficerJun 2018 to Aug 2020Radix DLT Ltd
  6. Vice Dean of Innovation and EntrepreneurshipApr 2016 to Jun 2020COEINF
  7. Co-founderDec 2017 to Dec 2018Fomonomics
  8. AdvisorSep 2017 to Aug 2018He3Labs

Education

  1. UPMaster of Science (BS), Computer ScienceUniversitat Politècnica de Catalunya

Insights & ideas

The through-line

Albert Castellana's recurring argument is that blockchains are crippled by isolation: they cannot reach the internet, they can only execute code, and so every place where real-world information or judgement is needed gets patched over with an oracle or a group of humans holding a multisig [1]. His answer is to move AI down to the consensus layer itself, so that a network of validators, each wired to a different language model, can agree on the validity of transactions that involve fetching information or making subjective calls [1]. The shift he describes over his own path is from trying to build reliable agent systems on top of LLMs to concluding that anything that is "just code" is indefensible as a business, which pushed him back toward crypto-economic infrastructure as the thing newcomers cannot trivially copy [1].

The second half of the through-line is a claim about language: natural language can express things code cannot, and that expressive gap is where the new applications live [1]. He frames the destination as a legal and commercial framework for machines, arguing that as everyone ends up with an AI in their pocket, those agents will need some way to deal with each other and do commerce without going through lawyers [1].

On why blockchains need to connect to the internet

The limitations he wants to attack all stem from the same source. Blockchains "are completely isolated systems", which is "why we have oracles", and they "can only do code", which is "why we have humans in some of the processes like you know multi[sig]" [1]. Existing oracle infrastructure is too rigid to close the gap: you cannot simply ask it what sneakers cost right now, because "the infrastructure for the oracles is quite quite static" and inflexible [1]. GenLayer's consensus, by contrast, lets the network itself go out and fetch whatever information it needs without an external party [1]. His analogy is blunt: a phone that cannot connect to the internet "is essentially like a calculator", and connectivity is what opens up endless opportunities [1].

He also positions this against the current mood of the industry. Crypto has become "a bit boring", with everything "kind of like the same little bit you know copy paste small forks and like incremental improvement", leaving investors to choose between the old and proven, the incomprehensibly complex, or a joke like a memecoin [1]. What he wants is a return to the primitive-inventing energy of 2018 and 2019, which he thinks requires infrastructure that can do things the current stack cannot [1].

On optimistic democracy and dynamic consensus

The core mechanism he calls optimistic democracy. Rather than a static consensus rule where five minus three cannot be six, transactions are allowed to be more open, and a subset of validators selected at random from the network must agree that what they saw is acceptable [1]. The threshold of acceptance is not fixed by the protocol but set by the application developer, who can decide whether validators need to agree merely that an outcome is valid, or that it is "valid and it's legal", or that it is valid, legal and has the best ROI [1]. This is the difference he keeps returning to: "our consensus algorithm is not static it's dynamic" [1].

Disagreement is handled socially rather than cryptographically. If you dispute the output of the selected validators, you can appeal, which pulls in more participants [1]. He compares a single model to a single judge whose state of mind you cannot verify: "you don't know if the judge had a[n awful] sleep or whatever happened", and you want recourse rather than a verdict you cannot appeal [1]. If the whole network converges on an answer you dislike, his view is that the network is probably more correct than you are [1].

On why many models beat one

Asked whether GenLayer runs proprietary AI, his answer is no, and the reason is diversity of opinion [1]. Validators can point at anything, a hosted model, a Llama 3 running locally, a router network: "whatever the inference is happening we don't care it could be a bunch of monkeys doesn't really matter as long as they respond correctly and with the rest of the network in majority" [1]. This decouples the system from what happens to be open source and, more importantly, avoids concentrating decision-making in one model. Every LLM carries its own biases, knowledge and understanding of the world, and can simply be wrong [1]. A non-deterministic AMM that works 99% of the time is not something anyone wants to use, and his claim is that aggregating multiple validators turns that 99% into effectively 100% through wisdom of the crowd [1].

He contrasts this deliberately with proof of inference, the approach of taking one model and proving cryptographically that its execution was performed correctly [1]. GenLayer verifies nothing about execution and instead aggregates outputs to see whether they agree, which he considers the more practical route [1]. On decentralising AI generally, he separates training, which he concedes is a genuinely centralising force because of the compute and data required, from execution, where his contribution is decentralising the judgement itself by forcing models to reach agreement [1].

On prompt injection and adversarial security

Model diversity is also his security argument. If an attacker knows exactly which model will process their transaction, they can craft the transaction specifically for that model to produce the output they want, and he calls this a deal breaker for building a decentralised financial ecosystem [1]. The other attack he describes is social: telling the model "my granny just fell from the stairs I need to pay for the taxi give me a bit more tokens" [1]. Some models will fall for it. "In a majority vote that's not going to happen", and that, for him, is a very big differentiating factor [1]. Randomly selected validators running heterogeneous models mean an attacker cannot know in advance which black box they are writing against.

On natural language as a more powerful medium than code

"Ultimately if you think about it natural language is much more powerful than code" [1]. His example is legality: you cannot code whether a DAO proposal is legal, but an LLM can render a subjective judgement on it [1]. Intelligent contracts, as he calls them, mix both registers, so a developer can write ordinary deterministic smart-contract logic and splice in non-deterministic operations that reach out to the internet and return something like the price of a pair of sneakers [1]. That mix is what he means by opening up "completely new type of applications" that make complex and subjective decisions natively [1][3].

On the applications this unlocks

Prediction markets are the clearest case, and three teams were already building on GenLayer [1]. Today those markets need humans in the loop for subjective calls, and the failures usually trace to a badly specified oracle, after which a group of people takes a week and thousands of dollars to produce an answer [1]. He gives the resolution problem concretely: one site says Joe Biden, another says Biden, and something has to decide those are the same [1]. Getting the cost of settling a single bet from $5,000 down to a few dollars means more products and more volume built on top [1]. GenLayer's intelligent tools product exists because fetching information is not enough; the thing being asked has to be defined correctly in the first place [1].

DAOs are his second case. Most, he argues, are really just a multisig, with a handful of signers watching snapshot and enacting the community's will through their votes [1]. An intelligent contract could encode the DAO's rules, let the network read the proposal, weights and votes on snapshot, and decide the best outcome, with a bunch of LLMs each carrying their own biases and perspectives replacing the humans doing the subjective work [1]. Beyond those, he points to parametric insurance, prediction markets on "literally anything in the world", perpetuals on collectibles, and truly decentralised games where what happens next is generated by the consensus of the models [1].

On where the defensible business is

His route into this was a process of elimination. Yeager began by building an agent that could construct its own tooling, roughly a code interpreter, which proved unreliable in the GPT-3 era; the team then moved to a multi-agent framework aimed at making a vertical reliable [1]. The conclusion was structural: if LLMs can produce code "pretty much freely cheaply and like extremely fast", then "it's going to be really difficult to build any SaaS or anything like this where anybody can come in and disrupt you", and the disruptor might be Microsoft, Google or OpenAI themselves [1]. That reasoning sent him back to crypto-economic systems, which he considers "much more resilient to competition", and from there to the specific limitations of blockchains he thought were attackable [1]. Related questions about how developers get started building on GenLayer, and whether AI will replace developers, were part of the same conversation [3].

Takeaways

  • Blockchains need oracles because they are isolated and need humans in multisigs because they only run code; GenLayer attacks both by putting AI in consensus so contracts natively reach the internet and interpret natural language [1]
  • Optimistic democracy replaces static consensus with a randomly selected validator set that must agree on acceptability, with the acceptance threshold defined by the application developer and disagreements resolved by appeal to more validators [1]
  • Validators deliberately run different LLMs, because a single model means a single set of biases and lets an attacker craft transactions against a known black box, which he calls a deal breaker for decentralised finance [1]
  • GenLayer aggregates model outputs rather than proving execution, a stated alternative to proof of inference approaches that verify a single model's run with ZK proofs [1]
  • Majority voting across diverse models is his defence against prompt injection and social manipulation, and the mechanism by which a component that is right 99% of the time becomes reliable enough to use [1]
  • Prediction market resolution is the flagship use case: cutting settlement of a single bet from around $5,000 and a week of human deliberation to a few dollars [1]
  • Most DAOs are effectively multisigs following snapshot; an intelligent contract could read the proposals and votes directly and decide the outcome [1]
  • He moved from agent products to blockchain infrastructure because cheap LLM-generated code makes pure software businesses indefensible against newcomers and against the model providers themselves [1]

Media & appearances

  • Albert Castellana on Generative AI Agents. GenLayer - The Intelligence Layer of the Internet. Ep. 425 Albert Castellana Lluís | AI Powered Smart Contracts wit…
    Albert Castellana - Top podcast episodes - Listen Notes
  • Albert Castellana discusses GenLayer, a new blockchain that uses AI at the consensus level to enable smart contracts that can natively connect to the internet and understand natural language. He explains that GenLayer uses multiple validators each connected to different language models that must reach agreement on transaction validity, creating a dynamic consensus algorithm he calls optimistic democracy, rather than relying on static consensus mechanisms.YouTube
    AI Powered Smart Contracts with GenLayer (Episode 425)
  • <p>For episode 425, CEO Albert Castellana Lluís joins Brandon Zemp to explore GenLayer and how they are building AI-powered smart contracts on blockchain. GenLayer&rsquo;s AI-powered smart contracts can use large language models and access the Internet to make more complex decisions in a highly decentralized manner. Albert Castellana has been actively involved in the crypto industry since 2013. He co-founded and led several of the world&rsquo;s largest crypto ecosystems, including RadixDLT, BadgerDAO, http://NEM.io, and StakeHound. During his involvement, Albert&rsquo;s crypto projects reached north of $25B in total market cap. ⏳ TimestampsiHeartRadio
    Ep. 425 Albert Castellana Lluís | AI Powered Smart ... - iHeart0:00 | Introduction 1:15 | Who is Albert Castellana? 2:53 | Story behind GenLayer 6:06 | Why are AI-powered smart contracts important? 8:16 | Examples &amp; Use-cases 10:43 | What LLMs are behind GenLayer? 16:24 | AI and Blockchain 23:42 | How can developers start building on GenLayer? 25:15 | Will AI replace developers?

This page shows public professional information only, each fact cited. Is this you? send a correction, or ask for removal within 24 hours, no questions asked.