<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Mark Schenk on Medium]]></title>
        <description><![CDATA[Stories by Mark Schenk on Medium]]></description>
        <link>https://medium.com/@mark.schenk?source=rss-8bf36549d63c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*FOp1zIRXVaRFtRmeazHvgQ.png</url>
            <title>Stories by Mark Schenk on Medium</title>
            <link>https://medium.com/@mark.schenk?source=rss-8bf36549d63c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 18:12:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mark.schenk/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Visualising your AWS stack]]></title>
            <link>https://medium.com/@mark.schenk/visualizing-your-aws-stack-c6f63c16468a?source=rss-8bf36549d63c------2</link>
            <guid isPermaLink="false">https://medium.com/p/c6f63c16468a</guid>
            <category><![CDATA[maven]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[aws-cdk]]></category>
            <dc:creator><![CDATA[Mark Schenk]]></dc:creator>
            <pubDate>Wed, 01 Apr 2026 15:43:30 GMT</pubDate>
            <atom:updated>2026-04-03T05:40:44.099Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C4meYBqhX8EYvjRhWcS7Wg.png" /></figure><p>In this tutorial, we’ll show how to automatically generate a visualisation of your AWS stack during deployment. This approach eliminates the need for manual diagramming by producing up-to-date, accurate visual representations of complex infrastructure directly from your code. Such visualizations enhance collaboration, streamline troubleshooting, and help teams better understand resource relationships. Moving from “diagrams as a manual task” to “diagrams as code” saves time and ensures your visuals always reflect the live infrastructure.</p><h3>Prerequisites</h3><p>You should have a stack defined as described in <a href="https://datapith.github.io/cdk4j/tutorial/get-started-cdk4j/">Get started with CDK4J</a> and be familiar with basic Maven usage.</p><h3>Adding Diagram Generation to the Build</h3><p>We will use the <a href="https://datapith.github.io/cdk4j/reference/cdk4j-cfn-diagram/">CDK4J diagram</a>] tool integrated into the Maven build process. Add the following plugin configuration to your pom.xml:</p><pre>&lt;!-- Generate AWS infrastructure diagram --&gt;<br>&lt;plugin&gt;<br>  &lt;groupId&gt;com.github.eirslett&lt;/groupId&gt;<br>  &lt;artifactId&gt;frontend-maven-plugin&lt;/artifactId&gt;<br>  &lt;version&gt;2.0.0&lt;/version&gt;<br>  &lt;configuration&gt;<br>    &lt;installDirectory&gt;target&lt;/installDirectory&gt;<br>    &lt;nodeVersion&gt;v16.13.1&lt;/nodeVersion&gt;<br>  &lt;/configuration&gt;<br>  &lt;executions&gt;<br>    &lt;execution&gt;<br>      &lt;id&gt;install node and npm&lt;/id&gt;<br>      &lt;goals&gt;<br>        &lt;goal&gt;install-node-and-npm&lt;/goal&gt;<br>      &lt;/goals&gt;<br>    &lt;/execution&gt;<br>    &lt;execution&gt;<br>      &lt;id&gt;install cdk4j-diagram&lt;/id&gt;<br>      &lt;goals&gt;<br>        &lt;goal&gt;npm&lt;/goal&gt;<br>      &lt;/goals&gt;<br>      &lt;configuration&gt;<br>        &lt;arguments&gt;install @datapith/cdk4j-diagram&lt;/arguments&gt;<br>      &lt;/configuration&gt;<br>    &lt;/execution&gt;<br>    &lt;execution&gt;<br>      &lt;id&gt;generate infrastructure diagram&lt;/id&gt;<br>      &lt;goals&gt;<br>        &lt;goal&gt;npx&lt;/goal&gt;<br>      &lt;/goals&gt;<br>      &lt;!-- Make sure the generation of infrastructure diagram happens after synth --&gt;<br>      &lt;phase&gt;deploy&lt;/phase&gt;<br>      &lt;configuration&gt;<br>        &lt;arguments&gt;cdk4j-diagram html --ci-mode -t ${project.basedir}/target/cdk.out/GettingStartedStack.template.json -o ${project.basedir}/target/aws-diagram&lt;/arguments&gt;<br>      &lt;/configuration&gt;<br>    &lt;/execution&gt;<br>  &lt;/executions&gt;<br>&lt;/plugin&gt;</pre><p>Within this snippet we assure the proper node.js version is used (install node and npm) and we automatically install cdk4j-diagram (install cdk4j-diagram).</p><p>With the execution part generate infrastructure diagram we tell cdk4j-diagram to generate a diagram based on the CloudFormation template GettingStartedStack.template.json and persist it at /target/aws-diagram.</p><blockquote><strong>NOTE: </strong>CloudFormation template GettingStartedStack.template.json will be generated when the <a href="https://datapith.github.io/cdk4j/reference/cloud-development-kit/stack/">stack</a> is <a href="https://datapith.github.io/cdk4j/howto/cdk4j-maven-plugin/synthesize-stack/">synthesized</a> by the <a href="https://datapith.github.io/cdk4j/reference/cdk4j-maven-plugin/">CDK4J maven plugin</a>.</blockquote><h3>Generate diagram</h3><p>As <a href="https://datapith.github.io/cdk4j/reference/cdk4j-cfn-diagram/">CDK4J diagram</a> is integrated within the maven build process, the diagram will be automatically generated when we deploy the stack by executing: mvn deploy</p><p>Along with deploying the stack to AWS (as shown in <a href="https://datapith.github.io/cdk4j/tutorial/get-started-cdk4j/">Get started with CDK4J</a>, a visualization of the stack is saved in the target/aws-diagram`directory. Open the `index.html` file to view an interactive diagram similar to the image below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EBZDLESa260bdw6QKQqqmQ.png" /><figcaption>visualized AWS stack</figcaption></figure><p>The checkboxes in the blue sidebar allow you to hide specific resources, and clicking any resource reveals more detailed information.</p><h3>Conclusion</h3><p>Within this tutorial we have shown how we can automatically generate a diagram regarding the deployed stack. By this we</p><ul><li>Provide a clear and concise overview of resources, and their dependencies.</li><li>Facilitate better communication among team members and external auditors by providing an easy-to-understand representation of the stack.</li><li>Assure (new) employees or external contractors quickly understand the stack setup.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c6f63c16468a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploy AWS stack with Maven]]></title>
            <link>https://medium.com/@mark.schenk/cdk4j-maven-plugin-ab0de38ff2d2?source=rss-8bf36549d63c------2</link>
            <guid isPermaLink="false">https://medium.com/p/ab0de38ff2d2</guid>
            <category><![CDATA[maven]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[aws-cdk]]></category>
            <dc:creator><![CDATA[Mark Schenk]]></dc:creator>
            <pubDate>Wed, 18 Mar 2026 17:25:34 GMT</pubDate>
            <atom:updated>2026-03-18T17:50:06.531Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C4meYBqhX8EYvjRhWcS7Wg.png" /></figure><p>The <a href="https://datapith.github.io/cdk4j/reference/cdk4j-maven-plugin/">CDK4J Maven plugin</a> makes it easier for Java developers to create and deploy cloud infrastructure using familiar Java tools. Instead of dealing with extra software like Node.js or the traditional AWS CDK command-line tool, developers can define their cloud setup directly in Java code and use this plugin to handle everything smoothly.</p><p>This plugin simplifies the process by fitting right into the Java development workflow that developers already know. Instead of jumping back and forth between different commands and tools, everything happens within Maven. Deployment tasks like building and releasing your cloud infrastructure become just another part of your usual Maven build steps.</p><p>Here’s why it’s easier than the usual method:</p><ol><li>No Need to Install Extra Software — The standard AWS CDK requires Node.js, which can be a hassle to install and manage, especially on strict servers or CI/CD setups. This plugin removes that requirement, keeping your project purely Java without extra dependencies.</li><li>Works Naturally with Java Tools — You can run deployment commands with your normal Maven commands. You don’t need to switch context or manage separate config files; everything is set up in your existing Maven project configuration.</li><li>Keeps Everything in Sync — Since both your infrastructure code and the deployment tool are handled by Maven, you avoid version mismatches that often cause errors. If you have multiple projects or teams, you can manage all your shared settings centrally for consistency.</li><li>Easy to Use in Automated Pipelines — When running automated build and deployment pipelines, you only need a Java and Maven environment. The plugin automatically downloads everything it needs, making setup faster and maintenance simpler.</li></ol><p>In short, the <a href="https://datapith.github.io/cdk4j/reference/cdk4j-maven-plugin/">CDK4J Maven plugin</a> streamlines cloud infrastructure deployment for Java developers by integrating smoothly into their usual tools and workflows, eliminating extra dependencies, and simplifying automation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ab0de38ff2d2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Validate CDK application in Java]]></title>
            <link>https://medium.com/@mark.schenk/validate-cdk-application-in-java-071319ebf691?source=rss-8bf36549d63c------2</link>
            <guid isPermaLink="false">https://medium.com/p/071319ebf691</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[maven]]></category>
            <category><![CDATA[cdk]]></category>
            <category><![CDATA[java]]></category>
            <dc:creator><![CDATA[Mark Schenk]]></dc:creator>
            <pubDate>Fri, 20 Feb 2026 16:32:07 GMT</pubDate>
            <atom:updated>2026-02-25T09:38:58.872Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*NkykducfCNeZ-UU9IQ2dyg.jpeg" /></figure><h4>Identify security/compliance issues and mitigate these issues early on</h4><p>CDK4J enables developers to define cloud infrastructure using Java code. As with any infrastructure-as-code approach, it is essential to verify that the provisioned infrastructure complies with security standards and best practices. To achieve this, we leverage the cdk4j-compliancy tool, designed to enforce security and compliance policies effectively.</p><h3>What is cdk4j-compliancy?</h3><p>cdk4j-compliancy is a comprehensive module that performs automated security and compliance checks on AWS CDK code and the generated CloudFormation templates. Its purpose is to help ensure that your infrastructure adheres to established security best practices and compliance standards.<br><br>By integrating cdk4j-compliancy into your project, you gain the ability to detect a wide range of common security and compliance issues, such as overly permissive IAM policies, missing access logging, and unintentionally public S3 buckets. Additionally, it identifies frequent mistakes that may introduce security vulnerabilities, including the use of plaintext passwords and default security groups.<br><br>One of the key benefits of cdk4j-compliancy is its ability to surface issues early in the development lifecycle. This enables you to identify and address potential security risks locally during your infrastructure-as-code development, ensuring a more secure and compliant deployment.</p><h3>Adding cdk4j-compliancy to Maven build</h3><p>Integrating cdk4j-compliancy into your AWS CDK project is straightforward. To get started, add cdk4j-compliancy as a dependency in your pom.xml file.</p><pre>&lt;dependency&gt;<br>  &lt;groupId&gt;org.datapith&lt;/groupId&gt;<br>  &lt;artifactId&gt;cdk4j-compliancy&lt;/artifactId&gt;<br>  &lt;version&gt;${cdk4j.version}&lt;/version&gt;<br>&lt;/dependency&gt;</pre><p>Once the dependency has been added, you must explicitly enable cdk4j-compliancy as shown below:</p><pre>App app = App.Builder.create().build();<br><br>...<br>    <br>Compliancy compliancy = Compliancy.Builder.create(app)<br>    .withRulePacks(RulePack.AWS)<br>    .build();<br><br>compliancy.validate(app.synth());</pre><p>cdk4j-compliancy operates using rule packs that define sets of compliance and security rules. The currently supported rule packs include:</p><ul><li>AWS</li><li>HIPAA</li><li>NIST_REV4</li><li>NIST_REV5</li><li>PCI_DSS</li></ul><p>You can enable one or more of these rule packs based on your specific compliance requirements.<br><br>Let&#39;s examine a practical example of how to apply cdk4j-compliancy to a simple CDK application.</p><pre>public class Cdk4jCompliancyDemoApp {<br>  <br>    public static void main(final String[] args) {<br>        App app = new App();<br><br>        new Cdk4jComplianceDemoStack(app, &quot;Cdk4jCompliancyDemoStack&quot;, StackProps.builder().build());<br><br>        Compliancy compliancy = Compliancy.Builder.create(app)<br>            .withRulePacks(RulePack.AWS)<br>            .build();<br>      <br>        compliancy.validate(app.synth());<br>    }<br>}</pre><p>In the code snippet above, the AWS rule pack has been enabled for the entire CDK application scope.<br><br>Next, let’s review an example stack to observe how cdk4j-compliancy evaluates it. The following stack is a straightforward example that includes an S3 bucket.</p><pre>public class Cdk4jComplianceDemoStack  extends Stack {<br><br>  public CdkNonCompliantStack(final Construct scope, final String id, final StackProps props) {<br>    super(scope, id, props);<br><br>    Bucket.Builder.create(this, &quot;Bucket&quot;)<br>        .bucketName(&quot;unit-test-bucket&quot;)<br>        .build();<br>  }<br><br>}</pre><p>When you run Cdk4jCompliancyDemoApp, it will invoke cdk4j-compliancy, which automatically scans your resources for security and compliance issues. Upon completion, cdk4j-compliancy will either indicate a successful validation or return an error message accompanied by a clear, easy-to-understand list of violations. The following messages illustrate the output generated after running cdk4j-compliancy.</p><pre>Exception in thread &quot;main&quot; java.lang.RuntimeException: Compliancy errors:<br>[/Cdk4jCompliancyDemoStack/DemoBucket/Resource] AwsSolutions-S1: The S3 Bucket has server access logs disabled.<br><br>[/Cdk4jCompliancyDemoStack/DemoBucket/Resource] AwsSolutions-S10: The S3 Bucket or bucket policy does not require requests to use SSL.</pre><p>cdk4j-compliancy has identified several issues and provides guidance on how to enhance your infrastructure.<br><br>The specific messages generated depend on the selected rule pack. For example, switching to the HIPAA rule pack may produce some overlapping messages as well as additional compliance-related warnings.</p><pre>Exception in thread &quot;main&quot; java.lang.RuntimeException: Compliancy errors:<br>[/Cdk4jCompliancyDemoStack/DemoBucket/Resource] HIPAA.Security-S3BucketLoggingEnabled: The S3 Bucket does not have server access logs enabled - (Control IDs: 164.308(a)(3)(ii)(A), 164.312(b)).<br><br>[/Cdk4jCompliancyDemoStack/DemoBucket/Resource] HIPAA.Security-S3BucketPublicReadProhibited: The S3 Bucket does not prohibit public read access through its Block Public Access configurations and bucket ACLs - (Control IDs: 164.308(a)(3)(i), 164.308(a)(4)(ii)(A), 164.308(a)(4)(ii)(C), 164.312(a)(1), 164.312(e)(1)).<br><br>[/Cdk4jCompliancyDemoStack/DemoBucket/Resource] HIPAA.Security-S3BucketPublicWriteProhibited: The S3 Bucket does not prohibit public write access through its Block Public Access configurations and bucket ACLs - (Control IDs: 164.308(a)(3)(i), 164.308(a)(4)(ii)(A), 164.308(a)(4)(ii)(C), 164.312(a)(1), 164.312(e)(1)).<br><br>[/Cdk4jCompliancyDemoStack/DemoBucket/Resource] HIPAA.Security-S3BucketReplicationEnabled: The S3 Bucket does not have replication enabled - (Control IDs: 164.308(a)(7)(i), 164.308(a)(7)(ii)(A), 164.308(a)(7)(ii)(B)).<br><br>[/Cdk4jCompliancyDemoStack/DemoBucket/Resource] HIPAA.Security-S3BucketSSLRequestsOnly: The S3 Bucket or bucket policy does not require requests to use SSL - (Control IDs: 164.312(a)(2)(iv), 164.312(c)(2), 164.312(e)(1), 164.312(e)(2)(i), 164.312(e)(2)(ii)).<br><br>[/Cdk4jCompliancyDemoStack/DemoBucket/Resource] HIPAA.Security-S3BucketVersioningEnabled: The S3 Bucket does not have versioning enabled - (Control IDs: 164.308(a)(7)(i), 164.308(a)(7)(ii)(A), 164.308(a)(7)(ii)(B), 164.312(c)(1), 164.312(c)(2)).<br><br>[/Cdk4jCompliancyDemoStack/DemoBucket/Resource] HIPAA.Security-S3DefaultEncryptionKMS: The S3 Bucket is not encrypted with a KMS Key by default - (Control IDs: 164.312(a)(2)(iv), 164.312(e)(2)(ii)).</pre><h3>Suppressing Findings</h3><p>Occasionally, cdk4j-compliancy may flag configurations that are intentional, such as a public S3 bucket for a static website or a broadly permissive security group for a specific use case. In such instances, you can suppress these findings by providing a justification as follows:</p><pre>public class Cdk4jCompliancyDemoApp {<br><br>  public static void main(final String[] args) {<br>    App app = new App();<br><br>    new Cdk4jComplianceDemoStack(app, &quot;Cdk4jCompliancyDemoStack&quot;, StackProps.builder().build());<br><br>    Suppress.Builder.create(app).withRuleId(&quot;AwsSolutions-S1&quot;).reason(&quot;Suspend finding for demo&quot;).build();<br><br>    Compliancy compliancy = Compliancy.Builder.create(app)<br>        .withRulePacks(RulePack.AWS)<br>        .build();<br><br>    compliancy.validate(app.synth());</pre><p>In the example above, the rule AwsSolutions-S1 is suppressed for the entire application. After running cdk4j-compliancy, the error related to disabled logging will no longer appear in the output.</p><pre>Exception in thread &quot;main&quot; java.lang.RuntimeException: Compliancy errors:<br>[/Cdk4jCompliancyDemoStack/DemoBucket/Resource] AwsSolutions-S10: The S3 Bucket or bucket policy does not require requests to use SSL.</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=071319ebf691" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Serverless Object-Oriented Programming]]></title>
            <link>https://medium.com/@mark.schenk/serverless-object-oriented-programming-e13d13bfe44b?source=rss-8bf36549d63c------2</link>
            <guid isPermaLink="false">https://medium.com/p/e13d13bfe44b</guid>
            <category><![CDATA[objec]]></category>
            <category><![CDATA[serverless]]></category>
            <dc:creator><![CDATA[Mark Schenk]]></dc:creator>
            <pubDate>Fri, 21 Nov 2025 16:50:51 GMT</pubDate>
            <atom:updated>2025-11-21T16:53:36.768Z</atom:updated>
            <content:encoded><![CDATA[<p>Serverless Object-Oriented Programming (SOOP) is a development model that combines the principles of object-oriented programming (OOP) with serverless architectures. In this model, developers structure their applications around objects — a core concept in OOP that encapsulates data and functions (methods) related to that data into single units. These objects interact with each other to perform application functions.</p><p>Here’s a breakdown of the key components:</p><ol><li><strong>Object-Oriented Programming (OOP)</strong>: OOP is a programming paradigm based on the concept of “objects,” which can contain data in the form of fields (often known as attributes or properties) and code, in the form of procedures (often known as methods).</li><li><strong>Serverless Architecture</strong>: Serverless computing is an execution model where the cloud provider dynamically manages the allocation and provisioning of servers. A serverless provider allows users to write and deploy code without worrying about the underlying infrastructure. It is event-driven, scaling automatically as functions are triggered by various events.</li></ol><p>When these two concepts come together in serverless object-oriented programming, each object becomes a potentially independent unit of deployment. The methods within objects can be invoked via messages or HTTP requests, making the system highly responsive and scalable. This approach offers several benefits:</p><ul><li><strong>Scalability</strong>: Automatically scales with the number of events or method calls, without requiring manual intervention for server management.</li><li><strong>Cost Efficiency</strong>: Costs are based on the actual usage, where you pay only for the compute time you consume.</li><li><strong>Maintenance</strong>: Reduces the overhead of server maintenance, updates, and operations.</li><li><strong>Development Speed</strong>: Allows developers to focus on writing application logic rather than managing server configurations and deployments.</li></ul><p>In practice, serverless object-oriented programming involve creating interfaces and classes that define methods, which are then deployed as serverless functions. These functions could be grouped by their purpose or related business logic in modules, adhering to OOP principles such as encapsulation, inheritance, and polymorphism.</p><p>SOOP allows developers to leverage the organizational and structural benefits of OOP while enjoying the operational advantages of serverless computing, such as reduced operational responsibilities and costs, and improved scalability and flexibility.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e13d13bfe44b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[LLMs Versus Reinforcement Learning]]></title>
            <link>https://medium.com/@mark.schenk/llms-versus-reinforcement-learning-7ba2a6a835e5?source=rss-8bf36549d63c------2</link>
            <guid isPermaLink="false">https://medium.com/p/7ba2a6a835e5</guid>
            <category><![CDATA[agi]]></category>
            <category><![CDATA[reinforcement-learning]]></category>
            <category><![CDATA[large-language-models]]></category>
            <dc:creator><![CDATA[Mark Schenk]]></dc:creator>
            <pubDate>Wed, 29 Oct 2025 16:09:46 GMT</pubDate>
            <atom:updated>2025-10-29T16:09:46.709Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LcWNygjOZDsxvvcB_IK3_A.jpeg" /></figure><p>In the rapidly evolving world of artificial intelligence, a critical debate is unfolding: Are Large Language Models (LLMs) a dead end, or do they represent a viable pathway to true AI? As we delve into the intricacies of AI development, the contrast between LLMs and Reinforcement Learning (RL) becomes clearly evident. LLMs, recognized for their ability to replicate human-like text from extensive internet data, are criticized for their superficial processing — do they truly understand, or merely echo? On the other side, RL champions a deeper interaction with the world, learning from the consequences of actions, not just data.</p><p>This discussion isn’t just academic; it cuts to the heart of what we envision as the future of intelligent systems. Can a model that thrives on imitation alone pave the way for machines that think and learn from experience? Or is the key to unlocking AI’s potential found in the goal-oriented, experiential learning processes of RL? As we explore these questions, we uncover not just the capabilities but also the limitations of current models. The journey through these contrasting paradigms isn’t just about predicting the next word in a sentence; it’s about preparing AI to interact, predict, and innovate in the chaotic, unpredictable world we inhabit.</p><h3>Fundamental Differences Between LLMs and RL</h3><p>LLMs have become a focal point in AI discussions, particularly due to their ability to generate human-like text based on extensive data sets harvested from the internet. This capability, however, is frequently criticized for merely mimicking human output without a deeper understanding or interaction with the world — a limitation that some experts argue could hinder their utility in real-world applications.</p><p>Conversely, RL is posited as a method that fundamentally understands and interacts with the world. It learns from actions and their consequences, offering a more dynamic and potentially insightful approach to AI, where the system learns from actual experience rather than pre-existing data.</p><h3>The Limitations of World Modeling in LLMs</h3><p>One significant critique of LLMs is their apparent lack of a “world model” — an ability to predict real-world outcomes based on input data. While LLMs can predict subsequent human-like responses, they lack the predictive capacity to foresee the consequences of actions in a comprehensive, real-world context. This predictive shortfall is seen as a critical gap, especially when considering applications that require interaction with the physical world or complex decision-making scenarios.</p><h3>The Role of Imitation Learning and Its Shortcomings</h3><p>Imitation learning, where models learn from pre-existing human responses, is often touted as a benefit, providing models with a solid base from which to mimic reasonable human interactions. However, this approach is limited by its reliance on historical data without a mechanism for the models to independently verify the appropriateness or correctness of their responses. The lack of a feedback loop to validate or refute the decisions based on real-world outcomes is a noted deficiency.</p><h3>The Need for Goal-Oriented Learning</h3><p>A central argument against the current structure of LLMs is their lack of genuine goals. In intelligence systems, goals are not just about predicting the next piece of data accurately but involve changing the environment or achieving specific, tangible outcomes. The current focus of LLMs on next-token prediction is criticized for not constituting a substantive, impactful goal that could lead to real-world applications and improvements.</p><h3>Reinforcement Learning to Lead the Way</h3><p>Looking forward, the discussion typically leans towards the potential of RL to surpass LLMs by focusing on learning from direct, experiential interactions with the environment. This approach aligns more closely with natural learning processes and is argued to be more scalable and adaptable to various applications without the constraints imposed by pre-existing data.</p><h3>Conclusion</h3><p>The debate between the potential and limitations of LLMs versus the possibilities offered by RL continues to shape the future of AI. As technology evolves, the focus may shift increasingly towards methods that not only replicate human behavior but also understand and interact with the world in transformative ways. This ongoing conversation highlights the dynamic nature of AI research and the continuous search for models that not only predict, but also innovate and adapt based on real-world learning and interaction.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7ba2a6a835e5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>